Fix compilation error in C++ mode on Solaris 11 OpenIndiana.
[gnulib.git] / ChangeLog
blobc5d8df6c134887b31f3163ce6402443e357a6ef6
1 2019-12-04  Bruno Haible  <bruno@clisp.org>
3         Fix compilation error in C++ mode on Solaris 11 OpenIndiana.
4         * lib/wchar.in.h (wcsnrtombs): Force declaration in C++ mode on Solaris.
5         * doc/posix-functions/wcsnrtombs.texi: Mention the issue.
7 2019-12-04  Bruno Haible  <bruno@clisp.org>
9         Disable more _GL_CXXALIASWARN on all platforms other than glibc systems.
10         * lib/wchar.in.h (wcsnrtombs, wcwidth, wcswidth): Disable
11         _GL_CXXALIASWARN invocation on non-glibc systems.
12         * lib/wctype.in.h (iswalnum, iswalpha, iswcntrl, iswdigit, iswgraph,
13         iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit, wctype,
14         iswctype, towlower, towupper): Likewise.
16 2019-12-03  Bruno Haible  <bruno@clisp.org>
18         Avoid hassles caused by [[noreturn]] in C++.
19         Reported by Christian Biesinger <cbiesinger@google.com> in
20         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00010.html>.
21         * m4/gnulib-common.m4 (gl_COMMON_BODY): Disable the use of [[noreturn]].
22         * lib/_Noreturn.h: Likewise.
24 2019-12-02  Bruno Haible  <bruno@clisp.org>
26         Fix mistakes in --enable-threads=isoc fixes from 2019-12-01.
27         * m4/pthread-mutex.m4 (gl_PTHREAD_MUTEX): Use LIBPMULTITHREAD, not
28         LIBMULTITHREAD.
29         * m4/pthread-rwlock.m4 (gl_PTHREAD_RWLOCK): Likewise.
30         * m4/pthread-thread.m4 (gl_PTHREAD_THREAD): Likewise.
31         * m4/timer_time.m4 (gl_TIMER_TIME): Likewise. Require gl_PTHREADLIB, not
32         gl_THREADLIB.
33         * modules/timer-time (Depends-on): Add pthread-h. Remove threadlib.
35 2019-12-02  Bruno Haible  <bruno@clisp.org>
37         Fix some more link errors with --enable-threads=isoc.
38         * modules/pthread-mutex (Depends-on): Test $gl_threads_api differently.
39         * modules/pthread-rwlock (Depends-on): Likewise.
41 2019-12-02  Bruno Haible  <bruno@clisp.org>
43         Fix link errors with --enable-threads=posix on AIX.
44         * modules/string-c++-tests (Makefile.am): Link the test-string-c++
45         program with $(LIBTHREAD).
46         * modules/wchar-c++-tests (Makefile.am): Link the test-wchar-c++
47         program with $(LIBTHREAD).
49 2019-12-02  Bruno Haible  <bruno@clisp.org>
51         Fix link errors with --enable-threads=posix on AIX.
52         * modules/mbrtowc (Link): New section.
53         * modules/acl (Link): Likewise.
54         * modules/argmatch (Link): Likewise.
55         * modules/backup-rename (Link): Likewise.
56         * modules/backupfile (Link): Likewise.
57         * modules/closein (Link): Likewise.
58         * modules/closeout (Link): Likewise.
59         * modules/copy-file (Link): Likewise.
60         * modules/csharpcomp (Link): Likewise.
61         * modules/csharpexec (Link): Likewise.
62         * modules/dfa (Link): Likewise.
63         * modules/exclude (Link): Likewise.
64         * modules/fnmatch (Link): Likewise.
65         * modules/fnmatch-gnu (Link): Likewise.
66         * modules/fnmatch-posix (Link): Likewise.
67         * modules/glob (Link): Likewise.
68         * modules/human (Link): Likewise.
69         * modules/javacomp (Link): Likewise.
70         * modules/javaexec (Link): Likewise.
71         * modules/javaversion (Link): Likewise.
72         * modules/mbfile (Link): Likewise.
73         * modules/mbiter (Link): Likewise.
74         * modules/mbmemcasecmp (Link): Likewise.
75         * modules/mbmemcasecoll (Link): Likewise.
76         * modules/mbrlen (Link): Likewise.
77         * modules/mbscasecmp (Link): Likewise.
78         * modules/mbscasestr (Link): Likewise.
79         * modules/mbschr (Link): Likewise.
80         * modules/mbscspn (Link): Likewise.
81         * modules/mbsinit (Link): Likewise.
82         * modules/mbslen (Link): Likewise.
83         * modules/mbsncasecmp (Link): Likewise.
84         * modules/mbsnlen (Link): Likewise.
85         * modules/mbsnrtowcs (Link): Likewise.
86         * modules/mbspbrk (Link): Likewise.
87         * modules/mbspcasecmp (Link): Likewise.
88         * modules/mbsrchr (Link): Likewise.
89         * modules/mbsrtowcs (Link): Likewise.
90         * modules/mbssep (Link): Likewise.
91         * modules/mbsspn (Link): Likewise.
92         * modules/mbsstr (Link): Likewise.
93         * modules/mbstok_r (Link): Likewise.
94         * modules/mbswidth (Link): Likewise.
95         * modules/mbuiter (Link): Likewise.
96         * modules/mkdir-p (Link): Likewise.
97         * modules/propername (Link): Likewise.
98         * modules/quote (Link): Likewise.
99         * modules/quotearg (Link): Likewise.
100         * modules/quotearg-simple (Link): Likewise.
101         * modules/regex-quote (Link): Likewise.
102         * modules/rpmatch (Link): Likewise.
103         * modules/sh-quote (Link): Likewise.
104         * modules/system-quote (Link): Likewise.
105         * modules/trim (Link): Likewise.
106         * modules/unistdio/ulc-asnprintf (Link): Likewise.
107         * modules/unistdio/ulc-fprintf (Link): Likewise.
108         * modules/unistdio/ulc-vasnprintf (Link): Likewise.
109         * modules/unistdio/ulc-vasprintf (Link): Likewise.
110         * modules/unistdio/ulc-vfprintf (Link): Likewise.
111         * modules/unistdio/ulc-vsnprintf (Link): Likewise.
112         * modules/unistdio/ulc-vsprintf (Link): Likewise.
113         * modules/xfreopen (Link): Likewise.
114         * modules/xmemcoll (Link): Likewise.
115         * modules/yesno (Link): Likewise.
116         * modules/acl-tests (Makefile.am): Link the programs with $(LIBTHREAD).
117         * modules/argmatch-tests (Makefile.am): Likewise.
118         * modules/closein-tests (Makefile.am): Likewise.
119         * modules/copy-file-tests (Makefile.am): Likewise.
120         * modules/dfa-tests (Makefile.am): Likewise.
121         * modules/fnmatch-tests (Makefile.am): Likewise.
122         * modules/glob-tests (Makefile.am): Likewise.
123         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
124         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
125         * modules/mbrtowc-tests (Makefile.am): Likewise.
126         * modules/mbscasecmp-tests (Makefile.am): Likewise.
127         * modules/mbscasestr-tests (Makefile.am): Likewise.
128         * modules/mbschr-tests (Makefile.am): Likewise.
129         * modules/mbscspn-tests (Makefile.am): Likewise.
130         * modules/mbsinit-tests (Makefile.am): Likewise.
131         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
132         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
133         * modules/mbspbrk-tests (Makefile.am): Likewise.
134         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
135         * modules/mbsrchr-tests (Makefile.am): Likewise.
136         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
137         * modules/mbsspn-tests (Makefile.am): Likewise.
138         * modules/mbsstr-tests (Makefile.am): Likewise.
139         * modules/quotearg-tests (Makefile.am): Likewise.
140         * modules/quotearg-simple-tests (Makefile.am): Likewise.
141         * modules/readtokens-tests (Makefile.am): Likewise.
142         * modules/regex-quote-tests (Makefile.am): Likewise.
143         * modules/sh-quote-tests (Makefile.am): Likewise.
144         * modules/system-quote-tests (Makefile.am): Likewise.
145         * modules/unistdio/ulc-asnprintf-tests (Makefile.am): Likewise.
146         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
147         * modules/unistdio/ulc-vasprintf-tests (Makefile.am): Likewise.
148         * modules/unistdio/ulc-vsnprintf-tests (Makefile.am): Likewise.
149         * modules/unistdio/ulc-vsprintf-tests (Makefile.am): Likewise.
150         * modules/yesno-tests (Makefile.am): Likewise.
152 2019-12-02  Bruno Haible  <bruno@clisp.org>
154         Simplify link sections.
155         * modules/threadlib (Link): Stop mentioning LTLIBTHREAD.
156         * modules/lock (Link): Likewise.
157         * modules/cond (Link): Likewise.
158         * modules/tls (Link): Likewise.
159         * modules/yield (Link): Likewise.
160         * modules/regex (Link): Likewise.
161         * modules/localename (Link): Likewise.
162         * modules/unicase/locale-language (Link): Likewise.
163         * modules/thread (Link): Stop mentioning LTLIBMULTITHREAD.
165 2019-12-02  Bruno Haible  <bruno@clisp.org>
167         thread tests: Avoid link error with --enable-threads=isoc+posix on AIX.
168         * tests/test-thread_self.c (main): Disable test on AIX.
170 2019-12-01  Bruno Haible  <bruno@clisp.org>
172         pthread-h: Fix link errors with --enable-threads=isoc on AIX.
173         * m4/threadlib.m4 (gl_ANYTHREADLIB_EARLY): New macro, extracted from
174         gl_THREADLIB_EARLY_BODY.
175         (gl_THREADLIB_EARLY_BODY): Invoke it.
176         (gl_PTHREADLIB_BODY): New macro, extracted from gl_THREADLIB_BODY.
177         (gl_THREADLIB_BODY): Invoke it.
178         (gl_PTHREADLIB): New macro.
179         * m4/pthread_h.m4 (gl_PTHREAD_H): Require gl_PTHREADLIB. Require
180         gl_THREADLIB and test $gl_threads_api only if module 'threadlib' is
181         present. Define LIB_PTHREAD using LIBPMULTITHREAD, not LIBMULTITHREAD.
182         * modules/pthread-h (Files): Add threadlib.m4.
183         (Depends-on): Remove threadlib.
184         (configure.ac-early): Invoke gl_ANYTHREADLIB_EARLY. Don't set _REENTRANT
185         and _THREAD_SAFE here.
186         (Link): Use LIBPTHREAD, not LIBTHREAD.
187         * modules/pthread-thread (Link): Use LIBPMULTITHREAD, not
188         LIBMULTITHREAD.
189         * modules/pthread-once (Link): Likewise.
190         * modules/pthread-mutex (Link): Likewise.
191         * modules/pthread-rwlock (Link): Likewise.
192         * modules/pthread-cond (Link): Likewise.
193         * modules/pthread-tss (Link): Likewise.
194         * modules/pthread-spin (Link): Likewise.
195         * modules/pthread (Link): Likewise.
196         * modules/pthread-h-c++-tests (test_pthread_c___LDADD): Likewise.
197         * modules/pthread-thread-tests (test_pthread_thread_LDADD): Likewise.
198         * modules/pthread-once-tests (test_pthread_once1_LDADD,
199         test_pthread_once2_LDADD): Likewise.
200         * modules/pthread-mutex-tests (test_pthread_mutex_LDADD): Likewise.
201         * modules/pthread-rwlock-tests (test_pthread_rwlock_LDADD): Likewise.
202         * modules/pthread-cond-tests (test_pthread_cond_LDADD): Likewise.
203         * modules/pthread-tss-tests (test_pthread_tss_LDADD): Likewise.
205 2019-12-01  Bruno Haible  <bruno@clisp.org>
207         cond: State linking requirements.
208         * modules/cond (Link): New section.
210 2019-12-01  Bruno Haible  <bruno@clisp.org>
212         threadlib: Remove unnecessary file (left over from 2019-07-06).
213         * modules/threadlib (Files): Remove config.rpath.
215 2019-11-29  Tim Rühsen  <tim.ruehsen@gmx.de>
217         gnulib-tool.py: Fix libgnu_la_LDFLAGS section in generated Makefile.am.
218         Reported by Dagobert Michelsen <dam@opencsw.org> in
219         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00086.html>.
220         * pygnulib/GLModuleSystem.py (getLink): Don't join the parts. Return a
221         list of strings instead of one string.
222         * pygnulib/GLEmiter.py (lib_Makefile_am): Adapt accordingly.
223         * pygnulib/GLImport.py (execute): Likewise.
225 2019-11-27  Bruno Haible  <bruno@clisp.org>
227         openpty, forkpty: Fix build error on Solaris 11.4.
228         * m4/pty_h.m4 (gl_PTY_H): Test for termios.h. Look for the declarations
229         also in <termios.h>.
230         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Look for the declaration
231         of the function also in <termios.h>.
232         * doc/glibc-functions/openpty.texi: Mention the Solaris 11.4 problems.
233         * doc/glibc-functions/forkpty.texi: Likewise.
235 2019-11-27  Bruno Haible  <bruno@clisp.org>
237         New options --enable-threads=isoc and --enable-threads=isoc+posix.
238         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Accept the options
239         --enable-threads=isoc and --enable-threads=isoc+posix.
240         (gl_THREADLIB_BODY): Test whether the ISO C threads API is available.
241         When both the ISO C and the POSIX threads API are available, choose
242         USE_ISOC_AND_POSIX_THREADS instead of USE_POSIX_THREADS if
243         --enable-threads=isoc+posix was specified. When only the ISO C threads
244         API is available and --enable-threads=iso was specified, choose
245         USE_ISOC_THREADS.
246         * lib/glthread/lock.h: Add new code for USE_ISOC_THREADS ||
247         USE_ISOC_AND_POSIX_THREADS.
248         * lib/glthread/lock.c: Likewise.
249         * lib/glthread/cond.h: Likewise.
250         * lib/glthread/cond.c: Likewise.
251         * lib/glthread/tls.h: Likewise.
252         * lib/glthread/tls.c: Likewise.
253         * lib/glthread/yield.h: Likewise.
254         * lib/glthread/thread.h: Add new code for USE_ISOC_THREADS. Treat
255         USE_ISOC_AND_POSIX_THREADS like USE_POSIX_THREADS.
256         * lib/glthread/thread.c: Likewise.
257         * lib/glthread/threadlib.c: Likewise.
258         * tests/test-lock.c: Save and restore the values of USE_ISOC_THREADS and
259         USE_ISOC_AND_POSIX_THREADS.
260         * tests/test-cond.c: Consider USE_ISOC_THREADS and
261         USE_ISOC_AND_POSIX_THREADS.
262         * tests/test-tls.c: Likewise.
263         * tests/test-thread_create.c (main): Likewise.
264         * tests/test-pthread-cond.c: Likewise.
265         * tests/test-pthread-mutex.c: Likewise.
266         * tests/test-pthread-once2.c: Likewise.
267         * tests/test-pthread-rwlock.c: Likewise.
268         * tests/test-pthread-tss.c: Likewise.
269         * tests/test-pthread_sigmask2.c: Treat USE_ISOC_AND_POSIX_THREADS like
270         USE_POSIX_THREADS.
272 2019-11-24  Bruno Haible  <bruno@clisp.org>
274         mbrtowc: Modernize autoconf test.
275         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Require
276         gt_LOCALE_FR_UTF8. If a traditional Japanese locale is not available,
277         try a UTF-8 locale.
278         * doc/posix-functions/mbrtowc.texi: Update info about AIX.
280 2019-11-24  Bruno Haible  <bruno@clisp.org>
282         Fix errors in C++ mode on mingw.
283         * lib/arpa_inet.in.h (inet_ntop, inet_pton): Use _GL_CXXALIAS_SYS_CAST
284         instead of _GL_CXXALIAS_SYS.
285         * lib/signal.in.h (pthread_sigmask): Likewise.
286         * lib/spawn.in.h (posix_spawn_file_actions_addopen,
287         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
288         Likewise.
289         * lib/wchar.in.h (btowc): Likewise.
291 2019-11-24  Bruno Haible  <bruno@clisp.org>
293         sys_time: Fix errors in C++ mode on mingw.
294         * lib/sys_time.in.h (timeval): Restore the redirection
295         '#define timeval rpl_timeval', for when the symbol timeval is being used
296         outside the 'gnulib' namespace.
297         * lib/sys_select.in.h (select): In C++, write 'timeval', not
298         'struct timeval'.
300 2019-11-24  Bruno Haible  <bruno@clisp.org>
302         iswctype: Fix errors in C++ mode on mingw.
303         * lib/wctype.in.h (rpl_iswctype): Override if GNULIB_OVERRIDES_WINT_T
304         is 1.
305         * lib/iswctype.c (iswctype): Add another implementation, for the
306         GNULIB_defined_wint_t case.
307         * modules/iswctype (configure.ac): Compile iswctype.c also if
308         GNULIB_OVERRIDES_WINT_T is 1.
310 2019-11-24  Bruno Haible  <bruno@clisp.org>
312         windows-timedmutex: Fix errors in C++ mode on mingw.
313         * lib/windows-timedmutex.h: Add closing brace.
315 2019-11-24  Bruno Haible  <bruno@clisp.org>
317         Fix errors in C++ mode on Cygwin.
318         * lib/sys_wait.in.h (waitpid): Use _GL_CXXALIAS_SYS_CAST instead of
319         _GL_CXXALIAS_SYS.
321 2019-11-24  Bruno Haible  <bruno@clisp.org>
323         time_r: Fix for mingw (regression from 2019-11-16).
324         * m4/time_r.m4 (gl_TIME_R): Revert to using AC_CHECK_FUNCS_ONCE. Use the
325         AC_LINK_IFELSE test only if the function does not appear to exist.
327 2019-11-24  Bruno Haible  <bruno@clisp.org>
329         wcstok: Add tests.
330         * tests/test-wcstok.c: New file.
331         * modules/wcstok-tests: New file.
333 2019-11-24  Bruno Haible  <bruno@clisp.org>
335         wcstok: Work around wrong signature on native Windows.
336         * lib/wchar.in.h (wcstok): Override when REPLACE_WCSTOK is 1.
337         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Check for signature of wcstok. Set
338         REPLACE_WCSTOK.
339         * m4/wchar_h.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSTOK.
340         * modules/wchar (Makefile.am): Substitute REPLACE_WCSTOK.
341         * modules/wcstok (Depends-on, configure.ac): Consider REPLACE_WCSTOK.
342         * doc/posix-functions/wcstok.texi: Mention the problem.
344 2019-11-22  Paul Eggert  <eggert@cs.ucla.edu>
346         intprops: INT_MULTIPLY_WRAPV speedup for GCC 8.4+
347         * lib/intprops.h (INT_MULTIPLY_WRAPV): If GCC 8.x where 4 <= x,
348         remove workaround for GCC bug 91450 as the bug should be fixed
349         there too.
351 2019-11-21  Bruno Haible  <bruno@clisp.org>
353         Disable many _GL_CXXALIASWARN on all platforms other than glibc systems.
354         Reported by Christian Biesinger <cbiesinger@google.com> in
355         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00066.html>.
356         * lib/fnmatch.in.h (fnmatch): Disable _GL_CXXALIASWARN invocation on
357         non-glibc systems.
358         * lib/locale.in.h (localeconv, setlocale): Likewise.
359         * lib/math.in.h (cbrt, ceil, copysign, exp2, expm1, floor, fma, fmod,
360         frexp, hypot, ilogb, log, log10, log1p, log2, logb, modf, remainder,
361         rint, round, trunc): Likewise.
362         * lib/monetary.in.h (strfmon_l): Likewise.
363         * lib/pthread.in.h (pthread_mutexattr_getrobust,
364         pthread_mutexattr_setrobust, pthread_mutex_lock, pthread_spin_init,
365         pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock,
366         pthread_spin_destroy): Likewise.
367         * lib/signal.in.h (raise, signal): Likewise.
368         * lib/stdio.in.h (fclose, fflush, fgetc, fgets, fopen, fprintf, fputc,
369         fputs, fread, freopen, fscanf, fseek, ftell, fwrite, getc, getchar,
370         perror, printf, putc, putchar, puts, remove, rename, scanf, sprintf,
371         tmpfile, vfprintf, vprintf, vsprintf): Likewise.
372         * lib/stdlib.in.h (calloc, malloc, mbtowc, realloc, strtod, wctomb):
373         Likewise.
374         * lib/string.in.h (memchr, strncat, strpbrk, strstr, strerror):
375         Likewise.
376         * lib/time.in.h (mktime, localtime, ctime, strftime): Likewise.
377         * lib/wchar.in.h (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs,
378         wcrtomb, wcsrtombs, wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset,
379         wcslen, wcscpy, wcsncpy, wcscat, wcsncat, wcscmp, wcsncmp, wcscoll,
380         wcsxfrm, wcschr, wcsrchr, wcscspn, wcsspn, wcspbrk, wcsstr, wcstok,
381         wcsftime): Likewise.
382         * lib/wctype.in.h (iswblank, wctrans, towctrans): Likewise.
384 2019-11-21  Bruno Haible  <bruno@clisp.org>
386         Fix various errors in _GL_CXXALIAS_SYS invocations.
387         * lib/locale.in.h (freelocale): Use _GL_CXXALIAS_SYS_CAST instead of
388         _GL_CXXALIAS_SYS.
389         * lib/pthread.in.h (pthread_mutexattr_gettype,
390         pthread_mutexattr_getrobust): Likewise.
391         * lib/stdlib.in.h (srandom, initstate, setstate): Likewise.
392         * lib/sys_socket.in.h (recv, send): Likewise.
393         * lib/unistd.in.h (getdtablesize): Likewise.
394         * lib/sys_select.in.h (select): In C++, write 'timeval' instead of
395         'struct timeval'.
397 2019-11-21  Bruno Haible  <bruno@clisp.org>
399         math tests: Update after 2019-08-28 change.
400         * tests/test-math-c++.cc (isfinite, isinf, isnan, signbit): Expect a
401         return type of 'bool', not 'int'.
403 2019-11-21  Bruno Haible  <bruno@clisp.org>
405         pthread-spin: Fix errors in C++ mode.
406         * m4/pthread-spin.m4 (gl_PTHREAD_SPIN): Mark the pthread_spin_*
407         functions as nonexistent when <pthread.h> exists but does not define
408         the pthread_spinlock_t type.
410 2019-11-21  Bruno Haible  <bruno@clisp.org>
412         pthread-mutex: Fix errors in C++ mode.
413         * m4/pthread-mutex.m4 (gl_PTHREAD_MUTEX): Test whether
414         pthread_mutexattr_getrobust exists. If not, define
415         PTHREAD_MUTEXATTR_ROBUST_UNIMPLEMENTED.
416         * lib/pthread-mutex.c (pthread_mutexattr_getrobust,
417         pthread_mutexattr_setrobust): Define also if <pthread.h> exists but
418         PTHREAD_MUTEXATTR_ROBUST_UNIMPLEMENTED.
419         * modules/pthread-mutex (configure.ac): Compile pthread-mutex.c also
420         when <pthread.h> exists but pthread_mutexattr_getrobust needs a gnulib
421         definition.
423 2019-11-19  Bruno Haible  <bruno@clisp.org>
425         threads-h tests: Fix typo.
426         * tests/test-threads-c++.cc: Fix references to undefined type 'mtx'.
428 2019-11-19  Bruno Haible  <bruno@clisp.org>
430         pthread-thread: Fix prototype of pthread_attr_getdetachstate.
431         * lib/pthread.in.h (pthread_attr_getdetachstate): Change first parameter
432         to 'const pthread_attr_t *'.
433         * lib/pthread-thread.c (pthread_attr_getdetachstate): Likewise.
434         * tests/test-pthread-c++.cc (pthread_attr_getdetachstate): Likewise.
436 2019-11-19  Paul Eggert  <eggert@cs.ucla.edu>
438         intprops: speed up INT_MULTIPLY_WRAPV in GCC 9.3
439         * lib/intprops.h (INT_MULTIPLY_WRAPV): If GCC 9.3 or later, do not
440         work around GCC bug 91450 as the bug should be fixed there.
442 2019-11-18  Paul Eggert  <eggert@cs.ucla.edu>
444         glob: get closer to glibc glob.c
445         Omit differences from glibc when the differences don’t matter.
446         * lib/glob.c [_LIBC]: Include shlib-compat.h.
447         (__glob) [!_LIBC]: New macro.  All uses of glob changed to __glob.
448         (glob_lstat): New function.
449         (glob_in_dir): Use it.
450         (GLOB_ATTRIBUTE): Define to empty if not already defined.
451         Use changed.
453 2019-11-18  Bruno Haible  <bruno@clisp.org>
455         stdint: Define [u]intptr_t correctly on 64-bit native Windows.
456         * lib/stdint.in.h (gl_intptr_t, gl_uintptr_t, INTPTR_MIN, INTPTR_MAX,
457         UINTPTR_MAX): Consider _WIN64.
458         * tests/test-stdint.c: Verify that [u]intptr_t is large enough to hold
459         a pointer.
461 2019-11-18  Bruno Haible  <bruno@clisp.org>
463         stdint: Fix value of WINT_MAX when we override wint_t.
464         * lib/stdint.in.h (WINT_MIN, WINT_MAX): Don't override a second time
465         when GNULIB_OVERRIDES_WINT_T is 1.
467 2019-11-18  Bruno Haible  <bruno@clisp.org>
469         vcs-to-changelog: New module.
470         * modules/vcs-to-changelog: New file.
471         * MODULES.html.sh (func_all_modules): Add it.
473 2019-11-01  Siddhesh Poyarekar  <siddhesh@gotplt.org>
475         vcs-to-changelog: New script to generate ChangeLog-like output.
476         Discussion:
477         <https://lists.gnu.org/archive/html/bug-gnulib/2019-10/msg00062.html>
478         * build-aux/vcs_to_changelog.py: New file.
479         * build-aux/vcstocl/frontend_c.py: New file.
480         * build-aux/vcstocl/misc_util.py: New file.
481         * build-aux/vcstocl/vcs_git.py: New file.
483 2019-11-18  Bruno Haible  <bruno@clisp.org>
485         stdint: Avoid triggering a "conflicting types" error on mingw 5.22.
486         Reported by Keith Marshall <keith@users.osdn.me> in
487         <https://lists.gnu.org/archive/html/bug-gnulib/2019-10/msg00044.html>
488         and <https://osdn.net/projects/mingw/ticket/39677>.
489         * lib/stdint.in.h (intptr_t, uintptr_t): Don't define if the types have
490         already been defined by mingw's <crtdefs.h>.
492 2019-11-18  Bruno Haible  <bruno@clisp.org>
494         gnulib-tool: Fix build error on macOS with --conditional-dependencies.
495         * gnulib-tool (func_modules_add_dummy): Ignore modules that are
496         conditionally enabled.
498 2019-11-18  Bruno Haible  <bruno@clisp.org>
500         gc: Mirror libgcrypt.m4 from libgcrypt.
501         * config/srclistvars.sh (LIBGCRYPT): New variable.
502         * config/srclist.txt: Use it to fetch m4/libgcrypt.m4.
504 2019-11-17  Bruno Haible  <bruno@clisp.org>
506         locale, localename: Improve z/OS support.
507         Reported by Daniel Richard G. in
508         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00001.html>.
509         * m4/locale_h.m4 (gl_LOCALE_T): New macro, partially extracted from
510         gl_LOCALE_H.
511         (gl_LOCALE_H): Require it.
512         * m4/localename.m4 (gl_LOCALENAME): Likewise. If locale_t is not
513         defined, don't even check for newlocale, duplocale, freelocale.
514         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): Make the test fail when
515         locale_t is not defined.
517 2019-11-17  Bruno Haible  <bruno@clisp.org>
519         havelib: Make libdirstems processing more flexible.
520         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Set 3 libdirstem
521         variables: Consider 'lib' always, also on Solaris. Look for lib32 in
522         addition to lib64. Don't invoke /usr/bin/gcc (reverting the second
523         patch from 2017-02-19).
524         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Consider up to 3 additional
525         libdirs, even when the first one exists as a directory.
527 2019-11-17  Bruno Haible  <bruno@clisp.org>
529         havelib: Match the bitness when searching for libraries.
530         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Define a function
531         acl_is_expected_elfclass.
532         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): When testing whether a library
533         file exists, in ELF, also test whether it has the ELF class that
534         corresponds to the host's bitness.
536 2019-11-17  Bruno Haible  <bruno@clisp.org>
538         host-cpu-c-abi: Add support for unknown CPUs.
539         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): Set
540         gl_cv_host_cpu_c_abi_32bit to 'unknown' if we don't know whether it's
541         32-bit or 64-bit.
543 2019-11-17  Bruno Haible  <bruno@clisp.org>
545         havelib: Remove redundant code.
546         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Remove Solaris specific
547         test for 64-bit host. Use gl_HOST_CPU_C_ABI_32BIT result instead.
549 2019-11-17  Bruno Haible  <bruno@clisp.org>
551         havelib: Fix a bug in dependency processing.
552         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): During dependency processing
553         of .la files, don't overwrite the value of additional_libdir for the
554         next rounds.
556 2019-11-16  Bruno Haible  <bruno@clisp.org>
558         wctype-h: When overriding wint_t, override also the related functions.
559         Reported by Christian Biesinger <cbiesinger@google.com> in
560         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00027.html>.
561         * m4/wctype_h.m4 (gl_WCTYPE_H): When GNULIB_OVERRIDES_WINT_T is 1, set
562         REPLACE_ISWCNTRL to 1.
563         * lib/wctype.in.h (rpl_iswalnum, rpl_iswalpha, rpl_iswblank,
564         rpl_iswcntrl, rpl_iswdigit, rpl_iswgraph, rpl_iswlower, rpl_iswprint,
565         rpl_iswpunct, rpl_iswspace, rpl_iswupper, rpl_iswxdigit, rpl_towlower,
566         rpl_towupper): New definitions when GNULIB_OVERRIDES_WINT_T is 1.
567         * doc/posix-headers/wchar.texi: Mention that wint_t is also overridden
568         on mingw.
569         * doc/posix-headers/wctype.texi: Likewise.
571 2019-11-16  Bruno Haible  <bruno@clisp.org>
573         time_r: Fix for mingw.
574         Reported by Christian Biesinger <cbiesinger@google.com> in
575         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00014.html>.
576         * lib/time.in.h: On mingw, include <unistd.h>.
577         * m4/time_r.m4 (gl_TIME_R): On mingw, include <unistd.h> before
578         <time.h>. Test for localtime_r in a way that works when it is defined
579         as an inline function.
581 2019-11-13  Bruno Haible  <bruno@clisp.org>
583         havelib: Revert last change.
584         * build-aux/config.rpath: Revert last change. We can add msys2 support
585         when it has been added to libtool.m4 upstream.
587 2019-11-09  Paul Eggert  <eggert@cs.ucla.edu>
589         config: add msys support
590         Requested by Arnold Robbins in:
591         https://lists.gnu.org/r/bug-gnulib/2019-11/msg00008.html
592         He also requested a change to config.guess, which I’ll forward
593         upstream.
594         * build-aux/ar-lib (func_file_conv):
595         * build-aux/compile (func_file_conv):
596         * build-aux/config.rpath (wl, with_gnu_ld)
597         (hardcode_libdir_flag_spec, libext, shrext, library_names_spec):
598         Treat msys like cygwin.
600 2019-11-06  Paul Eggert  <eggert@cs.ucla.edu>
602         regex: now back in sync with glibc
603         * config/srclist.txt: regcomp.c, regex_internal.c, regex_internal.h,
604         regexec.c got merged into glibc and are now copies again.
606 2019-10-27  Bruno Haible  <bruno@clisp.org>
608         host-cpu-c-abi: Recognize i386 and a couple of other CPUs as 32-bit.
609         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Include i386 in the case
610         statement.
611         (gl_HOST_CPU_C_ABI_32BIT): Likewise. Also recognize a couple of other
612         32-bit CPUs.
614 2019-10-24  Paul Eggert  <eggert@cs.ucla.edu>
616         timespec-add, timespec-sub: simplify
617         * lib/timespec-add.c (timespec_add):
618         * lib/timespec-sub.c (timespec_sub):
619         Simplify, now that INT_ADD_WRAPV and INT_SUBTRACT_WRAPV
620         work on unsigned integers.
622 2019-10-23  Paul Eggert  <eggert@cs.ucla.edu>
624         nstrftime: speed up integer overflow checking
625         * lib/nstrftime.c: Include intprops.h.
626         (INT_STRLEN_BOUND): Remove, as we can use intprops.h’s defn.
627         (__strftime_internal): Use INT_MULTIPLY_WRAPV and INT_ADD_WRAPV
628         instead of doing it by hand.
629         * modules/nstrftime (Depends-on): Add intprops.
631         Port better to GCC under macOS
632         Work around macOS header that has ‘#define __has_builtin(x) 0’
633         when compiled by GCC.  Apple really, really doesn’t want you to
634         use GCC, apparently.  Rroblem reported by Akim Demaille in:
635         https://lists.gnu.org/r/bug-bison/2019-10/msg00071.html
636         The fix is to not trust __has_builtin when being compiled by
637         recent-enough GCC.
638         * lib/intprops.h (__has_builtin)
639         (_GL_HAS___builtin_add_overflow, _GL_TEMPDEF___has_builtin):
640         * lib/verify.h (__has_builtin, _GL_HAS___builtin_unreachable)
641         (_GL_HAS___builtin_trap, _GL_TEMPDEF___has_builtin):
642         Remove.  All uses removed.
643         * lib/intprops.h (_GL_HAS_BUILTIN_ADD_OVERFLOW): Use __has_builtin
644         directly, if defined and if not newer GCC.
645         * lib/verify.h (_GL_HAS_BUILTIN_TRAP, _GL_HAS_BUILTIN_UNREACHABLE):
646         New macro, that use __has_builtin directly, if defined and if
647         not newer GCC.
648         (assume): Use them.
650 2019-10-22  Akim Demaille  <akim@lrde.epita.fr>
652         maintainer-makefile: update rule for argmatch.
653         * top/maint.mk (sc_prohibit_argmatch_without_use): Add ARGMATCH_DEFINE_GROUP.
655 2019-10-21  Akim Demaille  <akim@lrde.epita.fr>
657         bitset: let freeing functions accept NULL.
658         * lib/bitset.c (bitset_free, bitset_obstack_free): Do nothing if
659         given NULL.
660         * lib/bitset.h: Document that.
661         * doc/bitset.texi: Fix the example, and demonstrate bitset_free.
663 2019-10-15  Paul Eggert  <eggert@cs.ucla.edu>
665         inttypes: use more-robust test for int range
666         This fixes Bison 3.4.2 when built with Oracle Solaris Studio 12.3.
667         Problem reported by Dagobert Michelsen in:
668         https://lists.gnu.org/r/bug-gnulib/2019-10/msg00042.html
669         * lib/inttypes.in.h: Rely only on limits.h when checking
670         int range.
672 2019-10-15  Bruno Haible  <bruno@clisp.org>
674         libtextstyle-optional: Sync with current not-yet-released libtextstyle.
675         * libtextstyle-optional (styled_ostream_get_hyperlink_ref,
676         styled_ostream_get_hyperlink_id, styled_ostream_set_hyperlink,
677         term_ostream_get_hyperlink_ref, term_ostream_get_hyperlink_id,
678         term_ostream_set_hyperlink): New functions.
679         (term_styled_ostream_get_hyperlink_ref,
680         term_styled_ostream_get_hyperlink_id,
681         term_styled_ostream_set_hyperlink): New function aliases.
683 2019-10-14  Paul Eggert  <eggert@cs.ucla.edu>
685         update-copyright: use en dashes in .texi ranges
686         * build-aux/update-copyright: Match year ranges like "1998--2019",
687         which are used in the Autoconf manual.  Also, update ranges in
688         .tex, .texi, and .texinfo files to use en dashes instead of
689         hyphens.
691 2019-10-13  Paul Eggert  <eggert@cs.ucla.edu>
693         * config/srclist.txt: Remove posix/regex_internal.c for now.
695 2019-10-13  Bruno Haible  <bruno@clisp.org>
697         git-version-gen: Allow 'snapshot' as .tarball-version contents.
698         * build-aux/git-version-gen: Don't map non-numeric .tarball-version
699         contents to the empty string.
701 2019-10-12  Bruno Haible  <bruno@clisp.org>
703         intprops tests: Fix compilation errors on HP-UX/ia64 with cc.
704         * tests/test-intprops.c (main): Disable two more tests when using
705         HP-UX cc.
707 2019-10-11  Paul Eggert  <eggert@cs.ucla.edu>
709         Simplify and regularize regex use of ‘assert’
710         Also, tell GCC about the asserts even when compiling without
711         debugging, to give it further optimization opportunities.
712         * lib/regex_internal.h (DEBUG_ASSERT): New macro.
713         * lib/regcomp.c (link_nfa_nodes, calc_eclosure)
714         (parse_expression, parse_bracket_exp):
715         * lib/regex_internal.c (build_wcs_buffer)
716         (build_wcs_upper_buffer, re_string_reconstruct)
717         (re_string_context_at):
718         * lib/regexec.c (re_search_stub, re_copy_regs)
719         (re_search_internal, prune_impossible_nodes, check_matching)
720         (check_halt_state_context, set_regs, sift_states_backward)
721         (build_sifted_states, transit_state_mb, transit_state_bkref)
722         (check_arrival_add_next_nodes, check_arrival_expand_ecl)
723         (match_ctx_add_subtop):
724         Use it instead of plain ‘assert’.
726 2019-10-09  Paul Eggert  <eggert@cs.ucla.edu>
728         regex: omit debug assignment when not debugging
729         * lib/regexec.c (re_search_internal) [!DEBUG]:
730         Remove unnecessary assignment.
732         regex: tell compiler there’s at most 256 arcs out
733         Partly this is to help the reader (and maybe help GCC);
734         partly this is to pacify Coverity.
735         * lib/regex_internal.h: Include verify.h.
736         * lib/regexec.c (group_nodes_into_DFAstates):
737         Tell the compiler that ndests cannot exceed SBC_MAX.
738         * modules/regex (Depends-on): Add ‘verify’.
740         regex: simplify by assuming C99
741         * config/srclist.txt: Comment out regex_internal.h and regexec.c
742         temporarily.
743         * lib/regex_internal.h (lock_define, re_match_context_t):
744         Simplify by assuming C99 macros and const.
745         * lib/regexec.c (re_search_internal): Simplify by assuming C99
746         initializers.  Remove unnecessary assignment, as mctx is now
747         safely initialized earlier.
749         regex: avoid copying of uninitialized storage
750         * config/srclist.txt: Comment out regcomp.c temporarily.
751         * lib/regcomp.c (build_charclass_op, create_tree) [! (GCC_LINT||lint)]:
752         Initialize even when not checking for lint, as the behavior is
753         arguably undefined otherwise and Coverity warns about it.
755 2019-10-06  Bruno Haible  <bruno@clisp.org>
757         access tests: Fix test failure when run as root.
758         * tests/test-access.c: Include root-uid.h.
759         (geteuid): Define fallback.
760         (main): Don't expect that writing to a read-only file would fail when
761         running as root. Also, remove the created files at the end.
762         * modules/access-tests (Depends-on): Add root-uid.
763         (configure.ac): Test whether geteuid exists.
765 2019-10-06  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
767         users.txt: add GNU nano
768         Nano has been making use of gnulib since March 2017, version 2.8.0.
770 2019-10-05  Paul Eggert  <eggert@cs.ucla.edu>
772         bootstrap: simplify debugging of wget failures
773         Problem reported by Tim Rühsen in:
774         https://lists.gnu.org/r/bug-gnulib/2019-10/msg00000.html
775         * build-aux/bootstrap (po_download_command_format):
776         Invoke wget with -nv instead of -q, to make debugging easier.
778 2019-09-29  Bruno Haible  <bruno@clisp.org>
780         avltree-list: Fix compilation warning (introduced on 2014-09-16).
781         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Remove
782         'const' attribute.
784 2019-09-29  Bruno Haible  <bruno@clisp.org>
786         fbufmode: Fix compilation error on glibc >= 2.28 systems.
787         * lib/stdio-impl.h (_IO_UNBUFFERED): Define fallback on glibc >= 2.28.
789 2019-09-28  Bruno Haible  <bruno@clisp.org>
791         Update comments that refer to POSIX.
792         * lib/creat.c, lib/fopen.c, lib/open.c, lib/openat.c: Cite the relevant
793         sentence about trailing slashes.
794         * lib/fflush.c: Clarify the reasoning.
795         * tests/test-fflush2.c: Cite the relevant sentence.
797 2019-09-28  Bruno Haible  <bruno@clisp.org>
799         access: Document limitations on Windows.
800         Suggested by Zaretskii <eliz@gnu.org>.
801         * doc/posix-functions/access.texi: Mention two limitations on Windows.
803 2019-09-28  Bruno Haible  <bruno@clisp.org>
805         findprog-in: Fix comment.
806         Reported by Eli Zaretskii <eliz@gnu.org>.
807         * lib/findprog.h (find_in_given_path): Extend description of EACCES
808         condition.
809         * lib/stat.c (rpl_stat): Fix typo in comment.
810         * lib/utime.c (_gl_utimens_windows): Likewise.
812 2019-09-23  Paul Eggert  <eggert@cs.ucla.edu>
814         Update URLs and associated text
815         (Thanks to Bruno Haible for proofreading this patch.)
816         Prefer https: to http: in URLs where either will do, for the usual
817         security reasons.  I also updated broken and/or moved URLs
818         discovered during the process. In a few places I had to resort to
819         archive.org, since I didn't find the originals elsewhere.
821 2019-09-15  Paul Smith  <psmith@gnu.org>
822             Bruno Haible  <bruno@clisp.org>
824         findprog-in: Set errno when the search fails.
825         * lib/findprog-in.c: Include <errno.h>.
826         (find_in_given_path): Set errno before returning NULL.
827         * lib/findprog.h (find_in_given_path): Update comment accordingly.
828         Define the term "slash".
830 2019-09-15  Bruno Haible  <bruno@clisp.org>
832         findprog, findprog-lgpl, findprog-in: Fix crash on MSVC.
833         * modules/findprog (Depends-on): Add access.
834         * modules/findprog-lgpl (Depends-on): Likewise.
835         * modules/findprog-in (Depends-on): Likewise.
837 2019-09-15  Bruno Haible  <bruno@clisp.org>
839         access: Add tests.
840         * tests/test-access.c: New file.
841         * modules/access-tests: New file.
843         access: New module.
844         * lib/unistd.in.h (access): New declaration.
845         * lib/access.c: New file.
846         * m4/access.m4: New file.
847         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether access is declared.
848         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ACCESS, REPLACE_ACCESS.
849         * modules/unistd (Makefile.am): Substitute GNULIB_ACCESS,
850         REPLACE_ACCESS.
851         * modules/access: New file.
852         * tests/test-unistd-c++.cc (access): Check signature.
853         * doc/posix-functions/access.texi: Mention the new module.
855 2019-09-15  Bruno Haible  <bruno@clisp.org>
857         fcntl-h: Fix compilation error of creat.c on MSVC.
858         * lib/fcntl.in.h: Include <io.h> also when __need_system_fcntl_h is
859         defined.
861 2019-09-15  Bruno Haible  <bruno@clisp.org>
863         creat: Add tests.
864         * tests/test-creat.c: New file, based on tests/test-open.h.
865         * modules/creat-tests: New file.
867         creat: New module.
868         * lib/fcntl.in.h (creat): New declaration.
869         * lib/creat.c: New file, based on lib/open.c.
870         * m4/creat.m4: New file.
871         * m4/open-slash.m4: New file, extracted from m4/open.m4.
872         * m4/open.m4 (gl_FUNC_OPEN): Move trailing-slash test to open-slash.m4.
873         Invoke gl_OPEN_TRAILING_SLASH_BUG.
874         * modules/open (Files): Add m4/open-slash.m4.
875         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_CREAT,
876         REPLACE_CREAT.
877         * modules/fcntl-h (Makefile.am): Substitute GNULIB_CREAT, REPLACE_CREAT.
878         * modules/creat: New file.
879         * tests/test-fcntl-h-c++.cc (creat): Check signature.
880         * doc/posix-functions/creat.texi: Mention the new module.
882 2019-09-15  Bruno Haible  <bruno@clisp.org>
884         open tests: Enhance test.
885         * tests/test-open.h (test_open): Test the creation of an executable
886         regular file. Also improve initial cleanup.
888 2019-09-15  Bruno Haible  <bruno@clisp.org>
890         intprops tests: Avoid build failure with HP-UX cc.
891         * tests/test-intprops.c: Disable a check that makes HP cc choke with
892         "error 4018: Macro param too large after substitution - use -H option.".
894 2019-09-14  Bruno Haible  <bruno@clisp.org>
896         Make autoconf tests work with -Werror=implicit-function-declaration.
897         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Include <wctype.h>, for
898         towupper() declaration.
899         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Include <stdlib.h>, for ptsname()
900         declaration.
902 2019-09-14  Bruno Haible  <bruno@clisp.org>
904         findprog-in: Better mimic the system on native Windows.
905         Reported by Paul Smith <psmith@gnu.org>.
906         * lib/findprog-in.c (find_in_given_path): On native Windows, don't try
907         non-empty suffixes when the file name already contains a '.'.
909 2019-09-10  Bruno Haible  <bruno@clisp.org>
911         wctob: Fix autoconf test.
912         Based on patch by Florian Weimer <fweimer@redhat.com>.
913         * m4/wctob.m4 (gl_FUNC_WCTOB): Include <stdlib.h> before using mbtowc.
915 2019-09-09  Akim Demaille  <akim@lrde.epita.fr>
917         xhash: provide hash_xinitialize.
918         Suggested by Egor Pugin <egor.pugin@gmail.com>
919         https://lists.gnu.org/archive/html/bison-patches/2019-09/msg00026.html
920         * modules/xhash, lib/xhash.c: New.
921         * lib/hash.h (hash_xinitialize): New.
923 2019-09-09  Bruno Haible  <bruno@clisp.org>
925         findprog-in: Make exec optimization optional.
926         * lib/findprog.h: Add double-inclusion guard. Include <stdbool.h>.
927         (find_in_given_path): Add optimize_for_exec parameter.
928         * lib/findprog-in.c (find_in_given_path): Likewise.
930 2019-09-08  Bruno Haible  <bruno@clisp.org>
932         Add option to assume the best, not the worst, when cross-compiling.
933         Suggested by Jonas Termansen <sortie@maxsi.org>.
934         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add --enable-cross-guesses=...
935         option. Set gl_cross_guess_normal and gl_cross_guess_inverted.
936         * m4/argz.m4 (gl_FUNC_ARGZ): Obey --enable-cross-guesses for
937         lt_cv_sys_argz_works.
938         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Obey --enable-cross-guesses for
939         ac_cv_func_calloc_0_nonnull.
940         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Obey
941         --enable-cross-guesses for gl_cv_func_realpath_works.
942         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Obey --enable-cross-guesses for
943         gl_cv_func_cbrtl_ieee.
944         * m4/ceil.m4 (gl_FUNC_CEIL): Obey --enable-cross-guesses for
945         gl_cv_func_ceil_ieee.
946         * m4/ceilf.m4 (gl_FUNC_CEILF): Obey --enable-cross-guesses for
947         gl_cv_func_ceilf_ieee.
948         * m4/ceill.m4 (gl_FUNC_CEILL): Obey --enable-cross-guesses for
949         gl_cv_func_ceill_ieee.
950         * m4/chown.m4 (AC_FUNC_CHOWN): Obey --enable-cross-guesses for
951         ac_cv_func_chown_works.
952         (gl_FUNC_CHOWN): Obey --enable-cross-guesses for
953         gl_cv_func_chown_slash_works, gl_cv_func_chown_ctime_works.
954         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Obey
955         --enable-cross-guesses for gl_cv_struct_dirent_d_ino.
956         * m4/exp2l.m4 (gl_FUNC_EXP2L): Obey --enable-cross-guesses for
957         gl_cv_func_exp2l_works, gl_cv_func_exp2l_ieee.
958         * m4/expl.m4 (gl_FUNC_EXPL): Obey --enable-cross-guesses for
959         gl_cv_func_expl_works.
960         * m4/expm1.m4 (gl_FUNC_EXPM1): Obey --enable-cross-guesses for
961         gl_cv_func_expm1_ieee.
962         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Obey --enable-cross-guesses for
963         gl_cv_func_expm1l_works.
964         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Obey --enable-cross-guesses for
965         gl_cv_func_open_directory_works.
966         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Obey
967         --enable-cross-guesses for gl_cv_func_fchownat_nofollow_works.
968         (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Obey --enable-cross-guesses for
969         gl_cv_func_fchownat_empty_filename_works.
970         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Obey --enable-cross-guesses for
971         gl_cv_func_fdopendir_works.
972         * m4/floor.m4 (gl_FUNC_FLOOR): Obey --enable-cross-guesses for
973         gl_cv_func_floor_ieee.
974         * m4/floorf.m4 (gl_FUNC_FLOORF): Obey --enable-cross-guesses for
975         gl_cv_func_floorf_ieee.
976         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Obey --enable-cross-guesses for
977         gl_cv_func_fma_works.
978         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Obey --enable-cross-guesses for
979         gl_cv_func_fmaf_works.
980         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Obey --enable-cross-guesses for
981         gl_cv_func_fmal_works.
982         * m4/fmod.m4 (gl_FUNC_FMOD): Obey --enable-cross-guesses for
983         gl_cv_func_fmod_ieee.
984         * m4/fmodf.m4 (gl_FUNC_FMODF): Obey --enable-cross-guesses for
985         gl_cv_func_fmodf_ieee.
986         * m4/fmodl.m4 (gl_FUNC_FMODL): Obey --enable-cross-guesses for
987         gl_cv_func_fmodl_ieee.
988         * m4/fpurge.m4 (gl_FUNC_FPURGE): Obey --enable-cross-guesses for
989         gl_cv_func_fpurge_works.
990         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Obey
991         --enable-cross-guesses for gl_cv_func_getcwd_path_max.
992         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Obey --enable-cross-guesses for
993         gl_cv_func_getcwd_null.
994         (gl_FUNC_GETCWD): Update for getcwd-path-max.m4 change.
995         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Obey --enable-cross-guesses for
996         gl_cv_func_working_getdelim.
997         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Obey --enable-cross-guesses for
998         ac_cv_func_getgroups_works. Keep this macro also in Autoconf >= 2.70.
999         (gl_FUNC_GETGROUPS): Obey --enable-cross-guesses for
1000         gl_cv_func_getgroups_works.
1001         * m4/getline.m4 (gl_FUNC_GETLINE): Obey --enable-cross-guesses for
1002         am_cv_func_working_getline.
1003         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Obey --enable-cross-guesses
1004         for gl_cv_func_getopt_gnu.
1005         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Obey
1006         --enable-cross-guesses for gl_cv_func_gettimeofday_clobber.
1007         * m4/hypot.m4 (gl_FUNC_HYPOT): Obey --enable-cross-guesses for
1008         gl_cv_func_hypot_ieee.
1009         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Obey --enable-cross-guesses for
1010         gl_cv_func_hypotf_ieee.
1011         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Obey --enable-cross-guesses for
1012         gl_cv_func_hypotl_ieee.
1013         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): Obey
1014         --enable-cross-guesses for gl_cv_func_iconv_supports_utf.
1015         * m4/link.m4 (gl_FUNC_LINK): Obey --enable-cross-guesses for
1016         gl_cv_func_link_works.
1017         * m4/linkat.m4 (gl_FUNC_LINKAT): Obey --enable-cross-guesses for
1018         gl_cv_func_linkat_slash.
1019         * m4/log.m4 (gl_FUNC_LOG): Obey --enable-cross-guesses for
1020         gl_cv_func_log_ieee.
1021         * m4/logf.m4 (gl_FUNC_LOGF): Obey --enable-cross-guesses for
1022         gl_cv_func_logf_ieee.
1023         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Obey --enable-cross-guesses for
1024         gl_cv_func_logl_works.
1025         * m4/log10.m4 (gl_FUNC_LOG10): Obey --enable-cross-guesses for
1026         gl_cv_func_log10_ieee.
1027         * m4/log10f.m4 (gl_FUNC_LOG10F): Obey --enable-cross-guesses for
1028         gl_cv_func_log10f_ieee.
1029         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Obey --enable-cross-guesses for
1030         gl_cv_func_log10l_works.
1031         * m4/log1p.m4 (gl_FUNC_LOG1P): Obey --enable-cross-guesses for
1032         gl_cv_func_log1p_ieee.
1033         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Obey --enable-cross-guesses for
1034         gl_cv_func_log1pf_ieee.
1035         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Obey --enable-cross-guesses for
1036         gl_cv_func_log1pl_ieee.
1037         * m4/log2.m4 (gl_FUNC_LOG2): Obey --enable-cross-guesses for
1038         gl_cv_func_log2_ieee.
1039         * m4/log2f.m4 (gl_FUNC_LOG2F): Obey --enable-cross-guesses for
1040         gl_cv_func_log2f_ieee.
1041         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Obey
1042         --enable-cross-guesses for
1043         gl_cv_func_lstat_dereferences_slashed_symlink.
1044         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Obey --enable-cross-guesses for
1045         ac_cv_func_malloc_0_nonnull. Keep this macro also in Autoconf >= 2.70.
1046         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Obey --enable-cross-guesses for
1047         gl_cv_C_locale_sans_EILSEQ.
1048         * m4/memchr.m4 (gl_FUNC_MEMCHR): Obey --enable-cross-guesses for
1049         gl_cv_func_memchr_works.
1050         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Obey --enable-cross-guesses for
1051         gl_cv_func_memmem_works_always.
1052         (gl_FUNC_MEMMEM): Obey --enable-cross-guesses for
1053         gl_cv_func_memmem_works_fast.
1054         * m4/mkdir.m4 (gl_FUNC_MKDIR): Obey --enable-cross-guesses for
1055         gl_cv_func_mkdir_trailing_slash_works,
1056         gl_cv_func_mkdir_trailing_dot_works.
1057         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Obey --enable-cross-guesses for
1058         gl_cv_func_mkfifo_works.
1059         * m4/mknod.m4 (gl_FUNC_MKNOD): Obey --enable-cross-guesses for
1060         gl_cv_func_mknod_works.
1061         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Obey --enable-cross-guesses for
1062         gl_cv_func_working_mkstemp.
1063         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Obey --enable-cross-guesses for
1064         gl_cv_func_working_mktime.
1065         * m4/modf.m4 (gl_FUNC_MODF): Obey --enable-cross-guesses for
1066         gl_cv_func_modf_ieee.
1067         * m4/modff.m4 (gl_FUNC_MODFF): Obey --enable-cross-guesses for
1068         gl_cv_func_modff_ieee.
1069         * m4/modfl.m4 (gl_FUNC_MODFL): Obey --enable-cross-guesses for
1070         gl_cv_func_modfl_ieee.
1071         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Obey --enable-cross-guesses for
1072         gl_cv_func_nanosleep.
1073         * m4/perror.m4 (gl_FUNC_PERROR): Obey --enable-cross-guesses for
1074         gl_cv_func_perror_works.
1075         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Obey --enable-cross-guesses for
1076         gl_cv_func_printf_sizes_c99.
1077         (gl_PRINTF_INFINITE): Obey --enable-cross-guesses for
1078         gl_cv_func_printf_infinite.
1079         (gl_PRINTF_INFINITE_LONG_DOUBLE): Obey --enable-cross-guesses for
1080         gl_cv_func_printf_infinite_long_double.
1081         (gl_PRINTF_DIRECTIVE_A): Obey --enable-cross-guesses for
1082         gl_cv_func_printf_directive_a.
1083         (gl_PRINTF_DIRECTIVE_F): Obey --enable-cross-guesses for
1084         gl_cv_func_printf_directive_f.
1085         (gl_PRINTF_FLAG_ZERO): Obey --enable-cross-guesses for
1086         gl_cv_func_printf_flag_zero.
1087         (gl_PRINTF_ENOMEM): Obey --enable-cross-guesses for
1088         gl_cv_func_printf_enomem.
1089         (gl_SNPRINTF_TRUNCATION_C99): Obey --enable-cross-guesses for
1090         gl_cv_func_snprintf_truncation_c99.
1091         (gl_SNPRINTF_RETVAL_C99): Obey --enable-cross-guesses for
1092         gl_cv_func_snprintf_retval_c99.
1093         (gl_SNPRINTF_DIRECTIVE_N): Obey --enable-cross-guesses for
1094         gl_cv_func_snprintf_directive_n.
1095         (gl_VSNPRINTF_ZEROSIZE_C99): Obey --enable-cross-guesses for
1096         gl_cv_func_vsnprintf_zerosize_c99.
1097         * m4/pselect.m4 (gl_FUNC_PSELECT): Obey --enable-cross-guesses for
1098         gl_cv_func_pselect_detects_ebadf.
1099         * m4/pthread_rwlock_rdlock.m4 (gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER):
1100         Obey --enable-cross-guesses for
1101         gl_cv_pthread_rwlock_rdlock_prefer_writer.
1102         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Obey --enable-cross-guesses for
1103         gl_cv_func_ptsname_sets_errno.
1104         * m4/putenv.m4 (gl_FUNC_PUTENV): Obey --enable-cross-guesses for
1105         gl_cv_func_svid_putenv.
1106         * m4/readlink.m4 (gl_FUNC_READLINK): Obey --enable-cross-guesses for
1107         gl_cv_func_readlink_works.
1108         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Obey --enable-cross-guesses for
1109         ac_cv_func_realloc_0_nonnull. Keep this macro also in Autoconf >= 2.70.
1110         * m4/regex.m4 (gl_REGEX): Obey --enable-cross-guesses for
1111         gl_cv_func_re_compile_pattern_working.
1112         * m4/remainder.m4 (gl_FUNC_REMAINDER): Obey --enable-cross-guesses for
1113         gl_cv_func_remainder_ieee.
1114         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Obey --enable-cross-guesses for
1115         gl_cv_func_remainderf_ieee.
1116         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Obey --enable-cross-guesses for
1117         gl_cv_func_remainderl_ieee.
1118         * m4/rintl.m4 (gl_FUNC_RINTL): Obey --enable-cross-guesses for
1119         gl_cv_func_rintl_works.
1120         * m4/rmdir.m4 (gl_FUNC_RMDIR): Obey --enable-cross-guesses for
1121         gl_cv_func_rmdir_works.
1122         * m4/round.m4 (gl_FUNC_ROUND): Obey --enable-cross-guesses for
1123         gl_cv_func_round_ieee.
1124         * m4/roundf.m4 (gl_FUNC_ROUNDF): Obey --enable-cross-guesses for
1125         gl_cv_func_roundf_ieee.
1126         * m4/roundl.m4 (gl_FUNC_ROUNDL): Obey --enable-cross-guesses for
1127         gl_cv_func_roundl_ieee.
1128         * m4/select.m4 (gl_FUNC_SELECT): Obey --enable-cross-guesses for
1129         gl_cv_func_select_detects_ebadf.
1130         * m4/setenv.m4 (gl_FUNC_SETENV): Obey --enable-cross-guesses for
1131         gl_cv_func_setenv_works.
1132         (gl_FUNC_UNSETENV): Obey --enable-cross-guesses for
1133         gl_cv_func_unsetenv_works.
1134         * m4/signbit.m4 (gl_SIGNBIT): Obey --enable-cross-guesses for
1135         gl_cv_func_signbit, gl_cv_func_signbit_gcc.
1136         * m4/sleep.m4 (gl_FUNC_SLEEP): Obey --enable-cross-guesses for
1137         gl_cv_func_sleep_works.
1138         * m4/stat.m4 (gl_FUNC_STAT): Obey --enable-cross-guesses for
1139         gl_cv_func_stat_file_slash.
1140         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Obey --enable-cross-guesses for
1141         gl_cv_func_stpncpy.
1142         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Obey
1143         --enable-cross-guesses for gl_cv_func_strcasestr_works_always.
1144         (gl_FUNC_STRCASESTR): Obey --enable-cross-guesses for
1145         gl_cv_func_strcasestr_linear.
1146         * m4/strerror.m4 (gl_FUNC_STRERROR): Obey --enable-cross-guesses for
1147         gl_cv_func_working_strerror.
1148         (gl_FUNC_STRERROR_0): Obey --enable-cross-guesses for
1149         gl_cv_func_strerror_0_works.
1150         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Obey
1151         --enable-cross-guesses for gl_cv_func_strerror_r_works.
1152         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Obey --enable-cross-guesses for
1153         gl_cv_func_strstr_works_always.
1154         (gl_FUNC_STRSTR): Obey --enable-cross-guesses for
1155         gl_cv_func_strstr_linear.
1156         * m4/strtod.m4 (gl_FUNC_STRTOD): Obey --enable-cross-guesses for
1157         gl_cv_func_strtod_works.
1158         * m4/strtold.m4 (gl_FUNC_STRTOLD): Obey --enable-cross-guesses for
1159         gl_cv_func_strtold_works.
1160         * m4/symlink.m4 (gl_FUNC_SYMLINK): Obey --enable-cross-guesses for
1161         gl_cv_func_symlink_works.
1162         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Obey --enable-cross-guesses for
1163         gl_cv_func_symlinkat_works.
1164         * m4/trunc.m4 (gl_FUNC_TRUNC): Obey --enable-cross-guesses for
1165         gl_cv_func_trunc_ieee.
1166         * m4/truncf.m4 (gl_FUNC_TRUNCF): Obey --enable-cross-guesses for
1167         gl_cv_func_truncf_ieee.
1168         * m4/truncl.m4 (gl_FUNC_TRUNCL): Obey --enable-cross-guesses for
1169         gl_cv_func_truncl_ieee.
1170         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Obey --enable-cross-guesses for
1171         gl_cv_func_tzset_clobber.
1172         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Obey --enable-cross-guesses for
1173         gl_cv_func_ungetc_works.
1174         * m4/unlink.m4 (gl_FUNC_UNLINK): Obey --enable-cross-guesses for
1175         gl_cv_func_unlink_honors_slashes, gl_cv_func_unlink_parent_fails.
1176         * m4/usleep.m4 (gl_FUNC_USLEEP): Obey --enable-cross-guesses for
1177         gl_cv_func_usleep_works.
1178         * m4/utimens.m4 (gl_UTIMENS): Obey --enable-cross-guesses for
1179         gl_cv_func_futimesat_works.
1180         * m4/utimes.m4 (gl_FUNC_UTIMES): Obey --enable-cross-guesses for
1181         gl_cv_func_working_utimes.
1182         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Obey --enable-cross-guesses for
1183         gl_cv_func_wcwidth_works.
1184         * m4/glob.m4 (gl_GLOB): When cross-compiling, don't create symlinks for
1185         testing. Obey --enable-cross-guesses for gl_cv_glob_lists_symlinks.
1186         * m4/rename.m4 (gl_FUNC_RENAME): When cross-compiling, don't create
1187         links for testing. Obey --enable-cross-guesses for
1188         gl_cv_func_rename_slash_dst_works, gl_cv_func_rename_slash_src_works,
1189         gl_cv_func_rename_link_works, gl_cv_func_rename_dest_works.
1191 2019-09-08  Bruno Haible  <bruno@clisp.org>
1193         Clarify that cross-compilation guesses are guesses.
1194         * m4/threads.m4 (gl_THREADS_H): Say "guessing yes" or "guessing no" when
1195         cross-compiling.
1197 2019-09-08  Bruno Haible  <bruno@clisp.org>
1199         chown: Fix configure output (regression from 2019-03-23).
1200         * m4/chown.m4 (gl_FUNC_CHOWN): Fix reference to
1201         gl_cv_func_chown_follows_symlink variable.
1203 2019-09-08  Bruno Haible  <bruno@clisp.org>
1205         findprog-in: New module.
1206         Suggested by Paul Smith <psmith@gnu.org>.
1207         * lib/findprog.h (find_in_given_path): New declaration.
1208         * lib/findprog-in.c: New file, based on lib/findprog.c.
1209         * m4/findprog-in.m4: New file, based on m4/findprog.m4.
1210         * modules/findprog-in: New file.
1212 2019-09-08  Bruno Haible  <bruno@clisp.org>
1214         findprog: Remove unused dependency.
1215         * modules/findprog (Depends-on): Remove strdup.
1217 2019-09-08  Bruno Haible  <bruno@clisp.org>
1219         findprog: Remove test that is obsolete since 2006-04-24.
1220         * m4/findprog.m4 (gl_FINDPROG): Don't test for unistd.h.
1222 2019-09-06  Akim Demaille  <akim@lrde.epita.fr>
1224         bitset: style changes
1225         * lib/bitset/vector.c (vbitset_resize): Factor computation.
1226         * lib/bitset.c, lib/bitset/stats.c, lib/bitsetv.c: Prefer
1227         xzalloc to xcalloc.
1228         Suggested by Paul Eggert.
1230 2019-09-06  Akim Demaille  <akim@lrde.epita.fr>
1232         bitset: check memory allocation
1233         Reported by 江 祖铭 (Zu-Ming Jiang).
1234         With help from Paul Eggert.
1235         https://lists.gnu.org/archive/html/bug-bison/2019-08/msg00016.html
1236         * lib/bitset/table.c (tbitset_resize): When growing, use xrealloc
1237         instead of realloc.
1238         When shrinking, accept failures.
1239         * lib/bitset/vector.c (vbitset_resize): Likewise.
1241 2019-09-07  Paul Eggert  <eggert@cs.ucla.edu>
1243         scratch_buffer: sync from glibc
1244         * config/srclist.txt: Add the scratch_buffer source
1245         code from glibc, since these should be in sync.
1246         Autoupdate.
1248 2019-09-07  Bruno Haible  <bruno@clisp.org>
1250         doc: Update for glibc 2.30.
1251         * doc/glibc-functions/gettid.texi: New file.
1252         * doc/glibc-functions/pthread_cond_clockwait.texi: New file.
1253         * doc/glibc-functions/pthread_mutex_clocklock.texi: New file.
1254         * doc/glibc-functions/pthread_rwlock_clockrdlock.texi: New file.
1255         * doc/glibc-functions/pthread_rwlock_clockwrlock.texi: New file.
1256         * doc/glibc-functions/sem_clockwait.texi: New file.
1257         * doc/glibc-functions/tgkill.texi: New file.
1258         * doc/glibc-functions/twalk_r.texi: New file.
1259         * doc/gnulib.texi: Include them.
1260         (Glibc semaphore.h): New section.
1261         * doc/pastposix-functions/h_errno.texi: Update.
1262         * doc/posix-functions/*.texi: Likewise.
1264 2019-09-06  Bruno Haible  <bruno@clisp.org>
1266         symlink tests: Avoid test failure on Linux with Lustre file system.
1267         Reported by Thomas C Oppe <Thomas.C.Oppe@erdc.dren.mil>
1268         at <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=37312>.
1269         * tests/test-symlink.h (test_symlink): Accept errno value ENOENT.
1271 2019-09-01  Bruno Haible  <bruno@clisp.org>
1273         gitsub.sh: Add support for shallow-cloning of subdirectories.
1274         * top/gitsub.sh (func_usage): Document allowed git options with
1275         'git pull'.
1276         (func_pull): Accept GIT_OPTIONS argument.
1277         (pull): Parse git options before complaining about too many arguments.
1278         Pass the git options to func_pull.
1280 2019-08-29  Bruno Haible  <bruno@clisp.org>
1282         lock: Fix cross-compilation guesses.
1283         * m4/pthread_rwlock_rdlock.m4 (gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER):
1284         Require AC_CANONICAL_HOST. When cross-compiling, guess no on most
1285         platforms.
1287 2019-08-28  Bruno Haible  <bruno@clisp.org>
1289         isfinite, isinf, isnan, signbit: Fix error in C++ mode on mingw.
1290         Reported by Martin Storsjö <martin@martin.st> in
1291         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00075.html>.
1292         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Add more arguments.
1293         (isfinite, isinf, isnan, signbit): On platforms that use C++ include
1294         files from GCC 6 or newer, use an override through '#define', because
1295         the inline definitions in the platform's <cmath> cannot be overridden
1296         in another way.
1298 2019-08-27  Paul Eggert  <eggert@cs.ucla.edu>
1300         Revert macOS INT_MULTIPLY_WRAPV patch
1301         Problem reported by Bruno Haible in:
1302         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00076.html
1303         * lib/intprops.h (_GL_HAS___builtin_mul_overflow): Remove.
1304         (_GL_HAS_BUILTIN_MUL_OVERFLOW):
1305         Go back to working around the Clang bug on macOS.
1307 2019-08-27  Bruno Haible  <bruno@clisp.org>
1309         libtool-next-version: Fix error output.
1310         * build-aux/libtool-next-version (func_fatal_error): Fix the program
1311         name.
1313 2019-08-27  Paul Eggert  <eggert@cs.ucla.edu>
1315         Speed up INT_MULTIPLY_WRAPV on macOS
1316         Assume that __builtin_mul_overflow works OK with Clang on macOS.
1317         Mattias Engdegård says it’s safe to assume the relevant library
1318         is always available there.
1319         * lib/intprops.h (_GL_HAS___builtin_mul_overflow):
1320         New temporary internal macro.
1321         (_GL_HAS_BUILTIN_MUL_OVERFLOW):
1322         No need to work around the Clang bug on macOS.
1324 2019-08-25  Paul Eggert  <eggert@cs.ucla.edu>
1326         intprops.h, verify.h: port better to clang
1327         Improve code generated by INT_ADD_WRAPV and INT_SUBTRACT_WRAPV
1328         with Clang.  Problem reported privately by Mattias Engdegård.
1329         Also, insulate intprops.h and verify.h better against each other’s
1330         definitions of __has_builtin on non-Clang hosts.
1331         * lib/intprops.h (__has_builtin): Define a temporary substitute
1332         if __has_builtin is not already defined.
1333         (_GL_HAS___builtin_add_overflow, _GL_TEMPDEF___has_builtin):
1334         New temporary internal macros.
1335         (_GL_HAS_BUILTIN_ADD_OVERFLOW, _GL_HAS_BUILTIN_MUL_OVERFLOW):
1336         Now two separate macros, replacing the old
1337         _GL_HAS_BUILTIN_OVERFLOW, since we no longer assume that
1338         __builtin_mul_overflow is like the rest.  All uses changed.
1339         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV):
1340         Adjust to above changes.
1341         (_GL_INT_OP_WRAPV): Remove ‘builtin’ arg, since it’s no
1342         longer relevant.  All uses changed.
1343         * lib/verify.h (__has_builtin): Treat like intprops.h,
1344         so that the two .h files do not collide with each other.
1345         (_GL_HAS___builtin_unreachable, _GL_HAS___builtin_trap)
1346         (_GL_TEMPDEF___has_builtin): New temporary internal macros.
1348 2019-08-24  Paul Eggert  <eggert@cs.ucla.edu>
1350         intprops: say why not Clang __builtin_add_overflow
1351         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW):
1352         Mention Clang in comment, responding to a query from
1353         Mattias Engdegård.
1355 2019-08-24  Bruno Haible  <bruno@clisp.org>
1357         doc: Document most of the files outside of modules.
1358         * doc/gnulib.texi (Build Infrastructure Files,
1359         Release Management Files): New chapters.
1361 2019-08-24  Bruno Haible  <bruno@clisp.org>
1363         bootstrap: Keep in sync with the 'gettext' module.
1364         Reported by Assaf Gordon in
1365         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00045.html>.
1366         * build-aux/po/Makefile.in.in: Update to gettext 0.20.
1367         * build-aux/po/remove-potcdate.sin: Likewise.
1369 2019-08-24  Bruno Haible  <bruno@clisp.org>
1371         crypto/gc-sha512: Add tests.
1372         * tests/test-gc-sha512.c: New file, based on tests/test-gc-sha1.c.
1373         * modules/crypto/gc-sha512-tests: New file.
1375         crypto/gc-sha256: Add tests.
1376         * tests/test-gc-sha256.c: New file, based on tests/test-gc-sha1.c.
1377         * modules/crypto/gc-sha256-tests: New file.
1379         crypto/gc-sha256, crypto/gc-sha512: New modules.
1380         * lib/gc.h (gc_sha256, gc_sha512): New declarations.
1381         * lib/gc-gnulib.c: Include sha256.h, sha512.h.
1382         (MAX_DIGEST_SIZE): Set to 64.
1383         (_gc_hash_ctx, gc_hash_open, gc_hash_digest_length, gc_hash_write,
1384         gc_hash_read, gc_hash_buffer): Add support for sha256 and sha512.
1385         (gc_sha256, gc_sha512): New functions.
1386         * lib/gc-libgcrypt.c (gc_sha256, gc_sha512): New functions.
1387         * modules/crypto/gc-sha256: New file, based on modules/crypto/gc-sha1.
1388         * modules/crypto/gc-sha512: New file, based on modules/crypto/gc-sha1.
1390 2019-08-24  Bruno Haible  <bruno@clisp.org>
1392         crypto/gc-sha1 tests: Improve output when the test fails.
1393         * tests/test-gc-sha1.c (main): In case of mismatch, print the entire
1394         output.
1396 2019-08-24  Bruno Haible  <bruno@clisp.org>
1398         crypto/gc-sm3: Fix compilation error with --with-libgcrypt.
1399         * m4/gc-sm3.m4 (gl_GC_SM3): Test whether libgcrypt supports SM3. Define
1400         LIBGCRYPT_HAS_MD_SM3.
1401         * lib/gc-libgcrypt.c: Include sm3.h.
1402         (_gc_hash_ctx, gc_hash_open, gc_hash_hmac_setkey, gc_hash_write,
1403         gc_hash_read, gc_hash_close, gc_hash_buffer, gc_sm3): Use the gnulib
1404         implementation if libgcrypt does not support SM3.
1406 2019-08-24  Bruno Haible  <bruno@clisp.org>
1408         crypto/gc-md2: Optimize and clarify code.
1409         * lib/gc-gnulib.c (gc_hash_open): Comment out md2_init_ctx invocation.
1410         * lib/gc-libgcrypt.c (gc_hash_open): Clarify why md2_init_ctx invocation
1411         is not needed.
1413 2019-08-24  Bruno Haible  <bruno@clisp.org>
1415         crypto/gc-md2: Add comment.
1416         * lib/gc-libgcrypt.c: Add comment.
1418 2019-08-24  Bruno Haible  <bruno@clisp.org>
1420         crypto/gc-{md[24],rijndael} tests: Fix link error with --with-libgcrypt.
1421         * modules/crypto/gc-md2-tests (test_gc_md2_LDADD): New variable.
1422         * modules/crypto/gc-md4-tests (test_gc_md4_LDADD): New variable.
1423         * modules/crypto/gc-rijndael-tests (test_gc_rijndael_LDADD): New
1424         variable.
1426 2019-08-24  Bruno Haible  <bruno@clisp.org>
1428         crypto/gc: Fix link error with --with-libgcrypt.
1429         * m4/gc.m4 (gl_GC): Set LIB_CRYPTO to the value found by the
1430         AC_LIB_HAVE_LINKFLAGS invocation.
1432 2019-08-24  Bruno Haible  <bruno@clisp.org>
1434         crypto/gc: Access the module indicators correctly.
1435         * lib/gc-gnulib.c: Use '#if GNULIB_GC_*', not '#ifdef GNULIB_GC_*'.
1436         * lib/gc-libgcrypt.c: Likewise.
1438 2019-08-24  Bruno Haible  <bruno@clisp.org>
1440         crypto/gc: Fix configuration with --with-libgcrypt.
1441         * m4/libgcrypt.m4: New file, copied from libgcrypt/src/libgcrypt.m4.
1442         * modules/crypto/gc (Files): Add it.
1443         * m4/gc.m4 (gl_GC): Assume AM_PATH_LIBGCRYPT is defined.
1445 2019-08-24  Bruno Haible  <bruno@clisp.org>
1447         Remove unused file.
1448         * m4/stat-macros.m4: Remove file.
1450 2019-08-21  Paul Eggert  <eggert@cs.ucla.edu>
1452         New strip-trailing-space option for srclist-update
1453         * config/srclist-update (fixfile): Support new option.
1454         * config/srclist.txt (texinfo.tex, maintain.texi, standards.texi):
1455         Use it.
1457 2019-08-20  Eric Blake  <eblake@redhat.com>
1459         accept4: Support SOCK_NONBLOCK, if defined
1460         * lib/accept4.c (accept4): If SOCK_NONBLOCK is defined, honor it.
1462         accept4: Fix compilation when native accept4() exists.
1463         Reported by Richard W.M. Jones <rjones@redhat.com> in
1464         https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00029.html
1465         * lib/accept4.c (accept4): Match witness symbol to m4 file update.
1467 2019-08-18  Bruno Haible  <bruno@clisp.org>
1469         Defeat -flto GCC optimization in math autoconf tests.
1470         Reported by Tomasz Kłoczko <kloczko.tomasz@gmail.com>
1471         at <https://savannah.gnu.org/bugs/?56109>.
1472         * m4/mathfunc.m4 (gl_MATHFUNC): Mark function pointer as 'volatile'.
1473         * m4/acosl.m4 (gl_FUNC_ACOSL): Likewise.
1474         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
1475         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
1476         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
1477         * m4/exp2.m4 (gl_FUNC_EXP2): Likewise.
1478         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
1479         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
1480         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Likewise.
1481         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
1482         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
1483         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
1485 2019-08-17  Bruno Haible  <bruno@clisp.org>
1487         windows-spin: Implement declared functions.
1488         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
1489         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00024.html>.
1490         * lib/windows-spin.c (glwthread_spin_trylock): Fix typo in function
1491         name.
1493 2019-08-17  Paul Eggert  <eggert@cs.ucla.edu>
1495         intprops: port to Oracle Developer Studio 12.6
1496         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix recently-introduced
1497         typos that were in a section not compiled by GCC.
1499 2019-08-14  Paul Eggert  <eggert@cs.ucla.edu>
1501         intprops: support uchar, ushort _WRAPV dests
1502         * lib/intprops.h (_GL_INT_OP_WRAPV_SMALLISH): New macro, defined
1503         when __builtin_add_overflow etc. and _Generic are not used.
1504         (_GL_INT_OP_WRAPV): Use it to support destinations that
1505         are unsigned char or unsigned short, even in compilers
1506         that lack __typeof__ and are not C11-compatible.
1508         intprops: pacify picky GCC
1509         * lib/intprops.h (_GL_BUILTIN_MUL_OVERFLOW):
1510         Pacify GCC’s complaints about ignoring __builtin_mul_overflow’s
1511         possibly-incorrect result.
1512         (_GL_INT_MULTIPLY_RANGE_OVERFLOW): Pacify GCC’s complaints
1513         about (A) used as a boolean, when A is an expression like 3 * 4.
1515         intprops: support unsigned *_WRAPV results
1516         Add support for unsigned, unsigned long, and unsigned long long
1517         results to INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, and
1518         INT_MULTIPLY_WRAPV.  Also, work around GCC bug 91450, and fix a
1519         bug with unsigned inputs reported by Eli Zaretskii in:
1520         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00012.html
1521         * config/srclist.txt: Break the glibc connection for intprops.h
1522         temporarily, while more testing is done in Gnulib-using apps.
1523         * lib/intprops.h (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
1524         (INT_MULTIPLY_WRAPV, _GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH):
1525         Support unsigned results no narrower than unsigned int.  Report
1526         overflow correctly if some arguments are unsigned.
1527         (_GL_BUILTIN_MUL_OVERFLOW): New macro, to work around GCC bug 91450.
1528         (_GL_INT_OP_CALC): Simplify now that the OVERFLOW argument does
1529         the right thing with narrow args.
1530         (_GL_INT_OP_CALC1): Remove.  All callers removed.
1531         (_GL_INT_ADD_RANGE_OVERFLOW, _GL_INT_SUBTRACT_RANGE_OVERFLOW)
1532         (_GL_INT_MULTIPLY_RANGE_OVERFLOW): New macros.
1533         * tests/test-intprops.c: Check for bugs and test new behavior.
1535 2019-08-14  Bruno Haible  <bruno@clisp.org>
1537         get_progname_of: New module.
1538         * lib/get_progname_of.h: New file.
1539         * lib/get_progname_of.c: New file, based on lib/getprogname.c.
1540         * lib/getprogname.c (getprogname): Tweak coding style.
1541         * lib/vma-iter.c (vma_iterate_bsd): Update comment.
1542         * modules/get_progname_of: New file.
1544 2019-08-14  Bruno Haible  <bruno@clisp.org>
1546         get_ppid_of: New module.
1547         * lib/get_ppid_of.h: New file.
1548         * lib/get_ppid_of.c: New file.
1549         * modules/get_ppid_of: New file.
1551 2019-08-13  Bruno Haible  <bruno@clisp.org>
1553         libtextstyle-optional tests: Support the NO_COLOR environment variable.
1554         * tests/test-libtextstyle.c (main): Do not emit styling when the
1555         environment variable NO_COLOR is set.
1557 2019-08-12  Paul Eggert  <eggert@cs.ucla.edu>
1559         verify: improve diagnostic quality in recent GCC
1560         If ‘verify’ fails in a deeply-nested macro, GCC does not output a
1561         useful line number containing the top-level caller of the macro.
1562         So, bring back the older way of issuing a diagnostic containing
1563         the top-level call’s arg, so that it is easier to diagnose
1564         ‘verify’ failures with recent GCC.
1565         * lib/verify.h (_GL_VERIFY_TRUE, _GL_VERIFY_TYPE):
1566         Bring back DIAGNOSTIC arg.  All callers changed.
1567         (verify): Just use _GL_VERIFY.
1569 2019-08-11  Bruno Haible  <bruno@clisp.org>
1571         localcharset: Add more aliases for OS/2.
1572         Based on patch by KO Myung-Hun <komh78@gmail.com> in
1573         <https://lists.gnu.org/archive/html/bug-gnu-libiconv/2019-08/msg00004.html>.
1574         * lib/localcharset.c (alias_table) [OS2]: Add more aliases.
1576 2019-08-10  Eric Blake  <eblake@redhat.com>
1578         configmake: Update advice on usage.
1579         * modules/configmake (Include): No longer necessary to include
1580         last, since configmake.h itself worries about collision avoidance.
1582 2019-08-10  Assaf Gordon <assafgordon@gmail.com>
1584         parse-datetime: fix 'T' military timezone handling
1585         * lib/parse-datetime.y (zone):
1586         follow-up to the previous commit: the 'T' case is handled outside the
1587         conversion table (used as either military timezone UTC-7 or ISO8601
1588         separator). Change it from "HOUR(7)" to "-HOUR(7)" to match other
1589         timezone letters.
1591 2019-08-09  Paul Eggert  <eggert@cs.ucla.edu>
1593         parse-datetime: fix military timezone letters
1594         Problem and trivial fix reported by Neil Hoggarth in:
1595         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00005.html
1596         * lib/parse-datetime.y (military_table):
1597         Do it the right way, not the RFC 822 way.
1599 2019-08-08  Eric Blake  <eblake@redhat.com>
1601         configmake: Avoid namespace pollution issue on mingw.
1602         * modules/configmake (Makefile.am): If the project uses
1603         <winsock2.h>, include that header before defining DATADIR.
1605 2019-07-28  Bruno Haible  <bruno@clisp.org>
1607         mbrtowc tests: Fix regression on mingw (regression from 2018-02-24).
1608         * tests/test-mbrtowc.c (main): Fix expected value of wc.
1610 2019-07-24  Bruno Haible  <bruno@clisp.org>
1612         pthread-h: Fix definitions of types and macros on mingw.
1613         * lib/pthread.in.h (pthread_t, pthread_attr_t, PTHREAD_CREATE_JOINABLE,
1614         PTHREAD_CREATE_DETACHED): Define also when module 'pthread-thread' is
1615         not in use.
1616         (pthread_once_t, PTHREAD_ONCE_INIT): Define also when module
1617         'pthread-once' is not in use.
1618         (pthread_mutex_t, pthread_mutexattr_t, PTHREAD_MUTEX_INITIALIZER,
1619         PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL, PTHREAD_MUTEX_ERRORCHECK,
1620         PTHREAD_MUTEX_RECURSIVE): Define also when module 'pthread-mutex' is not
1621         in use.
1622         (pthread_rwlock_t, pthread_rwlockattr_t, PTHREAD_RWLOCK_INITIALIZER):
1623         Define also when module 'pthread-rwlock' is not in use.
1624         (pthread_cond_t, pthread_condattr_t, PTHREAD_COND_INITIALIZER): Define
1625         also when module 'pthread-cond' is not in use.
1626         (pthread_key_t, PTHREAD_DESTRUCTOR_ITERATIONS): Define also when module
1627         'pthread-tss' is not in use.
1628         (pthread_spinlock_t): Define also when module 'pthread-spin' is not in
1629         use.
1631 2019-07-24  Simon Josefsson  <simon@josefsson.org>
1633         crypto/gc: Cope with libgcrypt without SM3.
1634         * lib/gc-libgcrypt.c (gc_hash_open): Guard SM3 usage.
1636 2019-07-23  Paul Eggert  <eggert@cs.ucla.edu>
1638         backupfile: fix resource leak on memory failure
1639         Problem found by Coverity (CID 1484214).
1640         * lib/backupfile.c (backupfile_internal): Don’t leak dirp.
1642 2019-07-22  Bruno Haible  <bruno@clisp.org>
1644         Avoid missing-declarations warning in various tests.
1645         * tests/test-argp.c (fail, test1, test2, test_file, test3, test4, test5,
1646         test6, test_optional, test7, test8, test9, test10, test11, test12,
1647         test13, test14, test15, test_fun): Declare static.
1648         * tests/test-cnd.c (test_cnd_wait): Likewise.
1649         * tests/test-cond.c (test_cond): Likewise.
1651 2019-07-22  Bernhard Voelker  <mail@bernhard-voelker.de>
1653         pthread tests: Avoid missing-declarations warning.
1654         * tests/test-pthread-cond.c (test_pthread_cond_wait): Declare static.
1656 2019-07-19  Bruno Haible  <bruno@clisp.org>
1658         parse-datetime: Avoid warnings from bison versions >= 3.3.
1659         Reported by Bernhard Voelker <mail@bernhard-voelker.de>.
1660         * modules/parse-datetime (Makefile.am): Don't pass option '-y' to bison.
1662 2019-07-19  Bruno Haible  <bruno@clisp.org>
1664         parse-datetime: Require Bison 2.4 or newer.
1665         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Set PARSE_DATETIME_BISON.
1666         Code taken from gettext's intl.m4.
1667         * modules/parse-datetime (Makefile.am): Use PARSE_DATETIME_BISON instead
1668         of YACC.
1670 2019-07-19  Bruno Haible  <bruno@clisp.org>
1672         areadlink-with-size, xgethostname, xgetdomainname: Fix GCC warning.
1673         * lib/areadlink-with-size.c: Include <string.h>.
1674         * lib/areadlinkat-with-size.c: Likewise.
1675         * lib/xgethostname.c: Likewise.
1676         * lib/xgetdomainname.c: Likewise.
1678 2019-07-19  Bernhard Voelker  <mail@bernhard-voelker.de>
1680         parse-datetime: avoid "%pure-parser" deprecation warning from Bison 3.4
1681         * lib/parse-datetime.y: Use "%define api.pure" rather than obsolescent
1682         "%pure-parser".  The former is available since Bison 2.3b (2008),
1683         while the latter is marked as obsolete since version 3.4 (May 2019).
1685 2019-07-16  Bruno Haible  <bruno@clisp.org>
1687         update-copyright: Make it work again (regression from 2019-06-15).
1688         Reported by Brian C. Lane <bcl@redhat.com>.
1689         * build-aux/update-copyright: Add back the -0777, -p, -i options.
1691 2019-07-14  Bruno Haible  <bruno@clisp.org>
1693         doc: Update info about <pthread.h>.
1694         * doc/posix-headers/pthread.texi: Mention the module 'pthread-h' instead
1695         of 'pthread'.
1697 2019-07-14  Bruno Haible  <bruno@clisp.org>
1699         pthread_sigmask tests: Use new multithread modules.
1700         * tests/test-pthread_sigmask2.c: Include <pthread.h> instead of
1701         glthread/thread.h.
1702         (main_thread, killer_thread): Change type to pthread_t.
1703         (main): Update accordingly.
1704         * modules/pthread_sigmask-tests (Depends-on): Add pthread-thread. Remove
1705         thread.
1707 2019-07-14  Bruno Haible  <bruno@clisp.org>
1709         pthread-tss: Add tests.
1710         * tests/test-pthread-tss.c: New file, based on tests/test-tls.c and
1711         tests/test-tss.c.
1712         * modules/pthread-tss-tests: New file.
1714 2019-07-14  Bruno Haible  <bruno@clisp.org>
1716         pthread-cond: Add tests.
1717         * tests/test-pthread-cond.c: New file, based on tests/test-cond.c and
1718         tests/test-cnd.c.
1719         * modules/pthread-cond-tests: New file.
1721 2019-07-14  Bruno Haible  <bruno@clisp.org>
1723         pthread-rwlock: Add tests.
1724         * tests/test-pthread-rwlock.c: New file, based on tests/test-lock.c.
1725         * modules/pthread-rwlock-tests: New file.
1727 2019-07-14  Bruno Haible  <bruno@clisp.org>
1729         pthread-mutex: Add tests.
1730         * tests/test-pthread-mutex.c: New file, based on tests/test-lock.c and
1731         tests/test-mtx.c.
1732         * modules/pthread-mutex-tests: New file.
1734 2019-07-14  Bruno Haible  <bruno@clisp.org>
1736         pthread-once: Add tests.
1737         * tests/test-pthread-once1.c: New file, based on tests/test-once.c and
1738         tests/test-call_once.c.
1739         * tests/test-pthread-once2.c: New file, based on tests/test-lock.c and
1740         tests/test-mtx.c.
1741         * modules/pthread-once-tests: New file.
1743 2019-07-14  Bruno Haible  <bruno@clisp.org>
1745         pthread-thread: Add tests.
1746         * tests/test-pthread-thread.c: New file, based on
1747         tests/test-thread_create.c and tests/test-thrd_create.c.
1748         * modules/pthread-thread-tests: New file.
1750 2019-07-14  Bruno Haible  <bruno@clisp.org>
1752         pthread: Turn into a convenience module.
1753         * lib/pthread.in.h: Remove declarations for extern inline functions.
1754         * lib/pthread.c: Remove file.
1755         * modules/pthread (Files): Remove it.
1756         (Depends-on): Add pthread-thread, pthread-once, pthread-mutex,
1757         pthread-rwlock, pthread-cond, pthread-tss, pthread-spin.
1758         (configure.ac): Don't compile lib/pthread.c. Don't set GNULIB_PTHREAD.
1759         * m4/pthread_h.m4 (gl_PTHREAD_H_DEFAULTS): Don't initialize
1760         GNULIB_PTHREAD.
1761         * modules/pthread-h (Makefile.am): Don't substitute GNULIB_PTHREAD.
1763 2019-07-14  Bruno Haible  <bruno@clisp.org>
1765         pthread-spin: New module.
1766         * lib/pthread.in.h (pthread_spin_init, pthread_spin_destroy,
1767         pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock): Remove
1768         inline definitions.
1769         * lib/pthread-spin.c: New file.
1770         * m4/pthread-spin.m4: New file.
1771         * modules/pthread-spin: New file.
1772         * doc/posix-functions/pthread_spin_init.texi: Mention the new module.
1773         * doc/posix-functions/pthread_spin_lock.texi: Likewise.
1774         * doc/posix-functions/pthread_spin_trylock.texi: Likewise.
1775         * doc/posix-functions/pthread_spin_unlock.texi: Likewise.
1776         * doc/posix-functions/pthread_spin_destroy.texi: Likewise.
1778 2019-07-14  Bruno Haible  <bruno@clisp.org>
1780         pthread-tss: New module.
1781         * lib/pthread-tss.c: New file.
1782         * m4/pthread-tss.m4: New file.
1783         * modules/pthread-tss: New file.
1784         * doc/posix-functions/pthread_key_create.texi: Mention the new module.
1785         * doc/posix-functions/pthread_setspecific.texi: Likewise.
1786         * doc/posix-functions/pthread_getspecific.texi: Likewise.
1787         * doc/posix-functions/pthread_key_delete.texi: Likewise.
1789 2019-07-14  Bruno Haible  <bruno@clisp.org>
1791         pthread-cond: New module.
1792         * lib/pthread.in.h (pthread_cond_destroy, pthread_cond_init,
1793         pthread_cond_signal, pthread_cond_wait): Remove inline definitions.
1794         * lib/pthread-cond.c: New file.
1795         * m4/pthread-cond.m4: New file.
1796         * modules/pthread-cond: New file.
1797         * doc/posix-functions/pthread_cond_init.texi: Mention the new module.
1798         * doc/posix-functions/pthread_condattr_init.texi: Likewise.
1799         * doc/posix-functions/pthread_condattr_destroy.texi: Likewise.
1800         * doc/posix-functions/pthread_cond_wait.texi: Likewise.
1801         * doc/posix-functions/pthread_cond_timedwait.texi: Likewise.
1802         * doc/posix-functions/pthread_cond_signal.texi: Likewise.
1803         * doc/posix-functions/pthread_cond_broadcast.texi: Likewise.
1804         * doc/posix-functions/pthread_cond_destroy.texi: Likewise.
1806 2019-07-14  Bruno Haible  <bruno@clisp.org>
1808         pthread-rwlock: New module.
1809         * lib/pthread-rwlock.c: New file, based on lib/glthread/lock.c.
1810         * m4/pthread-rwlock.m4: New file.
1811         * modules/pthread-rwlock: New file.
1812         * doc/posix-functions/pthread_rwlock_init.texi: Mention the new module
1813         and the Android problem.
1814         * doc/posix-functions/pthread_rwlockattr_init.texi: Likewise.
1815         * doc/posix-functions/pthread_rwlockattr_destroy.texi: Likewise.
1816         * doc/posix-functions/pthread_rwlock_rdlock.texi: Likewise.
1817         * doc/posix-functions/pthread_rwlock_wrlock.texi: Likewise.
1818         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likewise.
1819         * doc/posix-functions/pthread_rwlock_trywrlock.texi: Likewise.
1820         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
1821         * doc/posix-functions/pthread_rwlock_timedwrlock.texi: Likewise.
1822         * doc/posix-functions/pthread_rwlock_unlock.texi: Likewise.
1823         * doc/posix-functions/pthread_rwlock_destroy.texi: Likewise.
1825 2019-07-14  Bruno Haible  <bruno@clisp.org>
1827         pthread-mutex: New module.
1828         * lib/pthread.in.h (pthread_mutexattr_destroy, pthread_mutexattr_init,
1829         pthread_mutexattr_settype, pthread_mutex_destroy, pthread_mutex_init,
1830         pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_timedlock,
1831         pthread_mutex_unlock): Remove inline definitions.
1832         * lib/pthread-mutex.c: New file.
1833         * m4/pthread-mutex.m4: New file.
1834         * modules/pthread-mutex: New file.
1835         * doc/posix-functions/pthread_mutex_init.texi: Mention the new module.
1836         * doc/posix-functions/pthread_mutexattr_init.texi: Likewise.
1837         * doc/posix-functions/pthread_mutexattr_gettype.texi: Likewise.
1838         * doc/posix-functions/pthread_mutexattr_settype.texi: Likewise.
1839         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
1840         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
1841         * doc/posix-functions/pthread_mutexattr_destroy.texi: Likewise.
1842         * doc/posix-functions/pthread_mutex_lock.texi: Likewise.
1843         * doc/posix-functions/pthread_mutex_trylock.texi: Likewise.
1844         * doc/posix-functions/pthread_mutex_timedlock.texi: Likewise.
1845         * doc/posix-functions/pthread_mutex_unlock.texi: Likewise.
1846         * doc/posix-functions/pthread_mutex_destroy.texi: Likewise.
1848 2019-07-14  Bruno Haible  <bruno@clisp.org>
1850         pthread-once: New module.
1851         * lib/pthread-once.c: New file.
1852         * m4/pthread-once.m4: New file.
1853         * modules/pthread-once: New file.
1854         * doc/posix-functions/pthread_once.texi: Mention the new module.
1856 2019-07-14  Bruno Haible  <bruno@clisp.org>
1858         pthread-thread: New module.
1859         * lib/pthread.in.h (pthread_create, pthread_exit, pthread_join): Remove
1860         inline definitions.
1861         * lib/pthread-thread.c: New file.
1862         * m4/pthread-thread.m4: New file.
1863         * modules/pthread-thread: New file.
1864         * doc/posix-functions/pthread_create.texi: Mention the new module.
1865         * doc/posix-functions/pthread_attr_init.texi: Likewise.
1866         * doc/posix-functions/pthread_attr_getdetachstate.texi: Likewise.
1867         * doc/posix-functions/pthread_attr_setdetachstate.texi: Likewise.
1868         * doc/posix-functions/pthread_attr_destroy.texi: Likewise.
1869         * doc/posix-functions/pthread_self.texi: Likewise.
1870         * doc/posix-functions/pthread_equal.texi: Likewise.
1871         * doc/posix-functions/pthread_detach.texi: Likewise.
1872         * doc/posix-functions/pthread_join.texi: Likewise.
1873         * doc/posix-functions/pthread_exit.texi: Likewise.
1875 2019-07-14  Bruno Haible  <bruno@clisp.org>
1877         pthread-h: Prepare for adding new modules.
1878         * lib/pthread.in.h: Define the types and macros for each of the
1879         facilities separately.
1880         * m4/pthread_h.m4 (gl_PTHREAD_H): Set HAVE_PTHREAD_CREATE_DETACHED,
1881         HAVE_PTHREAD_MUTEX_RECURSIVE, HAVE_PTHREAD_MUTEX_ROBUST,
1882         HAVE_PTHREAD_PROCESS_SHARED.
1883         (gl_PTHREAD_H_DEFAULTS): Initialize HAVE_PTHREAD_CREATE_DETACHED,
1884         HAVE_PTHREAD_MUTEX_RECURSIVE, HAVE_PTHREAD_MUTEX_ROBUST,
1885         HAVE_PTHREAD_PROCESS_SHARED.
1886         * modules/pthread-h (Makefile.am): Substitute
1887         HAVE_PTHREAD_CREATE_DETACHED, HAVE_PTHREAD_MUTEX_RECURSIVE,
1888         HAVE_PTHREAD_MUTEX_ROBUST, HAVE_PTHREAD_PROCESS_SHARED.
1890 2019-07-14  Bruno Haible  <bruno@clisp.org>
1892         pthread-h: Add declarations of essential pthread functions.
1893         * lib/pthread.in.h: Include snippets.
1894         (pthread_create, pthread_attr_init, pthread_attr_getdetachstate,
1895         pthread_attr_setdetachstate, pthread_attr_destroy, pthread_self,
1896         pthread_equal, pthread_detach, pthread_join, pthread_exit, pthread_once,
1897         pthread_mutex_init, pthread_mutexattr_init, pthread_mutexattr_gettype,
1898         pthread_mutexattr_settype, pthread_mutexattr_getrobust,
1899         pthread_mutexattr_setrobust, pthread_mutexattr_destroy,
1900         pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_unlock,
1901         pthread_mutex_destroy, pthread_rwlock_init, pthread_rwlockattr_init,
1902         pthread_rwlockattr_destroy, pthread_rwlock_rdlock,
1903         pthread_rwlock_wrlock, pthread_rwlock_tryrdlock,
1904         pthread_rwlock_trywrlock, pthread_rwlock_timedrdlock,
1905         pthread_rwlock_timedwrlock, pthread_rwlock_unlock,
1906         pthread_rwlock_destroy, pthread_cond_init, pthread_condattr_init,
1907         pthread_condattr_destroy, pthread_cond_wait, pthread_cond_timedwait,
1908         pthread_cond_signal, pthread_cond_broadcast, pthread_cond_destroy,
1909         pthread_key_create, pthread_setspecific, pthread_getspecific,
1910         pthread_key_delete, pthread_spin_init, pthread_spin_lock,
1911         pthread_spin_trylock, pthread_spin_unlock, pthread_spin_destroy): New
1912         declarations.
1913         (pthread_mutex_timedlock): Move declaration.
1914         * m4/pthread_h.m4 (gl_PTHREAD_H): Check whether the new functions are
1915         declared.
1916         (gl_PTHREAD_H_DEFAULTS): Initialize GNULIB_PTHREAD_THREAD,
1917         GNULIB_PTHREAD_ONCE, GNULIB_PTHREAD_MUTEX, GNULIB_PTHREAD_RWLOCK,
1918         GNULIB_PTHREAD_COND, GNULIB_PTHREAD_TSS, GNULIB_PTHREAD_SPIN and the
1919         HAVE_* and REPLACE_* variables for the new functions.
1920         * modules/pthread-h (Depends-on): Add snippet/c++defs,
1921         snippet/_Noreturn, snippet/arg-nonnull, snippet/warn-on-use.
1922         (Makefile.am): Substitute GNULIB_PTHREAD_THREAD, GNULIB_PTHREAD_ONCE,
1923         GNULIB_PTHREAD_MUTEX, GNULIB_PTHREAD_RWLOCK, GNULIB_PTHREAD_COND,
1924         GNULIB_PTHREAD_TSS, GNULIB_PTHREAD_SPIN and the HAVE_* and REPLACE_*
1925         variables for the new functions. Split the sed script, to avoid the
1926         limit of 99 commands of HP-UX sed.
1927         * tests/test-pthread-c++.cc: Check the signature of the new functions.
1929 2019-07-14  Bruno Haible  <bruno@clisp.org>
1931         pthread-h: Respect --enable-threads={posix|windows} option on mingw.
1932         * m4/pthread_h.m4 (gl_PTHREAD_H): Require gl_THREADLIB. Set
1933         HAVE_PTHREAD_H if gl_threads_api is 'windows'.
1934         (LIB_PTHREAD): Rely on $LIBMULTITHREAD from threadlib.m4.
1935         * modules/pthread (Link): Change to $(LIBMULTITHREAD).
1936         * modules/pthread-h (Depends-on): Add threadlib.
1937         (Link): Change to $(LIBTHREAD).
1938         * modules/pthread-h-c++-tests (test_pthread_c___LDADD): Use
1939         $(LIBMULTITHREAD) instead of $(LIB_PTHREAD).
1941 2019-07-14  Bruno Haible  <bruno@clisp.org>
1943         pthread-h: Add C++ tests.
1944         * tests/test-pthread-c++.cc: New file.
1945         * modules/pthread-h-c++-tests: New file.
1947 2019-07-14  Bruno Haible  <bruno@clisp.org>
1949         pthread-h: Add tests.
1950         * tests/test-pthread.c: New file.
1951         * modules/pthread-h-tests: New file.
1953 2019-07-14  Bruno Haible  <bruno@clisp.org>
1955         pthread-h: New module.
1956         * lib/pthread.in.h: Define replacement functions only if GNULIB_PTHREAD
1957         is 1.
1958         * m4/pthread_h.m4: Renamed from m4/pthread.m4.
1959         (gl_PTHREAD_H): Renamed from gl_PTHREAD_CHECK. Don't test whether
1960         <pthread.h> pollutes the namespace; instead, prepare for generating a
1961         pthread.h always. Substitute HAVE_PTHREAD_H here.
1962         (gl_PTHREAD_H_DEFAULTS): Renamed from gl_PTHREAD_DEFAULTS. Initialize
1963         GNULIB_PTHREAD. Don't initialize HAVE_PTHREAD_H here.
1964         * modules/pthread-h: New file, based on modules/pthread.
1965         * modules/pthread: Rely on 'pthread-h'.
1966         * m4/pthread_mutex_timedlock.m4 (gl_FUNC_PTHREAD_MUTEX_TIMEDLOCK):
1967         Update.
1968         * modules/pthread_mutex_timedlock (Depends-on): Add pthread-h. Remove
1969         pthread.
1971 2019-07-14  Bruno Haible  <bruno@clisp.org>
1973         sched_yield: New module.
1974         * lib/sched.in.h: Add _GL_FUNCDECL_RPL, _GL_WARN_ON_USE placeholders.
1975         (sched_yield): New declaration.
1976         * lib/sched_yield.c: New file.
1977         * m4/sched_yield.m4: New file.
1978         * m4/sched_h.m4 (gl_SCHED_H): Require gl_SCHED_H_DEFAULTS. Arrange to
1979         provide a replacement sched.h always. Test whether sched_yield is
1980         declared.
1981         (gl_SCHED_MODULE_INDICATOR, gl_SCHED_H_DEFAULTS): New macros.
1982         * modules/sched (Depends-on): Add snippet/c++defs, snippet/warn-on-use.
1983         (Makefile.am): Provide a replacement sched.h always. Substitute
1984         GNULIB_SCHED_YIELD, HAVE_SCHED_YIELD, REPLACE_SCHED_YIELD,
1985         _GL_FUNCDECL_RPL, _GL_WARN_ON_USE.
1986         * modules/sched_yield: New file.
1987         * doc/posix-functions/sched_yield.texi: Mention the new module.
1989 2019-07-14  Bruno Haible  <bruno@clisp.org>
1991         windows-spin: New module.
1992         * lib/windows-spin.h: New file.
1993         * lib/windows-spin.c: New file.
1994         * modules/windows-spin: New file.
1996 2019-07-14  Bruno Haible  <bruno@clisp.org>
1998         windows-timedrwlock: New module.
1999         * lib/windows-timedrwlock.h: New file, based on windows-rwlock.h.
2000         * lib/windows-timedrwlock.c: New file, based on windows-rwlock.c and
2001         windows-cond.c.
2002         * lib/windows-cond.h (struct glwthread_waitqueue_link): Protect against
2003         redefinition conflict with windows-timedrwlock.h.
2004         * modules/windows-timedrwlock: New file.
2006 2019-07-14  Bruno Haible  <bruno@clisp.org>
2008         windows-rwlock: New module.
2009         * lib/windows-rwlock.h: New file, extracted from lib/glthread/lock.h.
2010         * lib/windows-rwlock.c: New file, extracted from lib/glthread/lock.c.
2011         * lib/glthread/lock.h: Include windows-rwlock.h. Don't include
2012         windows-initguard.h.
2013         (gl_rwlock_t): Define using glwthread_rwlock_t.
2014         (gl_rwlock_initializer): Define using GLWTHREAD_RWLOCK_INIT.
2015         (glthread_rwlock_init): Define using glwthread_rwlock_init.
2016         (glthread_rwlock_rdlock): Define using glwthread_rwlock_rdlock.
2017         (glthread_rwlock_wrlock): Define using glwthread_rwlock_wrlock.
2018         (glthread_rwlock_unlock): Define using glwthread_rwlock_unlock.
2019         (glthread_rwlock_destroy): Define using glwthread_rwlock_destroy.
2020         (glthread_rwlock_init_func, glthread_rwlock_rdlock_func,
2021         glthread_rwlock_wrlock_func, glthread_rwlock_unlock_func,
2022         glthread_rwlock_destroy_func): Remove declarations.
2023         * lib/glthread/lock.c (gl_waitqueue_t): Remove type.
2024         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_notify_first,
2025         gl_waitqueue_notify_all, glthread_rwlock_init_func,
2026         glthread_rwlock_rdlock_func, glthread_rwlock_wrlock_func,
2027         glthread_rwlock_unlock_func, glthread_rwlock_destroy_func): Remove
2028         functions.
2029         * modules/windows-rwlock: New file.
2030         * modules/lock (Depends-on): Add windows-rwlock.
2032 2019-07-14  Bruno Haible  <bruno@clisp.org>
2034         windows-thread: Add support for creating a thread in detached state.
2035         * lib/windows-thread.h (GLWTHREAD_ATTR_DETACHED): New macro.
2036         (glwthread_thread_create): Add attr argument.
2037         * lib/windows-thread.c (glwthread_thread_create): Likewise.
2038         * lib/glthread/thread.h (glthread_create): Update.
2039         * lib/thrd.c (thrd_create): Update.
2041 2019-07-14  Bruno Haible  <bruno@clisp.org>
2043         windows-*: Rename glwthread_spinlock_t to glwthread_initguard_t.
2044         * lib/windows-initguard.h: Renamed from lib/windows-spinlock.h.
2045         (glwthread_initguard_t): Renamed from glwthread_spinlock_t.
2046         (GLWTHREAD_INITGUARD_INIT): Renamed from GLWTHREAD_SPINLOCK_INIT.
2047         * lib/windows-mutex.h: Update.
2048         * lib/windows-recmutex.h: Likewise.
2049         * lib/windows-timedmutex.h: Likewise.
2050         * lib/windows-timedrecmutex.h: Likewise.
2051         * lib/windows-cond.h: Likewise.
2052         * lib/glthread/lock.h: Likewise.
2053         * modules/windows-mutex (Files): Add lib/windows-initguard.h. Remove
2054         lib/windows-spinlock.h.
2055         * modules/windows-recmutex (Files): Likewise.
2056         * modules/windows-timedmutex (Files): Likewise.
2057         * modules/windows-timedrecmutex (Files): Likewise.
2058         * modules/windows-cond (Files): Likewise.
2059         * modules/threads-h (Files): Likewise.
2061 2019-07-14  Bruno Haible  <bruno@clisp.org>
2063         doc: Fix info about pthread API in HP-UX.
2064         * doc/posix-functions/pthread_*.texi: Fix info about HP-UX 11.
2066 2019-07-14  Bruno Haible  <bruno@clisp.org>
2068         threads-h: Fix generation of threads.h.
2069         * modules/threads-h (Makefile.am): Insert the required header file
2070         snippets.
2072 2019-07-09  Bruno Haible  <bruno@clisp.org>
2074         striconveh test: Fix a compilation failure when iconv is not available.
2075         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2076         * tests/test-striconveh.c (main): Move iconv_close invocations inside
2077         HAVE_ICONV.
2079 2019-07-07  Akim Demaille  <akim@lrde.epita.fr>
2081         argmatch: adjust columns for help2man.
2082         * lib/argmatch.h (argmatch_##Name##_doc_col): If some argument
2083         requires column 20 or more, return 20.
2085 2019-07-06  Paul Eggert  <eggert@cs.ucla.edu>
2087         areadlink-with-size: avoid realloc when size==0
2088         * lib/areadlink-with-size.c (areadlink_with_size):
2089         * lib/areadlinkat-with-size.c (areadlinkat_with_size):
2090         Reallocate at the end to the actual size, to avoid memory waste,
2091         as suggested by Bruno Haible.  But when the guessed size is zero -
2092         useful when the size is unknown - do the initial small readlink
2093         into the stack, to avoid that realloc in the usual case.
2095 2019-07-06  Pádraig Brady  <P@draigBrady.com>
2097         areadlink-with-size: guess a buffer size with 0 size
2098         The size is usually taken from st_size, which can be zero,
2099         resulting in inefficient operation.
2100         Instead let zero select an initial memory allocation
2101         of 128 bytes, which most symlinks fit within.
2102         * lib/areadlink-with-size.c (areadlink_with_size):
2103         Start with a 128 byte buffer, for SIZE == 0.
2104         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Likewise.
2106 2019-07-06  Konstantin Kharlamov  <Hi-Angel@yandex.ru>
2108         Replace manually crafted hex regexes with [:xdigit:]
2109         * build-aux/gitlog-to-changelog (parse_amend_file)
2110         (git_dir_option):
2111         Replace various combinations of [0-9a-fA-F] with [[:xdigit:]].
2112         This patch is backported from Emacs (Bug#36167).
2114 2019-07-06  Bruno Haible  <bruno@clisp.org>
2116         error: Fix documentation.
2117         * doc/glibc-functions/error_at_line.texi: Document what the 'error'
2118         module provides.
2119         * doc/glibc-functions/error_message_count.texi: Likewise.
2120         * doc/glibc-functions/error_one_per_line.texi: Likewise.
2121         * doc/glibc-functions/error_print_progname.texi: Likewise.
2123 2019-07-06  Bruno Haible  <bruno@clisp.org>
2125         doc: Remove documentation of glibc <= 2.1.x as a supported platform.
2126         * doc/gnulib-intro.texi (Target Platforms): Mention that glibc 2.1.x
2127         and older is unsupported.
2128         * doc/**/*.texi: Update.
2130 2019-07-06  Bruno Haible  <bruno@clisp.org>
2132         doc: Remove documentation of Linux libc5 as a supported platform.
2133         * doc/posix-functions/iswalnum.texi: Don't mention workarounds specific
2134         to Linux libc5.
2135         * doc/posix-functions/iswalpha.texi: Likewise.
2136         * doc/posix-functions/iswblank.texi: Likewise.
2137         * doc/posix-functions/iswcntrl.texi: Likewise.
2138         * doc/posix-functions/iswdigit.texi: Likewise.
2139         * doc/posix-functions/iswgraph.texi: Likewise.
2140         * doc/posix-functions/iswlower.texi: Likewise.
2141         * doc/posix-functions/iswprint.texi: Likewise.
2142         * doc/posix-functions/iswpunct.texi: Likewise.
2143         * doc/posix-functions/iswspace.texi: Likewise.
2144         * doc/posix-functions/iswupper.texi: Likewise.
2145         * doc/posix-functions/iswxdigit.texi: Likewise.
2146         * doc/posix-functions/snprintf.texi: Likewise.
2147         * doc/posix-functions/vsnprintf.texi: Likewise.
2149 2019-07-06  Bruno Haible  <bruno@clisp.org>
2151         doc: Remove documentation of Tandem/NSK as a supported platform.
2152         * doc/posix-headers/stdlib.texi: Don't mention workarounds specific to
2153         Tandem/NSK.
2154         * doc/**/*.texi: Update.
2156 2019-07-06  Bruno Haible  <bruno@clisp.org>
2158         doc: Remove documentation of Mac OS X <= 10.4 as a supported platform.
2159         * doc/gnulib-intro.texi (Target Platforms): Mention that Mac OS X 10.4
2160         and older is unsupported.
2161         * doc/posix-functions/acosl.texi: Don't mention workarounds specific to
2162         Mac OS X 10.4 and older.
2163         * doc/posix-functions/asinl.texi: Likewise.
2164         * doc/posix-functions/atanl.texi: Likewise.
2165         * doc/posix-functions/cosl.texi: Likewise.
2166         * doc/posix-functions/expl.texi: Likewise.
2167         * doc/posix-functions/frexpl.texi: Likewise.
2168         * doc/posix-functions/gettimeofday.texi: Likewise.
2169         * doc/posix-functions/logl.texi: Likewise.
2170         * doc/posix-functions/mkstemp.texi: Likewise.
2171         * doc/posix-functions/sinl.texi: Likewise.
2172         * doc/posix-functions/sqrtl.texi: Likewise.
2173         * doc/posix-functions/tanl.texi: Likewise.
2174         * doc/posix-functions/wcswidth.texi: Likewise.
2175         * doc/**/*.texi: Update.
2177 2019-07-06  Bruno Haible  <bruno@clisp.org>
2179         doc: Remove documentation of AIX 4 as a supported platform.
2180         * doc/gnulib-intro.texi (Target Platforms): Mention that AIX 4 is
2181         unsupported.
2182         * doc/posix-functions/nanosleep.texi: Don't mention AIX 4 specific
2183         workarounds.
2184         * doc/posix-functions/strnlen.texi: Likewise.
2185         * doc/posix-headers/inttypes.texi: Likewise.
2186         * doc/**/*.texi: Update.
2188 2019-07-06  Bruno Haible  <bruno@clisp.org>
2190         doc: Remove documentation of HP-UX 10 as a supported platform.
2191         * doc/gnulib-intro.texi (Target Platforms): Mention that HP-UX 10 is
2192         unsupported.
2193         * doc/*-functions/*printf.texi: Don't mention HP-UX 10 specific
2194         workarounds.
2195         * doc/posix-functions/gmtime_r.texi: Likewise.
2196         * doc/posix-functions/localtime_r.texi: Likewise.
2197         * doc/posix-functions/mkstemp.texi: Likewise.
2198         * doc/**/*.texi: Update.
2200 2019-07-06  Bruno Haible  <bruno@clisp.org>
2202         doc: Remove documentation of Interix 3.5 as a supported platform.
2203         * doc/gnulib-intro.texi (Target Platforms): Mention that Interix is
2204         unsupported.
2205         * doc/posix-functions/select.texi: Don't mention Interix specific
2206         workarounds.
2207         * doc/posix-headers/signal.texi: Likewise.
2208         * doc/**/*.texi: Update.
2210 2019-07-06  Bruno Haible  <bruno@clisp.org>
2212         doc: Remove documentation of IRIX 6.4 and older as supported platforms.
2213         * doc/gnulib-intro.texi (Target Platforms): Mention that IRIX <= 6.4 is
2214         unsupported.
2215         * doc/pastposix-functions/usleep.texi: Don't mention IRIX specific
2216         workarounds.
2217         * doc/posix-functions/nl_langinfo.texi: Likewise.
2218         * doc/posix-functions/remainder.texi: Likewise.
2219         * doc/posix-functions/towlower.texi: Likewise.
2220         * doc/posix-functions/towupper.texi: Likewise.
2221         * doc/posix-functions/vsnprintf.texi: Likewise.
2222         * doc/posix-functions/wcscat.texi: Likewise.
2223         * doc/posix-functions/wcschr.texi: Likewise.
2224         * doc/posix-functions/wcscmp.texi: Likewise.
2225         * doc/posix-functions/wcscpy.texi: Likewise.
2226         * doc/posix-functions/wcscspn.texi: Likewise.
2227         * doc/posix-functions/wcslen.texi: Likewise.
2228         * doc/posix-functions/wcsncat.texi: Likewise.
2229         * doc/posix-functions/wcsncmp.texi: Likewise.
2230         * doc/posix-functions/wcsncpy.texi: Likewise.
2231         * doc/posix-functions/wcspbrk.texi: Likewise.
2232         * doc/posix-functions/wcsrchr.texi: Likewise.
2233         * doc/posix-functions/wcsspn.texi: Likewise.
2234         * doc/posix-headers/langinfo.texi: Likewise.
2235         * doc/posix-headers/signal.texi: Likewise.
2236         * doc/posix-headers/wchar.texi: Likewise.
2237         * doc/posix-headers/wctype.texi: Likewise.
2238         * doc/**/*.texi: Update.
2240 2019-07-05  Bruno Haible  <bruno@clisp.org>
2242         doc: Remove documentation of OSF/1 as supported platform.
2243         * doc/gnulib-intro.texi (Target Platforms): Mention that OSF/1 is
2244         unsupported.
2245         * doc/glibc-functions/getdomainname.texi: Don't mention OSF/1 specific
2246         workarounds.
2247         * doc/glibc-functions/pthread_setname_np.texi: Likewise.
2248         * doc/glibc-functions/ptsname_r.texi: Likewise.
2249         * doc/posix-functions/ceil.texi: Likewise.
2250         * doc/posix-functions/ceilf.texi: Likewise.
2251         * doc/posix-functions/ceill.texi: Likewise.
2252         * doc/posix-functions/fchdir.texi: Likewise.
2253         * doc/posix-functions/floor.texi: Likewise.
2254         * doc/posix-functions/floorf.texi: Likewise.
2255         * doc/posix-functions/fmod.texi: Likewise.
2256         * doc/posix-functions/fmodf.texi: Likewise.
2257         * doc/posix-functions/fmodl.texi: Likewise.
2258         * doc/posix-functions/log.texi: Likewise.
2259         * doc/posix-functions/logf.texi: Likewise.
2260         * doc/posix-functions/logl.texi: Likewise.
2261         * doc/posix-functions/log10.texi: Likewise.
2262         * doc/posix-functions/log10f.texi: Likewise.
2263         * doc/posix-functions/log10l.texi: Likewise.
2264         * doc/posix-functions/log2.texi: Likewise.
2265         * doc/posix-functions/log2f.texi: Likewise.
2266         * doc/posix-functions/log2l.texi: Likewise.
2267         * doc/posix-functions/mbrtowc.texi: Likewise.
2268         * doc/posix-functions/recv.texi: Likewise.
2269         * doc/posix-functions/recvfrom.texi: Likewise.
2270         * doc/posix-functions/remainder.texi: Likewise.
2271         * doc/posix-functions/remainderf.texi: Likewise.
2272         * doc/posix-functions/remainderl.texi: Likewise.
2273         * doc/posix-functions/round.texi: Likewise.
2274         * doc/posix-functions/roundf.texi: Likewise.
2275         * doc/posix-functions/roundl.texi: Likewise.
2276         * doc/posix-functions/send.texi: Likewise.
2277         * doc/posix-functions/sendto.texi: Likewise.
2278         * doc/posix-functions/setenv.texi: Likewise.
2279         * doc/posix-functions/snprintf.texi: Likewise.
2280         * doc/posix-functions/tcgetsid.texi: Likewise.
2281         * doc/posix-functions/trunc.texi: Likewise.
2282         * doc/posix-functions/truncf.texi: Likewise.
2283         * doc/posix-functions/truncl.texi: Likewise.
2284         * doc/posix-functions/ttyname_r.texi: Likewise.
2285         * doc/posix-functions/unsetenv.texi: Likewise.
2286         * doc/posix-functions/wcsrtombs.texi: Likewise.
2287         * doc/posix-headers/sys_select.texi: Likewise.
2288         * doc/posix-headers/wchar.texi: Likewise.
2289         * doc/posix-headers/wctype.texi: Likewise.
2290         * doc/**/*.texi: Update.
2292 2019-07-05  Bruno Haible  <bruno@clisp.org>
2294         doc: Remove documentation of BSDI and BSD/OS as supported platforms.
2295         * doc/**/*.texi: Update.
2297 2019-07-05  Bruno Haible  <bruno@clisp.org>
2299         doc: Remove documentation of Solaris 8 and older as supported platforms.
2300         * doc/gnulib-intro.texi (Target Platforms): Mention that Solaris <= 8 is
2301         unsupported.
2302         * doc/posix-functions/mbrtowc.texi: Don't mention Solaris specific
2303         workarounds.
2304         * doc/posix-functions/memcmp.texi: Likewise.
2305         * doc/posix-functions/rename.texi: Likewise.
2306         * doc/posix-functions/tzset.texi: Likewise.
2307         * doc/posix-headers/wctype.texi: Likewise.
2308         * doc/**/*.texi: Update.
2310 2019-07-05  Bruno Haible  <bruno@clisp.org>
2312         doc: Remove documentation of Interix 3.5 as a supported platform.
2313         * doc/**/*.texi: Update.
2315 2019-07-05  Bruno Haible  <bruno@clisp.org>
2317         doc: Remove documentation of BeOS as a supported platform.
2318         * doc/gnulib-intro.texi (Target Platforms): Mention that BeOS is
2319         unsupported.
2320         * doc/*-functions/*printf.texi: Don't mention BeOS specific workarounds.
2321         * doc/posix-functions/getdelim.texi: Likewise.
2322         * doc/**/*.texi: Update.
2324 2019-07-05  Bruno Haible  <bruno@clisp.org>
2326         thread, lock, cond, tls: Remove support for Pth threads.
2327         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Don't document
2328         --enable-threads=pth any more.
2329         (gl_THREADLIB_BODY): Don't set USE_PTH_THREADS any more.
2330         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Update comment.
2331         * m4/threads.m4 (gl_THREADS_H): Remove test for conflict between Pth
2332         threads and ISO C11 threads.
2333         * lib/glthread/thread.h: Remove code for USE_PTH_THREADS.
2334         * lib/glthread/lock.h: Likewise.
2335         * lib/glthread/lock.c: Likewise.
2336         * lib/glthread/cond.h: Likewise.
2337         * lib/glthread/cond.c: Likewise.
2338         * lib/glthread/tls.h: Likewise.
2339         * lib/glthread/tls.c: Likewise.
2340         * lib/glthread/yield.h: Likewise.
2341         * lib/regex_internal.h: Likewise.
2342         * tests/test-thread_create.c: Likewise.
2343         * tests/test-lock.c: Likewise.
2344         * tests/test-cond.c: Likewise.
2345         * tests/test-tls.c: Likewise.
2346         * tests/test-rwlock1.c: Don't include glthread/yield.h.
2347         (main): Sleep without calling gl_thread_yield.
2349 2019-07-05  Bruno Haible  <bruno@clisp.org>
2351         thread, lock, cond, tls: Remove support for old Solaris threads.
2352         Solaris >= 2.5.1 has POSIX threads.
2353         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Don't document
2354         --enable-threads=solaris any more.
2355         (gl_THREADLIB_BODY): Don't set USE_SOLARIS_THREADS any more.
2356         * lib/glthread/thread.c: Update comment.
2357         * lib/glthread/thread.h: Remove code for USE_SOLARIS_THREADS.
2358         * lib/glthread/lock.h: Likewise.
2359         * lib/glthread/lock.c: Likewise.
2360         * lib/glthread/cond.h: Likewise.
2361         * lib/glthread/cond.c: Likewise.
2362         * lib/glthread/tls.h: Likewise.
2363         * lib/glthread/tls.c: Likewise.
2364         * lib/glthread/yield.h: Likewise.
2365         * lib/regex_internal.h: Likewise.
2366         * tests/test-thread_create.c: Likewise.
2367         * tests/test-lock.c: Likewise.
2368         * tests/test-cond.c: Likewise.
2369         * tests/test-tls.c: Likewise.
2371 2019-07-05  Bruno Haible  <bruno@clisp.org>
2373         getcwd-lgpl, getcwd: Don't call realloc when it is pointless.
2374         * lib/getcwd-lgpl.c (rpl_getcwd): Don't call realloc if the result's
2375         needed size is equal to the allocated size.
2376         * lib/getcwd.c (__getcwd): Likewise.
2378 2019-07-05  Bruno Haible  <bruno@clisp.org>
2380         xgetdomainname: Don't return an excessive memory allocation.
2381         * lib/xgetdomainname.c (xgetdomainname): Shrink the domainname buffer
2382         before returning it.
2384 2019-07-05  Bruno Haible  <bruno@clisp.org>
2386         xgethostname: Don't return an excessive memory allocation.
2387         * lib/xgethostname.c (xgethostname): Shrink the hostname buffer before
2388         returning it.
2390 2019-07-05  Bruno Haible  <bruno@clisp.org>
2392         areadlinkat-with-size: Don't return an excessive memory allocation.
2393         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Shrink the buffer
2394         before returning it.
2396 2019-07-05  Bruno Haible  <bruno@clisp.org>
2398         areadlink-with-size: Don't return an excessive memory allocation.
2399         Reported by Andreas Dilger <adilger@whamcloud.com>.
2400         * lib/areadlink-with-size.c (areadlink_with_size): Shrink the buffer
2401         before returning it.
2403 2019-07-03  Bruno Haible  <bruno@clisp.org>
2405         renameatu: Fix test failure on MSVC.
2406         * lib/at-func2.c (at_func2): Fail with ENOENT if file1 or file2 is the
2407         empty string.
2409 2019-07-03  Bruno Haible  <bruno@clisp.org>
2411         mbrtowc: Fix invalid use of mbtowc() on MSVC.
2412         * lib/mbrtowc.c: Include glthread/lock.h.
2413         (mbtowc_lock): New variable.
2414         (mbrtowc): Treat UTF-8 encoding without locking. For the other
2415         encodings, explicitly reset the internal state of mbtowc, and protect
2416         this through a lock.
2417         * modules/mbrtowc (Depends-on): Add lock.
2419 2019-07-03  Akim Demaille  <akim@lrde.epita.fr>
2421         argmatch: don't define _ in the header.
2422         Reported by Jim Meyering.
2423         * lib/argmatch.h (N_, _): Don't define.
2424         Use gettext instead.
2425         * lib/argmatch.h (_): Define.
2426         * tests/test-argmatch.c (N_): Define.
2428 2019-07-02  Paul Eggert  <eggert@cs.ucla.edu>
2430         verify: document ‘assume’ better
2431         * lib/verify.h: Reword doc (Bug#36370).
2433 2019-07-02  Bruno Haible  <bruno@clisp.org>
2435         localcharset, nl_langinfo: Fix return value for UTF-8 locales on MSVC.
2436         * lib/localcharset.c (locale_charset): Return "UTF-8" instead of
2437         "CPutf8".
2438         * lib/nl_langinfo.c (ctype_codeset): Likewise.
2440 2019-07-02  Bruno Haible  <bruno@clisp.org>
2442         getcwd: Fix crash when invoked with size = 0 on MSVC.
2443         * lib/getcwd.c: Include msvc-inval.h.
2444         (getcwd_nothrow): New function/macro.
2445         (getcwd_system): New macro.
2446         (__getcwd): Use it instead of getcwd.
2447         * modules/getcwd (Depends-on): Add msvc-inval.
2448         * doc/posix-functions/getcwd.texi: Mention the MSVC issue.
2450 2019-07-02  Bruno Haible  <bruno@clisp.org>
2452         nonblocking-pipe tests: Fix test failure on MSVC.
2453         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE): Set to 10000 on
2454         native Windows.
2456 2019-07-02  Bruno Haible  <bruno@clisp.org>
2458         usleep: Implement with millisecond resolution on native Windows.
2459         * lib/usleep.c (usleep): On native Windows, implement using Sleep().
2460         * doc/pastposix-functions/usleep.texi: Update accordingly.
2462 2019-07-02  Bruno Haible  <bruno@clisp.org>
2464         lstat tests: Fix test failure on MSVC.
2465         * tests/test-lstat.h (test_lstat_func): Don't test SAME_INODE values on
2466         native Windows, unless _GL_WINDOWS_STAT_INODES is defined.
2468 2019-07-02  Bruno Haible  <bruno@clisp.org>
2470         stat tests: Fix test failure on MSVC.
2471         * tests/test-stat.h (test_stat_func): Don't test SAME_INODE values on
2472         native Windows, unless _GL_WINDOWS_STAT_INODES is defined.
2474 2019-07-02  Bruno Haible  <bruno@clisp.org>
2476         getaddrinfo tests: Fix test failure on MSVC.
2477         * tests/test-getaddrinfo.c: Include sockets.h.
2478         (main): Invoke gl_sockets_startup.
2479         * modules/getaddrinfo-tests (Depends-on): Add sockets.
2481 2019-07-01  Hannes Müller  <h.c.f.mueller@gmx.de>
2483         poll: Fix type of timeout pointer passed to select() on mingw x86_64.
2484         * lib/poll.c: Call Windows native select() with Windows native timeval.
2486 2019-06-30  Bruno Haible  <bruno@clisp.org>
2488         argmatch: Fix compilation errors.
2489         * lib/argmatch.h: Include <limits.h>, for INT_MAX.
2490         * tests/test-argmatch.c (main): Update after last-minute function names
2491         change.
2493 2019-06-30  Bruno Haible  <bruno@clisp.org>
2495         Include <stdlib.h> when needed.
2496         * lib/cnd.c: Include <stdlib.h>, needed for abort().
2497         * lib/fcntl.c: Likewise.
2498         * lib/mbscasestr.c: Likewise.
2499         * lib/mbssep.c: Likewise.
2500         * lib/mbsstr.c: Likewise.
2501         * lib/openat.c: Include <stdlib.h>, needed for free().
2502         * lib/windows-tls.c: Include <stdlib.h>, needed for malloc(), free(),
2503         abort().
2505 2019-06-30  Bruno Haible  <bruno@clisp.org>
2507         Include <stdlib.h> when needed.
2508         * lib/areadlinkat.c: Include <stdlib.h>, needed for free() in at-func.c.
2509         * lib/faccessat.c: Likewise.
2510         * lib/fchmodat.c: Likewise.
2511         * lib/fchownat.c: Likewise.
2512         * lib/fstatat.c: Likewise.
2513         * lib/mkfifoat.c: Likewise.
2514         * lib/mknodat.c: Likewise.
2515         * lib/readlinkat.c: Likewise.
2516         * lib/symlinkat.c: Likewise.
2517         * lib/utimensat.c: Likewise.
2518         * lib/mkdirat.c: Likewise. Include also the specification header.
2520 2019-06-30  Bruno Haible  <bruno@clisp.org>
2522         inet_ntop, inet_pton: Avoid conflict with native Windows functions.
2523         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WS2TCPIP): New macro, extracted
2524         from gl_PREREQ_SYS_H_SOCKET.
2525         (gl_PREREQ_SYS_H_SOCKET): Invoke it.
2526         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Invoke
2527         gl_PREREQ_SYS_H_WS2TCPIP.
2528         * modules/arpa_inet (Files): Add m4/sys_socket_h.m4, m4/socklen.m4.
2529         (Makefile.am): Substitute HAVE_WS2TCPIP_H.
2530         * lib/arpa_inet.in.h: Include <ws2tcpip.h>.
2532 2019-06-30  Bruno Haible  <bruno@clisp.org>
2534         inet_ntop, inet_pton: Forward-compatibility with newer Windows versions.
2535         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): On native Windows, set
2536         REPLACE_INET_NTOP to 1 always.
2537         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): On native Windows, set
2538         REPLACE_INET_PTON to 1 always.
2540 2019-06-30  Bruno Haible  <bruno@clisp.org>
2542         inet_pton: Fix link error on mingw with _WIN32_WINNT >= 0x0600.
2543         * modules/inet_pton (Depends-on, configure.ac): Test REPLACE_INET_PTON,
2544         not REPLACE_INET_NTOP.
2546 2019-06-30  Bruno Haible  <bruno@clisp.org>
2548         poll: Add comment.
2549         * lib/poll.c: Add comment about WSAPoll.
2551 2019-06-30  Bruno Haible  <bruno@clisp.org>
2553         poll-h: Fix compilation error on mingw with _WIN32_WINNT >= 0x0600.
2554         Reported by Hannes Müller <h.c.f.mueller@gmx.de>.
2555         * lib/poll.in.h: Include <winsock2.h>.
2556         (POLL*, pollfd): Override on native Windows.
2557         * m4/poll_h.m4 (gl_POLL_H): Invoke gl_PREREQ_SYS_H_WINSOCK2.
2558         * modules/poll-h (Files): Add m4/sys_socket_h.m4.
2559         (Makefile.am): Substitute HAVE_WINSOCK2_H.
2561 2019-06-28  Bruno Haible  <bruno@clisp.org>
2563         accept4: Fix compilation error on OpenIndiana.
2564         Reported by Michal Nowak <mnowak@startmail.com>
2565         via Mark H Weaver <mhw@netris.org>.
2566         * m4/accept.m4 (gl_FUNC_ACCEPT4): Test whether accept4 is declared, not
2567         whether it exists as a function.
2569 2019-06-26  Paul Eggert  <eggert@cs.ucla.edu>
2571         strverscmp: sync from glibc
2572         * lib/strverscmp.c: Sync from glibc, except use UTF-8 encoding in
2573         comments, include libc-config.h, define __strverscmp to be
2574         strverscmp, and don’t assume types line uint8_t and int8_t that
2575         that C99 doesn’t guarantee.
2576         [!_LIBC]: Include libc-config.h; define __strverscmp.
2577         Include stdint.h.
2578         (__strverscmp): Assume C99.  Use uint_least8_t
2579         and int_least8_t instead of unsigned char and signed char.
2580         * modules/strverscmp (Depends-on): Add libc-config, stdint.
2582 2019-06-25  Bruno Haible  <bruno@clisp.org>
2584         tss tests: Add tests for destructors and races.
2585         * tests/test-tss.c (worker_thread): Fix typo in debug message.
2586         (test_tss_dtorcheck1, test_tss_dtorcheck2, test_tss_racecheck): New
2587         functions.
2588         (main): Invoke them.
2589         * modules/tls-tests (Depends-on): Add mtx.
2591 2019-06-25  Bruno Haible  <bruno@clisp.org>
2593         tls tests: Add tests for destructors and races.
2594         * tests/test-tls.c: Include glthread/lock.h.
2595         (test_tls_dtorcheck1, test_tls_dtorcheck2, test_tls_racecheck): New
2596         functions.
2597         (main): Invoke them.
2598         * modules/tls-tests (Depends-on): Add lock.
2600 2019-06-25  Bruno Haible  <bruno@clisp.org>
2602         windows-tls: Implement TLS key destructors for native Windows.
2603         * lib/windows-tls.h (glwthread_tls_process_destructors): New
2604         declaration.
2605         (GLWTHREAD_DESTRUCTOR_ITERATIONS): New macro.
2606         * lib/windows-tls.c: Include <limits.h>, windows-once.h.
2607         (dtor_table_init_once, dtor_table_lock: New variables.
2608         (struct dtor): New type.
2609         (dtor_table, dtors_count, dtors_used, dtors_allocated,
2610         dtor_processing_threads): New variables.
2611         (dtor_table_initialize, dtor_table_ensure_initialized,
2612         dtor_table_shrink_used, glwthread_tls_process_destructors): New
2613         functions.
2614         (glwthread_tls_key_create, glwthread_tls_key_delete): Rewritten to
2615         handle non-NULL destructors.
2616         * modules/windows-tls (Depends-on): Add windows-once.
2617         * lib/glthread/tls.h (glthread_tls_key_init, glthread_tls_key_destroy):
2618         Use the functions declared in windows-tls.h.
2619         * lib/threads.in.h (TSS_DTOR_ITERATIONS): Define using
2620         GLWTHREAD_DESTRUCTOR_ITERATIONS.
2621         * lib/windows-thread.c: Include windows-tls.h.
2622         (wrapper_func, glwthread_thread_exit): Invoke
2623         glwthread_tls_process_destructors.
2624         * modules/windows-thread (Depends-on): Add windows-tls.
2626 2019-06-25  Bruno Haible  <bruno@clisp.org>
2628         threadlib: Avoid autoconf warning "was expanded before it was required".
2629         * modules/threadlib (configure.ac): Require gl_THREADLIB.
2631 2019-06-25  Akim Demaille  <akim@lrde.epita.fr>
2633         argmatch: remove duplicate const qualifier
2634         * lib/argmatch.h (ARGMATCH_DEFINE_GROUP): Here.
2636 2019-06-24  Paul Eggert  <eggert@cs.ucla.edu>
2638         unistd: stddef.h and sys/types.h namespace cleanup
2639         * lib/unistd.in.h [__GLIBC__]:
2640         Do not include stddef.h or sys/types.h.
2641         [!__GLIBC__]: Always include sys/types.h, since unistd.h is
2642         supposed to declare off_t and ssize_t.  Problem found when looking
2643         at why @GNULIB_PWRITE@ was different from the newly-added
2644         @GNULIB_COPY_FILE_RANGE@ with respect to ssize_t.
2646 2019-06-22  Akim Demaille  <akim@lrde.epita.fr>
2648         maintainer-makefile: restore portability to non-GNU awks
2649         Reported by Tim Rühsen.
2650         * top/maint.mk (AWK): New variable.  Use it.
2651         (sc_prohibit_gnu_make_extensions): Skip if $(AWK) is not gawk.
2653 2019-06-23  Paul Eggert  <eggert@cs.ucla.edu>
2655         Document setvbuf _IOLBF problem
2656         * doc/posix-functions/setvbuf.texi (setvbuf):
2657         Document MS-Windows portability problem with _IOLBF.
2659         Document lseek SEEK_DATA/SEEK_HOLE
2660         * doc/posix-functions/lseek.texi (lseek):
2661         Document some systems that do not support SEEK_DATA and SEEK_HOLE.
2663 2019-06-22  Akim Demaille  <akim@lrde.epita.fr>
2665         argmatch: put all the docs member last.
2666         Reported by Bruno Haible.
2667         * lib/argmatch.h (argmatch_##Name##_group_type): Put the args
2668         member before the docs done.
2669         * doc/argmatch.texi, tests/test-argmatch.c: Adjust.
2671 2019-06-21  Akim Demaille  <akim@lrde.epita.fr>
2673         argmatch: add support to generate the usage message.
2674         * lib/argmatch.c: Move some #includes and gettext support to...
2675         * lib/argmatch.h: here.
2676         (ARGMATCH_DEFINE_GROUP): New macro.
2677         * tests/test-argmatch.c (argmatch_backup_docs, argmatch_backup_args)
2678         (argmatch_backup_group): New.
2679         (CHECK): New.
2680         (main): Check argmatch_backup_value, argmatch_backup_xvalue,
2681         argmatch_backup_argument and argmatch_backup_usage.
2682         * modules/argmatch: We depend on c99.
2683         * doc/argmatch.texi (Recognizing Option Arguments): New.
2684         * doc/gnulib.texi: Use it.
2686 2019-06-21  Bruno Haible  <bruno@clisp.org>
2688         thrd: Add comment.
2689         * lib/thrd.c (pthread_main_func): Add comment.
2691 2019-06-21  Bruno Haible  <bruno@clisp.org>
2693         threads-h: Define 'thread_local' if and only if it actually works.
2694         * m4/threads.m4 (gl_THREAD_LOCAL_DEFINITION): New macro.
2695         (gl_THREADS_H): Define _Thread_local to __thread also for ARM C, IBM C,
2696         Oracle Solaris Studio C. Compile a simple program, to see whether
2697         _Thread_local basically works. Set HAVE_THREAD_LOCAL and LIBTHREADLOCAL.
2698         (gl_THREADS_H_DEFAULTS): Initialize HAVE_THREAD_LOCAL.
2699         * lib/threads.in.h (thread_local): Undefine if it does not work.
2700         * modules/threads-h (Makefile.am): Substitute HAVE_THREAD_LOCAL.
2701         (Link): Mention LIBTHREADLOCAL.
2702         * tests/test-threads.c: Don't check that thread_local is defined.
2703         * tests/test-thread_local.c: New file.
2704         * modules/threads-h-tests (Files): Add it and macros.h.
2705         (Depends-on): Add thrd and stdint.
2706         (configure.ac): Test whether 'alarm' is declared.
2707         (Makefile.am): Arrange to build and link test-thread_local.
2708         * doc/posix-headers/threads.texi: Mention the platforms that don't
2709         support 'thread_local'.
2711 2019-06-20  Bruno Haible  <bruno@clisp.org>
2713         threads-h: Simplify link dependencies.
2714         * m4/threads.m4 (gl_THREADS_H): Bail out if Pth threading is requested.
2715         Don't set LTLIBSTDTHREAD.
2716         * modules/thrd (Link): Simplify accordingly.
2717         * modules/mtx (Link): Likewise.
2718         * modules/cnd (Link): Likewise.
2719         * modules/tss (Link): Likewise.
2720         * modules/threads (Link): Likewise.
2722 2019-06-20  Bruno Haible  <bruno@clisp.org>
2724         threads-h: Fix link error on FreeBSD 11.
2725         * m4/threads.m4 (gl_THREADS_H): When linking with -lstdthreads, link
2726         also with -lpthread.
2728 2019-06-20  Bruno Haible  <bruno@clisp.org>
2730         threadlib: Fix typo (regression from today).
2731         * m4/threadlib.m4 (gl_THREADLIB_BODY): Fix typo in comment marker.
2733 2019-06-20  Bruno Haible  <bruno@clisp.org>
2735         windows-thread, windows-tls: Fix compilation error on 32-bit mingw.
2736         * lib/windows-thread.c: Include <errno.h>.
2737         * lib/windows-tls.c: Likewise.
2739 2019-06-20  Bruno Haible  <bruno@clisp.org>
2741         tss tests: Small improvement.
2742         * tests/test-tss.c (test_tss): Pass a different id to each thread.
2744 2019-06-20  Bruno Haible  <bruno@clisp.org>
2746         threads: New module.
2747         * modules/threads: New file.
2749 2019-06-20  Bruno Haible  <bruno@clisp.org>
2751         tss: Add tests.
2752         * tests/test-tss.c: New file, based on tests/test-tls.c.
2753         * modules/tss-tests: New file.
2755 2019-06-20  Bruno Haible  <bruno@clisp.org>
2757         cnd: Add tests.
2758         * tests/test-cnd.c: New file, based on tests/test-cond.c.
2759         * modules/cnd-tests: New file.
2761 2019-06-20  Bruno Haible  <bruno@clisp.org>
2763         mtx: Add tests.
2764         * tests/test-mtx.c: New file, based on tests/test-lock.c.
2765         * tests/test-call_once.c: New file, based on tests/test-once.c.
2766         * modules/mtx-tests: New file.
2768 2019-06-20  Bruno Haible  <bruno@clisp.org>
2770         thrd: Add tests.
2771         * tests/test-thrd_create.c: New file, based on
2772         tests/test-thread_create.c.
2773         * tests/test-thrd_current.c: New file, based on
2774         tests/test-thread_self.c.
2775         * modules/thrd-tests: New file.
2777 2019-06-20  Bruno Haible  <bruno@clisp.org>
2779         tss: New module.
2780         * lib/tss.c: New file.
2781         * modules/tss: New file.
2782         * doc/posix-functions/tss_create.texi: Mention the new module.
2783         * doc/posix-functions/tss_set.texi: Likewise.
2784         * doc/posix-functions/tss_get.texi: Likewise.
2785         * doc/posix-functions/tss_delete.texi: Likewise.
2787 2019-06-20  Bruno Haible  <bruno@clisp.org>
2789         cnd: New module.
2790         * lib/cnd.c: New file.
2791         * modules/cnd: New file.
2792         * doc/posix-functions/cnd_init.texi: Mention the new module.
2793         * doc/posix-functions/cnd_wait.texi: Likewise.
2794         * doc/posix-functions/cnd_timedwait.texi: Likewise.
2795         * doc/posix-functions/cnd_signal.texi: Likewise.
2796         * doc/posix-functions/cnd_broadcast.texi: Likewise.
2797         * doc/posix-functions/cnd_destroy.texi: Likewise.
2799 2019-06-20  Bruno Haible  <bruno@clisp.org>
2801         mtx: New module.
2802         * lib/mtx.c: New file.
2803         * modules/mtx: New file.
2804         * doc/posix-functions/call_once.texi: Mention the new module.
2805         * doc/posix-functions/mtx_init.texi: Likewise.
2806         * doc/posix-functions/mtx_lock.texi: Likewise.
2807         * doc/posix-functions/mtx_trylock.texi: Likewise.
2808         * doc/posix-functions/mtx_timedlock.texi: Likewise.
2809         * doc/posix-functions/mtx_unlock.texi: Likewise.
2810         * doc/posix-functions/mtx_destroy.texi: Likewise.
2812 2019-06-20  Bruno Haible  <bruno@clisp.org>
2814         thrd: New module.
2815         * lib/thrd.c: New file.
2816         * m4/thrd.m4: New file.
2817         * modules/thrd: New file.
2818         * doc/posix-functions/thrd_current.texi: Mention the new module.
2819         * doc/posix-functions/thrd_detach.texi: Likewise.
2820         * doc/posix-functions/thrd_equal.texi: Likewise.
2821         * doc/posix-functions/thrd_exit.texi: Likewise.
2822         * doc/posix-functions/thrd_sleep.texi: Likewise.
2823         * doc/posix-functions/thrd_yield.texi: Likewise.
2824         * doc/posix-functions/thrd_create.texi: Mention the new module and the
2825         AIX bug.
2826         * doc/posix-functions/thrd_join.texi: Mention the new module and the
2827         AIX and Solaris bugs.
2829 2019-06-20  Bruno Haible  <bruno@clisp.org>
2831         threads-h: Add tests.
2832         * tests/test-threads.c: New file.
2833         * modules/threads-h-tests: New file.
2834         * tests/test-threads-c++.cc: New file.
2835         * modules/threads-h-c++-tests: New file.
2837 2019-06-20  Bruno Haible  <bruno@clisp.org>
2839         threads-h: New module.
2840         * lib/threads.in.h: New file.
2841         * m4/threads.m4: New file.
2842         * m4/yield.m4 (gl_YIELD): Update comment.
2843         * modules/threads-h: New file.
2844         * modules/yields (configure.ac): Use AC_REQUIRE.
2845         * doc/posix-headers/threads.texi: Mention the new module and the AIX
2846         bugs.
2848 2019-06-20  Bruno Haible  <bruno@clisp.org>
2850         windows-thread: New module.
2851         * lib/windows-thread.h: New file, based on lib/glthread/thread.h.
2852         * lib/windows-thread.c: New file, based on lib/glthread/thread.c.
2853         * lib/glthread/thread.h: Include windows-thread.h.
2854         (gl_thread_t): Define using glwthread_thread_t.
2855         (glthread_create): Define using glwthread_thread_create.
2856         (glthread_join): Define using glwthread_thread_join.
2857         (gl_thread_self): Define using glwthread_thread_self.
2858         (gl_thread_exit): Define using glwthread_thread_exit.
2859         (glthread_create_func, glthread_join_func, gl_thread_self_func,
2860         gl_thread_exit_func): Remove declarations.
2861         * lib/glthread/thread.c (self_key): Remove variable.
2862         (do_init_self_key, init_self_key): Remove functions.
2863         (struct gl_thread_struct): Remove type.
2864         (get_current_thread_handle, gl_thread_self_func, wrapper_func,
2865         glthread_create_func, glthread_join_func, gl_thread_exit_func): Remove
2866         functions.
2867         * modules/windows-thread: New file.
2868         * modules/thread (Depends-on): Add windows-thread.
2870 2019-06-20  Bruno Haible  <bruno@clisp.org>
2872         windows-tls: New module.
2873         * lib/windows-tls.h: New file, based on lib/glthread/tls.h.
2874         * lib/windows-tls.c: New file, based on lib/glthread/tls.h.
2875         * lib/glthread/tls.h: Include windows-tls.h.
2876         (gl_tls_key_t): Define using glwthread_tls_key_t.
2877         * modules/windows-tls: New file.
2878         * modules/tls (Depends-on): Add windows-tls.
2880 2019-06-20  Bruno Haible  <bruno@clisp.org>
2882         windows-cond: New module.
2883         * lib/windows-cond.h: New file, based on lib/glthread/cond.h.
2884         * lib/windows-cond.c: New file, based on lib/glthread/cond.c.
2885         * lib/glthread/cond.h: Include windows-cond.h.
2886         (struct gl_waitqueue_link, gl_linked_waitqueue_t): Remove types.
2887         (gl_cond_t): Define using glwthread_cond_t.
2888         (gl_cond_initializer): Define using GLWTHREAD_COND_INIT.
2889         (glthread_cond_init): Define using glwthread_cond_init.
2890         (glthread_cond_wait): Define using glwthread_cond_wait.
2891         (glthread_cond_timedwait): Define using glwthread_cond_timedwait.
2892         (glthread_cond_signal): Define using glwthread_cond_signal.
2893         (glthread_cond_broadcast): Define using glwthread_cond_broadcast.
2894         (glthread_cond_destroy): Define using glwthread_cond_destroy.
2895         (glthread_cond_init_func, glthread_cond_wait_func,
2896         glthread_cond_timedwait_func, glthread_cond_signal_func,
2897         glthread_cond_broadcast_func, glthread_cond_destroy_func): Remove
2898         declarations.
2899         * lib/glthread/cond.c (gl_waitqueue_t, gl_waitqueue_element): Remove
2900         types.
2901         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
2902         gl_waitqueue_notify_first, gl_waitqueue_notify_all,
2903         glthread_cond_init_func, glthread_cond_wait_func,
2904         glthread_cond_timedwait_func, glthread_cond_signal_func,
2905         glthread_cond_broadcast_func, glthread_cond_destroy_func): Remove
2906         functions.
2907         * modules/windows-cond: New file.
2908         * modules/cond (Depends-on): Add windows-cond. Remove gettimeofday.
2910 2019-06-20  Bruno Haible  <bruno@clisp.org>
2912         windows-timedrecmutex: New module.
2913         * lib/windows-timedrecmutex.h: New file, based on windows-recmutex.h.
2914         * lib/windows-timedrecmutex.c: New file, based on windows-recmutex.c.
2915         * modules/windows-timedrecmutex: New file.
2917 2019-06-20  Bruno Haible  <bruno@clisp.org>
2919         windows-timedmutex: New module.
2920         * lib/windows-timedmutex.h: New file, based on windows-mutex.h.
2921         * lib/windows-timedmutex.c: New file, based on windows-mutex.c.
2922         * modules/windows-timedmutex: New file.
2924 2019-06-20  Bruno Haible  <bruno@clisp.org>
2926         windows-recmutex: New module.
2927         * lib/windows-recmutex.h: New file, extracted from lib/glthread/lock.h.
2928         * lib/windows-recmutex.c: New file, extracted from lib/glthread/lock.c.
2929         * lib/glthread/lock.h: Include windows-recmutex.h.
2930         (gl_recursive_lock_t): Define using glwthread_recmutex_t.
2931         (gl_recursive_lock_initializer): Define using GLWTHREAD_RECMUTEX_INIT.
2932         (glthread_recursive_lock_init): Define using glwthread_recmutex_init.
2933         (glthread_recursive_lock_lock): Define using glwthread_recmutex_lock.
2934         (glthread_recursive_lock_unlock): Define using
2935         glwthread_recmutex_unlock.
2936         (glthread_recursive_lock_destroy): Define using
2937         glwthread_recmutex_destroy.
2938         (glthread_recursive_lock_init_func, glthread_recursive_lock_lock_func,
2939         glthread_recursive_lock_unlock_func,
2940         glthread_recursive_lock_destroy_func): Remove declarations.
2941         * lib/glthread/lock.c (glthread_recursive_lock_init_func,
2942         glthread_recursive_lock_lock_func, glthread_recursive_lock_unlock_func,
2943         glthread_recursive_lock_destroy_func): Remove functions.
2944         * modules/windows-recmutex: New file.
2945         * modules/lock (Depends-on): Add windows-recmutex.
2947 2019-06-20  Bruno Haible  <bruno@clisp.org>
2949         windows-mutex: New module.
2950         * lib/windows-mutex.h: New file, extracted from lib/glthread/lock.h.
2951         * lib/windows-mutex.c: New file, extracted from lib/glthread/lock.c.
2952         * lib/windows-spinlock.h: New file, extracted from lib/glthread/lock.h.
2953         * lib/glthread/lock.h: Include windows-spinlock.h, windows-mutex.h.
2954         (gl_spinlock_t): Remove type.
2955         (gl_lock_t): Define using glwthread_mutex_t.
2956         (gl_lock_initializer): Define using GLWTHREAD_MUTEX_INIT.
2957         (glthread_lock_init): Define using glwthread_mutex_init.
2958         (glthread_lock_lock): Define using glwthread_mutex_lock.
2959         (glthread_lock_unlock): Define using glwthread_mutex_unlock.
2960         (glthread_lock_destroy): Define using glwthread_mutex_destroy.
2961         (glthread_lock_init_func, glthread_lock_lock_func,
2962         glthread_lock_unlock_func, glthread_lock_destroy_func): Remove
2963         declarations.
2964         Use glwthread_spinlock_t instead of gl_spinlock_t.
2965         (gl_rwlock_initializer, gl_recursive_lock_initializer): Define using
2966         GLWTHREAD_SPINLOCK_INIT.
2967         * lib/glthread/lock.c (glthread_lock_init_func, glthread_lock_lock_func,
2968         glthread_lock_unlock_func, glthread_lock_destroy_func): Remove
2969         functions.
2970         * lib/glthread/cond.h: Use glwthread_spinlock_t instead of
2971         gl_spinlock_t.
2972         * modules/windows-mutex: New file.
2973         * modules/lock (Depends-on): Add windows-mutex.
2975 2019-06-20  Bruno Haible  <bruno@clisp.org>
2977         windows-once: New module.
2978         * lib/windows-once.h: New file, extracted from lib/glthread/lock.h.
2979         * lib/windows-once.c: New file, extracted from lib/glthread/lock.c.
2980         * lib/glthread/lock.h: Include windows-once.h.
2981         (gl_once_t): Define using glwthread_once_t.
2982         (gl_once_define): Define using GLWTHREAD_ONCE_INIT.
2983         (glthread_once): Define using glwthread_once.
2984         (glthread_once_func): Remove declaration.
2985         * lib/glthread/lock.c (glthread_once_func): Remove function.
2986         * modules/windows-once: New file.
2987         * modules/lock (Depends-on): Add windows-once.
2989 2019-06-20  Bruno Haible  <bruno@clisp.org>
2991         lock, cond: Avoid possible counter wraparound on Windows.
2992         * lib/glthread/lock.c (glthread_lock_lock_func): Leave the 'started'
2993         field of the guard unchanged if it was already positive.
2994         (glthread_rwlock_rdlock_func): Likewise.
2995         (glthread_rwlock_wrlock_func): Likewise.
2996         (glthread_recursive_lock_lock_func): Likewise.
2997         * lib/glthread/cond.c (glthread_cond_wait_func): Likewise.
2998         (glthread_cond_timedwait_func): Likewise.
3000 2019-06-20  Bruno Haible  <bruno@clisp.org>
3002         cond: Make glthread_cond_timedwait more reliable on Windows.
3003         * lib/glthread/cond.c (glthread_cond_timedwait_func): Initialize the
3004         condition variable before looking at the current time.
3006 2019-06-20  Bruno Haible  <bruno@clisp.org>
3008         pthread_mutex_timedlock: New module.
3009         * lib/pthread.in.h (pthread_mutex_timedlock): New dummy function and
3010         new declaration.
3011         * lib/pthread_mutex_timedlock.c: New file.
3012         * m4/pthread_mutex_timedlock.m4: New file.
3013         * m4/pthread.m4 (gl_PTHREAD_CHECK): Don't call AC_LIBOBJ here. Test
3014         whether pthread_mutex_timedlock is declared.
3015         (gl_PTHREAD_MODULE_INDICATOR): New macro.
3016         (gl_PTHREAD_DEFAULTS): Initialize GNULIB_PTHREAD_MUTEX_TIMEDLOCK,
3017         HAVE_PTHREAD_MUTEX_TIMEDLOCK.
3018         * modules/pthread (configure.ac): Call AC_LIBOBJ here.
3019         (Makefile.am): Substitute GNULIB_PTHREAD_MUTEX_TIMEDLOCK,
3020         HAVE_PTHREAD_MUTEX_TIMEDLOCK.
3021         * modules/pthread_mutex_timedlock: New file.
3022         * doc/posix-functions/pthread_mutex_timedlock.texi: Mention the new
3023         module.
3025 2019-06-20  Bruno Haible  <bruno@clisp.org>
3027         thread, lock, cond, tls: Recognize C11 multithreaded applications.
3028         * m4/threadlib.m4 (gl_THREADLIB_BODY): Test for <threads.h>.
3029         * lib/glthread/thread.h (c11_threads_in_use): New macro.
3030         (pthread_in_use, pth_in_use, thread_in_use): Use it.
3031         * lib/glthread/lock.h (c11_threads_in_use): New macro.
3032         (pthread_in_use, pth_in_use, thread_in_use): Use it.
3033         * lib/glthread/cond.h (c11_threads_in_use): New macro.
3034         (pthread_in_use, pth_in_use, thread_in_use): Use it.
3035         * lib/glthread/tls.h (c11_threads_in_use): New macro.
3036         (pthread_in_use, pth_in_use, thread_in_use): Use it.
3038 2019-06-20  Bruno Haible  <bruno@clisp.org>
3040         tls tests: Small improvements.
3041         * tests/test-tls.c: Include <stdint.h>.
3042         (worker_thread): Avoid gcc warning on 64-bit mingw.
3043         (test_tls): Pass a different id to each thread.
3044         * modules/tls-tests (Depends-on): Add stdint.
3046 2019-06-20  Bruno Haible  <bruno@clisp.org>
3048         cond tests: Simplify.
3049         * tests/test-cond.c (test_timedcond): Remove redundant assignment.
3051 2019-06-20  Bruno Haible  <bruno@clisp.org>
3053         lock tests: Avoid reference to undefined variable if !ENABLE_LOCKING.
3054         * tests/test-lock.c (test_once): Don't reference fire_signal if
3055         !ENABLE_LOCKING.
3057 2019-06-19  Bruno Haible  <bruno@clisp.org>
3059         nanosleep: Relicense under LGPLv2+.
3060         Approved by Jim Meyering, Paul Eggert, Eric Blake, Pádraig Brady.
3061         * modules/nanosleep (License): Change to LGPLv2+.
3063 2019-06-19  Bruno Haible  <bruno@clisp.org>
3065         Reorder pieces of header in perl scripts.
3066         The desired order is
3067         - Prologue part 1 (2 lines with #!)
3068         - Program short description
3069         - Copyright and license notice
3070         - Written-by notice
3071         - Program short description (optional)
3072         - Program long description (optional)
3073         - Prologue part 2
3074         - Time stamp
3075         - Code
3076         Reported by Paul Eggert.
3077         * build-aux/announce-gen: Reorder header.
3078         * build-aux/gitlog-to-changelog: Likewise.
3079         * build-aux/useless-if-before-free: Likewise.
3080         * build-aux/prefix-gnulib-mk: Add copyright notice and short
3081         description.
3082         * build-aux/update-copyright: Likewise. Add short description. Bump
3083         time-stamp-line-limit to 200.
3085 2019-06-18  Paul Eggert  <eggert@cs.ucla.edu>
3087         verify-tests: work around xlc bug
3088         Problem reported by Bruno Haible in:
3089         https://lists.gnu.org/r/bug-gnulib/2019-06/msg00049.html
3090         * tests/test-verify.c (item): Move the arithmetic inside the
3091         verify_expr, to avoid tickling a bug in IBM AIX xlc V12.1.
3093 2019-06-16  Bruno Haible  <bruno@clisp.org>
3095         Restore Emacs time-stamp hook applicability.
3096         Reported by Darshit Shah <darnir@gnu.org>.
3097         * build-aux/useless-if-before-free: Bump time-stamp-line-limit to 50.
3098         * build-aux/announce-gen: Likewise.
3099         * build-aux/gitlog-to-changelog: Likewise.
3100         * build-aux/prefix-gnulib-mk: Likewise.
3101         * build-aux/update-copyright: Likewise.
3103 2019-06-15  Bruno Haible  <bruno@clisp.org>
3105         Fix scripts to have valid executable format on Alpine Linux.
3106         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
3107         Idea by Paul Eggert.
3108         * build-aux/useless-if-before-free: Use a prologue that starts with
3109         '#!/bin/sh'.
3110         * build-aux/announce-gen: Likewise.
3111         * build-aux/gitlog-to-changelog: Likewise.
3112         * build-aux/prefix-gnulib-mk: Likewise.
3113         * build-aux/update-copyright: Likewise.
3114         * tests/test-update-copyright.sh: Update test program accordingly.
3116 2019-06-10  Bruno Haible  <bruno@clisp.org>
3118         nproc: Ensure nproc(NPROC_ALL) ≥ nproc(NPROC_CURRENT) with glibc ≥ 2.26.
3119         Reported by Nikita Ermakov <arei@altlinux.org> in
3120         <https://lists.gnu.org/archive/html/bug-gnulib/2019-06/msg00003.html>.
3121         * lib/nproc.c (num_processors_ignoring_omp): Treat a return value of
3122         sysconf (_SC_NPROCESSORS_CONF) == 2 like a return value == 1.
3124 2019-06-10  Bruno Haible  <bruno@clisp.org>
3126         posix_spawn_file_actions_addchdir: Fix possible use-after-free bug.
3127         * lib/spawn_int.h (struct __spawn_action): Remove 'const' from path.
3128         * lib/spawn_faction_addchdir.c (posix_spawn_file_actions_addchdir): Make
3129         a copy of the path argument.
3130         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Free
3131         it.
3133 2019-06-10  Bruno Haible  <bruno@clisp.org>
3135         posix_spawn_file_actions_addopen: Fix possible use-after-free bug.
3136         Reported at <https://sourceware.org/bugzilla/show_bug.cgi?id=17048>.
3137         * lib/spawn_int.h (struct __spawn_action): Remove 'const' from path.
3138         * lib/spawn_faction_addopen.c (posix_spawn_file_actions_addopen): Make
3139         a copy of the path argument.
3140         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Free
3141         it.
3143 2019-06-10  Bruno Haible  <bruno@clisp.org>
3145         posix_spawn_file_actions_addfchdir: Add tests.
3146         * tests/test-posix_spawn_file_actions_addfchdir.c: New file.
3147         * tests/test-posix_spawn5.c: New file.
3148         * modules/posix_spawn_file_actions_addfchdir-tests: New file.
3150 2019-06-10  Bruno Haible  <bruno@clisp.org>
3152         posix_spawn_file_actions_addfchdir: New module.
3153         * lib/spawn.in.h (posix_spawn_file_actions_addfchdir): New declaration.
3154         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_fchdir' and
3155         union member 'fchdir_action'.
3156         * lib/spawn_faction_addfchdir.c: New file.
3157         * lib/spawni.c (__spawni): Implement the spawn_do_fchdir action.
3158         * m4/posix_spawn_faction_addfchdir.m4: New file.
3159         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
3160         'posix_spawn_file_actions_addfchdir' is present and whether
3161         posix_spawn_file_actions_addfchdir_np exists. Set REPLACE_POSIX_SPAWN.
3162         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
3163         posix_spawn_file_actions_addfchdir is declared.
3164         (gl_SPAWN_H_DEFAULTS): Initialize
3165         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
3166         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
3167         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR.
3168         * modules/spawn (Makefile.am): Substitute
3169         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
3170         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
3171         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR.
3172         * modules/posix_spawn_file_actions_addfchdir: New file.
3173         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addfchdir): Check
3174         signature.
3175         * doc/posix-functions/posix_spawn.texi: Mention the new module.
3176         * doc/posix-functions/posix_spawnp.texi: Likewise.
3177         * doc/glibc-functions/posix_spawn_file_actions_addfchdir_np.texi:
3178         Likewise.
3180 2019-06-10  Bruno Haible  <bruno@clisp.org>
3182         doc: Document existence of posix_spawn_file_actions_addchdir module.
3183         * doc/glibc-functions/posix_spawn_file_actions_addchdir_np.texi: Mention
3184         the posix_spawn_file_actions_addchdir module.
3186 2019-06-10  Bruno Haible  <bruno@clisp.org>
3188         posix_spawn-internal: Fix module description.
3189         * modules/posix_spawn (configure.ac): Move request to compile spawni.c
3190         from here...
3191         * modules/posix_spawnp (configure.ac): ... and here...
3192         * modules/posix_spawn-internal (configure.ac): ... to here.
3194 2019-06-10  Bruno Haible  <bruno@clisp.org>
3196         doc: Update and improve documentation of glibc functions.
3197         This is a series of commits that
3198         - updates the documentation to the state of glibc 2.29,
3199         - adds references to Linux man pages and glibc documentation,
3200         - marks Linux specific functions as such.
3201         These are the commits:
3202         doc: Update after removal of crypt functions from glibc 2.28.
3203         doc: Remove mention of function vm86 (does not exist on x86_64).
3204         doc: Remove mention of functions that are gone from glibc.
3205         doc: Mention that glibc no longer provides h_errno.
3206         doc: Mention the availability of specific functions in glibc versions.
3207         doc: Mention eaccess.
3208         doc: Add references to Linux man pages.
3209         doc: Add references to glibc documentation.
3210         doc: Mention inotify_* functions.
3211         doc: Mention ppoll.
3212         doc: Mention sched_getcpu.
3213         doc: Mention sync_file_range.
3214         doc: Mention epoll_pwait.
3215         doc: Mention eventfd, eventfd_read, eventfd_write.
3216         doc: Mention signalfd.
3217         doc: Mention timerfd_create, timerfd_gettime, timerfd_settime.
3218         doc: Mention epoll_create1.
3219         doc: Mention getauxval.
3220         doc: Mention pthread_getattr_default_np, pthread_setattr_default_np.
3221         doc: Mention nextdown, nextup.
3222         doc: Mention more ISO TS 18661-1 <math.h> functions.
3223         doc: Mention ISO TS 18661-1 <fenv.h> functions.
3224         doc: Mention getrandom, getentropy.
3225         doc: Mention strfromf, strfromd, strfroml.
3226         doc: Mention preadv2, pwritev2.
3227         doc: Mention copy_file_range.
3228         doc: Mention memfd_create.
3229         doc: Mention mlock2.
3230         doc: Mention pkey_alloc, pkey_set, pkey_get, pkey_free, pkey_mprotect.
3231         doc: Mention more ISO TS 18661-1 <math.h> functions.
3232         doc: Mention renameat2.
3233         doc: Mention statx.
3234         doc: Mention the ISO C11 multithreading header and functions.
3235         doc: Mention getcpu.
3236         doc: Mention posix_spawn_file_actions_add[f]chdir_np.
3237         doc: Some glibc functions also exist on IRIX 6.5 in 32-bit mode.
3238         doc: Some glibc functions also exist on FreeBSD, AIX, HP-UX, Solaris 11.
3239         doc: Some glibc functions also exist on FreeBSD, Solaris 11.
3240         doc: Some glibc functions also exist on Solaris 11.
3241         doc: Some glibc functions also exist on Solaris 11.4.
3242         doc: Some glibc functions also exist on FreeBSD.
3243         doc: Some glibc functions also exist on BeOS.
3244         doc: Some glibc functions also exist on Haiku.
3245         doc: Mark functions which exist only on Linux.
3246         doc: Mark functions which exist only on Linux and illumos.
3248 2019-06-06  Paul Eggert  <eggert@cs.ucla.edu>
3250         copy-file: fix typo
3251         * lib/copy-file.c (qcopy_file_preserving): Remove unused label.
3253         copy-file-range: simplify into a stub
3254         Based on a comment by Florian Weimer in:
3255         https://lists.gnu.org/r/bug-gnulib/2019-06/msg00007.html
3256         It turns out that Emacs (which will use this module) won’t need an
3257         emulation and I suspect other programs won’t either, because these
3258         programs will need to fall back on read+write anyway.  Perhaps I
3259         am wrong and other programs will be able to use an emulation; if
3260         so, this patch can be reverted.
3261         * lib/copy-file-range.c (COPY_FILE_RANGE): Replace with a stub.
3262         Just call it copy_file_range.
3263         * m4/copy-file-range.m4 (gl_FUNC_COPY_FILE_RANGE):
3264         Check via AC_LINK_IFELSE.
3265         * modules/copy-file-range (Depends-on): Remove modules no longer used.
3267 2019-06-04  Paul Eggert  <eggert@cs.ucla.edu>
3269         copy-file: prefer copy_file_range
3270         * lib/copy-file.c: Do not include xalloc.h.
3271         (qcopy_file_preserving): Allocate a buffer only if
3272         copy_file_range does not suffice.  If the allocation fails
3273         don't give up; just use a small stack-based buffer.
3274         Prefer copy_file_range if it works.
3275         * modules/copy-file (Depends-on): Add copy-file-range.
3276         Remove xalloc.
3278         copy-file-range: new module
3279         * MODULES.html.sh: Add copy-file-range.
3280         * lib/copy-file-range.c, m4/copy-file-range.m4:
3281         * modules/copy-file-range: New files.
3282         * lib/unistd.in.h (copy_file_range): Declare.
3283         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS):
3284         Set up GNULIB_COPY_FILE_RANGE and HAVE_COPY_FILE_RANGE.
3285         * modules/unistd (unistd.h): Substitute them.
3287 2019-05-28  Bruno Haible  <bruno@clisp.org>
3289         binary-io: Attempted use of O_BINARY on consoles no longer fails.
3290         Reported by KO Myung-Hun <komh78@gmail.com> in
3291         <https://lists.gnu.org/archive/html/bug-gnulib/2019-05/msg00124.html>.
3292         * lib/binary-io.h (__gl_setmode_check): Remove function.
3293         (set_binary_mode): Declare as notinline on DJGPP and EMX.
3294         * lib/binary-io.c (__gl_setmode_check): Remove function.
3295         (set_binary_mode): Define here on DJGPP and EMX. Inline
3296         __gl_setmode_check. In case of a tty, don't return an error code.
3298 2019-05-28  James Youngman  <jay@gnu.org>
3300         dirent-safer: Make opendir_safer usable from C++.
3301         * lib/dirent-safer.h: use extern "C".
3303 2019-05-28  James Youngman  <jay@gnu.org>
3305         canonicalize: Make canonicalize_filename_mode usable from C++.
3306         * lib/canonicalize.h: use extern "C".
3308 2019-05-26  Akim Demaille  <akim@lrde.epita.fr>
3310         prefix-gnulib-mk: Fix CPPFLAGS migration.
3311         * build-aux/prefix-gnulib-mk (prefix_assignment): Don't forget the
3312         _a part of the library name.
3314 2019-05-24  Paul Eggert  <eggert@cs.ucla.edu>
3316         flexmember: update comments again
3317         * lib/flexmember.h, m4/flexmember.m4: Improve comments further.
3319         flexmember: update comment
3320         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER): Improve comment.
3322 2019-05-20  Bruno Haible  <bruno@clisp.org>
3324         setlocale: Improve fallback on macOS.
3325         * lib/setlocale.c (search): Optimize away a redundant strcmp()
3326         invocation.
3327         (locales_with_principal_territory): New array.
3328         (langcmp, get_main_locale_with_same_language): New functions.
3329         (locales_with_principal_language): New array.
3330         (terrcmp, get_main_locale_with_same_territory): New functions.
3331         (rpl_setlocale): When setlocale_single failed, try again with a locale
3332         that is more likely to exist. Don't warn if the environment variable
3333         SETLOCALE_VERBOSE is not set.
3335 2019-05-19  Bruno Haible  <bruno@clisp.org>
3337         localename: Fix default on macOS.
3338         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Don't test for CFLocaleCopyCurrent.
3339         * lib/localename.c: Remove includes for HAVE_CFLOCALECOPYCURRENT.
3340         (gl_locale_name_environ, gl_locale_name_default): Remove code for
3341         HAVE_CFLOCALECOPYCURRENT.
3342         * lib/localename.h (gl_locale_name_default): Update.
3344 2019-05-19  Karl Berry  <karl@freefriends.org>
3346         * config/srclistvars.sh (TEXINFOTEX): make ftp.gnu.org be the
3347         source for texinfo.tex, replacing TEXINFOSRC, per Texinfo maintainer.
3348         * config/srclist.txt (texinfo.tex): use it. (Also doc changes.)
3350 2019-05-18  Akim Demaille  <akim@lrde.epita.fr>
3352         maintainer-makefile: catch uses of $< in non-implicit rules
3353         * top/maint.mk (sc_prohibit_magic_number_exit): New.
3355 2019-05-18  Bruno Haible  <bruno@clisp.org>
3357         threadlib: Provide an easy way to avoid mingw's winpthreads library.
3358         * m4/threadlib.m4 (gl_AVOID_WINPTHREAD): New macro.
3359         (gl_THREADLIB_EARLY_BODY): Recognize when it was invoked, and set
3360         gl_use_threads accordingly.
3362 2019-05-18  Bruno Haible  <bruno@clisp.org>
3364         pthread_sigmask: Fix compilation error with --enable-threads=windows.
3365         Reported by Tim Rühsen in
3366         <https://lists.gnu.org/archive/html/bug-gnulib/2018-01/msg00018.html>
3367         and Michele Locati in
3368         <https://lists.gnu.org/archive/html/bug-gettext/2019-04/msg00057.html>.
3369         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Revert change from
3370         2015-06-01. Test whether pthread_sigmask is a macro, regardless of
3371         $LIBMULTITHREAD. Consider it regardless whether module 'threadlib' is
3372         in use and regardless which threads API is chosen.
3374 2019-05-14  Paul Eggert  <eggert@cs.ucla.edu>
3376         close-stream, closein, closeout: simplify
3377         I noticed this opportunity for simplification while drafting a
3378         new, related module that I haven’t had time to finish yet.
3379         * m4/close-stream.m4, m4/closein.m4, m4/closeout.m4: Remove.
3380         * modules/close-stream (Files): Remove m4/close-stream.m4.
3381         (configure.ac): Omit gl_CLOSE_STREAM.
3382         * modules/closein (Files): Remove m4/closein.m4
3383         (configure.ac): Omit gl_CLOSEIN.
3384         * modules/closeout (Files): Remove m4/closeout.m4.
3385         (configure.ac): Omit gl_CLOSEOUT.
3387 2019-05-12  Bruno Haible  <bruno@clisp.org>
3389         libtool-next-version: New program.
3390         * build-aux/libtool-next-version: New file.
3392 2019-05-11  John Darrington  <john@darrington.wattle.id.au>
3393             Bruno Haible  <bruno@clisp.org>
3395         version-etc: Ease translation.
3396         * lib/version-etc.c (version_etc_arn, emit_bug_reporting_address): Move
3397         URLs and formatting newlines out of translatable string.
3399 2019-05-11  Bruno Haible  <bruno@clisp.org>
3401         gnupload: Explain how to create symlinks.
3402         * build-aux/gnupload (usage): Add an example that creates symlinks.
3404 2019-05-11  Paul Eggert  <eggert@cs.ucla.edu>
3406         fpucw: port to gcc -pedantic
3407         * lib/fpucw.h (GET_FPUCW, SET_FPUCW):
3408         Use __extension__ if using ({ ... }).
3410         crypto/af_alg: port to strict C compilers
3411         * lib/af_alg.c: Include af_alg.h regardless, so that the
3412         compilation unit is nonempty.
3414 2019-05-10  Bruno Haible  <bruno@clisp.org>
3416         base64: Avoid false positive warning from Coverity.
3417         Reported by Kamil Dudka <kdudka@redhat.com>.
3418         Idea by Paul Eggert.
3419         * lib/base64.c (base64_encode_fast, base64_encode): Add a no-op
3420         '& 0x3f' to the array index expressions. This convinces Coverity that
3421         there is no out-of-bounds array reference, regardless of the input.
3423 2019-05-09  Bruno Haible  <bruno@clisp.org>
3425         gettext: Update to gettext 0.20.
3426         * modules/gettext (Files): Remove m4/codeset.m4, m4/fcntl-o.m4,
3427         m4/glibc2.m4, m4/glibc21.m4, m4/intdiv0.m4, m4/intl.m4, m4/intldir.m4,
3428         m4/intmax.m4, m4/inttypes_h.m4, m4/inttypes-pri.m4, m4/lcmessage.m4,
3429         m4/lock.m4, m4/longlong.m4, m4/printf-posix.m4, m4/size_max.m4,
3430         m4/stdint_h.m4, m4/threadlib.m4, m4/uintmax_t.m4, m4/visibility.m4,
3431         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4. Add m4/host-cpu-c-abi.m4.
3432         (configure.ac): Request infrastructure compatible with gettext 0.20.
3433         * m4/glibc2.m4: Remove file.
3434         * m4/intdiv0.m4: Remove file.
3435         * m4/intl.m4: Remove file.
3436         * m4/intldir.m4: Remove file.
3437         * m4/intmax.m4: Remove file.
3438         * m4/printf-posix.m4: Remove file.
3439         * m4/uintmax_t.m4: Remove file.
3440         * m4/gettext.m4: Update from gettext 0.20.
3441         * m4/po.m4: Likewise.
3443 2019-05-09  Paul Eggert  <eggert@cs.ucla.edu>
3445         verify: remove verify_true
3446         * NEWS: Mention this.
3447         * lib/verify.h (verify_true): Remove.
3448         * tests/test-verify.c (item): Test verify_expr, not verify_true.
3450         Support C2X and C++17 static_assert
3451         C2X and C++17 finally added support for a simple, single-argument
3452         ‘static_assert’ that implements what the Gnulib ‘verify’ macro was
3453         doing back in 2005.  Implement static_assert on older platforms.
3454         The only remaining advantage of ‘verify’ is a shorter name.
3455         * doc/posix-headers/assert.texi (assert.h):
3456         * doc/verify.texi (Compile-time Assertions):
3457         Modernize for C2X and C++17.
3458         * lib/verify.h (_GL_HAVE__STATIC_ASSERT1, _GL_HAVE_STATIC_ASSERT1):
3459         New macros.
3460         (_GL_HAVE__STATIC_ASSERT): Remove.
3461         (_GL_HAVE__STATIC_ASSERT): Rely more heavily on __STDC_VERSION__.
3462         (_GL_VERIFY_TRUE, _GL_VERIFY_TYPE): Remove 2nd arg, the diagnostic
3463         string.  All callers changed.
3464         (_GL_VERIFY): Require 3 or more args, of which only the first 2
3465         are used.  All callers changed.
3466         (_Static_assert): Allow either 1 or 2 args, and define if
3467         !_GL_HAVE__STATIC_ASSERT1 instead of defining if
3468         !_GL_HAVE__STATIC_ASSERT.
3469         (static_assert): Define if !_GL_HAVE_STATIC_ASSERT1 instead
3470         of defining if !_GL_HAVE_STATIC_ASSERT.
3471         (verify_expr, verify): Don’t bother trying to copy the expression
3472         into the diagnostic, since 1-argument static_assert doesn’t.
3473         (verify): Prefer 1-argument _Static_assert if it works.
3474         * m4/assert_h.m4 (gl_ASSERT_H): Check for 1-argument static_assert.
3476 2019-05-08  Paul Eggert  <eggert@cs.ucla.edu>
3478         Fix _GL_HAVE__STATIC_ASSERT typo
3479         * lib/verify.h (_Static_assert): For the FreeBSD workaround,
3480         use _GL_HAVE__STATIC_ASSERT, not _GL_HAVE_STATIC_ASSERT.
3482 2019-05-05  Bruno Haible  <bruno@clisp.org>
3484         wcwidth: Ensure width 1, not 2, for ambiguous characters.
3485         Reported by Kiyoshi KANAZAWA <yoi_no_myoujou@yahoo.co.jp>
3486         via Akim Demaille <akim.demaille@gmail.com>.
3487         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the width of U+2202. Use an
3488         en_US.UTF-8 locale, since that is more likely to be present than an
3489         fr_FR.UTF-8 locale.
3490         * tests/test-wcwidth.c (main): Check the width of U+2202.
3491         * doc/posix-functions/wcwidth.texi: Mention the issue.
3493 2019-05-03  Paul Eggert  <eggert@cs.ucla.edu>
3495         Port manywarnings to GCC 9
3496         * build-aux/gcc-warning.spec: Sort.  Add -Wattribute-alias,
3497         -Wc11-c2x-compat, -Wcast-result (for the D programming language),
3498         -Wclass-conversion, -Wdeprecated-copy, -Wdeprecated-copy-dtor,
3499         -Winit-list-lifetime, -Wpessimizing-move, -Wprio-ctor-dtor,
3500         -Wredundant-move.  Adjust to minor wording changes in GCC 9’s
3501         --help=warnings output.
3502         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wabsolute-value,
3503         -Waddress-of-packed-member, -Wattribute-warning, -Wcannot-profile,
3504         -Wmissing-profile.  Change -Wattribute-alias to -Wattribute-alias=2.
3506 2019-04-30  Paul Eggert  <eggert@cs.ucla.edu>
3508         Sync lib/mktime-internal.h from glibc
3509         * config/srclist.txt: Add entry for lib/mktime-internal.h.
3510         * lib/mktime-internal.h: Autoupdate.
3512 2019-04-28  Bruno Haible  <bruno@clisp.org>
3514         tls tests: Prevent that the test takes too long.
3515         * tests/test-tls.c: Include <signal.h>, <unistd.h>.
3516         (main): Let the test fail if it takes more than 10 minutes.
3517         * modules/tls-tests (configure.ac): Test whether 'alarm' is declared.
3519 2019-04-27  Bruno Haible  <bruno@clisp.org>
3521         lock tests: Prevent that the test takes too long.
3522         * tests/test-lock.c: Include <signal.h>, <unistd.h>.
3523         (main): Let the test fail if it takes more than 10 minutes.
3524         * modules/lock-tests (configure.ac): Test whether 'alarm' is declared.
3526 2019-04-27  Bruno Haible  <bruno@clisp.org>
3528         localename: Fix crash on mingw (regression from 2018-11-23).
3529         * lib/localename.c (gl_locale_name_posix): Don't attempt to convert a
3530         locale name that is null.
3532 2019-04-27  Bruno Haible  <bruno@clisp.org>
3534         Fix gcc warnings on 64-bit mode mingw.
3535         * lib/clean-temp.c: Include <stdint.h> instead of defining uintptr_t.
3536         * lib/gl_array_list.c: Likewise.
3537         * lib/gl_array_map.c: Likewise.
3538         * lib/gl_array_set.c: Likewise.
3539         * lib/gl_carray_list.c: Likewise.
3540         * lib/gl_sublist.c: Likewise.
3541         * lib/gl_avltreehash_list.c (uintptr_t): Remove definition.
3542         * lib/gl_rbtreehash_list.c (uintptr_t): Likewise.
3543         * lib/gl_hash_map.c (uintptr_t): Likewise.
3544         * lib/gl_hash_set.c (uintptr_t): Likewise.
3545         * lib/gl_linkedhash_list.c (uintptr_t): Likewise.
3546         * lib/gl_linkedhash_map.c (uintptr_t): Likewise.
3547         * lib/gl_linkedhash_set.c (uintptr_t): Likewise.
3548         * lib/iconv.c (uintptr_t): Likewise.
3549         * lib/iconv_close.c (uintptr_t): Likewise.
3550         * tests/test-lock.c: Include <stdint.h>.
3551         (once_contender_thread, test_once): Cast through 'intptr_t' instead of
3552         'long'.
3553         * modules/clean-temp (Depends-on): Add stdint.
3554         * modules/array-list (Depends-on): Likewise.
3555         * modules/array-map (Depends-on): Likewise.
3556         * modules/array-set (Depends-on): Likewise.
3557         * modules/carray-list (Depends-on): Likewise.
3558         * modules/sublist (Depends-on): Likewise.
3559         * modules/lock-tests (Depends-on): Likewise.
3561 2019-04-27  Bruno Haible  <bruno@clisp.org>
3563         error: Tweak indentation.
3564         * lib/error.c: Correct indentation.
3566 2019-04-27  Bruno Haible  <bruno@clisp.org>
3568         term-style-control: Fix gcc warning on mingw.
3569         * lib/term-style-control.c (ensure_other_signal_handlers): Reduce scope
3570         of i.
3572 2019-04-26  Bruno Haible  <bruno@clisp.org>
3574         pipe-filter-gi, pipe-filter-ii: Fix gcc warning.
3575         * lib/pipe-filter-aux.h (read): Undefine before redefinition.
3577 2019-04-26  Bruno Haible  <bruno@clisp.org>
3579         relocatable-prog: Fix gcc warning on mingw.
3580         * lib/progreloc.c (maybe_executable): Don't define on native Windows and
3581         on EMX.
3583 2019-04-02  Bruno Haible  <bruno@clisp.org>
3585         gitsub.sh: New file.
3586         * top/gitsub.sh: New file.
3588 2019-04-18  Akim Demaille  <akim@lrde.epita.fr>
3590         argmatch: use void* for raw memory pointers
3591         * lib/argmatch.h, lib/argmatch.c (argmatch, argmatch_valid)
3592         (__xargmatch_internal, argmatch_to_argument): Use void* for pointers
3593         to "values", keep char* for strings.
3595 2019-04-21  Akim Demaille  <akim@lrde.epita.fr>
3597         prefix-gnulib-mk: fix the support for gnulib-po
3598         * build-aux/prefix-gnulib-mk (prefix_assignment): Remove useless $res.
3599         Don't touch HAVE_* variables.
3600         Map AM_CPPFLAGS and AM_CPPFLAGS to the library's corresponding variables.
3602 2019-04-18  Bernhard Voelker  <mail@bernhard-voelker.de>
3604         di-set: allow free with 'ino_map' being NULL.
3605         * lib/di-set.c (di_set_free): Avoid ino_map_free() when dis->ino_map
3606         is NULL.  Bug introduced in commit 3703dbbe88dd.
3607         * tests/test-di-set.c: Add di_set_free() right after di_set_alloc()
3608         as a test.
3610 2019-04-14  Paul Eggert  <eggert@cs.ucla.edu>
3612         * lib/str-two-way.h: Fix comment typo.
3614 2019-04-13  Bruno Haible  <bruno@clisp.org>
3616         x-to-1: Restore ability to use original calling convention.
3617         * build-aux/x-to-1.in: Add comments. Accept the original form of
3618         HELP2MAN argument as well as the form expected since 2012-12-12.
3620 2019-04-13  Bruno Haible  <bruno@clisp.org>
3622         x-to-1: Avoid failure due to missing perl modules.
3623         * build-aux/x-to-1.in: Test whether all the perl modules that help2man
3624         needs are installed.
3626 2019-04-13  Bruno Haible  <bruno@clisp.org>
3628         openmp-init: New module.
3629         * modules/openmp-init: New file.
3630         * modules/openmp: (Files, Depends-on, configure.ac, Makefile.am): Revert
3631         the changes from 2019-04-09.
3633 2019-04-12  Bruno Haible  <bruno@clisp.org>
3635         signbit: Fix compilation error when gnulib's math.h exists twice.
3636         * lib/math.in.h (GNULIB_defined_signbit): New macro.
3638 2019-04-12  Bruno Haible  <bruno@clisp.org>
3640         openmp: Fix compilation error on platforms without OpenMP.
3641         * lib/omp-init.c: Include <omp.h> only if _OPENMP.
3643 2019-04-09  Bernhard Voelker  <mail@bernhard-voelker.de>
3645         mountlist: make parsing /proc/self/mountinfo more robust
3646         Cater for the following issues with mountinfo parsing (the first
3647         one was reported by Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
3648         in <https://bugs.gnu.org/35137>).
3649         1. The fields source, target, mntroot and fstype may contain characters
3650         like '\r'; sscanf(3) fails to read such values with the %s format
3651         specifier because it would stop at such characters.
3652         Example: "mount -t tmpfs tmpfs /foo^Mbar".
3653         The only true separator in that file is the ' ' character.
3654         2. The source field may be an empty string, which happens e.g. with
3655         "mount -t tmpfs '' /target".
3656         3. The fstype field may contain mangled characters as well which need
3657         unescaping.
3658         * lib/mountlist.c (terminate_at_blank): Add utility function.
3659         (read_file_system_list): In the block trying to read the mountinfo file,
3660         avoid using sscanf(3) with %s format; instead, parse the above fields
3661         separated by spaces one by one.
3662         This also handles the case when the source field is an empty string.
3663         Unescape the fstype field.
3665 2019-04-09  Bruno Haible  <bruno@clisp.org>
3667         openmp: Add workaround for 32-bit programs on AIX.
3668         * lib/omp.in.h: New file.
3669         * lib/omp-init.c: New file, based on lib/nproc.c.
3670         * m4/omp_h.m4: New file.
3671         * modules/openmp (Files): Add them.
3672         (Depends-on): Add include_next, c-ctype, setenv.
3673         (configure.ac): Invoke gl_OMP_H.
3674         (Makefile.am): Add rules to create omp.h and compile omp-init.c.
3675         (Include): Mention <omp.h>.
3677 2019-04-09  Bruno Haible  <bruno@clisp.org>
3679         nproc: Fix return value for privileged processes.
3680         * lib/nproc.c (num_processors_ignoring_omp): Test getuid(), not
3681         getpid().
3683 2019-04-07  Bruno Haible  <bruno@clisp.org>
3685         Add copyright notices in several files.
3686         Reported by <ineiev@gnu.org> in <https://savannah.gnu.org/bugs/?54809>.
3687         * lib/_Noreturn.h: Add LGPLv2+ copyright notice.
3688         * lib/libunistring.valgrind: Likewise.
3689         * lib/iconv_open-*.gperf: Add GPLv2+ copyright notice.
3690         * lib/uniname/gen-uninames.lisp: Add GPLv3+ copyright notice.
3691         * lib/memchr.valgrind: Likewise.
3692         * lib/memchr2.valgrind: Likewise.
3693         * lib/rawmemchr.valgrind: Likewise.
3694         * lib/relocatable.valgrind: Likewise.
3695         * lib/strchrnul.valgrind: Likewise.
3697 2019-03-25  Bruno Haible  <bruno@clisp.org>
3699         term-style-control tests: Fix link error.
3700         Reported by Tom G. Christensen in
3701         <https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00108.html>.
3702         * modules/term-style-control-tests (Makefile.am): Link
3703         test-term-style-control-hello and test-term-style-control-yes against
3704         LIBINTL.
3706 2019-03-24  Bruno Haible  <bruno@clisp.org>
3708         term-style-control: Add tests.
3709         * tests/test-term-style-control-hello.c: New file.
3710         * tests/test-term-style-control-yes.c: New file.
3711         * modules/term-style-control-tests: New file.
3713         term-style-control: New module.
3714         * lib/term-style-control.h: New file, based on libtextstyle's
3715         term-ostream.oo.h and term-ostream.oo.c.
3716         * lib/term-style-control.c: New file, based on libtextstyle's
3717         term-ostream.oo.c.
3718         * modules/term-style-control: New file.
3720 2019-03-22  Akim Demaille  <akim@lrde.epita.fr>
3722         _Noreturn: beware of C's _Noreturn in C++ pre C++11.
3723         * lib/_Noreturn.h, m4/gnulib-common.m4: Using C's _Noreturn in
3724         C++98 appears to be supported by Clang, but not by GCC nor ICC.
3726 2019-03-23  Bruno Haible  <bruno@clisp.org>
3728         Support cross-compilation to musl libc.
3729         Reported by Necktwi Ozfguah <necktwi@ferryfair.com>.
3730         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Add cross-compilation guesses for
3731         musl libc.
3732         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
3733         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
3734         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
3735         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
3736         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
3737         * m4/chown.m4 (gl_FUNC_CHOWN): Likewise.
3738         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
3739         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
3740         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
3741         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
3742         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Likewise.
3743         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Likewise.
3744         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
3745         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
3746         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
3747         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
3748         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
3749         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
3750         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
3751         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
3752         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
3753         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
3754         * m4/getgroups.m4 (AC_FUNC_GETGROUPS, gl_FUNC_GETGROUPS): Likewise.
3755         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
3756         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
3757         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
3758         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
3759         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
3760         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): Likewise.
3761         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
3762         * m4/log.m4 (gl_FUNC_LOG): Likewise.
3763         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
3764         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
3765         * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
3766         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
3767         * m4/log10l.m4 (gl_FUNC_LOG10L): Likewise.
3768         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
3769         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
3770         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
3771         * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
3772         * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
3773         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Likewise.
3774         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
3775         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
3776         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
3777         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
3778         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
3779         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
3780         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_INFINITE,
3781         gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_A,
3782         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO, gl_SNPRINTF_TRUNCATION_C99,
3783         gl_SNPRINTF_RETVAL_C99, gl_SNPRINTF_DIRECTIVE_N,
3784         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
3785         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
3786         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
3787         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Likewise.
3788         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
3789         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
3790         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
3791         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
3792         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
3793         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
3794         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
3795         * m4/setenv.m4 (gl_FUNC_SETENV): Likewise.
3796         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
3797         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
3798         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
3799         * m4/strerror.m4 (gl_FUNC_STRERROR, gl_FUNC_STRERROR_0): Likewise.
3800         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
3801         * m4/strtold.m4 (gl_FUNC_STRTOLD): Likewise.
3802         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
3803         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
3804         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
3805         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
3806         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
3807         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
3808         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
3809         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
3811 2019-03-23  Bruno Haible  <bruno@clisp.org>
3813         posix_spawn_file_actions_*: Document musl libc bugs.
3814         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
3815         the bug.
3816         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Likewise.
3817         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Likewise.
3818         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): When
3819         cross-compiling to a musl system, guess no.
3820         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): Likewise.
3821         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
3823 2019-03-23  Bruno Haible  <bruno@clisp.org>
3825         futimens: Document musl libc bug.
3826         * doc/posix-functions/futimens.texi: Mention the bug.
3827         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Require AC_CANONICAL_HOST. When
3828         cross-compiling, guess no on glibc and musl systems.
3830 2019-03-23  Bruno Haible  <bruno@clisp.org>
3832         Clarify that cross-compilation guesses are guesses.
3833         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): When cross-compiling, add
3834         prefix 'guessing ' to gl_cv_func_chown_follows_symlink.
3835         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): When cross-compiling, add
3836         prefix 'guessing ' to gl_cv_func_fchownat_nofollow_works.
3837         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): When
3838         cross-compiling, add prefix 'guessing ' to gl_cv_func_getcwd_abort_bug.
3839         * m4/glob.m4 (gl_GLOB): When cross-compiling, add prefix 'guessing ' to
3840         gl_cv_glob_lists_symlinks.
3841         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): When cross-compiling, add prefix
3842         'guessing ' to ac_cv_func_malloc_0_nonnull.
3843         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): When cross-compiling, add prefix
3844         'guessing ' to ac_cv_func_realloc_0_nonnull.
3845         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, add prefix
3846         'guessing ' to gl_cv_func_poll.
3847         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): When cross-
3848         compiling, add prefix 'guessing ' to gl_cv_func_iconv_supports_utf.
3849         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Update accordingly.
3851 2019-03-23  Bruno Haible  <bruno@clisp.org>
3853         strtold: Fix typo.
3854         * m4/strtold.m4 (gl_FUNC_STRTOLD): Fix typo in variable name.
3856 2019-03-23  Bruno Haible  <bruno@clisp.org>
3858         noreturn: In C++ mode with clang, use _Noreturn as fallback.
3859         Reported by Akim Demaille.
3860         * lib/noreturn.h (_GL_NORETURN_FUNC): In C++ mode with clang, when
3861         [[noreturn]] would not work, use _Noreturn instead.
3863 2019-03-22  Akim Demaille  <akim@lrde.epita.fr>
3865         libtextstyle-optional: Fix compiler warnings.
3866         * lib/textstyle.in.h (html_styled_ostream_create): Flag arguments
3867         as unused.
3869 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
3871         bitset: fix memory leaks
3872         Reported by Bruno Haible.
3873         https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00027.html
3874         * lib/bitset/vector.c (vbitset_free): New.
3875         (vbitset_vtable): Use it.
3877 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
3879         bitset: minor changes
3880         * lib/bitset/base.h (bitset_alloc_type): Remove, unused.
3881         * lib/bitset/table.c: Formatting changes.
3882         Remove useless braces.
3883         Prefer using else in cascades of if/else-if with returns.
3884         * lib/bitset/vector.c: Reduce scopes.
3886 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
3888         bitset: expose bitset_resize
3889         * lib/bitset.h (bitset_resize): Bounce on the polymorphic implementation.
3890         * tests/test-bitset.c (check_attributes): Check bitset_resize.
3891         (main): Use a variable bitset as reference, since fixed does not support resize.
3893 2019-03-19  Bruno Haible  <bruno@clisp.org>
3895         doc: Document the 'stdnoreturn' and 'noreturn' modules.
3896         Reported by Akim Demaille.
3897         * doc/noreturn.texi: New file.
3898         * doc/gnulib.texi: Include it.
3900 2019-03-19  Bruno Haible  <bruno@clisp.org>
3902         doc: Document how to use 'static inline'.
3903         * doc/static-inline.texi: New file.
3904         * doc/gnulib.texi: Include it.
3906 2019-03-19  Bruno Haible  <bruno@clisp.org>
3908         libtextstyle-optional: Add tests.
3909         * tests/test-libtextstyle.c: New file, based on libtextstyle's
3910         adhoc-tests/hello.c.
3911         * tests/test-libtextstyle-default.css: New file, copied from
3912         libtextstyle's adhoc-tests/hello-default.css.
3913         * modules/libtextstyle-optional-tests: New file.
3915         libtextstyle-optional: New module.
3916         * lib/textstyle.in.h: New file, based on libtextstyle's textstyle.h.
3917         * m4/libtextstyle-optional.m4: New file, based on m4/libtextstyle.m4.
3918         * modules/libtextstyle-optional: New file.
3920 2019-03-19  Bruno Haible  <bruno@clisp.org>
3922         c-stack: Make signal handlers more reliable.
3923         * lib/c-stack.c (progname): New variable.
3924         (die): Use it.
3925         (c_stack_action): Initialize it.
3926         (segv_handler): Save and restore errno.
3928 2019-03-19  Bruno Haible  <bruno@clisp.org>
3930         Help making signal handlers more reliable.
3931         * m4/gnulib-common.m4 (gl_COMMON_BODY): Emit definition of
3932         _GL_ASYNC_SAFE into config.h.
3933         * lib/nanosleep.c (sighandler): Mark as _GL_ASYNC_SAFE.
3934         * lib/fatal-signal.h (at_fatal_signal): Add _GL_ASYNC_SAFE marker to
3935         argument.
3936         * lib/fatal-signal.c (action_t, uninstall_handlers,
3937         fatal_signal_handler): Mark as _GL_ASYNC_SAFE.
3938         * lib/clean-temp.c (cleanup_action): Mark as _GL_ASYNC_SAFE.
3939         * lib/wait-process.c (cleanup_slaves, cleanup_slaves_action): Mark as
3940         _GL_ASYNC_SAFE.
3941         * lib/c-stack.h (c_stack_action): Add _GL_ASYNC_SAFE marker to argument.
3942         * lib/c-stack.c: Add _GL_ASYNC_SAFE markers.
3944 2019-03-18  Bruno Haible  <bruno@clisp.org>
3946         _Noreturn: clang and MSVC do support [[noreturn]] in C++11 mode.
3947         * lib/_Noreturn.h: Use [[noreturn]] if __GNUC__ and __GNUC_MINOR__
3948         indicate clang, or if _MSC_VER indicates MSVC++ 14.0 or newer.
3950 2019-03-17  Akim Demaille  <akim@lrde.epita.fr>
3952         _Noreturn: GCC 4.7 does not support [[noreturn]] in C++11 mode
3953         * lib/_Noreturn.h, m4/gnulib-common.m4: Don't use [[noreturn]] before
3954         GCC 4.8.
3956 2019-03-17  Paul Eggert  <eggert@cs.ucla.edu>
3958         fts: minor simplification
3959         * lib/fts.c (fts_safe_changedir): Remove redundant assignment.
3961 2019-03-17  Akim Demaille  <akim@lrde.epita.fr>
3963         bitset, timevar: Depend on c99.
3964         Reported by Bruno Haible.
3965         * modules/bitset, modules/timevar (Depends-on): Add c99.
3967 2019-03-16  Akim Demaille  <akim@lrde.epita.fr>
3969         bitset: a bit (...) more tests
3970         * tests/test-bitset.c (check_attributes): Check zero and ones.
3972 2019-03-16  Akim Demaille  <akim@lrde.epita.fr>
3974         bitset: fix overflows.
3975         Reported by Bruno Haible.
3976         https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00017.html
3977         * lib/bitset/table.c (tbitset_test): last_bit is the position of
3978         the bit in the array of bitset_word, so be sure to take its modulo
3979         number-of-bits-in-bitset-word (i.e., EBITSET_ELT_WORDS).
3980         * lib/bitset/list.c (lbitset_unused_clear): Likewise.
3982 2019-03-14  Akim Demaille  <akim@lrde.epita.fr>
3984         bitset: style changes.
3985         * lib/bitset/table.c: Use NULL, not 0, for pointers.
3986         Formatting changes.
3987         (tbitset_list): Reduce scopes.
3989 2019-03-16  Bruno Haible  <bruno@clisp.org>
3991         fatal-signal: Pass the signal number to the action.
3992         * lib/fatal-signal.h (at_fatal_signal): Change the signature.
3993         * lib/fatal-signal.c (action_t): Take the signal number as parameter.
3994         (fatal_signal_handler): Pass the signal number to the action.
3995         * lib/clean-temp.c (cleanup_action): Renamed from cleanup. Take the
3996         signal number as parameter.
3997         (create_temp_dir): Update.
3998         * lib/wait-process.c (cleanup_slaves_action): New function.
3999         (register_slave_subprocess): Update at_fatal_signal invocation.
4000         * NEWS: Mention the change.
4002 2019-03-16  Bruno Haible  <bruno@clisp.org>
4004         fatal-signal: Add function that lists the fatal signals.
4005         * lib/fatal-signal.h (get_fatal_signals): New declaration.
4006         * lib/fatal-signal.c (get_fatal_signals): New function.
4008 2019-03-14  Bruno Haible  <bruno@clisp.org>
4010         isatty: Make it return true in Cygwin consoles on native Windows.
4011         * lib/isatty.c: Include <string.h>.
4012         (GetProcAddress): New macro.
4013         (GetNamedPipeClientProcessIdFuncType): New type.
4014         (GetNamedPipeClientProcessIdFunc): New variable.
4015         (QueryFullProcessImageNameFuncType): New type.
4016         (QueryFullProcessImageNameFunc): New variable.
4017         (initialized): New variable.
4018         (initialize): New function.
4019         (IsCygwinConsoleHandle): New function.
4020         (isatty): Invoke it.
4021         * doc/posix-functions/isatty.texi: Mention the issue.
4023 2019-03-14  Bruno Haible  <bruno@clisp.org>
4025         all: Update URLs to msdn.microsoft.com.
4026         * lib/stat-w32.c et al.: Update URLs after most of msdn.microsoft.com
4027         was moved to docs.microsoft.com.
4029 2019-03-13  Bruno Haible  <bruno@clisp.org>
4031         gnulib-tool: Clarify the coding style.
4032         Suggested by Pavel Raiskup <praiskup@redhat.com>.
4033         * gnulib-tool: Add comment about coding style.
4035 2019-03-11  Paul Eggert  <eggert@cs.ucla.edu>
4037         strtod: fix clash with strtold
4038         Problem reported for RHEL 5 by Jesse Caldwell (Bug#34817).
4039         * lib/strtod.c (compute_minus_zero, minus_zero):
4040         Simplify by remving the macro / external variable,
4041         and having just a function.  User changed.  This avoids
4042         the need for an external variable that might clash.
4044 2019-03-10  Bruno Haible  <bruno@clisp.org>
4046         alloca-opt: Fix conflict mingw's new <alloca.h> file.
4047         Reported by Eli Zaretskii <eliz@gnu.org>.
4048         * lib/alloca.in.h: On mingw systems that have <alloca.h>, include that.
4049         * m4/alloca.m4 (gl_FUNC_ALLOCA): Set HAVE_ALLOCA_H.
4050         * modules/alloca-opt (Makefile.am): Substitute HAVE_ALLOCA_H.
4052 2019-03-10  Bruno Haible  <bruno@clisp.org>
4054         tests: Avoid havoc with "gcc -fcheck-pointer-bounds".
4055         * tests/test-fprintf-posix2.c: Skip the test when -fcheck-pointer-bounds
4056         is in use.
4057         * tests/test-printf-posix2.c: Likewise.
4059 2019-03-10  Bruno Haible  <bruno@clisp.org>
4061         uninorm tests: Free allocated memory.
4062         * tests/uninorm/test-u32-normalize-big.h
4063         (struct normalization_test_file): Remove 'const' from allocated member.
4064         (free_normalization_test_file): New declaration.
4065         * tests/uninorm/test-u32-normalize-big.c (test_other): Free allocated
4066         memory.
4067         (free_normalization_test_file): New function.
4068         * tests/uninorm/test-u32-nfc-big.c (main): Free allocated
4069         'struct normalization_test_file' contents.
4070         * tests/uninorm/test-u32-nfd-big.c (main): Likewise.
4071         * tests/uninorm/test-u32-nfkc-big.c (main): Likewise.
4072         * tests/uninorm/test-u32-nfkd-big.c (main): Likewise.
4074 2019-03-10  Bruno Haible  <bruno@clisp.org>
4076         di-set: Fix memory leak.
4077         * lib/di-set.c (di_set_free): Free the ino_map through ino_map_free(),
4078         not free().
4080 2019-03-10  Bruno Haible  <bruno@clisp.org>
4082         tests: Free allocated memory.
4083         Reported by <deltatau@protonmail.com> via Assaf Gordon.
4084         * tests/test-astrxfrm.c (main): Free allocated memory.
4085         * tests/test-bitset.c (compare, check_attributes): Free allocated
4086         bitsets.
4087         * tests/test-filenamecat.c (main): Free allocated memory.
4088         * tests/test-freadahead.c (main): Free allocated memory and close stdin.
4089         * tests/test-freadptr.c (main): Likewise.
4090         * tests/test-freadptr2.c (main): Free allocated memory.
4091         * tests/test-freadseek.c (main): Likewise.
4092         * tests/test-gc-arcfour.c (main): Close allocated context.
4093         * tests/test-gc-arctwo.c (main): Likewise.
4094         * tests/test-gc-des.c (main): Close all allocated contexts.
4095         * tests/test-pipe-filter-gi1.c (main): Free allocated memory.
4096         * tests/test-pipe-filter-ii1.c (main): Likewise.
4097         * tests/test-posix_spawn_file_actions_addchdir.c (main): Destroy the
4098         allocated file actions.
4099         * tests/test-posix_spawn_file_actions_addclose.c (main): Likewise.
4100         * tests/test-posix_spawn_file_actions_adddup2.c (main): Likewise.
4101         * tests/test-posix_spawn_file_actions_addopen.c (main): Likewise.
4102         * tests/test-sameacls.c (main): Free allocated memory and ACLs.
4103         * tests/test-strfmon_l.c (main): Free allocated locales.
4104         * tests/test-striconveh.c (main): Free allocated iconv_t objects.
4105         * tests/uniconv/test-u8-conv-to-enc.c (main): Free allocated memory.
4106         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
4107         * tests/uniconv/test-u32-conv-to-enc.c (main): Likewise.
4108         * tests/unistr/test-chr.h (main): Free input32.
4109         * tests/unistr/test-strchr.h (test_strchr): Likewise.
4111 2019-03-10  Bruno Haible  <bruno@clisp.org>
4113         tests: Prepare for using valgrind.
4114         * tests/*.sh: Invoke all test programs through ${CHECKER}.
4115         * tests/*/*.sh: Likewise.
4116         * tests/test-freadptr.c (main): Update accordingly.
4117         * tests/test-freadseek.c (main): Likewise.
4119 2019-03-09  Bruno Haible  <bruno@clisp.org>
4121         get-rusage-as, pthread_sigmask tests: Fix -fsanitize=thread findings.
4122         * lib/get-rusage-as.c (get_rusage_as): When compiled by
4123         "gcc -fsanitize=thread", don't try get_rusage_as_via_setrlimit.
4124         * tests/test-pthread_sigmask2.c (main): Clean up the killer_thread
4125         before exiting.
4127 2019-03-09  Jim Meyering  <meyering@fb.com>
4129         test-userspec.c: don't print NULL
4130         * tests/test-userspec.c (main): A test release of gcc,
4131         9.0.1 20190310, warned that this test would attempt to
4132         print a NULL pointer via a %s printf format.  Fix that
4133         and remove the unnecessary preceding "!diag" conjunct.
4134         Also add a comment.
4136 2019-03-03  Bruno Haible  <bruno@clisp.org>
4138         getloadavg: Write NULL for the null pointer.
4139         Reported by Michal Privoznik <mprivozn@redhat.com>.
4140         * lib/getloadavg.c (getloadavg): Write NULL instead of 0.
4142 2019-02-28  Michal Privoznik  <mprivozn@redhat.com>
4144         alloca, tsearch-tests: Write NULL for the null pointer.
4145         * lib/alloca.c (i00afunc): Write NULL instead of 0.
4146         * tests/test-tsearch.c (mangle_tree): Likewise.
4148 2019-03-09  Bruno Haible  <bruno@clisp.org>
4150         strfmon_l: Fix -fsanitize=address finding.
4151         * lib/strfmon_l.c: Include <errno.h>, <stdbool.h>, <stdlib.h>,
4152         <string.h>.
4153         (MAX_ARGS): Renamed from MAX_ARG_WORDS.
4154         (directive_t, directives_t): New types.
4155         (fmon_parse): New function.
4156         (rpl_strfmon_l): Don't call va_arg more often than needed for the
4157         format string. Consume 'long double' arguments in places where the
4158         format string indicates so.
4159         * modules/strfmon_l (Depends-on): Add 'stdbool'.
4161 2019-03-09  Bruno Haible  <bruno@clisp.org>
4163         crypto/des: Fix undefined behaviour.
4164         * lib/des.c (READ_64BIT_DATA): Cast bytes to 'unsigned int', to avoid
4165         shift operations on 'int'.
4167 2019-03-09  Bruno Haible  <bruno@clisp.org>
4169         Fix undefined behaviour.
4170         * lib/bitrotate.h (rotl16, rotr16, rotl8, rotr8): Cast x to
4171         'unsigned int', to avoid shift operations on 'int'.
4172         * lib/xmemdup0.c (xmemdup0): Don't invoke memcpy with a zero size.
4173         * tests/test-count-leading-zeros.c (main): Use a random number that has
4174         as many bits as TYPE, not only 2*15 or 2*31 bits.
4175         * tests/test-count-trailing-zeros.c (main): Likewise.
4176         * tests/test-count-one-bits.c (main): Likewise.
4177         * tests/test-memmem.c: Don't include "null-ptr.h".
4178         (main): Use zerosize_ptr() instead of null_ptr().
4179         * modules/memmem-tests (Files): Remove tests/null-ptr.h.
4181 2019-03-08  Bruno Haible  <bruno@clisp.org>
4183         unilbrk/u*-possible-linebreaks: Fix undefined behaviour.
4184         Reported by Jeffrey Walton <noloader@gmail.com>.
4185         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks): Don't
4186         invoke memset with a zero size.
4187         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
4188         Likewise.
4189         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
4190         Adjust accordingly.
4192 2019-03-08  Bruno Haible  <bruno@clisp.org>
4194         unistr/*, uniconv/*: Fix undefined behaviour.
4195         Reported by Jeffrey Walton <noloader@gmail.com>.
4196         * lib/unistr/u-cpy.h (FUNC): Don't invoke memcpy with a zero size.
4197         * lib/unistr/u-cpy-alloc.h (FUNC): Likewise.
4198         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
4199         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
4201 2019-03-08  Bruno Haible  <bruno@clisp.org>
4203         unistr/u8-cmp: Fix undefined behaviour.
4204         Reported by Jeffrey Walton <noloader@gmail.com>.
4205         * lib/unistr/u8-cmp.c (u8_cmp): Don't invoke memcmp if n is zero.
4207 2019-03-08  Bruno Haible  <bruno@clisp.org>
4209         unictype/numeric: Fix undefined behaviour.
4210         Reported by Jeffrey Walton <noloader@gmail.com>.
4211         * lib/unictype/numeric.c (uc_numeric_value): Avoid undefined behaviour
4212         on shift overflow, caught by "gcc -fsanitize=undefined".
4213         * lib/unictype/bidi_of.c (uc_bidi_class): Add cast, for clarity.
4214         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
4215         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
4217 2019-03-05  Paul Eggert  <eggert@cs.ucla.edu>
4219         git-version-gen: fix --version copyright year
4220         * build-aux/git-version-gen, build-aux/move-if-change (version):
4221         --version output copyright year is now taken from script year,
4222         so that it no longer needs to be updated by hand.
4224 2019-03-04  Bruno Haible  <bruno@clisp.org>
4226         relocatable-prog: Use wrapper-free installation on Mac OS X, take 2.
4227         This approach supports relocatable installation of shared libraries
4228         which depend on other shared libraries from the same package.
4229         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Determine use_macos_tools.
4230         If use_macos_tools is true, use reloc-ldflags and set LIBTOOL to be a
4231         wrapper around the original LIBTOOL.
4232         * build-aux/reloc-ldflags: Add support for Mac OS X, which uses the
4233         token '@loader_path' instead of '$ORIGIN'.
4234         * build-aux/libtool-reloc: New file.
4235         * modules/relocatable-prog (Files): Add it.
4236         * doc/relocatable-maint.texi (Supporting Relocation): Update to match
4237         the recent changes. Document the need to set the *_LDFLAGS of libraries.
4238         RELOCATABLE_LIBRARY_PATH and RELOCATABLE_CONFIG_H_DIR should be set in
4239         Makefile.am, not in configure.ac.
4241 2019-03-04  Bruno Haible  <bruno@clisp.org>
4243         relocatable-prog: Revert "Use wrapper-free installation on Mac OS X."
4244         * build-aux/install-reloc: Revert change.
4245         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
4247 2019-02-24  Paul Eggert  <eggert@cs.ucla.edu>
4249         nstrftime: support the ‘+’ flag
4250         * lib/nstrftime.c (add, __strftime_internal):
4251         Add support for the ‘+’ flag introduced in POSIX.1-2017.
4252         (__strftime_internal): New arg ‘width’.  All uses changed.
4253         (DO_YEARISH, DO_MAYBE_SIGNED_NUMBER): New macros.
4255 2019-02-24  Bruno Haible  <bruno@clisp.org>
4257         relocatable-prog: Improve verbose output.
4258         * build-aux/install-reloc (func_verbose): Escape characters that would
4259         be interpreted by the shell.
4261 2019-02-24  Bruno Haible  <bruno@clisp.org>
4263         stat, lstat: Fix conflict with relocatable-prog-wrapper module.
4264         * lib/stat.c: On platforms other than OSF/1, include <sys/stat.h>, not
4265         "sys/stat.h".
4266         * lib/lstat.c: Likewise.
4267         * lib/fstat.c: Likewise.
4268         * lib/fstatat.c: Likewise.
4270 2019-02-23  Bernhard Voelker  <mail@bernhard-voelker.de>
4272         long-options: add parse_gnu_standard_options_only
4273         Discussed in https://bugs.gnu.org/33468 .
4275         * lib/long-options.c (parse_long_options): Use EXIT_SUCCESS instead of 0
4276         (parse_gnu_standard_options_only): Add function to process
4277         the GNU default options --help and --version and fail for
4278         any other unknown long or short option. See
4279         https://gnu.org/prep/standards/html_node/Command_002dLine-Interfaces.html
4280         * lib/long-options.h (parse_gnu_standard_options_only): Declare it.
4281         * modules/long-options (depends-on): Add stdbool, exitfail.
4282         * top/maint.mk (sc_prohibit_long_options_without_use): Update
4283         syntax-check rule, add new function name.
4285 2019-02-23  Bruno Haible  <bruno@clisp.org>
4287         relocatable-prog: Update documentation.
4288         * doc/relocatable-maint.texi (Supporting Relocation): Update to match
4289         the recent changes.
4291 2019-02-23  Paul Eggert  <eggert@cs.ucla.edu>
4293         nstrftime: tweak arg order
4294         * lib/nstrftime.c (__strftime_internal): Interchange arg order.
4295         All callers changed.  Suggested by TAMUKI Shoichi in:
4296         https://lists.gnu.org/r/bug-gnulib/2019-02/msg00052.html
4298 2019-02-23  Bruno Haible  <bruno@clisp.org>
4300         relocatable-prog: Use wrapper-free installation also on Mac OS X.
4301         Reported by Paul Smith <psmith@gnu.org>.
4302         * build-aux/install-reloc: Accept a 'mode' argument as first argument.
4303         (func_relativize): New function, from gnulib-tool.
4304         Handle mode 'macosx' through invocations of 'otool' and
4305         'install_name_tool'.
4306         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Determine use_macos_tools.
4307         If use_macos_tools is true, set INSTALL_PROGRAM_ENV to an
4308         'install-reloc' invocation with mode 'macosx'.
4310 2019-02-23  Bruno Haible  <bruno@clisp.org>
4312         relocatable-prog: Use $ORIGIN trick also on GNU/Hurd.
4313         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Use $ORIGIN trick also on
4314         Hurd with glibc >= 2.27.
4316 2019-02-21  Paul Eggert  <eggert@cs.ucla.edu>
4318         nstrftime: merge glibc strftime changes
4319         This incorporates:
4320         2019-02-11 Fix a few whitespace arrangement inconsistencies
4321         2019-01-24 strftime: Pass flags from "%EY" to "%Ey" [BZ #24096]
4322         2019-01-24 Set the default width of "%Ey" to 2 [BZ #23758]
4323         2019-01-11 strftime: use the "L_" macro with character literals
4324         * lib/nstrftime.c (__strftime_internal): New arg yr_spec.  All
4325         callers changed.  Default width of %Ey is now 2.  This is needed
4326         for proper handling of Japanese dates starting on 2019-05-01.
4328 2019-02-19  Bruno Haible  <bruno@clisp.org>
4330         relocatable-prog: Use $ORIGIN trick on more platforms.
4331         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Use $ORIGIN trick also on
4332         FreeBSD >= 7.3, DragonFly >= 3.0, NetBSD >= 8.0, OpenBSD >= 5.4,
4333         Solaris >= 10, Haiku. But don't use it on Android.
4334         * build-aux/reloc-ldflags: Allow the use of the $ORIGIN trick also on
4335         Hurd, FreeBSD, DragonFly, NetBSD, OpenBSD, Solaris, Haiku.
4337 2019-02-19  Bruno Haible  <bruno@clisp.org>
4339         progreloc: Speed up executable lookup on various platforms.
4340         * lib/progreloc.c: Include <errno.h>.
4341         (safe_read, full_read): New functions.
4342         (find_executable): On GNU/kFreeBSD, FreeBSD, DragonFly, NetBSD, Solaris,
4343         prefer the information from the /proc file system to a PATH search.
4345 2019-02-19  Bruno Haible  <bruno@clisp.org>
4347         progreloc: Simplify code for Android.
4348         * lib/progreloc.c (executable_fd): Don't define on Android.
4349         (maybe_executable, find_executable): Don't use executable_fd on Android.
4351 2019-02-15  Bruno Haible  <bruno@clisp.org>
4353         gnulib-tool: Support --import with just a few tests, not --with-tests.
4354         * gnulib-tool (func_import): New variable 'gentests'. Use it instead of
4355         'inctests' when generating files; use 'inctests' only for computing the
4356         transitive closure.
4358 2019-02-14  Bruno Haible  <bruno@clisp.org>
4360         gnulib-tool: Improve handling of multiple --local-dir options.
4361         * doc/gnulib.texi (Extending Gnulib): Explain how multiple --local-dir
4362         options work.
4363         * gnulib-tool (func_path_prepend): Remove function.
4364         (func_path_foreach): Make IFS handling more robust.
4365         (local_gnulib_path): Collect --local-dir values using func_path_append,
4366         not func_path_prepend.
4367         (func_determine_path_separator): Make IFS handling more robust.
4368         (func_lookup_file_cb): New function.
4369         (func_lookup_file): Rewritten to use func_lookup_file_cb instead of
4370         func_lookup_local_file. Apply the patches in the reverse order of their
4371         origin in $local_gnulib_path.
4372         (func_count_relative_local_gnulib_path): Make IFS handling more robust.
4373         * NEWS: Mention that the first --local-dir option is the one with
4374         highest priority.
4376 2019-02-10  Bruno Haible  <bruno@clisp.org>
4378         libtextstyle: New module.
4379         * m4/libtextstyle.m4: New file.
4380         * modules/libtextstyle: New file.
4382 2019-02-05  Bruno Haible  <bruno@clisp.org>
4384         declared.sh: Fix bug with variables of pointer type.
4385         * build-aux/declared.sh (sed_extract_extern_declared): Allow the space
4386         before the symbol to be omitted if the preceding character is a '*'.
4388 2019-02-04  Bruno Haible  <bruno@clisp.org>
4390         Add script for running tests under valgrind.
4391         * build-aux/run-test: New file, from GNU libunistring.
4392         * doc/valgrind-tests.texi: Rewritten to mention alternative approaches
4393         as well.
4395 2019-02-04  Bruno Haible  <bruno@clisp.org>
4397         declared.sh: Fix --version output.
4398         * build-aux/declared.sh (func_version): Update package name.
4400 2019-02-03  Bruno Haible  <bruno@clisp.org>
4402         Add script for determining the set of symbols to export from a library.
4403         * build-aux/declared.sh: New file, from GNU libunistring.
4404         * doc/lib-symbol-visibility.texi (Exported Symbols of Shared Libraries):
4405         Mention it.
4407 2019-02-02  Paul Eggert  <eggert@cs.ucla.edu>
4409         vla: add commentary about VLA_ELEMS
4410         * lib/vla.h (VLA_ELEMS): Add commentary,
4411         some inspired by Bruno Haible’s proposal in:
4412         https://lists.gnu.org/r/bug-gnulib/2019-01/msg00109.html
4414         dtoastr,ftoastr,ldtoastr: port to c-strtod changes
4415         Decouple these modules from c-strtod.  Nowadays it’s reasonable to
4416         assume the C99 signatures for strtod and strtold.  Programs that
4417         require stricter adherence to C99 should also use the strtod and
4418         strtold modules as needed, and we no longer need the
4419         HAVE_C99_STRTOLD macro.
4420         * NEWS: Mention this.
4421         * lib/ftoastr.c (STRTOF) [LENGTH == 3]: Assume strtold.
4422         * m4/c-strtod.m4 (gl_C_STRTOLD): Do not define HAVE_C99_STRTOLD.
4423         * modules/dtoastr, modules/ftoastr, modules/ldtoastr:
4424         (Files): Remove m4/c-strtod.m4.
4425         (configure.ac): Do not require gl_C99_STRTOLD, which no longer
4426         exists.
4428 2019-02-02  Bruno Haible  <bruno@clisp.org>
4430         fma: Improve code style.
4431         * lib/fma.c: Include <limits.h>, for CHAR_BIT.
4433 2019-02-02  Colin Watson  <cjwatson@debian.org>
4435         *-map tests: Fix compilation error.
4436         * tests/test-array_map.c: Include <limits.h>, for CHAR_BIT.
4437         * tests/test-hash_map.c: Likewise.
4438         * tests/test-linkedhash_map.c: Likewise.
4440 2019-01-31  Bruno Haible  <bruno@clisp.org>
4442         c-strtod, c-strtold: Use the bug fixes for strtod, strtold.
4443         * lib/stdlib.in.h (GNULIB_defined_strtod_function,
4444         GNULIB_defined_strtold_function): New macros.
4445         * lib/c-strtod.c (HAVE_GOOD_STRTOD_L): New macro.
4446         (STRTOD): Ignore HAVE_C99_STRTOLD.
4447         (c_locale): Don't define it on platforms where strtod_l/strtold_l is
4448         deemed buggy. But do use it on platforms where uselocale exists and is
4449         usable.
4450         (C_STRTOD): Don't use STRTOD_L on platforms where strtod_l/strtold_l is
4451         deemed buggy. On platforms where uselocale exists and is usable, use
4452         uselocale and strtod/strtold.
4453         * m4/c-strtod.m4 (gl_C99_STRTOLD): Remove macro.
4454         (gl_C_STRTOD): Require gt_FUNC_USELOCALE.
4455         (gl_C_STRTOLD): Likewise. Define HAVE_C99_STRTOLD unconditionally.
4456         * modules/c-strtod (Files): Add m4/intl-thread-locale.m4.
4457         (Depends-on): Add strtod.
4458         * modules/c-strtold (Files): Add m4/intl-thread-locale.m4.
4459         (Depends-on): Add strtold.
4461 2019-01-31  Bruno Haible  <bruno@clisp.org>
4463         strtod, strtold: Use the locale's decimal point.
4464         * lib/strtod.c: Include <locale.h>, <stdio.h>, <langinfo.h>.
4465         (decimal_point_char): New function, copied from lib/vasnprintf.c.
4466         (parse_number): Add a radixchar argument. Use it instead of '.'.
4467         (STRTOD): Invoke decimal_point_char and pass the result to parse_number.
4468         * m4/strtod.m4 (gl_PREREQ_STRTOD): Test whether nl_langinfo exists.
4469         * m4/strtold.m4 (gl_PREREQ_STRTOLD): Likewise.
4470         * tests/test-strtod1.c: New file.
4471         * tests/test-strtod1.sh: New file.
4472         * modules/strtod-tests (Files): Add test-strtod1.{sh,c}. Add
4473         locale-fr.m4 and its dependencies.
4474         (configure.ac): Invoke gt_LOCALE_FR, gt_LOCALE_FR_UTF8.
4475         (Makefile.am): Arrange to compile test-strtod1.c and run
4476         test-strtod1.sh.
4477         * tests/test-strtold1.c: New file.
4478         * tests/test-strtold1.sh: New file.
4479         * modules/strtold-tests (Files): Add test-strtold1.{sh,c}. Add
4480         locale-fr.m4 and its dependencies.
4481         (configure.ac): Invoke gt_LOCALE_FR, gt_LOCALE_FR_UTF8.
4482         (Makefile.am): Arrange to compile test-strtold1.c and run
4483         test-strtold1.sh.
4485 2019-01-31  Bruno Haible  <bruno@clisp.org>
4487         strtod, strtold tests: Simplify tests.
4488         * tests/test-strtod.c (main): Assume no rounding errors for 0.5.
4489         * tests/test-strtold.c (main): Likewise.
4491 2019-01-31  Bruno Haible  <bruno@clisp.org>
4493         strtod, strtold: Avoid unnecessary rounding errors.
4494         * lib/strtod.c (parse_number): Drop trailing zeroes before doing the
4495         decimal to DOUBLE conversion.
4497 2019-01-31  Bruno Haible  <bruno@clisp.org>
4499         strtod, strtold: Work around HP-UX 11.31/ia64 bug.
4500         * lib/strtod.c (STRTOD): When there is an extra character after the
4501         exponent marker 'p', reparse the number.
4502         * doc/posix-functions/strtod.texi: Document the HP-UX 11.31 bug.
4503         * doc/posix-functions/strtold.texi: Likewise.
4505 2019-01-29  Bruno Haible  <bruno@clisp.org>
4507         strtold: Add tests.
4508         * tests/test-strtold.c: New file, based on tests/test-strtod.c.
4509         * modules/strtold-tests: New file.
4511 2019-01-29  Bruno Haible  <bruno@clisp.org>
4513         strtold: New module.
4514         * lib/stdlib.in.h (strtold): New declaration.
4515         * lib/strtold.c: New file.
4516         * lib/strtod.c: Consider USE_LONG_DOUBLE.
4517         (STRTOD, LDEXP, HAVE_UNDERLYING_STRTOD, DOUBLE, MIN, MAX, L_,
4518         USE_LDEXP): New macros.
4519         (LDEXP, scale_radix_exp, parse_number, STRTOD): Adapt for
4520         USE_LONG_DOUBLE.
4521         (underlying_strtod): Remove function. Replace with some macros.
4522         Re-add the code for a missing underlying function that was removed on
4523         2013-02-19.
4524         * m4/strtold.m4: New file.
4525         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether strtold is declared.
4526         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLD, HAVE_STRTOLD,
4527         REPLACE_STRTOLD.
4528         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLD, HAVE_STRTOLD,
4529         REPLACE_STRTOLD.
4530         * modules/strtold: New file.
4531         * doc/posix-functions/strtold.texi: Document the new module.
4533 2019-01-29  Bruno Haible  <bruno@clisp.org>
4535         strtod: Fix compilation error on IRIX 6.5.
4536         * modules/strtod (Depends-on): Add 'math'.
4538 2019-01-28  Bruno Haible  <bruno@clisp.org>
4540         Fix build error when building a shared libunistring on Android.
4541         * tests/uninorm/test-nfc.c (n): Don't define on Android.
4542         (main): Add 'volatile', to defeat a GCC optimization that would
4543         eliminate the reference.
4544         * tests/uninorm/test-nfd.c (n): Don't define on Android.
4545         (main): Add 'volatile', to defeat a GCC optimization that would
4546         eliminate the reference.
4547         * tests/uninorm/test-nfkc.c (n): Don't define on Android.
4548         (main): Add 'volatile', to defeat a GCC optimization that would
4549         eliminate the reference.
4550         * tests/uninorm/test-nfkd.c (n): Don't define on Android.
4551         (main): Add 'volatile', to defeat a GCC optimization that would
4552         eliminate the reference.
4554 2019-01-27  Bruno Haible  <bruno@clisp.org>
4556         Avoid build errors due to wrong references between modules.
4557         * lib/uninorm/canonical-decomposition.c: Include
4558         "uninorm/decomposition-table.h", not "decomposition-table.h".
4559         * lib/uninorm/decomposition.c: Likewise.
4560         * lib/uninorm/u8-normalize.c: Include "uninorm/decompose-internal.h",
4561         not "decompose-internal.h".
4562         * lib/uninorm/u16-normalize.c: Likewise.
4563         * lib/uninorm/u32-normalize.c: Likewise.
4564         * lib/uninorm/uninorm-filter.c: Likewise.
4565         * lib/uninorm/nfkc.c: Likewise.
4566         * lib/uninorm/nfkd.c: Likewise.
4567         * lib/unicase/u8-casemap.c: Include "unicase/caseprop.h", not
4568         "caseprop.h".
4569         * lib/unicase/u8-ct-totitle.c: Likewise.
4570         * lib/unicase/u8-prefix-context.c: Likewise.
4571         * lib/unicase/u8-suffix-context.c: Likewise.
4572         * lib/unicase/u16-casemap.c: Likewise.
4573         * lib/unicase/u16-ct-totitle.c: Likewise.
4574         * lib/unicase/u16-prefix-context.c: Likewise.
4575         * lib/unicase/u16-suffix-context.c: Likewise.
4576         * lib/unicase/u32-casemap.c: Likewise.
4577         * lib/unicase/u32-ct-totitle.c: Likewise.
4578         * lib/unicase/u32-prefix-context.c: Likewise.
4579         * lib/unicase/u32-suffix-context.c: Likewise.
4580         * lib/unicase/u8-tolower.c: Include "unicase/unicasemap.h", not
4581         "unicasemap.h".
4582         * lib/unicase/u8-toupper.c: Likewise.
4583         * lib/unicase/u8-ct-tolower.c: Likewise.
4584         * lib/unicase/u8-ct-toupper.c: Likewise.
4585         * lib/unicase/u16-tolower.c: Likewise.
4586         * lib/unicase/u16-toupper.c: Likewise.
4587         * lib/unicase/u16-ct-tolower.c: Likewise.
4588         * lib/unicase/u16-ct-toupper.c: Likewise.
4589         * lib/unicase/u32-tolower.c: Likewise.
4590         * lib/unicase/u32-toupper.c: Likewise.
4591         * lib/unicase/u32-ct-tolower.c: Likewise.
4592         * lib/unicase/u32-ct-toupper.c: Likewise.
4593         * lib/unicase/u8-ct-casefold.c: Include "unicase/unicasemap.h", not
4594         "unicasemap.h", and "unicase/casefold.h", not "casefold.h".
4595         * lib/unicase/u16-ct-casefold.c: Likewise.
4596         * lib/unicase/u32-ct-casefold.c: Likewise.
4598 2019-01-27  Bruno Haible  <bruno@clisp.org>
4600         gperf: Fix error when this module is required by some test module.
4601         * modules/gperf (Applicability): Set to 'all'.
4603 2019-01-27  Bruno Haible  <bruno@clisp.org>
4605         tmpfile: Add support for Android.
4606         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Add a runtime test whether tmpfile()
4607         works.
4608         * lib/tmpfile.c (tmpfile): Add an alternative implementation for
4609         Android.
4610         * modules/tmpfile (Depends-on): Add 'stdbool'.
4611         * doc/posix-functions/tmpfile.texi: Mention the Android bug.
4612         * modules/argv-iter-tests (Depends-on): Add 'tmpfile'.
4614 2019-01-27  Akim Demaille  <akim@lrde.epita.fr>
4616         bitsetv: allow free on NULL.
4617         * lib/bitsetv.c (bitsetv_free): Do nothing when the bitsetv is NULL.
4619 2019-01-27  Bruno Haible  <bruno@clisp.org>
4621         test-framework-sh: Improve maintainability.
4622         * tests/init.sh: Clarify what belongs together. Reorder definitions.
4624 2019-01-27  Bruno Haible  <bruno@clisp.org>
4626         tests: Don't assume that /tmp exists.
4627         * tests/test-set-mode-acl-1.sh: Skip the test if /tmp does not exist.
4628         * tests/test-copy-acl-1.sh: Likewise.
4629         * tests/test-file-has-acl-1.sh: Likewise.
4630         * tests/test-copy-file-1.sh: Likewise.
4632 2019-01-27  Bruno Haible  <bruno@clisp.org>
4634         tests: Accommodate a shell that is not in /bin/sh.
4635         * tests/init.sh (setup_): Set srcdir and builddir.
4636         (BOURNE_SHELL): New variable.
4637         * modules/acl-tests (Depends-on): Add 'test-framework-sh'.
4638         * modules/file-has-acl-tests (Depends-on): Likewise.
4639         * modules/copy-file-tests (Depends-on): Likewise.
4640         * tests/test-set-mode-acl-1.sh: Use the test framework. Invoke shell
4641         scripts through $BOURNE_SHELL.
4642         * tests/test-set-mode-acl-2.sh: Likewise.
4643         * tests/test-copy-acl-1.sh: Likewise.
4644         * tests/test-copy-acl-2.sh: Likewise.
4645         * tests/test-file-has-acl-1.sh: Likewise.
4646         * tests/test-file-has-acl-2.sh: Likewise.
4647         * tests/test-copy-file-1.sh: Likewise.
4648         * tests/test-copy-file-2.sh: Likewise.
4649         * tests/test-set-mode-acl.sh (builddir): Consider value set by the
4650         invoker.
4651         * tests/test-copy-acl.sh (builddir): Likewise.
4652         * tests/test-file-has-acl.sh (builddir): Likewise.
4653         * tests/test-copy-file.sh (builddir): Likewise.
4654         * tests/test-vc-list-files-cvs.sh: Don't create shims for executables in
4655         build-aux/. Instead, invoke shell scripts through $BOURNE_SHELL.
4656         * tests/test-vc-list-files-git.sh: Likewise.
4658 2019-01-27  Bruno Haible  <bruno@clisp.org>
4660         tests: Fix some "unused variable" warnings.
4661         * tests/test-fts.c (fts_dealloc): Remove unused variable.
4662         * tests/unigbrk/test-uc-grapheme-breaks.c (main): Likewise.
4663         * tests/test-striconveh.c (main): Move some variable into the
4664         '#if HAVE_ICONV'.
4665         * tests/test-striconveha.c (main): Likewise.
4666         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
4667         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
4668         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
4669         * tests/uniconv/test-u8-conv-to-enc.c (main): Likewise.
4670         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
4671         * tests/uniconv/test-u32-conv-to-enc.c (main): Likewise.
4672         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
4673         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
4674         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
4675         * tests/uniconv/test-u8-strconv-to-enc.c (main): Likewise.
4676         * tests/uniconv/test-u16-strconv-to-enc.c (main): Likewise.
4677         * tests/uniconv/test-u32-strconv-to-enc.c (main): Likewise.
4678         * tests/test-tsearch.c (main): Move some variable into the
4679         '#if HAVE_INITSTATE'.
4681 2019-01-27  Bruno Haible  <bruno@clisp.org>
4683         unigbrk/uc-grapheme-breaks: Fix build failure.
4684         * lib/unigbrk/uc-grapheme-breaks.c: Don't include unistr.h.
4685         * modules/unigbrk/uc-grapheme-breaks (Makefile.am): Fix typo.
4687 2019-01-27  Bruno Haible  <bruno@clisp.org>
4689         mountlist: Merge two .m4 files.
4690         * m4/mountlist.m4 (gl_MOUNTLIST): Inline gl_LIST_MOUNTED_FILE_SYSTEMS.
4691         (AC_FUNC_GETMNTENT): Move to here, from m4/ls-mntd-fs.m4.
4692         * m4/ls-mntd-fs.m4: Remove file.
4693         * modules/mountlist (Files): Remove m4/ls-mntd-fs.m4.
4695 2019-01-27  Bruno Haible  <bruno@clisp.org>
4697         tests: Enable Linux specific tests on Android.
4698         * tests/test-flock.c (main): Treat Android like Linux.
4699         * tests/test-openat-safer.c (main): Likewise.
4701 2019-01-27  Bruno Haible  <bruno@clisp.org>
4703         relocatable-prog: Use Linux code on Android.
4704         * lib/progreloc.c: Treat Android like Linux.
4706 2019-01-26  Bruno Haible  <bruno@clisp.org>
4708         getloadavg: Add support for Android.
4709         * lib/getloadavg.c: Treat Android like Linux.
4711 2019-01-26  Bruno Haible  <bruno@clisp.org>
4713         vma-iter: Add support for Android.
4714         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Android as well.
4715         * lib/vma-iter.c: Treat Android like Linux.
4716         * lib/get-rusage-data.c (get_rusage_data): Likewise.
4718 2019-01-26  Bruno Haible  <bruno@clisp.org>
4720         fts: Optimize on Android.
4721         * lib/fts.c: Treat Android like Linux.
4723 2019-01-26  Bruno Haible  <bruno@clisp.org>
4725         fts: Add support for Android.
4726         * m4/fts.m4 (gl_FUNC_FTS_CORE): Avoid conflicts between the symbols
4727         defined by this module and the ones in libc.
4728         * tests/test-fts.c (main): Treat mkdir error EMLINK like EMFILE.
4730 2019-01-26  Bruno Haible  <bruno@clisp.org>
4732         mountlist: Use Linux code on Android.
4733         * lib/mountlist.c (setmntent, endmntent): Define fallbacks.
4734         (unescape_tab, read_file_system_list): Enable Linux code on Android
4735         as well.
4736         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Test for setmntent
4737         and endmntent.
4738         * modules/mountlist (Depends-on): Add 'getline'.
4740 2019-01-26  Bruno Haible  <bruno@clisp.org>
4742         localename tests: Fix test failure on Android.
4743         * modules/localename-tests (Depends-on): Add 'setlocale'.
4745 2019-01-26  Bruno Haible  <bruno@clisp.org>
4747         mountlist: Port better to Android.
4748         * lib/mountlist.c (MOUNTED): Redefine on Android.
4749         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Redefine MOUNTED on
4750         Android.
4752 2019-01-26  Bruno Haible  <bruno@clisp.org>
4754         striconveh: Fix use of uninitialized iconv_t.
4755         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
4756         <https://lists.gnu.org/archive/html/bug-libunistring/2019-01/msg00000.html>.
4757         * lib/striconveh.c (iconveh_open): Correct the iconv_close argument.
4759 2019-01-26  Bruno Haible  <bruno@clisp.org>
4761         nonblocking-socket-tests: Fix test failure on Android 4.3.
4762         * tests/test-nonblocking-socket.h (SOCKET_HAS_LARGE_BUFFER): Define to 1
4763         also on Android.
4765 2019-01-26  Bruno Haible  <bruno@clisp.org>
4767         sh-filename: Add support for Android 4.3.
4768         * m4/sh-filename.m4 (gl_SH_FILENAME): Set to "sh" on Android.
4770 2019-01-26  Bruno Haible  <bruno@clisp.org>
4772         ptsname_r: Work around bug on Android 4.3.
4773         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Define
4774         HAVE_ESSENTIALLY_WORKING_PTSNAME_R. Test whether the return value is
4775         correct.
4776         * lib/ptsname_r.c (__ptsname_r): If HAVE_ESSENTIALLY_WORKING_PTSNAME_R
4777         is defined, just fix the return value.
4778         * doc/glibc-functions/ptsname_r.texi: Mention the Android bug. Reword:
4779         The behaviour of musl libc is nothing to be "fixed", since it is
4780         compliant with the next POSIX standard.
4782 2019-01-26  Bruno Haible  <bruno@clisp.org>
4784         ttyname_r: Work around bug on Android 4.3.
4785         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is a stub.
4786         * lib/ttyname_r.c (ttyname_r): Implement for Android.
4787         * doc/posix-functions/ttyname_r.texi: Mention the Android bug.
4788         * doc/posix-functions/ttyname.texi: Likewise.
4790 2019-01-25  Bruno Haible  <bruno@clisp.org>
4792         getprogname: Port to Android 4.3.
4793         * lib/getprogname.c (getprogname): On Android, take only the last
4794         component of __progname.
4796 2019-01-25  Bruno Haible  <bruno@clisp.org>
4798         wcrtomb: Work around bug on Android 4.3.
4799         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test also whether wcrtomb works in
4800         the C locale.
4801         * lib/wcrtomb.c (wcrtomb): Provide alternate implementation for Android,
4802         which does not have the 'wctomb' function.
4803         * doc/posix-functions/wcrtomb.texi: Mention the Android bug.
4804         * tests/test-wcrtomb.c (main): Accept argument '5'.
4805         * tests/test-wcrtomb.sh: Add tests in the POSIX locale.
4807 2019-01-25  Bruno Haible  <bruno@clisp.org>
4809         setlocale: Work around bug on Android 4.3.
4810         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Test whether setlocale supports
4811         the "C" locale.
4812         * lib/setlocale.c (setlocale_unixlike): New wrapper for Android.
4813         * doc/posix-functions/setlocale.texi: Mention the Android bug.
4815 2019-01-24  Bruno Haible  <bruno@clisp.org>
4817         memchr: Work around bug on Android <= 5.0.
4818         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add test against the Android bug.
4819         * doc/posix-functions/memchr.texi: Mention the Android bug.
4821 2019-01-24  Bruno Haible  <bruno@clisp.org>
4823         random: Fix compilation error on Android 4.3.
4824         * lib/stdlib.in.h (random, srandom): Test also REPLACE_RANDOM.
4825         (initstate): Test REPLACE_INITSTATE and HAVE_INITSTATE, not HAVE_RANDOM.
4826         (setstate): Test REPLACE_SETSTATE and HAVE_SETSTATE, not HAVE_RANDOM.
4827         * m4/random.m4 (gl_FUNC_RANDOM): Set HAVE_INITSTATE, HAVE_SETSTATE,
4828         REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
4829         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_INITSTATE,
4830         HAVE_SETSTATE, REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
4831         * modules/stdlib (Makefile.am): Substitute HAVE_INITSTATE, HAVE_SETSTATE,
4832         REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
4833         * modules/random (Depends-on, configure.ac): Test also REPLACE_RANDOM,
4834         REPLACE_INITSTATE, REPLACE_SETSTATE.
4835         * doc/posix-functions/random.texi: Correct the description of the
4836         situation on Android.
4837         * doc/posix-functions/srandom.texi: Likewise.
4838         * doc/posix-functions/rand.texi: Likewise.
4839         * doc/posix-functions/srand.texi: Likewise.
4841 2019-01-24  Bruno Haible  <bruno@clisp.org>
4843         mbtowc: Fix compilation error on Android 4.3.
4844         * lib/stdlib.in.h (mbtowc): Test also HAVE_MBTOWC.
4845         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Test whether mbtowc exists. Set
4846         HAVE_MBTOWC.
4847         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether mbtowc is declared.
4848         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MBTOWC.
4849         * modules/stdlib (Makefile.am): Substitute HAVE_MBTOWC.
4850         * modules/mbtowc (Depends-on, configure.ac): Test also HAVE_MBTOWC.
4851         * doc/posix-functions/mbtowc.texi: Mention the change.
4853 2019-01-24  Bruno Haible  <bruno@clisp.org>
4855         fdatasync: Fix compilation error on Android 4.3.
4856         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): On platforms other than Solaris,
4857         test whether fdatasync() exists.
4859 2019-01-24  Bruno Haible  <bruno@clisp.org>
4861         unlinkat: Fix compilation error on Android 4.3.
4862         * lib/unistd.in.h: Include <fcntl.h> when module 'unlinkat' is in use
4863         also on Android.
4864         * doc/posix-functions/unlinkat.texi: Mention the issue.
4866 2019-01-24  Bruno Haible  <bruno@clisp.org>
4868         renameat: Fix compilation error on Android 4.3.
4869         * lib/stdio.in.h: Include <sys/stat.h> when module 'renameat' is in use.
4870         * doc/posix-functions/renameat.texi: Mention the issue.
4872 2019-01-24  Bruno Haible  <bruno@clisp.org>
4874         fchownat: Fix compilation error on Android 4.3.
4875         * lib/unistd.in.h: Include <sys/stat.h> when module 'fchownat' is in
4876         use.
4877         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG,
4878         gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Include also <sys/stat.h>.
4879         * doc/posix-functions/fchownat.texi: Mention the issue.
4881 2019-01-23  Bruno Haible  <bruno@clisp.org>
4883         gnulib-tool: Support running testdirs on Android.
4884         * build-aux/test-driver.diff: New file.
4885         * gnulib-tool (func_create_testdir, func_create_megatestdir): Patch
4886         build-aux/test-driver after running automake.
4888 2019-01-23  Akim Demaille  <akim@lrde.epita.fr>
4890         relocatable-prog: avoid warnings from Automake
4891         * modules/relocatable-prog: Don't declare PHONY dependencies in
4892         Automake conditionals.
4894 2019-01-23  Akim Demaille  <akim@lrde.epita.fr>
4896         array-list: Pacify warnings about unused arguments (-Wunused-parameter).
4897         * lib/gl_array_list.c (gl_array_iterator_free): "Use" the argument.
4899 2019-01-23  Bruno Haible  <bruno@clisp.org>
4901         threadlib: Revert commit from 2018-06-25. We now have a better fix.
4902         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't attempt to defeat a
4903         preceding -Wl,--as-needed option. Don't check whether the linker
4904         supports --as-needed/--no-as-needed and --push-state/--pop-state.
4906 2019-01-23  Bruno Haible  <bruno@clisp.org>
4908         thread: Force linking with -lpthread, even when --as-needed is in use.
4909         Reported by Richard W.M. Jones <rjones@redhat.com> in
4910         <https://lists.gnu.org/archive/html/bug-gnulib/2019-01/msg00123.html>.
4911         * lib/glthread/thread.h (pthread_create): Don't declare weak.
4913 2019-01-23  Akim Demaille  <akim.demaille@gmail.com>
4914             Bruno Haible  <bruno@clisp.org>
4916         relocatable: avoid compiler warnings (-Wshadow)
4917         * lib/relocatable.c (compute_curr_prefix): Rename local variables
4918         to avoid name collisions with global variables.
4920 2019-01-22  Bruno Haible  <bruno@clisp.org>
4922         vasnprintf: Don't use %n on Android.
4923         Reported and fix suggested by Hugo Beauzée-Luyssen <hugo@beauzee.fr> in
4924         <https://lists.gnu.org/archive/html/bug-gnulib/2018-12/msg00123.html>.
4925         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on Android.
4927 2019-01-22  Bruno Haible  <bruno@clisp.org>
4929         *printf: Support cross-compilation to Android.
4930         * m4/printf.m4: Add cross-compilation guesses for Android.
4932 2019-01-21  Bruno Haible  <bruno@clisp.org>
4934         diacrit: Mark deprecated.
4935         * modules/diacrit (Status, Notice): Mark as deprecated.
4936         * NEWS: Mention it.
4938 2019-01-20  Bruno Haible  <bruno@clisp.org>
4940         rintl: Override broken implementation on NetBSD.
4941         * lib/math.in.h (rintl): Test also REPLACE_RINTL.
4942         * m4/rintl.m4 (gl_FUNC_RINTL): Add test for negative arguments. Set
4943         REPLACE_RINTL.
4944         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_RINTL.
4945         * modules/math (Makefile.in): Substitute REPLACE_RINTL.
4946         * modules/rintl (Depends-on, configure.ac): Test REPLACE_RINTL.
4947         * doc/posix-functions/rintl.texi: Mention the NetBSD bug.
4949 2019-01-20  Bruno Haible  <bruno@clisp.org>
4951         log10l: Work around inaccurate implementation on NetBSD.
4952         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Add test for a certain accuracy.
4953         * lib/log10l.c: Comment out too simplistic override.
4954         * doc/posix-functions/log10l.texi: Mention the NetBSD bug.
4956 2019-01-20  Bruno Haible  <bruno@clisp.org>
4958         logl: Work around inaccurate implementation on NetBSD.
4959         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Add test for a certain accuracy.
4960         * lib/logl.c: Comment out unused code.
4961         * doc/posix-functions/logl.texi: Mention the NetBSD bug.
4963 2019-01-20  Bruno Haible  <bruno@clisp.org>
4965         expm1l: Work around inaccurate implementation on NetBSD.
4966         * lib/math.in.h (expm1l): Test also REPLACE_EXPM1L.
4967         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Add test for a certain accuracy. Set
4968         REPLACE_EXPM1L.
4969         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1L.
4970         * modules/math (Makefile.in): Substitute REPLACE_EXPM1L.
4971         * modules/expm1l (Depends-on, configure.ac): Test REPLACE_EXPM1L.
4972         * doc/posix-functions/expm1l.texi: Mention the NetBSD bug.
4974 2019-01-20  Bruno Haible  <bruno@clisp.org>
4976         expl: Work around inaccurate implementation on NetBSD.
4977         * lib/math.in.h (expl): Test also REPLACE_EXPL.
4978         * m4/expl.m4 (gl_FUNC_EXPL): Add test for a certain accuracy. Set
4979         REPLACE_EXPL.
4980         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPL.
4981         * modules/math (Makefile.in): Substitute REPLACE_EXPL.
4982         * modules/expl (Depends-on, configure.ac): Test REPLACE_EXPL.
4983         * doc/posix-functions/expl.texi: Mention the NetBSD bug.
4985 2019-01-20  Bruno Haible  <bruno@clisp.org>
4987         exp2l: Work around inaccurate implementation on NetBSD.
4988         * m4/exp2l.m4 (gl_FUNC_EXP2L): Add test for a certain accuracy.
4989         * doc/posix-functions/exp2l.texi: Mention the NetBSD bug.
4991 2019-01-20  Bruno Haible  <bruno@clisp.org>
4993         floor, floorl: Avoid autoconf warnings.
4994         * modules/floor (configure.ac): Use AC_REQUIRE.
4995         * modules/floorl (configure.ac): Likewise.
4997 2019-01-20  Bruno Haible  <bruno@clisp.org>
4999         Defeat current GCC optimizations in math autoconf tests.
5000         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Mark function pointer as 'volatile'.
5001         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
5002         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
5003         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
5004         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
5005         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
5006         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
5007         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
5008         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
5009         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
5010         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
5011         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
5012         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
5013         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
5014         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
5015         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
5016         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Likewise.
5017         * m4/log.m4 (gl_FUNC_LOG): Likewise.
5018         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
5019         * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
5020         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
5021         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
5022         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
5023         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
5024         * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
5025         * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
5026         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
5027         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
5028         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
5029         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
5030         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
5031         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
5032         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
5033         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
5034         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
5035         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
5036         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
5037         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
5039 2019-01-19  Pádraig Brady  <P@draigBrady.com>
5041         gettext: support disabling use of VLAs
5042         * lib/gettext.h: Disable use of VLAs if GNULIB_NO_VLA is defined
5044 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
5046         sys_stat: Fix 'implicit declaration of function' warning on OS/2 kLIBC.
5047         * lib/sys_stat.in.h [kLIBC]: Include <unistd.h>.
5049 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
5051         fcntl: Fix syntax error (regression from 2018-10-05).
5052         * lib/fcntl.c (klibc_fcntl): Remove mis-placed ';'.
5054 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
5056         relocatable: improve documentation.
5057         * doc/relocatable-maint.texi (Supporting Relocation): For
5058         substitutions performed by config.status, we need more variables
5059         (for instance datarootdir defaults to '${prefix}/share' so we need
5060         prefix).
5062 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
5064         backup: update dependencies
5065         * modules/backup-rename (Depends-on): It now depends on opendirat
5066         instead of opendir.  It also uses stdint, and xalloc-oversized.
5067         But no longer dirfd.
5068         * modules/backupfile (Depends-on): Add xalloc-oversized.
5070 2019-01-13  Bruno Haible  <bruno@clisp.org>
5072         getcwd: Fix test failure when building on a Linux 9p file system.
5073         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): On Linux, treat error
5074         EINVAL from mkdir like ENAMETOOLONG.
5075         * tests/test-getcwd.c (test_long_name): Likewise.
5077 2019-01-12  Tim Rühsen  <tim.ruehsen@gmx.de>
5079         Fix typos found by codespell.
5080         * lib/*.[hc]: Fix typos in comments.
5081         * pygnulib/*.py: Fix typos in error messages and comments.
5083 2019-01-12  Bruno Haible  <bruno@clisp.org>
5085         doc: Fix documentation about container data types.
5086         Reported by Werner Lemberg <wl@gnu.org>.
5087         * doc/containers.texi (Container data types): Fix typo.
5089 2019-01-10  Bruno Haible  <bruno@clisp.org>
5091         verify: Enable _GL_HAVE_STATIC_ASSERT for recent G++ versions.
5092         Reported by Reuben Thomas <rrt@sc3d.org>.
5093         * lib/verify.h (_GL_HAVE_STATIC_ASSERT): Define for g++ versions >= 6.
5095 2019-01-06  Bruno Haible  <bruno@clisp.org>
5097         maintainer-makefile: Make the configure.ac section optional.
5098         * top/maint.mk (GREP, SED): Define if not defined.
5100 2019-01-06  Bruno Haible  <bruno@clisp.org>
5102         localename: Assume setlocale function.
5103         * lib/localename.c (gl_locale_name_posix): Assume setlocale exists.
5104         * m4/localename.m4 (gl_LOCALENAME): Don't test whether setlocale exists.
5106 2019-01-06  Bruno Haible  <bruno@clisp.org>
5108         doc: Add documentation about container data types.
5109         * doc/containers.texi: New file.
5110         * doc/gnulib.texi (Particular Modules): Include it.
5112 2019-01-06  Bruno Haible  <bruno@clisp.org>
5114         doc: Update documentation about 'progname' module.
5115         * doc/progname.texi: Rename from doc/error.texi. Change node name and
5116         title. Rewrite.
5117         * doc/gnulib.texi (Particular Modules): Update.
5119 2019-01-06  Bruno Haible  <bruno@clisp.org>
5121         doc: Document the xstdopen and *-safer modules.
5122         * doc/xstdopen.texi: New file.
5123         * doc/gnulib.texi (Particular Modules): Include it.
5125 2019-01-06  Bruno Haible  <bruno@clisp.org>
5127         xstdopen: Add tests.
5128         * tests/test-xstdopen.c: New file.
5129         * tests/test-xstdopen.sh: New file.
5130         * modules/xstdopen-tests: New file.
5132         xstdopen: New module.
5133         * lib/xstdopen.h: New file.
5134         * lib/xstdopen.c: New file.
5135         * modules/xstdopen: New file.
5137 2019-01-06  Bruno Haible  <bruno@clisp.org>
5139         stdopen: Fix compilation error with IRIX cc.
5140         * lib/stdopen.c (stdopen): Do not use C99-style decl in loop.
5142 2019-01-05  Paul Eggert  <eggert@cs.ucla.edu>
5144         xfreopen need not include stdio--.h
5145         * lib/xfreopen.c: Do not include stdio--.h.
5147         xfreopen need not depend on freopen-safer
5148         * modules/xfreopen (Depends-on):
5149         Depend on freopen, not freopen-safer.
5151         stdopen: modernize and simplify
5152         * lib/stdopen.c: Update copyright date
5153         Do not include sys/types.h; no longer needed these days.
5154         (stdopen): Use C99-style decl in loop.  Return int errno
5155         value, rather than just a bool.  Do not worry about fd mismatches,
5156         since the caller cares only if 0, 1, 2 are occupied.
5157         * lib/stdopen.h: No need to include <stdbool.h>.
5158         * m4/stdopen.m4: Remove.
5159         * modules/stdopen: New file.
5161         stdopen: copy from last use in coreutils
5162         * lib/stdopen.c, lib/stdopen.h, m4/stdopen.m4:
5163         New files, taken from their last commit in coreutils
5164         2007-07-23T12:35:58Z!jim@meyering.net
5165         71aa3ea88084d17bcb4fc1031ad7b66f8647115e.
5167 2019-01-05  Bruno Haible  <bruno@clisp.org>
5169         argp: Don't pass an invalid argument to dgettext().
5170         Reported by He X <xw897002528@gmail.com>.
5171         * lib/argp-help.c (print_header, argp_doc): Don't pass a NULL doc to
5172         dgettext().
5174 2019-01-05  Bruno Haible  <bruno@clisp.org>
5176         argp: Don't pass an invalid argument to dgettext().
5177         Reported by He X <xw897002528@gmail.com>.
5178         * lib/argp.h (struct argp): Clarify that the args_doc field may be NULL.
5179         * lib/argp-help.c (argp_args_usage): Don't pass a NULL args_doc to
5180         dgettext().
5182 2018-12-22  Paul Eggert  <eggert@cs.ucla.edu>
5184         stdioext: port to newer 32-bit Android
5185         Problem reported by Tom Yan in:
5186         https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00014.html
5187         * lib/stdio-impl.h (_gl_FILE_flags_t) [__ANDROID__]: New macro.
5188         (fp_) [__ANDROID__]: Use it.
5190 2019-01-04  Bruno Haible  <bruno@clisp.org>
5192         lock: Fix link error with --enable-threads=pth.
5193         * lib/glthread/lock.h (pth_cond_init, pth_cond_await, pth_cond_notify):
5194         Mark as weak.
5196 2019-01-04  Bruno Haible  <bruno@clisp.org>
5198         Fix link errors in unit tests.
5199         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5200         * modules/bitset-tests (Makefile.am): Link test-bitset against libintl.
5201         * modules/array-map-tests (Makefile.am): Link test-array_map against
5202         libintl.
5203         * modules/array-set-tests (Makefile.am): Link test-array_set against
5204         libintl.
5205         * modules/hash-map-tests (Makefile.am): Link test-hash_map against
5206         libintl.
5207         * modules/hash-set-tests (Makefile.am): Link test-hash_set against
5208         libintl.
5209         * modules/linkedhash-map-tests (Makefile.am): Link test-linkedhash_map
5210         against libintl.
5211         * modules/linkedhash-set-tests (Makefile.am): Link test-linkedhash_set
5212         against libintl.
5214 2019-01-04  Bruno Haible  <bruno@clisp.org>
5216         Fix incorrect 'Link' sections.
5217         * modules/regex (Link): Mention the link requirement of module 'lock'.
5218         * modules/regex-tests (Makefile.am): Don't use LIB_PTHREAD.
5220 2019-01-04  Bruno Haible  <bruno@clisp.org>
5222         Fix some 'Link' sections.
5223         * modules/c-stack (Link): Add link directive from the 'gettext-h'
5224         dependency.
5225         * modules/getaddrinfo (Link): Likewise.
5227 2019-01-04  Bruno Haible  <bruno@clisp.org>
5229         Remove redundant 'Link' sections.
5230         * modules/canon-host (Link): Remove section.
5231         * modules/timevar (Link): Likewise.
5233 2019-01-04  Bruno Haible  <bruno@clisp.org>
5235         Remove incorrect 'Link' sections.
5236         * modules/acl (Link): Remove section. Use combined 'Link' sections from
5237         the dependencies instead.
5238         * modules/crypto/md5 (Link): Likewise.
5239         * modules/crypto/sha1 (Link): Likewise.
5240         * modules/crypto/sha256 (Link): Likewise.
5241         * modules/crypto/sha512 (Link): Likewise.
5242         * modules/faccessat (Link): Likewise.
5243         * modules/fdutimensat (Link): Likewise.
5244         * modules/iconv_open-utf (Link): Likewise.
5245         * modules/propername (Link): Likewise.
5246         * modules/qacl (Link): Likewise.
5247         * modules/unicodeio (Link): Likewise.
5248         * modules/utimecmp (Link): Likewise.
5249         * modules/utimensat (Link): Likewise.
5250         * modules/xstriconv (Link): Likewise.
5251         * modules/xstriconveh (Link): Likewise.
5253 2019-01-04  Bruno Haible  <bruno@clisp.org>
5255         gnulib-tool: New option --extract-recursive-link-directive.
5256         * gnulib-tool (func_usage): Document the new options
5257         --extract-recursive-dependencies, --extract-recursive-link-directive.
5258         (func_verify_module): Document output variables.
5259         (func_get_dependencies_recursively): New function.
5260         (func_get_link_directive_recursively): New function.
5261         Use them to implement the new options
5262         --extract-recursive-dependencies, --extract-recursive-link-directive.
5263         * doc/gnulib-tool.texi (Link-time requirements): New section.
5265 2019-01-04  Bruno Haible  <bruno@clisp.org>
5267         Clarify meaning of 'Link' section in module description.
5268         * doc/gnulib.texi (Module description): Clarify the meaning of the
5269         'Link' section versus the one of the dependencies.
5270         * NEWS: Mention the change.
5272 2019-01-04  Bruno Haible  <bruno@clisp.org>
5274         pselect: Fix module description.
5275         * modules/pselect (Link): Put one link option per line.
5277 2019-01-04  Bruno Haible  <bruno@clisp.org>
5279         cosl: Fix module description.
5280         * modules/cosl (Link): Fix typo.
5281         * modules/mathl (configure.ac): Likewise.
5283 2019-01-04  Bruno Haible  <bruno@clisp.org>
5285         c-xvasprintf: Fix module dependencies.
5286         * modules/c-xvasprintf (Depends-on): Add 'xalloc-die'.
5288 2019-01-04  Akim Demaille  <akim@lrde.epita.fr>
5290         bootstrap: die when some submodules are not initialized
5291         * build-aux/bootstrap: Make sure all submodules are initialized.
5293 2019-01-04  Bruno Haible  <bruno@clisp.org>
5295         bitsetv: Fix module dependencies.
5296         * lib/bitsetv.c: Include xalloc.h.
5297         * modules/bitsetv (Depends-on): Add 'xalloc'.
5299 2019-01-04  Bruno Haible  <bruno@clisp.org>
5301         xmemdup0: Remove redundant code.
5302         * lib/xmemdup0.h (xalloc_die): Remove declaration.
5304 2019-01-04  Bruno Haible  <bruno@clisp.org>
5306         backupfile: Fix module dependencies.
5307         * modules/backupfile (Depends-on): Add 'xalloc'.
5309 2019-01-03  Paul Eggert  <eggert@cs.ucla.edu>
5311         bitset, crypto/gc: fix conflicts with Solaris 11
5312         * lib/bitset.h (_GL_BITSET_H): Rename from _BITSET_H, to
5313         avoid clash with Solaris 11 <sys/bitset.h>.
5314         * lib/gc.h (_GL_GC_H): Rename from GC_H, to avoid clash
5315         with Solaris 11 <xorg/gc.h>.
5317 2019-01-04  Bruno Haible  <bruno@clisp.org>
5319         safe-read, safe-write: Fix conflict with Illumos-Joyent <sys/limits.h>.
5320         Reported by Andy Fiddaman <andy@omniosce.org>.
5321         * lib/sys-limits.h: Add a '_GL' prefix to the guard symbol.
5323 2019-01-03  Eric Blake  <eblake@redhat.com>
5325         maintainer-makefile: fix typo in previous patch
5326         * top/maint.mk (_sc_search_regexp): Fix my accidental corruption
5327         of Roman's work.
5329 2019-01-02  Roman Bolshakov <r.bolshakov@yadro.com>  (tiny change)
5331         maintainer-makefile: prefer $(GREP) over grep
5332         * modules/maintainer-makefile (configure.ac): Ensure $(GREP) is
5333         defined.
5334         * top/maint.mk: Use it everywhere.
5336         maintainer-makefile: split long argument lines
5337         * top/maint.mk: Use xargs to split $(VC_LIST_EXCEPT) usage where
5338         it would be too long for exec limits on BSD.
5340 2018-12-27  Paul Eggert  <eggert@cs.ucla.edu>
5342         mkfifo: bring back HAVE_MKFIFO macro
5343         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): #define HAVE_MKFIFO as needed.
5344         Problem reported by Andrew Janke in:
5345         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00147.html
5347 2018-12-21  Bruno Haible  <bruno@clisp.org>
5349         Assume Autoconf >= 2.63.
5350         * modules/stdarg (configure.ac-early): Remove comment about Autoconf
5351         versions < 2.60.
5353 2018-12-21  Bruno Haible  <bruno@clisp.org>
5355         memcmp: Mention the clang bug.
5356         * tests/test-memcmp.c: Add comment about a known test failure.
5357         * doc/posix-functions/memcmp.texi: Mention the clang bug.
5359 2018-12-20  Jim Meyering  <meyering@fb.com>
5361         revert v0.1-2213-gae4b73e28 and part of v0.1-2281-g95cd86dd7
5362         v0.1-2213-gae4b73e28 caused a regression in grep-3.2 (no match):
5363           echo '123-x'|LC_ALL=C grep -E '.\bx'
5364         The goal is to revert the first, but reverting it requires to restore
5365         the function deleted in the second. I ran this to restore the deleted
5366         function:
5367           git show v0.1-2281-g95cd86dd7 lib/dfa.c \
5368             | perl -0777 -pe 's/^@@[^\n]*dfaan.*//ms' \
5369             | patch -R -p1
5370         * lib/dfa.c (charclass_context): Restore deleted function.
5371         Reverting the primary commit removes this change:
5372         dfa: Simplify a building state
5373         * lib/dfa.c (build_state): Simplify a building state.
5375 2018-12-20  Paul Eggert  <eggert@cs.ucla.edu>
5377         version-etc: allow zero authors
5378         * lib/version-etc.c (version_etc_arn): If no authors are given,
5379         omit authorship info instead of dumping core.
5381 2018-12-19  Bruno Haible  <bruno@clisp.org>
5383         lchown tests: Be more permissive regarding errno values.
5384         Reported by Ivan Zakharyaschev <imz@altlinux.org>.
5385         * tests/test-lchown.h (test_lchown): Recognize EOPNOTSUPP as an
5386         alternative to ENOSYS.
5387         * modules/lchown-tests (Depends-on): Add 'errno'.
5388         * modules/fchownat-tests (Depends-on): Likewise.
5390 2018-12-18  Bruno Haible  <bruno@clisp.org>
5392         duplocale: Avoid test failure on AIX 7.
5393         * modules/duplocale-tests (Files): Add m4/intl-thread-locale.m4.
5394         (configure.ac): Invoke gt_FUNC_USELOCALE.
5395         * tests/test-duplocale.c: Test HAVE_WORKING_USELOCALE instead of
5396         HAVE_USELOCALE. Assume that nl_langinfo_l only works when uselocale
5397         works.
5399 2018-12-18  Bruno Haible  <bruno@clisp.org>
5401         localename: Fix test failure on AIX 7.
5402         Reported by Assaf Gordon in
5403         <https://lists.gnu.org/archive/html/sed-devel/2018-12/msg00019.html>.
5404         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): New macro.
5405         (gt_INTL_THREAD_LOCALE_NAME): Invoke it. Test gt_cv_func_uselocale_works
5406         instead of ac_cv_func_uselocale.
5407         * lib/localename.c: Test HAVE_WORKING_USELOCALE instead of
5408         HAVE_USELOCALE.
5409         * lib/localename-table.h: Likewise.
5410         * lib/localename-table.c: Likewise.
5411         * tests/test-localename.c: Likewise.
5412         * doc/posix-functions/uselocale.texi: Mention the AIX problem.
5414 2018-12-18  Bruno Haible  <bruno@clisp.org>
5416         localename: Update comments regarding Cygwin.
5417         * lib/localename.c: Update comment.
5418         * doc/posix-functions/uselocale.texi: Update platforms list.
5419         * doc/posix-functions/newlocale.texi: Likewise.
5420         * doc/posix-functions/duplocale.texi: Likewise.
5421         * doc/posix-functions/freelocale.texi: Likewise.
5423 2018-12-16  Bruno Haible  <bruno@clisp.org>
5425         c-stack: Fix for Linux/sparc.
5426         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Set
5427         ac_cv_sys_xsi_stack_overflow_heuristic to 'no' on Linux/sparc.
5429 2018-12-16  Bruno Haible  <bruno@clisp.org>
5431         localename: Avoid test failure on some glibc systems.
5432         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
5433         Unset environment variables that might disturb the first setlocale call,
5434         and verify that this setlocale call succeeds.
5436 2018-12-16  Assaf Gordon  <assafgordon@gmail.com>
5438         random: Fix build error on native Windows (regression from 2018-06-21).
5439         * lib/random.c (__srandom, __initstate, __setstate, __random,
5440         __srandom_r, __initstate_r, __setstate_r, __random_r) [!_LIBC]: Redirect
5441         to the symbols without '__' prefix.
5443 2018-12-16  Bruno Haible  <bruno@clisp.org>
5445         obstack, libc-config: Support HP-UX cc in C99 mode.
5446         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER): Treat HP-UX cc as a pre-C99
5447         compiler, even when in C99 mode.
5448         * lib/cdefs.h (__flexarr): Likewise.
5449         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Update comment.
5451 2018-12-16  Bruno Haible  <bruno@clisp.org>
5453         localename: Fix test failure on OpenBSD >= 6.2.
5454         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Test for fake
5455         locale system. Define HAVE_FAKE_LOCALES in this case.
5456         * lib/localename.c (HAVE_GOOD_USELOCALE): New macro. Use it instead of
5457         HAVE_USELOCALE.
5458         * tests/test-localename.c (HAVE_GOOD_USELOCALE): New macro. Use it
5459         instead of HAVE_NEWLOCALE && HAVE_USELOCALE.
5460         * doc/posix-functions/uselocale.texi: Mention OpenBSD problem. Update
5461         platforms list.
5462         * doc/posix-functions/newlocale.texi: Likewise.
5463         * doc/posix-functions/duplocale.texi: Update platforms list.
5464         * doc/posix-functions/freelocale.texi: Likewise.
5466 2018-12-16  Bruno Haible  <bruno@clisp.org>
5468         duplocale tests: Re-enable the test on platforms without <monetary.h>.
5469         * tests/test-duplocale.c: Use more fine-grained #ifs to re-enable most
5470         of the test, on platforms without <monetary.h>.
5472 2018-12-16  Bruno Haible  <bruno@clisp.org>
5474         localename: Update comments.
5475         * lib/localename.c (HAVE_USELOCALE): Update list of platforms.
5477 2018-12-15  Jim Meyering  <meyering@fb.com>
5479         regex: fix indentation
5480         * m4/regex.m4 (gl_REGEX): Indent with spaces, not TABs.
5482 2018-12-15  Bruno Haible  <bruno@clisp.org>
5484         openat-safer tests: Avoid test failure on NetBSD 8.
5485         * tests/test-openat-safer.c (main): Execute a Linux specific test only
5486         on Linux.
5488 2018-12-15  Jim Meyering  <meyering@fb.com>
5490         regex: work around a bug in glibc-2.27 and prior
5491         * m4/regex.m4 (gl_REGEX): Reject any system regexp that gets a failed
5492         assertion for /0|()0|\1|0/.
5493         * tests/test-regex.c (main): Add the same test here.
5495 2018-12-15  Bruno Haible  <bruno@clisp.org>
5497         localename: Fix use of uninitialized shell variable.
5498         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Initialize
5499         gt_cv_locale_solaris114 always before use. Remove assignment without
5500         effect.
5502 2018-12-15  Bruno Haible  <bruno@clisp.org>
5504         dfa tests: Avoid test failure on Alpine Linux.
5505         * tests/dfa-match.sh (timeout_10): Accommodate the BusyBox 'timeout'
5506         command found on Alpine Linux.
5508 2018-12-15  Jim Meyering  <meyering@fb.com>
5510         dfa: avoid new warnings from gcc
5511         These would prevent building with -Werror and a Dec snapshot of gcc.
5512         * lib/dfa.c (dfaanalyze): Avoid shadowing warnings for "pos".
5513         Rename each inner instance to "p".
5514         (charclass_context): Remove unused static function.
5516 2018-12-14  Paul Eggert  <eggert@cs.ucla.edu>
5518         mkdir-p: improve diagnostic for FUSE mounts
5519         Problem reported by Niklas Hambüchen in:
5520         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00074.html
5521         * lib/mkdir-p.c (make_dir_parents): In diagnostic, prefer stat
5522         errno to mkdir errno if the stat errno is likely more interesting.
5524 2018-12-14  Bruno Haible  <bruno@clisp.org>
5526         hash-map: Add tests.
5527         * tests/test-hash_map.c: New file.
5528         * modules/hash-map-tests: New file.
5530         linkedhash-map: Add tests.
5531         * tests/test-linkedhash_map.c: New file.
5532         * modules/linkedhash-map-tests: New file.
5534         array-map: Add tests.
5535         * tests/test-array_map.c: New file.
5536         * modules/array-map-tests: New file.
5538         xmap: New module.
5539         * lib/gl_xmap.h: New file.
5540         * lib/gl_xmap.c: New file.
5541         * modules/xmap: New file.
5543         hash-map: New module.
5544         * lib/gl_hash_map.h: New file.
5545         * lib/gl_hash_map.c: New file.
5546         * modules/hash-map: New file.
5548         linkedhash-map: New module.
5549         * lib/gl_linkedhash_map.h: New file.
5550         * lib/gl_linkedhash_map.c: New file.
5551         * lib/gl_anyhash1.h: Update comments.
5552         * lib/gl_anyhash2.h: Likewise.
5553         * modules/linkedhash-map: New file.
5555         array-map: New module.
5556         * lib/gl_array_map.h: New file.
5557         * lib/gl_array_map.c: New file.
5558         * modules/array-map: New file.
5560         map: New module.
5561         * lib/gl_map.h: New file.
5562         * lib/gl_map.c: New file.
5563         * lib/gl_omap.h (gl_mapkey_dispose_fn, gl_mapvalue_dispose_fn): Avoid
5564         conflict with gl_map.h.
5565         * modules/map: New file.
5567 2018-12-13  Bruno Haible  <bruno@clisp.org>
5569         select tests: Avoid test failure on Cygwin.
5570         * tests/test-select.h (test_bad_fd): Use an fd < FD_SETSIZE.
5572 2018-12-13  Bruno Haible  <bruno@clisp.org>
5574         localtime-buffer: Avoid endless recursion in localtime and gmtime.
5575         * lib/localtime-buffer.c: Undefine localtime and gmtime before use.
5577 2018-12-13  Bruno Haible  <bruno@clisp.org>
5579         localeconv tests: Avoid test failure on Cygwin.
5580         * tests/test-localeconv.c (main): On Cygwin, skip the 'grouping' and
5581         'mon_grouping' tests.
5583 2018-12-11  Bruno Haible  <bruno@clisp.org>
5585         omap: Don't dispose the old value when the function returns it.
5586         * lib/gl_array_omap.c (gl_array_remove_at): Don't invoke the vdispose_fn
5587         here.
5588         * lib/gl_avltree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
5589         * lib/gl_rbtree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
5590         * lib/gl_omap.h (gl_omap_nx_put, gl_omap_remove): Invoke the vdispose_fn
5591         here.
5593         array-omap, avltree-omap, rbtree-omap: Tweak style.
5594         * lib/gl_anytree_omap.h (gl_tree_nx_getput): Return 1 or 0, not true or
5595         false.
5596         * lib/gl_array_omap.c (gl_array_nx_getput): Likewise.
5598         rbtree-omap: Add tests.
5599         * tests/test-rbtree_omap.c: New file.
5600         * modules/rbtree-omap-tests: New file.
5602         avltree-omap: Add tests.
5603         * tests/test-avltree_omap.c: New file.
5604         * modules/avltree-omap-tests: New file.
5606         array-omap: Add tests.
5607         * tests/test-array_omap.c: New file.
5608         * modules/array-omap-tests: New file.
5610         xomap: New module.
5611         * lib/gl_xomap.h: New file.
5612         * lib/gl_xomap.c: New file.
5613         * modules/xomap: New file.
5615         rbtree-omap: New module.
5616         * lib/gl_rbtree_omap.h: New file.
5617         * lib/gl_rbtree_omap.c: New file.
5618         * lib/gl_rbtree_ordered.h: Code moved to here from lib/gl_rbtree_oset.c.
5619         Parameterize.
5620         * lib/gl_rbtree_oset.c: Include gl_rbtree_ordered.h.
5621         * modules/rbtree-omap: New file.
5622         * modules/rbtree-oset (Files): Add lib/gl_rbtree_ordered.h.
5623         (Makefile.am): Add gl_rbtree_ordered.h to lib_SOURCES.
5625         avltree-omap: New module.
5626         * lib/gl_avltree_omap.h: New file.
5627         * lib/gl_avltree_omap.c: New file.
5628         * lib/gl_avltree_ordered.h: Code moved to here from
5629         lib/gl_avltree_oset.c. Parameterize.
5630         * lib/gl_avltree_oset.c: Include gl_avltree_ordered.h.
5631         * lib/gl_anytree_omap.h: New file.
5632         * modules/avltree-omap: New file.
5633         * modules/avltree-oset (Files): Add lib/gl_avltree_ordered.h.
5634         (Makefile.am): Add gl_avltree_ordered.h to lib_SOURCES.
5636         array-omap: New module.
5637         * lib/gl_array_omap.h: New file.
5638         * lib/gl_array_omap.c: New file.
5639         * modules/array-omap: New file.
5641         omap: New module.
5642         * lib/gl_omap.h: New file.
5643         * lib/gl_omap.c: New file.
5644         * modules/omap: New file.
5646 2018-12-11  Bruno Haible  <bruno@clisp.org>
5648         hash-set, linkedhash-set: Reduce code duplication.
5649         * lib/gl_anyhash1.h: Rename from lib/gl_anyhash_list1.h and
5650         lib/gl_anyhash_set1.h.
5651         * lib/gl_anyhash2.h: Rename from lib/gl_anyhash_list2.h and
5652         lib/gl_anyhash_set2.h. Parameterize.
5653         (hash_resize_after_add): New function, from lib/gl_anyhash_set2.h.
5654         * lib/gl_anytreehash_list1.h (hash_resize_after_add): Remove function.
5655         * lib/gl_avltreehash_list.c: Include gl_anyhash1.h instead of
5656         gl_anyhash_list1.h. Include gl_anyhash2.h instead of gl_anyhash_list2.h.
5657         * lib/gl_rbtreehash_list.c: Likewise.
5658         * lib/gl_linkedhash_list.c: Likewise.
5659         (hash_resize_after_add): Remove function.
5660         * lib/gl_linkedhash_set.c: Include gl_anyhash1.h instead of
5661         gl_anyhash_set1.h. Include gl_anyhash2.h instead of gl_anyhash_set2.h.
5662         * gl_hash_set.c: Likewise.
5663         * modules/avltreehash-list (Files, Makefile.am): Update file list.
5664         * modules/rbtreehash-list (Files, Makefile.am): Likewise.
5665         * modules/linkedhash-list (Files, Makefile.am): Likewise.
5666         * modules/linkedhash-set (Files, Makefile.am): Likewise.
5667         * modules/hash-set (Files, Makefile.am): Likewise.
5669 2018-12-11  Bruno Haible  <bruno@clisp.org>
5671         array-set: Optimize.
5672         * lib/gl_array_set.c (gl_array_search, gl_array_remove): Test equals_fn
5673         outside the loop, not inside the loop.
5675 2018-12-11  Bruno Haible  <bruno@clisp.org>
5677         times: Fix tests.
5678         * tests/test-times.c (doublecmp): Implement a total order.
5680 2018-12-11  Bruno Haible  <bruno@clisp.org>
5682         array-set, linkedhash-set, hash-set: Fix tests.
5683         * tests/test-array_set.c (cmp_objects_in_array): New function.
5684         (check_equals): Use it.
5685         * tests/test-hash_set.c: Likewise.
5686         * tests/test-linkedhash_set.c: Likewise.
5688 2018-12-08  Bruno Haible  <bruno@clisp.org>
5690         Fix comments.
5691         * lib/gl_list.h (gl_list_free): Clarify what it does.
5692         * lib/gl_oset.h (gl_oset_free): Likewise.
5693         * lib/gl_set.h (gl_set_free): Likewise.
5694         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Fix typo in comment.
5695         * lib/gl_array_oset.c (gl_array_search_atleast): Likewise.
5696         * lib/gl_anyavltree_list1.h (MAXHEIGHT): Likewise.
5697         * lib/gl_avltree_oset.c (MAXHEIGHT): Likewise.
5699 2018-12-03  Bruno Haible  <bruno@clisp.org>
5701         hash-set: Add tests.
5702         * tests/test-hash_set.c: New file.
5703         * modules/hash-set-tests: New file.
5705         linkedhash-set: Add tests.
5706         * tests/test-linkedhash_set.c: New file.
5707         * modules/linkedhash-set-tests: New file.
5709         array-set: Add tests.
5710         * tests/test-array_set.c: New file.
5711         * modules/array-set-tests: New file.
5713         xset: New module.
5714         * lib/gl_xset.h: New file.
5715         * lib/gl_xset.c: New file.
5716         * modules/xset: New file.
5718         hash-set: New module.
5719         * lib/gl_hash_set.h: New file.
5720         * lib/gl_hash_set.c: New file.
5721         * modules/hash-set: New file.
5723         linkedhash-set: New module.
5724         * lib/gl_linkedhash_set.h: New file.
5725         * lib/gl_linkedhash_set.c: New file.
5726         * lib/gl_anyhash_set1.h: New file, based on lib/gl_anyhash_list1.h.
5727         * lib/gl_anyhash_set2.h: New file, based on lib/gl_anyhash_list2.h.
5728         * lib/gl_anyhash_primes.h: New file, extracted from
5729         lib/gl_anyhash_list2.h.
5730         * lib/gl_anyhash_list2.h: Include it.
5731         (primes, next_prime): Remove definitions.
5732         * modules/linkedhash-set: New file.
5733         * modules/avltreehash-list (Files): Add lib/gl_anyhash_primes.h.
5734         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
5735         * modules/linkedhash-list (Files): Add lib/gl_anyhash_primes.h.
5736         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
5737         * modules/rbtreehash-list (Files): Add lib/gl_anyhash_primes.h.
5738         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
5740         array-set: New module.
5741         * lib/gl_array_set.h: New file.
5742         * lib/gl_array_set.c: New file.
5743         * modules/array-set: New file.
5745         set: New module.
5746         * lib/gl_set.h: New file.
5747         * lib/gl_set.c: New file.
5748         * lib/gl_oset.h (gl_setelement_dispose_fn): Avoid conflict with
5749         gl_set.h.
5750         * modules/set: New file.
5752 2018-12-07  Akim Demaille  <akim@lrde.epita.fr>
5754         bison: don't force the Yacc mode
5755         Passing -y forces Bison into POSIX YACC mode.  This includes reporting
5756         errors when Bison features are used in the grammar file.  Some of
5757         these features (such as %expect) were flagged non-yacc recently.  Most
5758         of the time, -y is actually used to please Automake's ylwrap which
5759         expects the output to be y.tab.c.
5760         * m4/bison.m4 (gl_BISON): Use `-o y.tab.c` rather than `-y`.
5762 2018-12-01  Bruno Haible  <bruno@clisp.org>
5764         gnupload: Document short options.
5765         * build-aux/gnupload (usage): Document the short options.
5767 2018-11-28  Ben Elliston  <bje@gnu.org>
5769         gnupload: Support option -h as alias of --help.
5770         * build-aux/gnupload: Support -h.
5772 2018-11-30  Paul Eggert  <eggert@cs.ucla.edu>
5774         memrchr: port better to clang
5775         * lib/memrchr.c (__memrchr): Cast to void * instead of to
5776         longword *, to pacify clang -Wcast-align (Bug#33544).
5778 2018-11-29  Eric Blake  <eblake@redhat.com>
5780         docs: mention printf %m considerations
5781         * doc/glibc-functions/asprintf.texi (asprintf): Document that %m
5782         is not portable, and is easy enough to work around.
5783         * doc/glibc-functions/obstack_printf.texi (obstack_printf): Likewise.
5784         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf): Likewise.
5785         * doc/glibc-functions/vasprintf.texi (vasprintf): Likewise.
5786         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
5787         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
5788         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
5789         * doc/posix-functions/printf.texi (printf): Likewise.
5790         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
5791         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
5792         * doc/posix-functions/swprintf.texi (swprintf): Likewise.
5793         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
5794         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
5795         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
5796         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
5797         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
5798         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
5799         * doc/posix-functions/vswprintf.texi (vswprintf): Likewise.
5800         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
5801         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
5803 2018-11-29  Akim Demaille  <akim@lrde.epita.fr>
5805         bitset: rename ebitset/expandable.* as tbitset/table.*
5806         See
5807         https://lists.gnu.org/archive/html/bug-gnulib/2018-11/msg00096.html.
5808         * lib/bitset/expandable.h, lib/bitset/expandable.c: Rename as...
5809         * lib/bitset/table.h, lib/bitset/table.c: these.
5810         Rename all the ebitset* symbols as tbitset*.
5811         Adjust dependencies.
5813 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
5815         bitset: check the operations
5816         * tests/test-bitset.c (bitset_random): New.
5817         Use it.
5818         * lib/bitset/expandable.c (ebitset_not): Fix typo.
5820 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
5822         bitset: properly use false/true instead of 0/1 for Booleans
5823         * lib/bitset/expandable.c, lib/bitset/vector.c: Use false/true, not
5824         0/1, as Booleans.
5826 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
5828         bitset: rename BITSET_VARRAY as BITSET_VECTOR
5829         For consistency with the name of the file.
5830         * doc/bitset.texi, lib/bitset.c, lib/bitset/base.h,
5831         * lib/bitset/stats.c, lib/bitset/vector.c
5832         (BITSET_VARRAY): Rename as...
5833         (BITSET_VECTOR): this.
5835 2018-11-28  Paul Eggert  <eggert@cs.ucla.edu>
5837         strerror_r-posix: memmove, not memcpy
5838         * lib/strerror_r.c (safe_copy): Use memmove, not memcpy,
5839         since the source and destination might overlap in the call
5840         ‘safe_copy (buf, buflen, strerror_r (errnum, buf, buflen))’.
5841         Simplify.
5843 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
5845         bitsetv: new module
5846         * lib/bitsetv.c, lib/bitsetv.h, modules/bitsetv: New.
5848 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
5850         bitset: add tests and doc
5851         First stabs at providing a documentation and test for the bitset
5852         module.
5853         * doc/bitset.texi, modules/test-bitset, tests/bitset-tests.c: New.
5855 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
5857         bitset: new module
5858         * lib/bitset.c, lib/bitset.h, lib/bitset/array.c,
5859         * lib/bitset/array.h, lib/bitset/base.h, lib/bitset/expandable.c,
5860         * lib/bitset/expandable.h, lib/bitset/list.c, lib/bitset/list.h,
5861         * lib/bitset/stats.c, lib/bitset/stats.h, lib/bitset/vector.c,
5862         * lib/bitset/vector.h, modules/bitset:
5863         New.
5865 2018-11-23  Bruno Haible  <bruno@clisp.org>
5867         localename: Fix gettext test failures on mingw.
5868         * lib/localename.c (gl_locale_name_posix): Convert the result of
5869         gl_locale_name_environ to XPG syntax.
5871 2018-11-23  Karl Berry  <karl@freefriends.org>
5873         * config/srclistvars.txt,
5874         * config/srclist.txt: remove all gettext references;
5875         the gettext maintainers will sync as needed.
5877 2018-11-21  Paul Eggert  <eggert@cs.ucla.edu>
5879         mktime: add libc-config dependency
5880         I missed this when we synced from glibc.
5881         * modules/mktime (Depends-on): Add libc-config.
5883 2018-11-13  Paul Eggert  <eggert@cs.ucla.edu>
5885         longlong: fix comment typo
5886         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Fix typo.
5888 2018-11-11  Bruno Haible  <bruno@clisp.org>
5890         havelib: Remove the need to include asm-underscore.m4.
5891         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): New macro.
5892         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use it instead of
5893         gl_HOST_CPU_C_ABI.
5894         * modules/havelib (Files): Add host-cpu-c-abi.m4.
5895         (Depends-on): Remove host-cpu-c-abi.
5897 2018-11-03  Paul Eggert  <eggert@cs.ucla.edu>
5899         parse-datetime: simplify test for mktime failure
5900         * lib/parse-datetime.y (mktime_ok): Simplify.
5901         Remove args TZ and T; no longer needed.  Callers changed.
5903         posixtm: simplify test for mktime failure
5904         * lib/posixtm.c (posixtime): Simplify.
5906         nstrftime: simplify test for mktime failure
5907         * lib/nstrftime.c (__strftime_internal): Simplify.
5909 2018-11-02  Paul Eggert  <eggert@cs.ucla.edu>
5911         gnulib-common.m4: port _Noreturn to C++
5912         Problem reported by Akim Demaille in:
5913         https://lists.gnu.org/r/bug-bison/2018-10/msg00067.html
5914         * m4/gnulib-common.m4 (gl_COMMON_BODY): If C++, use [[noreturn]].
5915         Merge adjustments from _Noreturn.h and from glibc into the non-C++
5916         version.
5917         * lib/_Noreturn.h: Match gnulib-common.
5919 2018-10-30  Bruno Haible  <bruno@clisp.org>
5921         gnu-make: Fix for NetBSD 8 'make'.
5922         Reported by Reuben Thomas in
5923         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00135.html>.
5924         * m4/gnu-make.m4 (gl_GNU_MAKE): Use a heuristic based on the --version
5925         output, ignoring exit codes.
5927 2018-10-28  Bernhard Voelker  <mail@bernhard-voelker.de>
5929         maintainer-makefile: fix syntax-check rule for "same.h"
5930         * top/maint.mk (sc_prohibit_same_without_use): Adjust regex to check
5931         for 'same_nameat', too.
5933 2018-10-25  Paul Eggert  <eggert@cs.ucla.edu>
5935         havelib: fix nested ‘configure’ chatter
5936         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Don’t nest
5937         AC_CACHE_CHECK calls, which resulted in confusing output like
5938         “checking for the common suffixes of directories in the library
5939         search path... checking for 64-bit host... no lib,lib”.
5941         backupfile: tweak for better code
5942         * lib/backupfile.c: Sort include directives, and remove
5943         unnecessary <limits.h> include.
5944         (FALLTHROUGH): New macro, copied from other modules.
5945         (backupfile_internal): Use it to avoid code duplication.
5946         This lets GCC 8.2.1 generate better code by inlining the
5947         call to check_extension.
5949 2018-10-23  Paul Eggert  <eggert@cs.ucla.edu>
5951         backupfile: new dir_fd args
5952         New module opendirat with code taken from fts.
5953         Use this module to let backupfile use a directory file descriptor.
5954         * NEWS: Document the incompatible change.
5955         * lib/backup-find.c (find_backup_file_name):
5956         * lib/backup-rename.c (backup_file_rename):
5957         New arg DIR_FD.
5958         * lib/backupfile.c: Include stdint.h, for SIZE_MAX.
5959         (SIZE_MAX): Remove.
5960         Include opendirat.h rather than dirent--.h.
5961         (check_extension): New args DIR_FD and BASE_MAX.  All callers changed.
5962         (numbered_backup): New args DIR_FD and PNEW_FD.  All callers changed.
5963         (backupfile_internal): New arg DIR_FD.  All callers changed.
5964         * lib/fts.c: Include opendirat.h.
5965         (opendirat): Move to opendirat.c.
5966         * lib/opendirat.c, lib/opendirat.h, modules/opendirat: New files.
5967         * modules/backupfile (Depends-on): Remove dirfd, opendir.
5968         Add opendirat.
5969         * modules/fts (Depends-on): Remove fdopendir, openat-safer.
5970         Add opendirat.
5972 2018-10-23  Bruno Haible  <bruno@clisp.org>
5974         localename: Simplify support for per-thread locales on Solaris 11.4.
5975         * m4/intl-thread-locale.m4: Renamed from m4/intlsolaris.m4.
5976         (gt_INTL_THREAD_LOCALE_NAME): Renamed from gt_INTL_SOLARIS. Define
5977         HAVE_SOLARIS114_LOCALES instead of HAVE_NAMELESS_LOCALES.
5978         * lib/localename.c: Handle HAVE_SOLARIS114_LOCALES through Solaris
5979         specific code.
5980         * lib/localename-table.h: Update comments.
5981         * lib/localename-table.c: Update comments.
5982         * m4/localename.m4 (gl_LOCALENAME): Require gt_INTL_THREAD_LOCALE_NAME.
5983         Test for 'uselocale'. Don't invoke gt_INTL_SOLARIS.
5984         * m4/intl.m4 (AM_INTL_SUBDIR): Require gt_INTL_THREAD_LOCALE_NAME. Test
5985         for 'uselocale'. Set HAVE_NAMELESS_LOCALES.
5986         (gt_INTL_SUBDIR_CORE): Don't invoke gt_INTL_SOLARIS. Don't set
5987         HAVE_NAMELESS_LOCALES here.
5988         * modules/localename (Files): Add m4/intl-thread-locale.m4. Remove
5989         m4/intlsolaris.m4.
5990         * modules/gettext (Files): Likewise.
5992 2018-10-22  Bruno Haible  <bruno@clisp.org>
5994         std-gnu11: Support Autoconf versions < 2.64.
5995         * m4/std-gnu11.m4 (AC_PROG_CC, AC_PROG_CXX): Use _AC_DO as fallback
5996         when _AC_DO_LIMIT does not exist.
5998 2018-10-22  Bruno Haible  <bruno@clisp.org>
6000         Assume Autoconf >= 2.63.
6001         * DEPENDENCIES: Mention the requirement.
6003         * gnulib-tool (DEFAULT_AUTOCONF_MINVERSION): Bump to 2.63.
6004         (func_get_filelist): Don't list m4/onceonly.m4 any more.
6005         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
6006         * m4/onceonly.m4: Remove file.
6008         * m4/openmp.m4: Remove file.
6009         * modules/openmp (Files): Remove m4/openmp.m4.
6011         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Don't set datarootdir, docdir,
6012         htmldir, dvidir, pdfdir, psdir, localedir.
6013         * m4/po.m4 (AM_PO_SUBDIRS): Don't set localedir.
6015         * m4/gnulib-common.m4 (m4_foreach_w): Remove fallback for
6016         Autoconf < 2.60.
6017         (AC_PROG_MKDIR_P): Remove definition for Autoconf < 2.62.
6018         (AC_PROG_SED): Remove fallback for Autoconf < 2.60.
6020         * m4/errno_h.m4 (AC_COMPUTE_INT): Remove fallback for Autoconf < 2.61.
6021         * m4/size_max.m4 (AC_COMPUTE_INT): Likewise.
6022         * m4/stdint.m4 (AC_COMPUTE_INT): Likewise.
6024         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Assume AC_USE_SYSTEM_EXTENSIONS
6025         exists.
6026         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Likewise,
6028         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Remove workaround for
6029         Autoconf < 2.61.
6031         * m4/lib-prefix.m4 (AC_LIB_ARG_WITH): Remove macro.
6032         (AC_LIB_PREFIX): Use AC_ARG_WITH, assuming semantics of
6033         Autoconf >= 2.52.
6035         * m4/longlong.m4: Require Autoconf >= 2.62. Update comments.
6036         * m4/ls-mntd-fs.m4: Require Autoconf >= 2.60. Update comments.
6037         * m4/gettext.m4 (AM_GNU_GETTEXT): Update comment.
6039 2018-10-22  Bruno Haible  <bruno@clisp.org>
6041         Assume Automake >= 1.11.
6042         * m4/configmake.m4: Update comments.
6043         * m4/lib-link.m4 (AC_LIB_RPATH): Assume AC_REQUIRE_AUX_FILE exists.
6044         * m4/po.m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Eliminate uses
6045         of 'eval'.
6046         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am,
6047         func_create_testdir, func_create_megatestdir): Emit a Makefile.am that
6048         requires Automake >= 1.11.
6050 2018-10-22  Bruno Haible  <bruno@clisp.org>
6052         localename: Fix typo in comment.
6053         * tests/test-locale-c++.cc (newlocale): Fix typo in comment.
6055 2018-10-22  Bruno Haible  <bruno@clisp.org>
6057         Fix failure of 'gnulib-tool --create-testdir' with all modules.
6058         * gnulib-tool (func_create_testdir): Exclude 'timevar' module.
6060 2018-10-21  Bruno Haible  <bruno@clisp.org>
6062         locale: Ease integration with GNU libintl.
6063         * lib/locale.in.h (GNULIB_defined_newlocale, GNULIB_defined_duplocale,
6064         GNULIB_defined_freelocale): New macros.
6066 2018-10-21  Bruno Haible  <bruno@clisp.org>
6068         localename: Fine-tune support for per-thread locales on Solaris 11.4.
6069         * lib/localename-table.h: New file, extracted from lib/localename.c.
6070         * lib/localename-table.c: Likewise.
6071         * lib/localename.c: Include localename-table.h.
6072         (get_locale_t_name, newlocale, duplocale, freelocale): Invoke
6073         locale_hash_function instead of pointer_hash.
6074         * modules/localename (Files): Add lib/localename-table.h,
6075         lib/localename-table.c.
6076         (lib_SOURCES): Add localename-table.c.
6077         * m4/intlsolaris.m4 (gt_INTL_SOLARIS): Require AC_CANONICAL_HOST. Test
6078         for Solaris 11.4 locale system only on Solaris. Test for it
6079         independently whether getlocalename_l exists.
6080         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Don't test for 'uselocale' and
6081         'getlocalename_l'. Instead, invoke gt_INTL_SOLARIS. Set
6082         HAVE_NAMELESS_LOCALES.
6083         * modules/gettext (Files): Add m4/intlsolaris.m4.
6085 2018-10-21  Bruno Haible  <bruno@clisp.org>
6087         Small update from gettext.
6088         * m4/intl.m4: Update from gettext:
6089         - 2018-01-02: Fix 'ar' invocation when cross-compiling and in 64-bit
6090         mode on AIX.
6091         - 2018-01-02: Don't use -lc explicitly when linking with libtool.
6092         - 2017-05-19: (AM_INTL_SUBDIR): Require AC_C_FLEXIBLE_ARRAY_MEMBER.
6094 2018-10-16  Bruno Haible  <bruno@clisp.org>
6096         mountlist: Remove support for Cray with UNICOS 9.
6097         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
6098         MOUNTED_LISTMNTENT.
6099         * lib/mountlist.c: Remove MOUNTED_LISTMNTENT case.
6101 2018-10-16  Bruno Haible  <bruno@clisp.org>
6103         fsusage, mountlist, getloadavg, getgroups: Remove support for Ultrix.
6104         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't define
6105         STAT_STATFS2_FS_DATA.
6106         * lib/fsusage.c: Remove STAT_STATFS2_FS_DATA case.
6107         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
6108         MOUNTED_GETMNT.
6109         * lib/mountlist.c: Remove MOUNTED_GETMNT case.
6110         * lib/getloadavg.c (decstation): Remove definition and case.
6111         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Mention NeXTstep, not Ultrix.
6112         * lib/getgroups.c: Likewise.
6113         * doc/posix-functions/getgroups.texi: Likewise.
6114         * lib/time.in.h: Update comments.
6116 2018-10-16  Bruno Haible  <bruno@clisp.org>
6118         getloadavg: Remove support for ConvexOS.
6119         * lib/getloadavg.c: Remove convex case.
6121 2018-10-16  Bruno Haible  <bruno@clisp.org>
6123         getloadavg: Remove support for Sony NEWS.
6124         * lib/getloadavg.c: Remove sony_news case.
6126 2018-10-16  Bruno Haible  <bruno@clisp.org>
6128         fsusage, mountlist, getloadavg: Remove support for Dynix/ptx.
6129         * lib/fsusage.c: Remove _SEQUENT_ case.
6130         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
6131         * lib/mountlist.c: Don't test for MNTTABNAME.
6132         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Don't test for libseq.
6133         (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't test for MNTTABNAME.
6134         * lib/getloadavg.c: Remove _SEQUENT_ and sequent cases.
6135         * lib/stat-size.h: Don't mention the Sequent bug.
6136         * doc/posix-functions/utime.texi: Don't mention the Dynix bug.
6138 2018-10-16  Bruno Haible  <bruno@clisp.org>
6140         fsusage: Remove support for AIX 3.
6141         * lib/fsusage.c: Remove code for AIX 3.
6142         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Update comments.
6144 2018-10-16  Bruno Haible  <bruno@clisp.org>
6146         fsusage, stat-size, getloadavg: Remove support for AIX PS/2.
6147         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for dustat.h.
6148         * lib/fsusage.c: Remove code for AIX PS/2.
6149         * lib/stat-size.h (ST_NBLOCKSIZE): Likewise.
6150         * lib/getloadavg.c: Likewise.
6152 2018-10-16  Bruno Haible  <bruno@clisp.org>
6154         getloadavg: Remove support for HP-UX on m68k.
6155         * lib/getloadavg.c: Remove hp9000s300 case.
6157 2018-10-16  Bruno Haible  <bruno@clisp.org>
6159         fsusage, mountlist: Remove support for DolphinOS (an SVR3 variant).
6160         * lib/fsusage.c: Remove DOLPHIN case.
6161         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
6162         * lib/mountlist.c: Remove MOUNTED_GETMNTTBL case.
6164 2018-10-16  Bruno Haible  <bruno@clisp.org>
6166         getloadavg: Remove support for Alliant FX/2800.
6167         * lib/getloadavg.c: Remove alliant case.
6169 2018-10-16  Bruno Haible  <bruno@clisp.org>
6171         getloadavg: Remove support for tek4300.
6172         * lib/getloadavg.c: Remove tek4300 case.
6174 2018-10-16  Bruno Haible  <bruno@clisp.org>
6176         getloadavg: Remove support for Ardent.
6177         * lib/getloadavg.c: Remove ardent case.
6179 2018-10-16  Bruno Haible  <bruno@clisp.org>
6181         mountlist: Remove support for SVR2.
6182         Reported by Andrew Borodin <aborodin@vmail.ru> in
6183         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00101.html>.
6184         * lib/mountlist.c: Remove MOUNTED_FREAD case.
6185         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
6186         MOUNTED_FREAD.
6188 2018-10-15  Paul Eggert  <eggert@cs.ucla.edu>
6190         libc-config: merge from glibc
6191         * lib/cdefs.h (__glibc_has_attribute): New macro.
6193         regex: depend on libc-config
6194         * modules/regex (Depends-on): Add libc-config.
6195         This is needed after the recent autoupdate from glibc.
6197 2018-10-14  Bruno Haible  <bruno@clisp.org>
6199         localename: Add support for per-thread locales on Solaris 11.4.
6200         * lib/locale.in.h (newlocale, freelocale): New declarations.
6201         (duplocale): Declare also when the 'localename' module requests it.
6202         * lib/localename.c (struniq_hash_node): Renamed from hash_node.
6203         (STRUNIQ_HASH_TABLE_SIZE): Renamed from HASH_TABLE_SIZE.
6204         (struniq): Update.
6205         (struct locale_categories_names, struct locale_hash_node): New types.
6206         (LOCALE_HASH_TABLE_SIZE): New constant.
6207         (locale_hash_table, locale_lock): New variables.
6208         (pointer_hash, get_locale_t_name): New functions.
6209         (newlocale, duplocale, freelocale): New overridden functions.
6210         (gl_locale_name_thread_unsafe): Use get_locale_t_name.
6211         * m4/intlsolaris.m4: New file.
6212         * m4/localename.m4 (gl_LOCALENAME): Require gl_LOCALE_H_DEFAULTS. Invoke
6213         gt_INTL_SOLARIS. Set HAVE_NEWLOCALE, HAVE_DUPLOCALE, HAVE_FREELOCALE,
6214         REPLACE_NEWLOCALE, REPLACE_DUPLOCALE, REPLACE_FREELOCALE.
6215         * m4/locale_h.m4 (gl_LOCALE_H): Test whether newlocale, freelocale are
6216         declared.
6217         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALENAME, HAVE_NEWLOCALE,
6218         HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
6219         * modules/locale (Makefile.am): Substitute GNULIB_LOCALENAME,
6220         HAVE_NEWLOCALE, HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
6221         * modules/localename (Files): Add intlsolaris.m4.
6222         (Depends-on): Add 'locale'.
6223         (configure.ac): Invoke gl_LOCALE_MODULE_INDICATOR.
6224         * tests/test-locale-c++.cc (newlocale, freelocale): Prepare for checking
6225         the signatures.
6227 2018-10-14  Akim Demaille  <akim@lrde.epita.fr>
6229         timevar: use gethrxtime to get wall clock time
6230         clock_gettime is not portable.  gethrxtime takes the best available
6231         option to get the wall clock time, including clock_gettime (monotonic
6232         clock), and gettime (non monotonic).
6233         Also, using xtime_t instead of float preserves the precision.
6234         Suggested by Bruno Haible.
6235         * lib/xtime.h (xtime_make): Handle overflows of nanoseconds.
6236         * modules/timevar (Depends-on): We need gethrxtime.
6237         We no longer use times().
6238         (Link): Update.
6239         * lib/timevar.h (timevar_time_def): Use xtime_t.
6240         * lib/timevar.c (set_to_current_time): Use gethrxtime.
6241         (timevar_print): Instead of checking whether the timings themselves
6242         are large enough for the timevar to be printed, check the percentages.
6244 2018-10-14  Bruno Haible  <bruno@clisp.org>
6246         wcsnrtombs: Work around Solaris 11.4 bug.
6247         * m4/wcsnrtombs.m4 (gl_WCSNRTOMBS_WORKS_IN_TRADITIONAL_LOCALE): New
6248         macro.
6249         (gl_FUNC_WCSNRTOMBS): Invoke it.
6250         * doc/posix-functions/wcsnrtombs.texi: Mention the Solaris bug.
6252 2018-10-14  Bruno Haible  <bruno@clisp.org>
6254         mbsnrtowcs: Work around Solaris 11.4 bug.
6255         * m4/mbsnrtowcs.m4 (gl_MBSNRTOWCS_WORKS_IN_TRADITIONAL_LOCALE): New
6256         macro.
6257         (gl_FUNC_MBSNRTOWCS): Invoke it.
6258         * doc/posix-functions/mbsnrtowcs.texi: Mention the Solaris bug.
6260 2018-10-14  Bruno Haible  <bruno@clisp.org>
6262         doc: Update for Solaris 11.4.
6263         * doc/**/*.texi: For bugs that exist in both Solaris 11.3 and 11.4,
6264         mention Solaris 11.4.
6265         * m4/printf.m4: Update comments about Solaris.
6266         * m4/log.m4: Likewise.
6267         * m4/log10.m4: Likewise.
6268         * m4/logb.m4: Likewise.
6269         * m4/logbf.m4: Likewise.
6270         * m4/logbl.m4: Likewise.
6271         * m4/rename.m4: Likewise.
6272         * m4/wcrtomb.m4: Likewise.
6273         * m4/hostent.m4: Likewise.
6274         * m4/servent.m4: Likewise.
6276 2018-10-14  Bruno Haible  <bruno@clisp.org>
6278         floor, ceil, trunc, truncf, truncl: Defeat GCC optimizations.
6279         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Use 'floor' also through a function
6280         pointer.
6281         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use 'ceil' also through a function
6282         pointer.
6283         * m4/trunc.m4 (gl_FUNC_TRUNC): Use 'trunc' also through a function
6284         pointer.
6285         * m4/truncf.m4 (gl_FUNC_TRUNCF): Use 'truncf' also through a function
6286         pointer.
6287         * m4/truncl.m4 (gl_FUNC_TRUNCL): Use 'truncl' also through a function
6288         pointer.
6290 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
6292         bootstrap: fix wget command for po files.
6293         * build-aux/bootstrap (po_download_command_format): Fix comment,
6294         and adjust callers.
6296 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
6298         timevar: improve the output format
6299         Suggested by Bruno Haible.
6300         See https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00040.html.
6301         * lib/timevar.c (timevar_print): Use %7.3f for usr/sys and %11.6f for
6302         wall, since its resolution is much higher.
6304 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
6306         timevar: expect that getrusage is available.
6307         Don't keep both times and getrusage as backend: both are guaranteed by
6308         gnulib, a single one suffices.  Using getrusage is open to possibly
6309         tracking other types of resources in the future.
6310         * modules/timevar (Depends-on): Add getrusage.
6311         (configure.ac): Remove gl_TIMEVAR.
6312         (Files): Remove m4/timevar.m4.
6313         * m4/timevar.m4: Remove, rely on gnulib for getrusage.
6314         * lib/timevar.h (timevar_enabled): Clarify documentation.
6315         * lib/timevar.c: Remove all the code about times.
6316         Remove all the CPP guards about getrusage: expect it to be present
6317         (courtesy of gnulib).
6319 2018-10-12  Bruno Haible  <bruno@clisp.org>
6321         mountlist: Improve support for Solaris in 64-bit mode.
6322         Reported by David Wood <David.Wood@deshaw.com> in
6323         <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=6816>.
6324         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): On Solaris 8 or
6325         newer, define MOUNTED_GETEXTMNTENT instead of MOUNTED_GETMNTENT2.
6326         * lib/mountlist.c: Add code for MOUNTED_GETEXTMNTENT case.
6328 2018-10-12  Bruno Haible  <bruno@clisp.org>
6330         mountlist: Add support for Minix.
6331         Reported by Assaf Gordon in
6332         <https://lists.gnu.org/archive/html/bug-gnulib/2014-09/msg00074.html>.
6333         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use
6334         AC_CHECK_FUNCS to check for 'getmntinfo'.
6335         * lib/mountlist.c: Update comments.
6337 2018-10-12  Bruno Haible  <bruno@clisp.org>
6339         Make better use of Autoconf.
6340         * m4/environ.m4: Use AC_CACHE_CHECK where possible.
6341         * m4/manywarnings.m4: Likewise.
6342         * m4/manywarnings-c++.m4: Likewise.
6343         * m4/socklen.m4: Likewise.
6344         * m4/sockpfaf.m4: Likewise.
6345         * m4/stdarg.m4: Likewise.
6346         * m4/visibility.m4: Likewise.
6347         * m4/fsusage.m4: Use AC_CACHE_CHECK where possible. Modernize
6348         indentation.
6349         * m4/ls-mntd-fs.m4: Likewise.
6351 2018-10-11  Bruno Haible  <bruno@clisp.org>
6353         mountlist: Modernize platform lists.
6354         * m4/ls-mntd-fs.m4: Clarify which MOUNTED_* symbol applies to which
6355         platforms, deemphasizing the obsolete ones.
6356         * lib/mountlist.c: Likewise.
6358 2018-10-11  Bruno Haible  <bruno@clisp.org>
6360         getprogname: Add support for 32-bit programs on HP-UX.
6361         * lib/getprogname.c (getprogname) [HP-UX]: If pstat_getproc fails,
6362         try the similar functions 32-bit programs on 64-bit HP-UX.
6364 2018-10-11  Bruno Haible  <bruno@clisp.org>
6366         getprogname: Work around program name truncation when possible.
6367         * lib/getprogname.c (getprogname) [HP-UX]: When pst_ucomm is truncated,
6368         possibly use pst_cmd instead.
6370 2018-10-08  Paul Eggert  <eggert@cs.ucla.edu>
6372         fts: cleanup after FTS_NOATIME removal
6373         * lib/fts_.h (FTS_VERBATIM, FTS_OPTIONMASK, FTS_NAMEONLY)
6374         (FTS_STOP): Shrink to minimal values.  We don’t need to
6375         worry about binary compatibility in Gnulib, and the old way
6376         of doing things had a hole in the user options that caused
6377         FTS_OPTIONMASK to not work as desired.
6379 2018-10-08  Bernhard Voelker  <mail@bernhard-voelker.de>
6381         fts: remove FTS_NOATIME
6382         This reverts commit da4d6974013c822af1498941e32db774b2031765.
6383         We cannot guarantee that O_NOATIME works: e.g. openat fails
6384         with EPERM if the effective user ID of the caller does not match
6385         the owner of the file and the caller is not privileged.
6386         Downstream findutils has never picked up FTS_NOATIME.  Discussed at
6387         <https://lists.gnu.org/r/bug-gnulib/2018-09/msg00122.html>.
6388         * lib/fts_.h (FTS_NOATIME): Remove bit flag.
6389         (FTS_OPTIONMASK): Adjust.
6390         * lib/fts.c (diropen, fts_open, fts_build): Likewise.
6391         (fd_ring_check): Likewise.
6393 2018-10-08  Bruno Haible  <bruno@clisp.org>
6395         csharpcomp*, csharpexec*: Remove support for pnet.
6396         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Don't test for cscc. Don't set
6397         HAVE_CSCC.
6398         * build-aux/csharpcomp.sh.in (options_cscc): Remove variable.
6399         Don't test HAVE_CSCC.
6400         * lib/csharpcomp.c (compile_csharp_using_pnet): Remove function.
6401         (compile_csharp_class): Don't invoke it.
6402         * m4/csharpexec.m4 (gt_CSHARPEXEC): Don't test for ilrun. Don't set
6403         HAVE_ILRUN.
6404         * build-aux/csharpexec.sh.in (options_ilrun): Remove variable.
6405         Don't test HAVE_ILRUN.
6406         * lib/csharpexec.c (execute_csharp_using_pnet): Remove function.
6407         (execute_csharp_program): Don't invoke it.
6408         * m4/csharp.m4 (gt_CSHARP_CHOICE): Don't recognize --enable-csharp=pnet
6409         any more.
6411 2018-10-07  Andreas Henriksson  <andreas@fatal.se>  (tiny change)
6413         renameatu: prefer renameat2 to syscall
6414         * lib/renameatu.c (renameatu) [HAVE_RENAMEAT2]:
6415         Use renameat2 instead of syscall (Bug#32796).
6416         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Check for renameat2.
6418 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
6420         bootstrap, gnulib-tool: use https instead of insecure rsync
6421         * build-aux/bootstrap (download_po_files, po_download_command_format):
6422         Don't try using rsync; always use wget over https to fetch PO files.
6423         * gnulib-tool (func_import): Likewise.
6424         * pygnulib/GLImport.py (GLImport.execute): Likewise.
6426 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
6428         bootstrap, gnulib-tool: correct the translations wget command
6429         * build-aux/bootstrap (po_download_command_format2): Restrict
6430         recursion to a single level.
6431         * gnulib-tool (func_import): Likewise.
6432         * pygnulib/GLImport.py (GLImport.execute): Likewise.
6434 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
6436         doc: the gnulib snapshots are not maintained
6437         * doc/gnulib-intro.texi (Steady Development): Don't mention them.
6439 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
6441         timevar: add to lib_SOURCES
6442         * modules/timevar (lib_SOURCES): Add timevar.c and timevar.def.
6444 2018-10-07  Bruno Haible  <bruno@clisp.org>
6446         dirent: Update documentation.
6447         * doc/posix-headers/dirent.texi: The MSVC issue is fixed by Gnulib.
6449 2018-10-05  Bruno Haible  <bruno@clisp.org>
6451         strpbrk: Make it possible to namespace the defined symbol.
6452         * lib/strpbrk.c (strpbrk): Don't undefine outside of glibc.
6454 2018-10-05  Bruno Haible  <bruno@clisp.org>
6456         strcspn: Make it possible to namespace the defined symbol.
6457         * lib/strcspn.c (strcspn): Don't undefine outside of glibc.
6459 2018-10-05  Bruno Haible  <bruno@clisp.org>
6461         raise: Make it possible to namespace the defined symbol.
6462         * lib/raise.c (raise): Undefine only after the replacement function has
6463         been defined.
6464         (raise): Renamed from rpl_raise.
6465         (raise_nothrow): Move to the end of the compilation unit.
6467 2018-10-05  Bruno Haible  <bruno@clisp.org>
6469         memcmp: Make it possible to namespace the defined symbol.
6470         * lib/memcmp.c (memcmp): Don't undefine outside of glibc.
6472 2018-10-05  Bruno Haible  <bruno@clisp.org>
6474         explicit_bzero: Make it possible to namespace the defined symbol.
6475         * lib/explicit_bzero.c (explicit_bzero): Don't undefine outside of
6476         glibc.
6478 2018-10-05  Bruno Haible  <bruno@clisp.org>
6480         mkdir-p: Depend on 'mkdir'.
6481         * modules/mkdir-p (Depends-on): Add 'mkdir'.
6483 2018-10-05  Bruno Haible  <bruno@clisp.org>
6485         tempname: Depend on 'mkdir'.
6486         Reported by Maarten Bosmans <mkbosmans@gmail.com>
6487         at <https://savannah.gnu.org/bugs/?33379>.
6488         * modules/tempname (Depends-on): Add 'mkdir'.
6490 2018-10-05  Akim Demaille  <akim@lrde.epita.fr>
6492         timevar: rely on gnulib modules for time portability.
6493         * modules/timevar (Depends-on): Add sys_time, sys_times, and times.
6494         * m4/timevar.m4: Don't check for clock_t and struct tms,
6495         guaranteed by gnulib.
6496         * lib/timevar.h: Use extern "C" protection.
6497         Include <stdio.h> for FILE.
6498         * lib/timevar.c: Include sys/time.h, sys/times.h unconditionally,
6499         they are guaranteed by gnulib.
6500         Remove uses of clock as (now useless) fallback.
6502 2018-10-04  Bruno Haible  <bruno@clisp.org>
6504         sh-filename: New module.
6505         * m4/sh-filename.m4: New file.
6506         * modules/sh-filename: New file.
6507         * lib/spawni.c (_PATH_BSHELL): Use BOURNE_SHELL instead of hardcoding
6508         "/bin/sh".
6509         * tests/test-posix_spawn1.c (main): Likewise.
6510         * tests/test-posix_spawn2.c (main): Likewise.
6511         * lib/javacomp.c (compile_using_envjavac, is_envjavac_gcj,
6512         is_envjavac_gcj43): Likewise.
6513         * lib/javaexec.c (execute_java_class): Likewise.
6514         * modules/posix_spawn-internal (Depends-on): Add sh-filename.
6515         * modules/posix_spawnp-tests (Depends-on): Likewise.
6516         * modules/javacomp (Depends-on): Likewise.
6517         * modules/javaexec (Depends-on): Likewise.
6519 2018-10-04  Bruno Haible  <bruno@clisp.org>
6521         spawn-pipe tests: Avoid test failure on native Windows.
6522         * tests/test-spawn-pipe-child.c (main): On native Windows, don't expect
6523         that fd 2 is closed.
6525 2018-10-04  Bruno Haible  <bruno@clisp.org>
6527         fcntl: Make it possible to namespace the defined symbol.
6528         * lib/fcntl.c (fcntl): Undefine only after the replacement function has
6529         been defined.
6530         (fcntl): Renamed from rpl_fcntl.
6531         (rpl_fcntl_DUPFD, rpl_fcntl_DUPFD_CLOEXEC): New functions, extracted
6532         from fcntl.
6533         (klibc_fcntl): Move to the end of the compilation unit.
6535 2018-10-02  Bruno Haible  <bruno@clisp.org>
6537         vasnprintf tests: Avoid test failure on HP-UX/hppa and IRIX.
6538         * tests/test-vasnprintf.c (test_function): Change the test added on
6539         2018-09-23 to check only the 18 most significant digits.
6541         vasnprintf tests: Avoid test failure on Cygwin.
6542         * tests/test-vasnprintf.c (test_function): Change the test added on
6543         2018-09-23 to check only the 42 most significant digits.
6545 2018-10-01  Bruno Haible  <bruno@clisp.org>
6547         mkostemp, mkostemps: Update documentation.
6548         * doc/glibc-functions/mkostemp.texi: Mention the Mac OS X issue.
6549         * doc/glibc-functions/mkostemps.texi: Likewise.
6551 2018-10-01  Tom Tromey  <tom@tromey.com>
6553         mkostemp, mkostemps: Fix compilation error in C++ mode on Mac OS X.
6554         * lib/stdlib.in.h: Include <unistd.h> for mkostemp and mkostemps
6555         on OS X.
6557 2018-09-30  Pádraig Brady  <P@draigBrady.com>
6559         hmac-*: refactor to remove repetitive code
6560         * lib/hmac.c: A new parameterized single implementation.
6561         * lib/hmac-md5.c: Define parameters and include implementation.
6562         * lib/hmac-sha1.c: Likewise.
6563         * lib/hmac-sha256.c: Likewise.
6564         * lib/hmac-sha512.c: Likewise.
6565         * modules/crypto/hmac-md5: Reference the new implementation file.
6566         * modules/crypto/hmac-sha1: Likewise.
6567         * modules/crypto/hmac-sha256: Likewise.
6568         * modules/crypto/hmac-sha512: Likewise.
6569         * tests/test-hmac-md5.c: Refactor common code to a single function.
6570         * tests/test-hmac-sha1.c: Likewise.
6571         * tests/test-hmac-sha256.c: Likewise.
6572         * tests/test-hmac-sha512.c: Likewise.
6574 2018-09-30  Zhang Qing  <zhangqingl@126.com>
6576         hmac-sha512: fix hash for keys > blocksize (128 bytes)
6577         * lib/hmac-sha512.c (hmac_sha512): Set the computed/shortened
6578         key length to that output by sha512, not the blocksize.
6579         Otherwise uninitialized data from the stack
6580         is used when computing the hash.
6581         * tests/test-hmac-sha512.c: Add a shortened key test case.
6582         Reported at https://github.com/coreutils/gnulib/pull/5
6584 2018-09-30  Bruno Haible  <bruno@clisp.org>
6586         vasnprintf: Avoid warnings from GCC's -Wsign-compare.
6587         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
6588         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00105.html>.
6589         * lib/vasnprintf.c (VASNPRINTF): Cast 'count' from 'int' to
6590         'unsigned int' before comparison with an unsigned value.
6592 2018-09-30  Bruno Haible  <bruno@clisp.org>
6594         grantpt: Remove unnecessary dependency.
6595         * modules/grantpt (Depends-on): Remove 'builtin-expect'.
6597 2018-09-30  Bruno Haible  <bruno@clisp.org>
6599         timevar: Small tweaks.
6600         * lib/timevar.h: Fix comments. Add parameter names to function
6601         declarations.
6602         * lib/timevar.c: Include timevar.h immediately after config.h.
6603         * lib/timevar.def: Fix comments.
6604         * modules/timevar (Maintainer): List Akim Demaille.
6606 2018-09-30  Bruno Haible  <bruno@clisp.org>
6608         timevar: Include documentation in gnulib manual.
6609         * doc/timevar.texi: Change node and section name to 'Profiling of
6610         program phases'.
6611         In the code snippets, tweak the #includes and use GNU coding style.
6612         * doc/gnulib.texi: Include timevar.texi.
6614 2018-09-27  Akim Demaille  <akim@lrde.epita.fr>
6616         timevar: import from Bison.
6617         * m4/timevar.m4, modules/timevar, lib/timevar.h, lib/timevar.c:
6618         New files.
6619         * lib/timevar.def: New file.
6620         * doc/timevar.texi: New file.
6622 2018-09-26  Bruno Haible  <bruno@clisp.org>
6624         javacomp-script, javacomp: Add preliminary support for Java 12..17.
6625         * m4/javacomp.m4 (gt_JAVACOMP): Treat Java versions 12..17 like 11.
6626         * lib/javacomp.c (default_target_version): Likewise.
6628 2018-09-26  Bruno Haible  <bruno@clisp.org>
6630         javacomp-script, javacomp: Add support for Java 11.
6631         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 11 and
6632         target-version 11.
6633         * lib/javaversion.h: Update comments.
6634         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
6635         source_version_index, get_goodcode_snippet, get_failcode_snippet,
6636         TARGET_VERSION_BOUND, target_version_index,
6637         corresponding_classfile_version): Accept source_version 11 and
6638         target_version 11.
6639         * lib/javacomp.h: Update comments accordingly.
6641 2018-09-23  Bruno Haible  <bruno@clisp.org>
6643         vasnprintf: Fix heap memory overrun bug.
6644         Reported by Ben Pfaff <blp@cs.stanford.edu> in
6645         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00107.html>.
6646         * lib/vasnprintf.c (convert_to_decimal): Allocate one more byte of
6647         memory.
6648         * tests/test-vasnprintf.c (test_function): Add another test.
6650 2018-09-19  Paul Eggert  <eggert@cs.ucla.edu>
6652         maint: mktime.c now shared with glibc
6653         * config/srclist.txt: intprops.h, timegm.c and mktime.c
6654         are now the same in Gnulib and glibc.
6656         mktime: fix _LIBC typo
6657         * lib/mktime.c (mktime): Fix typo (misspelled "_LIBC").
6659 2018-09-19  Norihiro Tanaka  <noritnk@kcn.ne.jp>
6661         dfa: optimization for state merge
6662         * lib/dfa.c (merge2): New function.
6663         (merge_nfa_state): Use it.
6665 2018-09-18  Jim Meyering  <meyering@fb.com>
6667         dfa: trivial comment fix: s/is/if/
6668         * lib/dfa.c (maybe_disable_superset_dfa): Fix comment typo.
6670 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
6672         dfa: use more-informative function name
6673         * lib/dfa.c (maybe_disable_superset_dfa):
6674         Rename from dfautf8noss.  Use change.
6676         dfa: tweak allocation performance
6677         * lib/dfa.c (merge_nfa_state, dfaoptimize):
6678         Prefer ptrdiff_t for indexes some more.
6679         Use char for flags, as it’s wide enough.
6680         Allocate queue and flags together, with one malloc call.
6681         No need to use xnmalloc since the multiplication and
6682         addition cannot overflow (it’s already been checked by
6683         earlier allocation).  Prefer memset to open-coding.
6685         dfa: prune states as we go
6686         * lib/dfa.c (prune): Remove.
6687         dfa: reorder enum for efficiency
6688         (merge_nfa_state): Prune as we go instead of at the end.
6689         Prefer ptrdiff_t for indexes, as this helps the compiler a bit.
6691         * lib/dfa.c (END): Now -1 again.  Reorder other elements
6692         of the enumeration to make it easier for GCC to generate
6693         efficient code by using fewer comparisons to check for
6694         ranges of values.
6695         (atom): Take advantage of the reordering.
6697 2018-09-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
6699         dfa: optimize alternation in NFA
6700         Even when similar states exist in alternation, the DFA treats them
6701         as separate items, which may complicate the transition in NFA and
6702         cause slowdown.  This change assembles the states into one.  For
6703         example, ab|ac is changed into a(b|c).  This change speeds-up
6704         matching for many branched patterns.  For example, grep speeds up
6705         more than 30× in:
6707           seq 10000 | sed 's/$/ abcdefghijklmnopqrstuvwxyz/; s/$/./' >in
6708           time -p env LC_ALL=C grep -vf in in
6710         * lib/dfa.c (prune): New function.
6711         (merge_nfa_state): New function.  It merges similar NFA states.
6712         (dfaoptimize): New function.  It seeks merged and removed nodes.
6713         (dfaanalyze): Call new function.
6714         (dfautf8noss): Change name from dfaoptimize because of addition of new
6715         function.
6716         (dfacomp): Update caller.
6718         dfa: simplify initial state
6719         Simplifying the initial state enables easier optimization of the NFA.
6720         * lib/dfa.c (enum token): Add new element BEG.
6721         (prtok): Adjust due to adding element BEG.
6722         (dfaparse): Put BEG at a head of tokens.
6723         (state_index): Adjust due to adding element BEG.
6724         (dfaanalyze): Concatenate BEG to other tokens, and simplify to
6725         build initial state.
6726         (dfamust): Adjust due to adding element BEG.  DFAMUST ignores it.
6728 2018-09-18  Bruno Haible  <bruno@clisp.org>
6730         file-has-acl: Fix test failure on Cygwin 2.9.
6731         * m4/acl.m4 (gl_FUNC_ACL): Update comments regarding Cygwin.
6732         * lib/acl-internal.h: Likewise.
6733         (HAVE_ACL_EXTENDED_FILE): Undefine on Cygwin.
6734         * lib/acl-internal.c: Update comments regarding Cygwin.
6735         * lib/acl_entries.c: Likewise.
6736         * lib/file-has-acl.c: Likewise.
6737         (file_has_acl): For Cygwin, use a different way to determine whether
6738         the "default" ACL of a directory is nontrivial.
6739         * lib/get-permissions.c: Update comments regarding Cygwin.
6740         * lib/set-permissions.c: Likewise.
6742 2018-09-18  Bruno Haible  <bruno@clisp.org>
6744         stat-time tests: Fix test failure on Cygwin.
6745         * tests/nap.h (nap_get_stat): Treat Cygwin like native Windows.
6747 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
6749         doc: OS X 10.11 lacked ns time functions
6750         According to <https://github.com/zeromq/libzmq/issues/2175>,
6751         nanosecond-resolution timestamp functions were introduced
6752         in macOS 10.12, so document the last version (OS X 10.11)
6753         where they were absent.
6755         gettime: nanotime never existed
6756         Problem reported by Bruno Haible in:
6757         https://lists.gnu.org/r/bug-gnulib/2018-09/msg00082.html
6758         * lib/gettime.c (gettime) [HAVE_NANOTIME]: Remove unused code.
6759         * m4/gettime.m4 (gl_GETTIME): Don’t check for nanotime.
6761 2018-09-18  Bruno Haible  <bruno@clisp.org>
6763         doc: Update statement about target platforms.
6764         Reported by Simon Sobisch.
6765         * doc/gnulib-intro.texi (Target Platforms): Update. Mention
6766         restrictions on MSVC versions.
6768 2018-09-18  Bruno Haible  <bruno@clisp.org>
6770         posix_spawn tests: Fix link error on 64-bit Cygwin.
6771         * tests/test-posix_spawn1.c (environ): Remove declaration.
6772         * tests/test-posix_spawn2.c (environ): Likewise.
6773         * tests/test-posix_spawn3.c (environ): Likewise.
6774         * tests/test-posix_spawn4.c (environ): Likewise.
6775         * modules/posix_spawn-tests (Depends-on): Add 'environ'.
6776         * modules/posix_spawnp-tests (Depends-on): Likewise.
6778 2018-09-16  Paul Eggert  <eggert@cs.ucla.edu>
6780         timespec: new function current_timespec
6781         * lib/gettime.c (gettime): Prefer clock_gettime to nanotime,
6782         and don’t worry about it failing on a CLOCK_REALTIME arg.
6783         POSIX requires it to succeed and I don’t know of any
6784         counterexamples where the fallbacks would work.
6785         (current_timespec): New function, taken from Emacs.  It is more
6786         convenient than gettime, and can help register allocation.
6787         * lib/timespec.h: Include arg-nonnull.h.
6788         (current_timespec): New declaration.
6789         (gettime, settime): Declare args to be nonnull.
6790         * modules/timespec (Depends-on): Add snippet/arg-nonnull.
6792 2018-09-16  Bruno Haible  <bruno@clisp.org>
6794         setlocale: Improve locale handling on macOS 10.12 or newer.
6795         * lib/setlocale.c: Include header files for CoreFoundation. Declare
6796         gl_locale_name_canonicalize.
6797         (libintl_setlocale): Try harder to set a locale for categories LC_CTYPE
6798         and LC_MESSAGES.
6799         * m4/setlocale.m4 (gl_PREREQ_SETLOCALE): Add comment.
6801 2018-09-16  Bruno Haible  <bruno@clisp.org>
6803         Update list of locale names with scripts on macOS.
6804         * lib/localename.c (gl_locale_name_canonicalize): Update tables to
6805         match Mac OS X 10.13 and recent glibc.
6807 2018-09-16  Bruno Haible  <bruno@clisp.org>
6809         gettext: Use newer macOS APIs when possible.
6810         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Check for
6811         CFLocaleCopyPreferredLanguages.
6813 2018-09-16  Bruno Haible  <bruno@clisp.org>
6815         localename: Revisit macOS specific code.
6816         * lib/localename.c (gl_locale_name_default): Reduce code duplication.
6817         Fix comments about Mac OS X versions.
6819 2018-09-15  Bruno Haible  <bruno@clisp.org>
6821         setlocale: Improve support for locales not supported by libc.
6822         Reported by Dapeng Gao <peter@dpgao.cc> at
6823         <https://savannah.gnu.org/bugs/?54479>.
6824         * gettext-runtime/intl/setlocale.c: Include <stdio.h>.
6825         (libintl_setlocale): Use a more error-tolerant strategy when the locale
6826         to be set is not supported by libc: Emit warnings instead of failing.
6828 2018-09-15  Bruno Haible  <bruno@clisp.org>
6830         strstr, strcasestr: Add workaround against glibc-2.28 bug.
6831         Reported by Michael Brunnbauer via Siddhesh Poyarekar and Eric Blake.
6832         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Set
6833         gl_cv_func_strstr_works_always to 'no' on glibc 2.28.
6834         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Set
6835         gl_cv_func_strcasestr_works_always to 'no' on glibc 2.28.
6836         * doc/posix-functions/strstr.texi: Document the glibc 2.28 bug.
6837         * doc/glibc-functions/strcasestr.texi: Likewise.
6839 2018-09-14  Bruno Haible  <bruno@clisp.org>
6841         doc: Fix bottom of top-level page.
6842         Reported by Akim Demaille <akim.demaille@gmail.com> in
6843         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00072.html>.
6844         * doc/pastposix-functions/index.texi: Rename node to '_index' in HTML
6845         mode.
6846         * doc/gnulib.texi (Legacy Function Substitutes): Update menu
6847         accordingly.
6849 2018-09-12  Bruno Haible  <bruno@clisp.org>
6851         Add test case from a recent glibc bug.
6852         * tests/test-strstr.c (main): Add test of long needle.
6853         * tests/test-strcasestr.c (main): Likewise.
6854         * tests/test-c-strstr.c (main): Likewise.
6855         * tests/test-c-strcasestr.c (main): Likewise.
6856         * tests/test-memmem.c (main): Likewise.
6858 2018-09-12  Bruno Haible  <bruno@clisp.org>
6860         Apply Eric Blake's improvements from 2011-02-25 to more tests.
6861         * tests/test-c-strstr.c (main): Add the same tests here as well.
6863 2018-09-12  Bruno Haible  <bruno@clisp.org>
6865         Apply Jim Meyering's fix from 2015-01-11 to more tests.
6866         * tests/test-memmem.c (main): Free haystack.
6867         * tests/test-strcasestr.c (main): Likewise.
6868         * tests/test-c-strcasestr.c (main): Likewise.
6870 2018-09-11  Paul Eggert  <eggert@cs.ucla.edu>
6872         xstrtol: fix missing-TYPE_SIGNED typo
6873         * lib/xstrtol.c (TYPE_SIGNED): New macro, duplicating intprops.h.
6875 2018-09-10  Paul Eggert  <eggert@cs.ucla.edu>
6877         timespec: fix resolution confusion
6878         In normal usage, clock resolution is given in seconds, but the
6879         code was mistakenly using inverse seconds and calling it
6880         “resolution”.  Fix this, partly by renaming two identifiers.
6881         The old names will be kept for a bit, to ease transition.
6882         * lib/timespec.h (TIMESPEC_HZ, LOG10_TIMESPEC_HZ):
6883         New constants, replacing TIMESPEC_RESOLUTION and
6884         LOG10_TIMESPEC_RESOLUTION, which are now obsolescent.
6885         All uses changed.
6887 2018-09-09  Paul Eggert  <eggert@cs.ucla.edu>
6889         mktime: simplify in prep for glibc merge
6890         * lib/mktime.c, lib/timegm.c [_LIBC]:
6891         Include mktime-internal.h (a small file just for glibc)
6892         instead of using a typedef.
6894 2018-09-07  Paul Eggert  <eggert@cs.ucla.edu>
6896         intprops: minor clarification of code
6897         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW):
6898         Use _GL_INT_CONVERT rather than reinventing it.
6900 2018-09-07  Bruno Haible  <bruno@clisp.org>
6902         Fix a comment.
6903         * tests/test-posix_spawn3.c (parent_main): Fix typo in comment.
6905 2018-09-07  Bruno Haible  <bruno@clisp.org>
6907         posix_spawn_file_actions_addchdir: Add tests.
6908         * tests/test-posix_spawn_file_actions_addchdir.c: New file.
6909         * tests/test-posix_spawn4.c: New file.
6910         * modules/posix_spawn_file_actions_addchdir-tests: New file.
6912 2018-09-07  Bruno Haible  <bruno@clisp.org>
6914         posix_spawn_file_actions_addchdir: New module.
6915         Suggested by Eric Blake in
6916         <https://lists.gnu.org/archive/html/bug-findutils/2018-09/msg00007.html>.
6917         * lib/spawn.in.h (posix_spawn_file_actions_addchdir): New declaration.
6918         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_chdir' and
6919         union member 'chdir_action'.
6920         * lib/spawn_faction_addchdir.c: New file.
6921         * lib/spawni.c (__spawni): Implement the spawn_do_chdir action.
6922         * lib/spawn_faction_addclose.c: Test REPLACE_POSIX_SPAWN instead of
6923         HAVE_WORKING_POSIX_SPAWN.
6924         * lib/spawn_faction_adddup2.c: Likewise.
6925         * lib/spawn_faction_addopen.c: Likewise.
6926         * m4/posix_spawn_faction_addchdir.m4: New file.
6927         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
6928         'posix_spawn_file_actions_addchdir' is present and whether
6929         posix_spawn_file_actions_addchdir_np exists. Define REPLACE_POSIX_SPAWN
6930         instead of HAVE_WORKING_POSIX_SPAWN.
6931         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
6932         posix_spawn_file_actions_addchdir is declared.
6933         (gl_SPAWN_H_DEFAULTS): Initialize
6934         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
6935         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
6936         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
6937         * modules/spawn (Makefile.am): Substitute
6938         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
6939         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
6940         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
6941         * modules/posix_spawn_file_actions_addchdir: New file.
6942         * modules/posix_spawn_file_actions_addclose (Depends-on,
6943         configure.ac): Test also REPLACE_POSIX_SPAWN.
6944         * modules/posix_spawn_file_actions_adddup2 (Depends-on,
6945         configure.ac): Likewise.
6946         * modules/posix_spawn_file_actions_addopen (Depends-on,
6947         configure.ac): Likewise.
6948         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addchdir): Check
6949         signature.
6950         * doc/posix-functions/posix_spawn.texi: Mention the new module.
6951         * doc/posix-functions/posix_spawnp.texi: Likewise.
6953 2018-09-06  Bruno Haible  <bruno@clisp.org>
6955         stddef: Override max_align_t on NetBSD 8.0/x86.
6956         * m4/stddef_h.m4 (gl_STDDEF_H): When testing for max_align_t, test also
6957         the value of __alignof__ (max_align_t).
6958         * doc/posix-headers/stddef.texi: Mention the issue.
6960 2018-09-06  Bruno Haible  <bruno@clisp.org>
6962         fcntl: Fix F_DUPFD_CLOEXEC behaviour on Haiku.
6963         * lib/fcntl.c (rpl_fcntl): For F_DUPFD_CLOEXEC, don't even try the
6964         system fcntl.
6965         * doc/posix-functions/fcntl.texi: Document the issue.
6967 2018-09-06  Bruno Haible  <bruno@clisp.org>
6969         count-trailing-zeros tests: Rely on limits-h module.
6970         * tests/test-count-trailing-zeros.c (ULLONG_MAX): Remove fallback
6971         definition.
6972         * modules/count-trailing-zeros-tests (Depends-on): Add 'limits-h'.
6974 2018-09-06  Bruno Haible  <bruno@clisp.org>
6976         count-leading-zeros tests: Rely on limits-h module.
6977         * tests/test-count-leading-zeros.c (ULLONG_MAX): Remove fallback
6978         definition.
6979         * modules/count-leading-zeros-tests (Depends-on): Add 'limits-h'.
6981 2018-09-06  Bruno Haible  <bruno@clisp.org>
6983         count-one-bits tests: Rely on limits-h module.
6984         * tests/test-count-one-bits.c (ULLONG_MAX): Remove fallback definition.
6985         * modules/count-one-bits-tests (Depends-on): Add 'limits-h'.
6987 2018-09-06  Bruno Haible  <bruno@clisp.org>
6989         xstrtoll: Rely on limits-h module.
6990         * lib/xstrtol.c: Don't include intprops.h.
6991         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
6992         * modules/xstrtol (Depends-on): Remove 'intprops'.
6993         * modules/xstrtoll (Depends-on): Add 'limits-h'.
6995 2018-09-06  Bruno Haible  <bruno@clisp.org>
6997         strtoll, strtoull: Rely on limits-h module.
6998         * lib/strtol.c (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove macros.
6999         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
7000         * modules/strtoll (Depends-on): Add limits-h.
7001         * modules/strtoull (Depends-on): Likewise.
7003 2018-09-06  Bruno Haible  <bruno@clisp.org>
7005         intprops tests: Fix compilation error with pre-C99 compiler.
7006         * tests/test-intprops.c (verify_stmt): New macro.
7007         (VERIFY, main): Use it.
7009 2018-09-06  Bruno Haible  <bruno@clisp.org>
7011         limits-h: Provide numerical limits macros.
7012         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define also for
7013         IRIX and for GCC.
7014         (WORD_BIT, LONG_BIT): Define.
7015         * m4/limits-h.m4 (gl_LIMITS_H): Set LIMITS_H to non-empty also when
7016         <limits.h> does not define LLONG_MAX or WORD_BIT.
7017         * tests/test-limits-h.c (TYPE_SIGNED, TYPE_WIDTH, TYPE_MINIMUM,
7018         TYPE_MAXIMUM): New macros, from intprops.h.
7019         Add tests for CHAR_BIT, WORD_BIT, LONG_BIT, <type>_MIN, and <type>_MAX.
7020         * doc/posix-headers/limits.texi: Document what the 'limits-h' module
7021         provides.
7023 2018-09-05  Bruno Haible  <bruno@clisp.org>
7025         fcntl: Don't access nonexistent optional argument.
7026         Reported by Frank Busse <f.busse@imperial.ac.uk> in
7027         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00018.html>.
7028         * lib/fcntl.c (rpl_fcntl): For actions that don't take an argument,
7029         don't consume an argument. For actions that take an 'int' argument,
7030         consume an 'int' argument.
7032 2018-09-05  Eric Blake  <eblake@redhat.com>
7034         doc: mention environ pitfall
7035         * doc/posix-functions/environ.texi (environ): Assigning NULL to
7036         environ is a glibc extension.
7038 2018-09-03  Bruno Haible  <bruno@clisp.org>
7040         gnulib-tool: Fix build order when $testsbase is a subdir of $sourcebase.
7041         Reported by Antoine Luong <antoine.luong@c-s.fr> in
7042         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00008.html>.
7043         * gnulib-tool (func_import): For the tests, set a dotfirst flag.
7044         (func_emit_lib_Makefile_am): Consider the dotfirst flag.
7045         (func_emit_tests_Makefile_am): Don't consider the dotfirst flag.
7047 2018-09-02  Paul Eggert  <eggert@cs.ucla.edu>
7049         mktime: fix unlikely race+overflow bug
7050         Problem reported by Alexandre Oliva in:
7051         https://sourceware.org/bugzilla/show_bug.cgi?id=16346
7052         * lib/mktime.c (__mktime_internal): Access *OFFSET only once,
7053         to avoid an unlikely race if the compiler delays a load and
7054         if this cascades into a signed integer overflow.
7056 2018-08-31  Paul Eggert  <eggert@cs.ucla.edu>
7058         mktime, timegm: simplify glibc time64_t
7059         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]:
7060         Now long int, not time_t, since long int is the longstanding type
7061         for this in glibc and there is no need to change it even if time_t
7062         becomes 64 bits - even int would do, though this would be a change
7063         to the glibc generated code.  When this change is merged into
7064         glibc, it should simplify the time_t vs time64_t situation.
7066         mktime, timegm: simplify merge to glibc
7067         Move code around to make a merge to glibc easier to audit.
7068         This should not change behavior.
7069         * lib/mktime.c (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
7070         (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
7071         which glibc uses.  Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
7072         simplify later conditionals; default the others to zero.  In uses
7073         of these conditionals, explicitly spell out how _LIBC affects
7074         things, so it’s easier to review from a glibc viewpoint.
7075         (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
7076         compartmentalize tzset issues.  Move system-dependent tzsettish
7077         code here from mktime.
7078         (mktime): Move tzsettish code to my_tzset, and move
7079         localtime_offset to within mktime so that it doesn’t
7080         need a separate ifdef.
7082 2018-08-27  Paul Eggert  <eggert@cs.ucla.edu>
7084         intprops: avoid evaluation of some expressions
7085         This makes EXPR_SIGNED (e) easier to use, as it no longer
7086         evaluates the expression E.  Formerly, E was required to be free
7087         of side effects.
7088         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT)
7089         (EXPR_SIGNED, TYPE_WIDTH, _GL_INT_MINIMUM, _GL_INT_MAXIMUM)
7090         (_GL_SIGNED_INT_MAXIMUM): Do not evaluate the expression arg.
7092 2018-08-23  Bruno Haible  <bruno@clisp.org>
7094         getcwd: Add cross-compilation guesses.
7095         Reported by Sergio Durigan Junior <sergiodj@redhat.com> in
7096         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00130.html>.
7097         Based on a patch by Paul Eggert.
7098         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Add cross-compilation
7099         guesses for all GNU systems.
7101 2018-08-19  Bruno Haible  <bruno@clisp.org>
7103         glob-h: Formalize side effects from other modules.
7104         * m4/glob_h.m4 (gl_REPLACE_GLOB_H): New macro.
7105         * m4/glob.m4 (gl_GLOB): Invoke it.
7107         fnmatch-h: Formalize side effects from other modules.
7108         * m4/fnmatch_h.m4 (gl_REPLACE_FNMATCH_H): New macro.
7109         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Invoke it.
7111         limits-h: Formalize side effects from other modules.
7112         * m4/limits-h.m4 (gl_REPLACE_LIMITS_H): New macro.
7113         * m4/stdint.m4 (gl_STDINT_H): Invoke it.
7115 2018-08-19  Bruno Haible  <bruno@clisp.org>
7117         getpass: Move declaration to <unistd.h>.
7118         * lib/unistd.in.h (getpass): New declaration.
7119         * lib/getpass.h: Replace with a stub that just includes <unistd.h>.
7120         * m4/getpass.m4 (gl_FUNC_GETPASS): Declare through AC_DEFUN_ONCE.
7121         Require gl_UNISTD_H_DEFAULTS. Don't test whether getpass is declared.
7122         (gl_FUNC_GETPASS_GNU): Require gl_UNISTD_H_DEFAULTS and gl_FUNC_GETPASS.
7123         On glibc systems, don't set REPLACE_GETPASS to 1.
7124         * modules/getpass (Depends-on): Add 'unistd'.
7125         (configure.ac): Test also REPLACE_GETPASS. Define a module indicator.
7126         (Include): Specify <unistd.h> instead of "getpass.h".
7127         * modules/getpass-gnu (Depends-on): Merely depend on 'getpass'.
7128         (configure.ac): Sync with the configure.ac section of modules/getpass.
7129         (Include): Specify <unistd.h> instead of "getpass.h".
7130         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether getpass is declared.
7131         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPASS, HAVE_GETPASS,
7132         REPLACE_GETPASS.
7133         * modules/unistd (Makefile.am): Substitute GNULIB_GETPASS, HAVE_GETPASS,
7134         REPLACE_GETPASS.
7135         * tests/test-unistd-c++.cc: Test also the declaration of 'getpass'.
7136         * doc/glibc-functions/getpass.texi: A length limit exists also on uClibc
7137         and musl.
7138         * NEWS: Mention the change.
7140 2018-08-19  Bruno Haible  <bruno@clisp.org>
7142         glob: Fix over-optimization due to attribute __nonnull__.
7143         * lib/glob.c (_GL_ARG_NONNULL): Define to empty.
7145 2018-08-19  Bruno Haible  <bruno@clisp.org>
7147         glob: Fix another compilation error when glob.h is not replaced.
7148         Reported by Reuben Thomas <rrt@sc3d.org> in
7149         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00112.html>.
7150         * m4/glob.m4 (gl_GLOB): Set GLOB_H to non-empty when needed.
7151         * m4/glob_h.m4 (gl_GLOB_H): Define through AC_DEFUN_ONCE.
7153 2018-08-18  Bruno Haible  <bruno@clisp.org>
7155         fnmatch: Avoid conflicting macro definitions of 'fnmatch'.
7156         Reported by Reuben Thomas <rrt@sc3d.org> in
7157         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00108.html>.
7158         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't define 'fnmatch' as a macro
7159         in config.h.
7161 2018-08-18  Bruno Haible  <bruno@clisp.org>
7163         Avoid -Wcast-function-type warnings from casts after GetProcAddress.
7164         Reported by Andy Moreton <andrewjmoreton@gmail.com> in
7165         <https://lists.gnu.org/archive/html/emacs-devel/2018-08/msg00468.html>.
7166         Solution proposed by Eli Zaretskii.
7167         * lib/getaddrinfo.c (GetProcAddress): Cast result to 'void *' first.
7168         * lib/gettimeofday.c (GetProcAddress): Likewise.
7169         * lib/link.c (GetProcAddress): Likewise.
7170         * lib/physmem.c (GetProcAddress): Likewise.
7171         * lib/poll.c (GetProcAddress): Likewise.
7172         * lib/select.c (GetProcAddress): Likewise.
7173         * lib/stat-w32.c (GetProcAddress): Likewise.
7175 2018-08-18  Bruno Haible  <bruno@clisp.org>
7177         glob: Fix another compilation error when glob.h is not replaced.
7178         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> again.
7179         * lib/globfree.c: Include <libc-config.h>.
7181 2018-08-18  Bruno Haible  <bruno@clisp.org>
7183         glob: Fix compilation error when glob.h is not replaced.
7184         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> in
7185         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00096.html>.
7186         * lib/glob_pattern_p.c: Include <libc-config.h>.
7187         * modules/glob (Depends-on): Add libc-config.
7189 2018-08-18  Bruno Haible  <bruno@clisp.org>
7191         scratch_buffer: Add tests.
7192         * tests/test-scratch-buffer.c: New file.
7193         * modules/scratch_buffer-tests: New file.
7195 2018-08-18  Bruno Haible  <bruno@clisp.org>
7197         scratch_buffer: Fix include file.
7198         Reported by Reuben Thomas <rrt@sc3d.org> in
7199         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00082.html>.
7200         * lib/scratch_buffer.h: Include <libc-config.h> first. Add
7201         double-inclusion guard.
7203 2018-08-18  Bruno Haible  <bruno@clisp.org>
7205         glob-h: Revert Paul Eggert's revert.
7206         * m4/glob_h.m4: Revert to previous state.
7207         * modules/glob-h: Likewise.
7209 2018-08-18  Paul Eggert  <eggert@cs.ucla.edu>
7211         glob-h: always build glob.h
7212         This works around a problem reported by Reuben Thomas in:
7213         http://lists.gnu.org/r/bug-gnulib/2018-08/msg00079.html
7214         This workaround always builds glob.h, even on platforms that
7215         do not need it; perhaps this could be improved someday.
7216         * m4/glob_h.m4 (gl_GLOB_H): Do not set or use GLOB_H, since glob.h
7217         is always created now.
7218         * modules/glob-h (BUILT_SOURCES, glob.h): Always build glob.h.
7220 2018-08-13  Bruno Haible  <bruno@clisp.org>
7222         monetary: Simplify m4 code.
7223         * m4/monetary_h.m4 (gl_MONETARY_H): Define through AC_DEFUN_ONCE.
7224         (gl_MONETARY_H_BODY): Inline into gl_MONETARY_H. Remove macro.
7226 2018-08-13  Bruno Haible  <bruno@clisp.org>
7228         fnmatch, fnmatch-gnu: Fix compilation error on Mac OS X.
7229         Reported by Jeroen Meijer <jjgmeijer@gmail.com> in
7230         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00046.html>
7231         and by Paul J. Lucas <paul@lucasmail.org> in
7232         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00069.html>.
7233         * m4/fnmatch_h.m4 (gl_FNMATCH_H): Define through AC_DEFUN_ONCE.
7235 2018-08-11  Bruno Haible  <bruno@clisp.org>
7237         setlocale: Trivial simplification.
7238         * lib/setlocale.c (setlocale_unixlike): Remove redundant #if.
7240 2018-08-11  Paul Eggert  <eggert@cs.ucla.edu>
7242         verify: port 'assume' to traditional tools
7243         * lib/verify.h (assume): Port better to Oracle Studio 12.6
7244         and other tools that use /*NOTREACHED*/ comments.
7246 2018-08-10  Bruno Haible  <bruno@clisp.org>
7248         fnmatch-gnu: Fix compilation error in C++ namespace mode on Mac OS X.
7249         * modules/fnmatch-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
7250         * lib/fnmatch.in.h (fnmatch): Skip _GL_CXXALIASWARN if module
7251         'fnmatch-gnu' is in use.
7253 2018-08-07  Bruno Haible  <bruno@clisp.org>
7255         glob-h: Add tests.
7256         * tests/test-glob-h.c: New file, partially based on tests/test-glob.c.
7257         * tests/test-glob.c: Reorder #includes. Remove tests that are moved to
7258         tests/test-glob-h.c.
7259         * modules/glob-h-tests: New file.
7260         * tests/test-glob-h-c++.cc: Renamed from tests/test-glob-c++.cc. Add
7261         conditions.
7262         * modules/glob-h-c++-tests: Renamed from modules/glob-c++-tests.
7263         * modules/glob-tests (Depends-on): Remove glob-c++-tests.
7265 2018-08-07  Bruno Haible  <bruno@clisp.org>
7267         glob-h: New module.
7268         * lib/glob.in.h: Use nearly the usual gnulib idioms for header file
7269         replacements.
7270         * lib/glob.c: Include <config.h>.
7271         * m4/glob_h.m4: New file.
7272         * m4/glob.m4 (gl_GLOB): Require gl_GLOB_H. Remove code that is moved to
7273         glob_h.m4. Set HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
7274         REPLACE_GLOB_PATTERN_P as appropriate.
7275         (gl_PREREQ_GLOB): Don't require AC_C_RESTRICT and
7276         AC_USE_SYSTEM_EXTENSIONS, now done through module 'glob-h'.
7277         * modules/glob-h: New file.
7278         * modules/glob (Files): Remove lib/glob.in.h, lib/glob-libc.h.
7279         (Dependencies): Add glob-h. Remove extensions, snippet/*, libc-config,
7280         lstat, sys_stat. Change conditions.
7281         (configure.ac): Test HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
7282         REPLACE_GLOB_PATTERN_P. Set module indicator.
7283         (Makefile.am): Remove code that is moved to glob-h.
7284         * doc/posix-headers/glob.texi: Mention the 'glob-h' module.
7285         * modules/posixcheck (Depends-on): Add glob-h.
7287 2018-08-06  Bruno Haible  <bruno@clisp.org>
7289         Force generation of substitute .h file when C++ support is enabled.
7290         * m4/ansi-c++.m4 (gl_ANSI_CXX): New macro.
7291         * modules/ansi-c++-opt (configure.ac): Just require gl_ANSI_CXX.
7292         * m4/fnmatch_h.m4 (gl_FNMATCH_H): If C++ support is enabled, set
7293         FNMATCH_H to non-empty.
7294         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If C++ support is enabled, set
7295         ICONV_H to non-empty.
7296         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If C++ support is enabled, set
7297         MONETARY_H to non-empty.
7298         * m4/utime_h.m4 (gl_UTIME_H): If C++ support is enabled, set UTIME_H to
7299         non-empty.
7301 2018-08-06  Bruno Haible  <bruno@clisp.org>
7303         fnmatch-h: Fix test compilation error on mingw (regression from today).
7304         * lib/fnmatch.in.h: Fix conditions.
7306 2018-08-06  Bruno Haible  <bruno@clisp.org>
7308         sys_resource: Relicense under LGPLv2+.
7309         John Malmberg's approval is in
7310         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00031.html>.
7311         * modules/sys_resource (License): Change to LGPLv2+.
7313 2018-08-06  Bruno Haible  <bruno@clisp.org>
7315         fnmatch-h: Add tests.
7316         * tests/test-fnmatch-h.c: New file.
7317         * modules/fnmatch-h-tests: New file.
7318         * tests/test-fnmatch-h-c++.cc: New file.
7319         * modules/fnmatch-h-c++-tests: New file.
7321 2018-08-06  Bruno Haible  <bruno@clisp.org>
7323         fnmatch-h: New module.
7324         * lib/fnmatch.in.h: Use the usual gnulib idioms for header file
7325         replacements.
7326         (FNM_*): Don't redefine if fnmatch exists and we are not overriding it.
7327         (fnmatch): Use the usual gnulib idiom for function declarations. Enable
7328         'posixcheck' warning.
7329         * m4/fnmatch_h.m4: New file.
7330         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Require gl_FNMATCH_H. Remove
7331         code that is moved to fnmatch_h.m4. When fnmatch does not exist, don't
7332         bother testing whether it is working. Set HAVE_FNMATCH, REPLACE_FNMATCH
7333         as appropriate.
7334         * modules/fnmatch-h: New file.
7335         * modules/fnmatch (Files): Remove lib/fnmatch.in.h.
7336         (Dependencies): Add fnmatch-h. Remove extensions, snippet/*. Change
7337         conditions.
7338         (configure.ac): Test HAVE_FNMATCH and REPLACE_FNMATCH. Set module
7339         indicator.
7340         (Makefile.am): Remove code that is moved to fnmatch-h.
7341         * modules/fnmatch-gnu (configure.ac): Test HAVE_FNMATCH and
7342         REPLACE_FNMATCH.
7343         * doc/posix-headers/fnmatch.texi: Mention the 'fnmatch-h' module.
7344         * modules/posixcheck (Depends-on): Add fnmatch-h.
7346 2018-08-06  Bruno Haible  <bruno@clisp.org>
7348         Enable more C++ tests.
7349         * modules/inttypes-tests (Depends-on): Add inttypes-c++-tests.
7350         * modules/monetary-tests (Depends-on): Add monetary-c++-tests.
7351         * modules/strings-tests (Depends-on): Add strings-c++-tests.
7352         * modules/sys_resource-tests (Depends-on): Add sys_resource-c++-tests.
7353         * modules/utime-h-tests (Depends-on): Add utime-h-c++-tests.
7355 2018-08-06  Bruno Haible  <bruno@clisp.org>
7357         getopt-posix, utime-h: Ensure the .h file gets regenerated when needed.
7358         * modules/getopt-posix (Makefile.am): Add Makefile dependency for
7359         getopt.h.
7360         * modules/utime-h (Makefile.am): Add Makefile dependency for utime.h.
7362 2018-08-05  Bruno Haible  <bruno@clisp.org>
7364         utime-h: Generate header file when module 'posixcheck' is in use.
7365         * m4/utime_h.m4 (gl_UTIME_H): If module 'posixcheck' is in use, set
7366         UTIME_H to non-empty.
7368 2018-08-05  Bruno Haible  <bruno@clisp.org>
7370         monetary: Generate header file when module 'posixcheck' is in use.
7371         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If module 'posixcheck' is in
7372         use, set MONETARY_H to non-empty.
7374 2018-08-05  Bruno Haible  <bruno@clisp.org>
7376         iconv-h: Generate header file when module 'posixcheck' is in use.
7377         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If module 'posixcheck' is in use,
7378         set ICONV_H to non-empty.
7380 2018-08-05  Bruno Haible  <bruno@clisp.org>
7382         Optimize the "checking whether ... is declared without a macro" checks.
7383         Suggested by Paul Eggert in
7384         <https://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00339.html>.
7385         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Expand to nothing if the
7386         Gnulib module 'posixcheck' is not in use.
7388 2018-08-05  Bruno Haible  <bruno@clisp.org>
7390         iconv-h: Enable 'posixcheck' warnings.
7391         * m4/iconv_h.m4 (gl_ICONV_H): Check for declarations of iconv and
7392         iconv_open.
7393         * lib/iconv.in.h (iconv_open, iconv): Use _GL_WARN_ON_USE.
7395 2018-08-05  Bruno Haible  <bruno@clisp.org>
7397         Fix link error regarding 'rpl_environ' (regression from 2012-11-21).
7398         * m4/extern-inline.m4: Add more comments.
7399         * lib/warn-on-use.h (_GL_WARN_ON_USE_ATTRIBUTE): New macro.
7400         * lib/unistd.in.h (rpl_environ): Use it instead of _GL_WARN_ON_USE.
7401         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL): Likewise.
7403 2018-08-04  Bruno Haible  <bruno@clisp.org>
7405         New module 'posixcheck'.
7406         * modules/posixcheck: New file.
7407         * m4/posixcheck.m4: New file.
7408         * doc/gnulib-tool.texi (Finding POSIX substitutes): New section.
7409         (Which modules?): Reference it.
7411 2018-08-01  Assaf Gordon  <assafgordon@gmail.com>
7413         dfa: fix memory leak
7414         * lib/dfa.c (dfafree): Add missing free() on dfa->superset.
7416 2018-08-01  Paul Eggert  <eggert@cs.ucla.edu>
7418         ieee754-h: new module
7419         It looks like Emacs can use this for some NaN processing.
7420         Emacs uses it only on double NaNs so it should be safe.
7421         * MODULES.html.sh (func_all_modules): Add ieee754-h.
7422         * config/srclist.txt: Mention ieee754.h in a comment.
7423         * doc/glibc-headers/ieee754.texi (ieee754.h):
7424         Gnulib now has a substitute that should work
7425         except for long double and for non-IEEE platforms.
7426         * lib/ieee754.in.h, m4/ieee754-h.m4, modules/ieee754-h:
7427         * modules/ieee754-h-tests, tests/test-ieee754-h.c: New files.
7429 2018-07-27  Bruno Haible  <bruno@clisp.org>
7431         iswcntrl: Mention minor problem on macOS.
7432         * doc/posix-functions/iswcntrl.texi: Mention oddity on macOS.
7434 2018-07-26  Colin Watson  <cjwatson@debian.org>
7436         bootstrap, gnulib-tool: fix translations rsync
7437         Previously, we created files such as $pobase/Makefile.in.in and then the
7438         subsequent rsync would immediately delete them.
7439         * build-aux/bootstrap (po_download_command_format): Avoid deleting
7440         non-.po files in target directory when rsyncing translations.
7441         * gnulib-tool (func_import): Likewise.
7442         * pygnulib/GLImport.py (GLImport.execute): Likewise.
7444 2018-07-25  Jim Meyering  <meyering@fb.com>
7446         bootstrap: reinstate definition fo gnulib_mk.
7447         That variable is used at least by cppi.
7448         * build-aux/bootstrap (gnulib_mk): Restore definition.
7449         This reverts the deletion from v0.1-1844-gc66dba9ba.
7451 2018-07-23  Bruno Haible  <bruno@clisp.org>
7453         doc: For module names, use texinfo markup @code{} or @samp{}.
7454         * doc/alloca.texi: Mark gnulib module names with @code.
7455         * doc/alloca-opt.texi: Likewise.
7456         * doc/quote.texi: Likewise.
7457         * doc/posix-functions/freopen.texi: Likewise.
7458         * doc/posix-functions/open.texi: Likewise.
7459         * doc/posix-functions/readlink.texi: Likewise.
7460         * doc/posix-functions/readlinkat.texi: Likewise.
7461         * doc/posix-functions/stdout.texi: Likewise.
7462         * doc/posix-functions/stderr.texi: Likewise.
7463         * doc/posix-functions/unlink.texi: Likewise.
7464         * doc/posix-functions/unlinkat.texi: Likewise.
7465         * doc/posix-functions/utime.texi: Likewise.
7466         * doc/posix-functions/utimensat.texi: Likewise.
7467         * doc/posix-functions/utimes.texi: Likewise.
7468         * doc/posix-headers/stdint.texi: Likewise.
7469         * doc/glibc-functions/futimesat.texi: Likewise.
7470         * doc/glibc-functions/lutimes.texi: Likewise.
7471         * doc/glibc-functions/memmem.texi: Likewise.
7473 2018-07-23  Werner LEMBERG  <wl@gnu.org>
7475         doc: Avoid some overfull lines in the TeX output.
7476         * doc/glibc-functions/futimesat.texi: Replace a long @code with a
7477         @example.
7478         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Insert a
7479         newline before the long URL.
7480         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Likewise.
7481         * doc/relocatable-maint.texi: Use @smallexample instead of @example.
7482         Add line breaks in code snippets.
7484 2018-07-17  Paul Eggert  <eggert@cs.ucla.edu>
7486         hard-locale: simplify by removing hard-locale.m4
7487         * m4/hard-locale.m4: Remove.
7488         * modules/hard-locale (Files): Remove m4/hard-locale.m4.
7489         (configure.ac): Do not call gl_HARD_LOCALE.
7491         gnulib-tool: limit line length for git send-email
7492         * gnulib-tool (func_import): Break actioncmd log line
7493         into multiple lines.
7495 2018-07-16  Bruno Haible  <bruno@clisp.org>
7497         ffs: Ensure declaration on mingw.
7498         Reported by Daniel P. Berrangé <berrange@redhat.com>
7499         in https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00061.html.
7500         * m4/ffs.m4 (gl_FUNC_FFS): Check whether ffs() not only exists but is
7501         also declared.
7503 2018-07-13  Paul Eggert  <eggert@cs.ucla.edu>
7505         regex-tests: add dependency
7506         * modules/regex-tests (Depends-on): Add gettext-h.
7507         This is needed given the recent changes to regex,
7508         which no longer depends on gettext-h.
7510 2018-07-06  Paul Eggert  <eggert@cs.ucla.edu>
7512         regex: now in sync with glibc
7513         * config/srclist.txt: Gnulib and glibc regex code
7514         are synchronized again.
7516 2018-07-05  Paul Eggert  <eggert@cs.ucla.edu>
7518         renameatu: rename from renameat2
7519         It's looking like Glibc will add a renameat2 function
7520         that is incompatible with Gnulib renameat2; see:
7521         https://sourceware.org/ml/libc-alpha/2018-07/msg00064.html
7522         To help avoid future confusion, rename renameat2 to something else.
7523         Use the name 'renameatu', as the Gnulib function is close to the
7524         Glibc function.  Perhaps someday there will also be a renameat2
7525         Gnulib module, which mimicks the future glibc renameat2, but that
7526         can wait as nobody seems to need such a module now.
7527         * NEWS: Mention this.
7528         * lib/renameatu.c: Rename from lib/renameat2.c.
7529         * lib/renameatu.h: Rename from lib/renameat2.h.
7530         * modules/renameatu: Rename from modules/renameat2.
7531         * modules/renameatu-tests: Rename from modules/renameat2-tests.
7532         All uses of "renameat2" in identifiers or file name
7533         changed to "renameatu", except for two instances in
7534         lib/renameatu.c that deal with the Linux kernel's
7535         renameat2 syscall.
7537 2018-07-04  Paul Eggert  <eggert@cs.ucla.edu>
7539         gnulib-tool: minor tweaks for --gnu-make
7540         * gnulib-tool: Do not allow --gnu-make in test modes,
7541         since they all require automake.
7542         (func_emit_lib_Makefile_am): Don’t emit automake comment
7543         if --gnu-make.
7545         regex: work around conditional-dependencies glitch
7546         * modules/regex (Depends-on): Add langinfo.
7547         Without this change, I had problems building an experimental
7548         version of GNU Emacs.  The symptom of the bug was a message
7549         ‘./configure: line 12726: test: =: unary operator expected’.
7550         This was due to a line in gl_FUNC_NL_LANGINFO that invokes
7551         ‘test $HAVE_LANGINFO_CODESET = 1’ even though HAVE_LANGINFO_CODESET
7552         was unset.  Although gl_FUNC_NL_LANGINFO has
7553         ‘AC_REQUIRE([gl_LANGINFO_H])’ and gl_LANGINFO_H always sets
7554         HAVE_LANGINFO_CODESET to 0 or 1, gnulib-tool with
7555         --conditional-dependencies sometimes arranges for the
7556         gl_FUNC_NL_LANGINFO code to be executed before the gl_LANGINFO_H
7557         code.  Since the regex code includes <langinfo.h> it should be
7558         depending on the langinfo module anyway, and this happens to work
7559         around the bug, so install that as a workaround for now.  To
7560         reproduce the original problem, run the following shell script on
7561         the version of Gnulib just before this patch was installed.
7562                 rm -fr foo
7563                 mkdir foo
7564                 cat >foo/configure.ac <<'EOF'
7565                 AC_INIT(GNU Emacs, 27.0.50, bug-gnu-emacs@gnu.org, , https://www.gnu.org/software/emacs/)
7566                 gl_EARLY
7567                 gl_INIT
7568                 AC_OUTPUT
7569                 EOF
7570                 ./gnulib-tool --import --conditional-dependencies --gnu-make --dir foo regex
7571                 ./gnulib-tool --copy build-aux/install-sh foo/install-sh
7572                 ./gnulib-tool --copy build-aux/config.sub foo/config.sub
7573                 ./gnulib-tool --copy build-aux/config.guess foo/config.guess
7574                 cd foo
7575                 aclocal -I m4
7576                 autoconf
7577                 ./configure --with-included-regex
7579 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
7581         wchar: fix bug when checking for ‘inline’
7582         I discovered this when looking into using the regex module
7583         with Emacs.
7584         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Fix bug introduced in
7585         2016-08-17T23:09:38Z!skunk@iSKUNK.ORG; the code compiled
7586         conftest1.c and conftest2.c but these files were not created.
7587         As far as I can see, this check never worked and nobody reported
7588         it until now, which is a bit worrisome.
7590 2018-06-30  Jim Meyering  <meyering@fb.com>
7592         bootstrap: s/--option val/--option=val/
7593         * build-aux/bootstrap (gnulib_tool_options): Change the
7594         spelling of "--option val" pairs to "--option=val", for
7595         aesthetics, and also so that this file no longer triggers
7596         a common help2man syntax-check warning when copied into
7597         projects like grep, gzip, etc.
7599 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
7601         manywarnings: omit -Wswitch-default
7602         This should make things more consistent, as we already ignore
7603         -Wswitch-enum.  Problem reported by Reuben Thomas; see:
7604         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00179.html
7605         * build-aux/g++-warning.spec, build-aux/gcc-warning.spec:
7606         Add -Wswitch-default.
7607         * m4/manywarnings-c++.m4 (gl_MANYWARN_ALL_GCC_CXX_IMPL):
7608         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
7609         Remove -Wswitch-default.
7611         regex: revert most trimming
7612         Problems reported by Bruno Haible in:
7613         https://lists.gnu.org/r/bug-gnulib/2018-07/msg00001.html
7614         * modules/regex (Depends-on): Add lock, memcmp, memmove,
7615         and wctype back in.  lock because regex users shouldn’t
7616         need to know that regex needs locking, and the rest because
7617         gnulib-tool should ordinarily ignore them anyway.
7619 2018-06-30  Paul Eggert  <eggert@cs.ucla.edu>
7621         regex: trim module dependencies
7622         * modules/regex (Depends-on): Remove gettext-h and lock,
7623         since the regex code should work OK without these modules,
7624         and Emacs uses it that way.  Also remove memcmp, memmove,
7625         and wctype, as these modules are obsolete and should not be
7626         needed any more.
7628 2018-06-29  Paul Eggert  <eggert@cs.ucla.edu>
7630         regex: glibc does not use intprops.h
7631         Maybe we can talk glibc into using intprops.h someday, but
7632         now doesn’t seem to be a good time.
7633         * lib/regcomp.c (TYPE_SIGNED): Remove; regex_internal.h now defines.
7634         * lib/regex_internal.h [_LIBC]: Do not include intprops.h.
7635         (TYPE_SIGNED, INT_ADD_WRAPV): New macros.
7637 2018-06-28  Paul Eggert  <eggert@cs.ucla.edu>
7639         regex: port to recently proposed glibc regex merge
7640         This patch is inspired by Adhemerval Zanella's recent proposal
7641         https://www.sourceware.org/ml/libc-alpha/2018-06/msg00905.html
7642         to merge glibc and Gnulib regex.  It aims to simplify the merge on
7643         the glibc side, without keeping Gnulib portable.
7644         * lib/regex.h: Fix a problem with glibc installed-header checking,
7645         as follows:
7646         (_Restrict_): Prefer __restrict if defined or if GCC 2.95 or later.
7647         (_Restrict_arr_): Prefer __restrict_arr if defined,
7648         otherwise prefer _Restrict_ if C99 or GCC 3.1 or later (but not C++).
7649         * lib/regex_internal.c (re_string_realloc_buffers, build_wcs_buffer)
7650         (build_wcs_upper_buffer, build_upper_buffer)
7651         (re_string_translate_buffer, re_string_context_at):
7652         Move decls here from lib/regex_internal.h, for glibc internal tests.
7653         (build_wcs_upper_buffer): Use __wcrtomb, not wcrtomb, fixing
7654         glibc BZ #18496.
7655         * lib/regex_internal.h (lock_fini) [_LIBC]: Cast to 0 to pacify
7656         -Wunused-value.
7657         (bitset_set, bitset_clear, bitset_contain, bitset_empty)
7658         (bitset_set_all, bitset_copy, bitset_not, bitset_merge)
7659         (bitset_mask): Now static inline, and without any __attribute__
7660         ((unused)) decoration, for glibc internal tests.
7662 2018-06-25  Bruno Haible  <bruno@clisp.org>
7664         threadlib: Fix LIBMULTITHREAD on platforms where --as-needed is enabled.
7665         Reported by Erik Auerswald <auerswal@unix-ag.uni-kl.de>
7666         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00063.html>.
7667         * m4/threadlib.m4 (gl_THREADLIB_BODY): Check whether the linker supports
7668         --as-needed/--no-as-needed and --push-state/--pop-state. When defining
7669         USE_POSIX_THREADS_WEAK or USE_SOLARIS_THREADS_WEAK or
7670         USE_PTH_THREADS_WEAK, define LIBMULTITHREAD in such a way that -lpthread
7671         / -lthread / -lpth does not get optimized away by a preceding
7672         --as-needed option.
7674 2018-06-25  Bruno Haible  <bruno@clisp.org>
7676         Continue to use spaces for indentation, not tabs.
7677         * MODULES.html.sh: Untabify.
7678         * doc/regex.texi: Likewise.
7679         * lib/acl-internal.c: Likewise.
7680         * lib/dfa.c: Likewise.
7681         * lib/exclude.c: Likewise.
7682         * lib/exclude.h: Likewise.
7683         * lib/get-permissions.c: Likewise.
7684         * lib/gettimeofday.c: Likewise.
7685         * lib/parse-datetime.y: Likewise.
7686         * lib/pselect.c: Likewise.
7687         * lib/set-permissions.c: Likewise.
7688         * lib/time.in.h: Likewise.
7689         * m4/canonicalize.m4: Likewise.
7690         * m4/gc.m4: Likewise.
7691         * m4/gnulib-common.m4: Likewise.
7692         * m4/pthread_sigmask.m4: Likewise.
7693         * m4/vararrays.m4: Likewise.
7694         * tests/test-digest.h: Likewise.
7695         * tests/test-fcntl-h.c: Likewise.
7696         * tests/test-timespec.c: Likewise.
7697         * tests/uniwbrk/test-uc-wordbreaks.c: Likewise.
7699 2018-06-25  Bruno Haible  <bruno@clisp.org>
7701         manywarnings: Don't enable -Wjump-misses-init warnings by default.
7702         * build-aux/gcc-warning.spec: Add -Wjump-misses-init.
7703         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): Remove
7704         -Wjump-misses-init.
7706 2018-06-25  Jim Meyering  <meyering@fb.com>
7708         acl-internal.h: remove _GL_ATTRIBUTE_CONST on void function
7709         * lib/acl-internal.h (free_permission_context): Remove that
7710         attribute directive.  Otherwise, it would provoke this from GCC 9:
7711         lib/acl-internal.h:300:3: error: 'const' attribute on function \
7712           returning 'void' [-Werror=attributes]
7714 2018-06-24  Jim Meyering  <meyering@fb.com>
7716         parse-datetime: accommodate gcc-4.8.5
7717         Bruno Haible reported the build failure in
7718         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00066.html
7719         * lib/parse-datetime.y (parse_datetime2): Remove leading "static"
7720         on declaration of new local.
7722 2018-06-24  Bruno Haible  <bruno@clisp.org>
7724         af_alg: Fail in continuable manner on Linux/powerpc64le.
7725         Reported by Assaf Gordon <assafgordon@gmail.com>
7726         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00034.html>.
7727         * lib/af_alg.c (afalg_stream): On non-seekable streams, try a single-
7728         byte send() as the first round.
7730 2018-06-24  Bruno Haible  <bruno@clisp.org>
7732         af_alg: Fix state of stream after sendfile() succeeds.
7733         * lib/af_alg.c (afalg_stream): Invoke fflush and lseek, to ensure that
7734         the stream is correctly positioned afterwards.
7735         * modules/crypto/af_alg (Depends-on): Add fflush.
7736         * tests/test-digest.h (test_digest_on_files): Verify that after the
7737         operation the stream is positioned at end of file.
7739 2018-06-24  Jim Meyering  <meyering@fb.com>
7741         canon-host: take GCC9's advice rather than ignoring warning
7742         Pádraig Brady suggested not to ignore this GCC9 advice.
7743         * lib/canon-host.c: Undo preceding change.
7744         * lib/canon-host.h: Instead, declare with _GL_ATTRIBUTE_MALLOC.
7746         parse-datetime.y: avoid spurious GCC 9 warning
7747         * lib/parse-datetime.y (parse_datetime2): Save RELATIVE_TIME_0 into
7748         a function local prior to the first "goto fail".  The prior use would
7749         evoke this:
7750         parse-datetime.y: In function 'parse_datetime2':
7751         parse-datetime.y:1791:19: error: jump skips variable initialization \
7752           [-Werror=jump-misses-init]
7753         parse-datetime.y:2385:2: note: label 'fail' defined here
7754         parse-datetime.y:188:43: note: '({anonymous})' declared here
7755         parse-datetime.y:1841:12: note: in expansion of macro 'RELATIVE_TIME_0'
7757         canon-host.c: avoid spurious GCC 9 warning
7758         * lib/canon-host.c: Suppress GCC9's -Wsuggest-attribute=malloc.
7760         manywarnings: accommodate GCC 9.0-pre: remove -Wchkp and -Wabi
7761         * build-aux/gcc-warning.spec: Add them here, each with an explanation.
7762         * m4/manywarnings.m4: Remove them.
7763         Otherwise, building coreutils, I would see this:
7764         cc1: error: deprecated command line option '-Wchkp' [-Werror]
7765         cc1: error: -Wabi won't warn about anything [-Werror=abi]
7766         cc1: note: -Wabi warns about differences from the most up-to-date ABI,\
7767           which is also used by default
7768         cc1: note: use e.g. -Wabi=11 to warn about changes from GCC 7
7770 2018-06-24  Bruno Haible  <bruno@clisp.org>
7772         af_alg tests: Add another test.
7773         * tests/test-digest.h (test_digest_on_files): Also check a large file
7774         with a skipped header.
7775         * tests/test-md5.c: Include macros.h.
7776         * tests/test-sha1.c: Likewise.
7777         * tests/test-sha256.c: Likewise.
7778         * tests/test-sha512.c: Likewise.
7779         * modules/crypto/md5-tests (Files): Add tests/macros.h.
7780         * modules/crypto/sha1-tests (Files): Likewise.
7781         * modules/crypto/sha256-tests (Files): Likewise.
7782         * modules/crypto/sha512-tests (Files): Likewise.
7784 2018-06-24  Pádraig Brady  <P@draigBrady.com>
7786         maint: clarify comments about sticky EOF
7787         * lib/af_alg.c: Be more direct that we can't
7788         assume stickiness of EOF for portability reasons.
7789         * lib/md5.c: Clarify that this isn't just a glibc issue.
7790         * lib/sha1.c: Likewise.
7791         * lib/sha256.c: Likewise.
7792         * lib/sha512.c: Likewise.
7794 2018-06-24  Bruno Haible  <bruno@clisp.org>
7796         af_alg: Comment and style improvements.
7797         * lib/af_alg.c (alg_socket): Use 'size_t' as index into a string.
7798         (afalg_buffer, afalg_stream): Improve comments.
7800 2018-06-24  Pádraig Brady  <P@draigBrady.com>
7802         af_alg: disable kernel hash functions by default
7803         All the kernel routines were seen to be significantly slower
7804         with these relatively recent components on an i3-2310M system:
7805           kernel-4.10.6-200.fc25.x86_64
7806           openssl-1.0.2m-1.fc25.x86_64
7807         sha1 was nearly twice as slow in the kernel for example.
7808         Further considerations why this should not be the default, at:
7809         https://lists.gnu.org/r/coreutils/2018-06/msg00034.html
7811         * m4/af_alg.m4: Require --with-linux-crypto to enable.
7812         * m4/gl-openssl.m4: Tweak accordingly.
7814 2018-06-24  Pádraig Brady  <P@draigBrady.com>
7816         af_alg: avoid hangs when reading from streams
7817         * lib/af_alg.c (afalg_stream): Don't assume EOF is sticky,
7818         and thus avoid doing a fread() when feof() is set.
7819         * lib/md5.c: Ensure feof() is called before fread().
7820         * lib/sha1.c: Likewise.
7821         * lib/sha256.c: Likewise.
7822         * lib/sha512.c: Likewise.
7824 2018-06-24  Pádraig Brady  <P@draigBrady.com>
7826         af_alg: fix error handling when hash not returned
7827         * lib/af_alg.c (afalg_stream): Handle the case where we've
7828         successfully written data to the kernel in the read/write loop,
7829         but the kernel doesn't respond with the hash.
7831 2018-06-24  Paul Eggert  <eggert@cs.ucla.edu>
7833         libc-config: merge from glibc
7834         * lib/cdefs.h (__inline, __restrict):
7835         Copy from current glibc.  This fixes glibc bug 17721,
7836         which Gnulib had already fixed in a different way.
7837         (__nonnull): Lessen the distance from glibc by using the
7838         glibc definition inside an ‘#ifndef __nonnull’.
7839         (__attribute_nonstring__): New macro, copied from
7840         current glibc.
7841         * lib/libc-config.h (__attribute_nonstring__): New undef.
7842         (__restrict): Remove; workaround no longer needed.
7843         Keep the __inline workaround, though, as it uses HAVE___INLINE to
7844         support more compilers than the glibc __inline can.
7846 2018-06-24  Bruno Haible  <bruno@clisp.org>
7848         mbrtowc, wcwidth: Fix MT-safety bug (regression from 2018-06-23).
7849         * lib/mbrtowc.c (enc_t): New enum type.
7850         (locale_enc, locale_enc_cached): New functions.
7851         (mbrtowc): Eliminate static variables. Use locale_enc_cached instead.
7852         * lib/wcwidth.c (is_locale_utf8, is_locale_utf8_cached): New functions.
7853         (wcwidth): Eliminate static variables. Use is_locale_utf8_cached
7854         instead.
7855         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Require AC_C_INLINE.
7856         * m4/wcwidth.m4 (gl_PREREQ_WCWIDTH): New macro.
7857         * modules/wcwidth (configure.ac): Invoke it.
7859 2018-06-24  Bruno Haible  <bruno@clisp.org>
7861         wchar-single: Fix test failure in wcwidth tests.
7862         * tests/test-wcwidth.c (main): If the wchar-single module is present,
7863         skip the tests in the C locale.
7865 2018-06-23  Pádraig Brady  <P@draigBrady.com>
7867         crypto: mention --without-linux-crypto in --with-openssl --help
7868         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Mention that linux crypto
7869         routines take precedence in --with-openssl help output.
7871 2018-06-23  Pádraig Brady  <P@draigBrady.com>
7873         wchar-single: a new module to enable optimizations in wchar replacements
7874         * lib/mbrtowc.c (mbrtowc): Only check locale_charset() once if
7875         GNULIB_WCHAR_SINGLE is enabled.
7876         * lib/wcwidth.c (wcwidth): Likewise.
7878 2018-06-23  Bruno Haible  <bruno@clisp.org>
7880         libc-config: Fix conflict with FreeBSD include files.
7881         * lib/cdefs.h (__nonnull): Remove definition.
7882         * lib/libc-config.h (__nonnull): Remove undefinition.
7884 2018-06-21  Paul Eggert  <eggert@cs.ucla.edu>
7886         random_r: do not crash if state is unaligned
7887         Problem reported by Bruce Korb in:
7888         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00030.html
7889         I reproduced the crash on 32-bit sparc with Oracle Studio 12.6
7890         with 'cc -O2 -xmemalign=8s'.
7891         * lib/random_r.c: Include string.h, for memcpy.
7892         (get_int32, set_int32): New functions.
7893         (__srandom_r, __initstate_r, __setstate_r, __random_r):
7894         Use them to avoid assumption that state pointer is aligned.
7895         (__random_r): Avoid integer overflow if INT_MAX == UINT32_MAX.
7896         * tests/test-random_r.c (test_failed): New function.
7897         (main): Use it, to test for alignment bugs.
7899         random_r: omit unnecessary include
7900         * lib/random_r.c: Do not include limits.h.
7902         random, random_r: merge from glibc
7903         * lib/random.c, lib/random_r.c:
7904         Include libc-config.h if !_LIBC, not config.h unilaterally.
7905         * lib/random.c:
7906         Do not include stdint.h or time.h; not needed.
7907         Include libc-lock.h if _LIBC, and define substitute macros otherwise.
7908         (unsafe_state): Rename from generator.  All uses changed.
7909         Use C99-style initializers.
7910         (__random, __srandom, __initstate, __setstate): Rename from
7911         non-underscored version, but define it to non-underscored version
7912         on Gnulib.  Add a lock.
7913         * lib/random_r.c (__srandom_r, __initstate_r, __setstate_r, __random_r):
7914         Likewise.
7915         Do not include <stdint.h>; not needed since stdlib.h defines int32_t.
7916         (weak_alias, __set_errno) [!_LIBC]: Remove; now done by libc-config.
7917         (__srandom_r): Use int32_t instead of long int where int32_t will do.
7918         (__random_r): Use uint32 to fix glibc bug 17343.
7919         * modules/random, modules/random_r (Depends-on): Add libc-config.
7920         Depend on stdint only if $HAVE_RANDOM = 0.
7922 2018-06-19  Jim Meyering  <meyering@fb.com>
7924         README-release: also run any check-very-expensive tests
7925         * top/README-release: Adjust instructions so they run the
7926         check-very-expensive tests when there is such a target.
7928 2018-06-18  Bruno Haible  <bruno@clisp.org>
7930         pthread_rwlock_rdlock: Add comments regarding glibc behaviour.
7931         * m4/pthread_rwlock_rdlock.m4: Add comment.
7932         * doc/posix-functions/pthread_rwlock_rdlock.texi: Mention that rwlocks
7933         are reader-preferring in glibc.
7934         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likwise.
7935         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
7937 2018-06-17  Paul Eggert  <eggert@cs.ucla.edu>
7939         crypto: use byteswap
7940         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
7941         * lib/sm3.c: Include <byteswap.h>.
7942         (SWAP): Use its macros rather than reinventing the wheel.
7943         * modules/crypto/md4, modules/crypto/md5-buffer:
7944         * modules/crypto/sha1-buffer, modules/crypto/sha256-buffer:
7945         * modules/crypto/sha512-buffer, modules/crypto/sm3:
7946         (Depends-on): Add byteswap.
7948 2018-06-17  Pádraig Brady  <P@draigBrady.com>
7950         gendocs.sh: fix support for legacy --texi2html
7951         * build-aux/gendocs.sh: Restrict use of TOP_NODE_UP_URL
7952         to the default makeinfo invocation.
7953         Reported by Bruce Korb
7955 2018-06-17  Bruno Haible  <bruno@clisp.org>
7957         gettext po infrastructure: Update from current gettext git.
7958         Reported by Akim Demaille <akim@lrde.epita.fr>.
7959         * build-aux/po/Makefile.in.in: Update from current gettext git.
7960         * build-aux/po/remove-potcdate.sin: Likewise.
7961         * config/srclist.txt: Temporarily disable sync for these files.
7963 2018-06-17  Bruno Haible  <bruno@clisp.org>
7965         getloadavg: Return 0 on Windows without Cygwin.
7966         * lib/getloadavg.c: Don't assume that the symbol WINDOWS32 is defined.
7968 2018-06-17  Paul Smith  <psmith@gnu.org>
7970         getloadavg: Allow building on Windows without Cygwin
7971         * lib/getloadavg.c: Reinstate ifdef for HAVE_UNISTD_H.
7972         * m4/getloadavg.m4: Check for unistd.h.
7974 2018-06-03  Paul Eggert  <eggert@cs.ucla.edu>
7976         Port crypto/af_alg to GCC 4.8.4
7977         Problem reported by Peter Simons in:
7978         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00002.html
7979         * modules/crypto/af_alg (Depends-on): Add c99 if USE_AF_ALG.
7981 2018-05-27  Colin Watson  <cjwatson@debian.org>
7983         bootstrap: document source fetching in --help
7984         * build-aux/bootstrap (usage): Document how Gnulib sources are fetched.
7986 2018-04-09  Colin Watson  <cjwatson@debian.org>
7988         bootstrap: allow non-submodule control of gnulib
7989         * build-aux/bootstrap: Honour GNULIB_URL and GNULIB_REVISION in
7990         bootstrap.conf when fetching gnulib using "git clone" or via
7991         GNULIB_SRCDIR.
7993 2018-05-21  Paul Eggert  <eggert@cs.ucla.edu>
7995         crypto: omit stream ops Emacs doesn’t need
7996         * lib/md5.c (md5_stream):
7997         * lib/sha1.c (sha1_stream):
7998         * lib/sha256.c (shaxxx_stream, sha256_stream, sha224_stream):
7999         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
8000         Compile stream functions only if GL_COMPILE_CRYPTO_STREAM is
8001         defined.  Emacs needs this, as it does not use the stream
8002         operations and doesn’t need all the af_alg stuff we’ve recently
8003         added.  Perhaps a similar change is needed to the other crypto
8004         modules, but this patch changes only those needed for Emacs.
8005         * modules/crypto/md5-buffer, modules/crypto/sha1-buffer:
8006         * modules/crypto/sha256-buffer, modules/crypto/sha512-buffer:
8007         New modules, used by Emacs.
8008         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
8009         * modules/crypto/sha512: Rewrite to depend on the new modules.
8011 2018-05-20  Pádraig Brady  <P@draigBrady.com>
8013         fts: avoid a memory leak edge case
8014         * lib/fts.c (fts_open): Set an appropriate fts_level
8015         so that an immediate fts_close() will free the allocation.
8016         * tests/test-fts.c (fts_dealloc): Add a test case which
8017         will trigger under valgrind or address sanitizer.
8018         Fixes https://bugs.gnu.org/31439
8020 2018-05-20  Bruno Haible  <bruno@clisp.org>
8022         wcwidth tests: Fix link error.
8023         * modules/wcwidth-tests (Makefile.am): Link test-wcwidth against
8024         $(LIBUNISTRING).
8026 2018-05-20  Bruno Haible  <bruno@clisp.org>
8028         regex: Fix "error: possibly undefined macro: gl_GLIBC21".
8029         * modules/regex (Files): Add m4/glibc21.m4.
8031 2018-05-20  Bruno Haible  <bruno@clisp.org>
8033         localcharset: Optimize.
8034         * lib/localcharset.c (alias_table): Comment out no-op mappings for
8035         platforms where these don't matter. This reduces the table size,
8036         which in turn reduces the lookup time.
8038 2018-05-19  Bruno Haible  <bruno@clisp.org>
8040         localcharset: Map the locale encodings found in newer OSes.
8041         * lib/localcharset.c (alias_table): Add mapping for locale encodings
8042         found in FreeBSD 11, NetBSD 7, Solaris 10, Openindiana, HP-UX 11.31,
8043         IRIX 6.5, Minix 3.3.
8044         * lib/localcharset.h: Update comments accordingly. Also for Cygwin 2.9.
8046 2018-05-19  Bruno Haible  <bruno@clisp.org>
8048         localcharset: Move mapping tables into the code. Use a binary search.
8049         * lib/localcharset.h: Document the GNU canonical names for character
8050         encodings here.
8051         * lib/localcharset.c: Don't include <fcntl.h>, <unistd.h>,
8052         relocatable.h, configmake.h.
8053         (O_NOFOLLOW, ISSLASH, DIRECTORY_SEPARATOR, getc, volatile): Remove
8054         macros.
8055         (charset_aliases): Remove variable.
8056         (get_charset_aliases): Remove function.
8057         (struct table_entry): New type.
8058         (alias_table, locale_table): New constants.
8059         (locale_charset): Use the alias_table or locale_table to get the
8060         canonicalized encoding name.
8061         * lib/config.charset: Remove file.
8062         * lib/ref-add.sin: Remove file.
8063         * lib/ref-del.sin: Remove file.
8064         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't require gl_FCNTL_O_FLAGS,
8065         AC_CANONICAL_HOST, gl_GLIBC21. Don't check for getc_unlocked.
8066         * modules/localcharset (Notice): Remove.
8067         (Files): Remove config.charset, ref-add.sin, ref-del.sin, fcntl-o.m4,
8068         glibc21.m4.
8069         (Depends-on): Remove configmake.
8070         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT to empty.
8071         (Makefile.am): Simplify.
8072         * build-aux/prefix-gnulib-mk: Remove special code for the removed files.
8074 2018-05-19  Bruno Haible  <bruno@clisp.org>
8076         localcharset: Add a manual test.
8077         * tests/test-localcharset.c: New file.
8078         * modules/localcharset-tests: New file.
8080 2018-05-19  Bruno Haible  <bruno@clisp.org>
8082         localcharset: Remove support for obsolete platforms.
8083         * lib/config.charset: Remove support for Linux/libc5, glibc-2.0.x, and
8084         Mac OS X 10.2. Comment out dubious entry for Solaris.
8086 2018-05-19  Jim Meyering  <meyering@fb.com>
8088         gnupload: adjust comment
8089         * build-aux/gnupload: Add FIXME-2020 comment, to make it slightly
8090         more likely we'll remove the just-added code in a year or two.
8092 2018-05-19  Bruno Haible  <bruno@clisp.org>
8094         gnupload: Fix "gpg-agent is not available in this session" error.
8095         * build-aux/gnupload (GPG): Pick the right GNUPG executable to use.
8097 2018-05-16  Paul Eggert  <eggert@cs.ucla.edu>
8099         crypto/af_alg: fix --help
8100         * m4/af_alg.m4: Avoid spurious newline in --help output.
8102 2018-05-13  Bruno Haible  <bruno@clisp.org>
8104         nl_langinfo: Fix compilation error on Android.
8105         * lib/nl_langinfo.c (nl_langinfo): Define values for the items GROUPING,
8106         INT_CURR_SYMBOL, etc. only if these items are defined.
8108 2018-05-13  Bruno Haible  <bruno@clisp.org>
8110         truncate: Fix compilation error on Android.
8111         * m4/truncate.m4 (gl_FUNC_TRUNCATE): Test also whether 'truncate' is
8112         declared. Set HAVE_DECL_TRUNCATE, not HAVE_TRUNCATE.
8113         * lib/unistd.in.h (truncate): Test HAVE_DECL_TRUNCATE, not
8114         HAVE_TRUNCATE.
8115         * modules/truncate: Likewise.
8116         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_TRUNCATE,
8117         not HAVE_TRUNCATE.
8118         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TRUNCATE, not
8119         HAVE_TRUNCATE.
8120         * doc/posix-functions/truncate.texi: Mention the issue.
8122 2018-05-13  Bruno Haible  <bruno@clisp.org>
8124         pthread: Fix compilation error on Android.
8125         * lib/pthread.in.h: Use _GL_ALREADY_INCLUDING_PTHREAD_H to shortcut
8126         recursive inclusion of this file.
8128 2018-05-13  Bruno Haible  <bruno@clisp.org>
8130         posix_spawn: Fix compilation error on Android.
8131         * lib/spawn.in.h (posix_spawnattr_t): Consider also the case
8132         HAVE_POSIX_SPAWNATTR_T = 1 && HAVE_POSIX_SPAWN = 0.
8133         (posix_spawn_file_actions_t): Consider also the case
8134         HAVE_POSIX_SPAWN_FILE_ACTIONS_T = 1 && HAVE_POSIX_SPAWN = 0.
8136 2018-05-13  Bruno Haible  <bruno@clisp.org>
8138         tsearch: Move from K&R C to ANSI C.
8139         * lib/tsearch.c (tfind): Convert definition to ANSI C.
8141 2018-05-13  Bruno Haible  <bruno@clisp.org>
8143         tsearch: Fix compilation error on Android.
8144         * lib/search.in.h (twalk): Declare when HAVE_TWALK, not HAVE_TSEARCH,
8145         is 0.
8146         (GNULIB_defined_tsearch, GNULIB_defined_twalk): New macros.
8147         * lib/tsearch.c (tsearch, tfind, tdelete): Define only if
8148         GNULIB_defined_tsearch is true.
8149         (twalk): Define only if GNULIB_defined_twalk is true.
8150         * modules/tsearch (configure.ac): Compile tsearch.c also if HAVE_TWALK
8151         is 0.
8152         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Set HAVE_TWALK.
8153         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize HAVE_TWALK.
8154         * modules/search (Makefile.am): Substitute HAVE_TWALK.
8156 2018-05-13  Bruno Haible  <bruno@clisp.org>
8158         imaxdiv: Fix compilation error on Android.
8159         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Set HAVE_IMAXDIV_T to 0 if imaxdiv_t
8160         is not defined.
8161         * lib/inttypes.in.h (imaxdiv_t): Define if HAVE_IMAXDIV_T, not
8162         HAVE_DECL_IMAXDIV, is 0.
8163         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize HAVE_IMAXDIV_T.
8164         * modules/inttypes-incomplete (Makefile.am): Substitute HAVE_IMAXDIV_T.
8166 2018-05-13  Bruno Haible  <bruno@clisp.org>
8168         Support selective inclusion mechanism of recent mingw.org header files.
8169         Reported by Eli Zaretskii <eliz@gnu.org>.
8170         * lib/sys_types.in.h: On mingw, when __need_off_t, __need___off64_t,
8171         __need_ssize_t, or __need_time_t is defined, just include the system's
8172         <sys/types.h>.
8173         * lib/locale.in.h: On mingw, when __need_locale_t is defined, just
8174         include the system's <locale.h>.
8176 2018-05-13  Bruno Haible  <bruno@clisp.org>
8178         Avoid compilation error due to 'mmap' on Android.
8179         * lib/vma-iter.c (_FILE_OFFSET_BITS): Undefine on Android.
8180         * lib/get-rusage-as.c (_FILE_OFFSET_BITS): Likewise.
8181         * tests/zerosize-ptr.h (_FILE_OFFSET_BITS, __USE_FILE_OFFSET64):
8182         Undefine on Android.
8184 2018-05-13  Bruno Haible  <bruno@clisp.org>
8186         Add cross-compilation guesses for Linux systems without glibc.
8187         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for Linux.
8188         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
8189         * m4/link.m4 (gl_FUNC_LINK): Likewise.
8190         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
8191         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
8192         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
8193         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
8194         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
8195         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
8196         * m4/readlink.m4 (gl_FUNC_READLINK): Likewise.
8197         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
8198         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
8199         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
8200         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
8201         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
8202         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
8203         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
8204         * m4/utimens.m4 (gl_UTIMENS): Likewise.
8206 2018-05-13  Bruno Haible  <bruno@clisp.org>
8208         getpagesize: Fix compilation error on Android.
8209         * m4/getpagesize.m4 (gl_CHECK_FUNC_GETPAGESIZE): New macro.
8210         (gl_FUNC_GETPAGESIZE): Invoke it instead of AC_CHECK_FUNC.
8211         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't invoke
8212         AC_CHECK_FUNC. Instead, invoke gl_CHECK_FUNC_GETPAGESIZE and define
8213         HAVE_GETPAGESIZE accordingly.
8214         * modules/getcwd (Files): Add m4/getpagesize.m4.
8216 2018-05-13  Bruno Haible  <bruno@clisp.org>
8218         tcgetsid: Fix compilation error on Android.
8219         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use AC_LINK_IFELSE instead of
8220         AC_CHECK_FUNC.
8222 2018-05-13  Bruno Haible  <bruno@clisp.org>
8224         getpass: Fix configure test for Android.
8225         * m4/getpass.m4 (gl_PREREQ_GETPASS): Use AC_LINK_IFELSE instead of
8226         AC_CHECK_FUNC.
8228 2018-05-13  Bruno Haible  <bruno@clisp.org>
8230         ffs: Fix compilation error on Android.
8231         * m4/ffs.m4 (gl_FUNC_FFS): Use AC_LINK_IFELSE instead of AC_CHECK_FUNC.
8233 2018-05-13  Bruno Haible  <bruno@clisp.org>
8235         mkfifo: Fix compilation error on Android.
8236         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Use AC_LINK_IFELSE instead of
8237         AC_CHECK_FUNC.
8239 2018-05-13  Bruno Haible  <bruno@clisp.org>
8241         c-strtod: Fix configure test for Android.
8242         * m4/c-strtod.m4 (gl_C_STRTOD): Use AC_LINK_IFELSE instead of
8243         AC_CHECK_FUNC.
8245 2018-05-13  Bruno Haible  <bruno@clisp.org>
8247         random: Fix compilation error on Android.
8248         * m4/random.m4 (gl_FUNC_RANDOM): Use AC_LINK_IFELSE instead of
8249         AC_CHECK_FUNC.
8251 2018-05-13  Bruno Haible  <bruno@clisp.org>
8253         grantpt: Fix compilation error on Android.
8254         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Use AC_LINK_IFELSE instead of
8255         AC_CHECK_FUNC.
8257 2018-05-13  Bruno Haible  <bruno@clisp.org>
8259         stdioext: Fix compilation errors with newer Android headers.
8260         * lib/stdio-impl.h (fp_, fp_ub): Define differently for Android.
8261         (__SLBF, __SNBF, __SRD, __SWR, __SRW, __SEOF, __SERR, __SOFF): Define
8262         fallbacks for Android.
8263         * lib/fpending.c: Update comments.
8264         * lib/fpurge.c: Likewise.
8265         * lib/freadable.h: Likewise.
8266         * lib/freadable.c: Likewise.
8267         * lib/freadahead.c: Likewise.
8268         * lib/freading.h: Likewise.
8269         * lib/freadptr.c: Likewise.
8270         * lib/fseterr.c: Likewise.
8271         * lib/fwritable.h: Likewise.
8272         * lib/fwritable.c: Likewise.
8273         * lib/fwriting.h: Likewise.
8274         * lib/fwriting.c: Likewise.
8276 2018-05-13  Bruno Haible  <bruno@clisp.org>
8278         doc: Add info about Android versions 2.0 to 8.1.
8279         * doc/**/*.texi: Add info about functions in all released versions of
8280         Bionic.
8282 2018-05-12  Bruno Haible  <bruno@clisp.org>
8284         fseeko: On mingw, don't use the hidden function _fseeki64.
8285         Reported by Eli Zaretskii <eliz@gnu.org>.
8286         * m4/fseeko.m4 (gl_PREREQ_FSEEKO): Test whether _fseeki64 is declared.
8287         * lib/fseeko.c (fseeko): Use _fseeki64 only if it is declared.
8289 2018-05-12  Bruno Haible  <bruno@clisp.org>
8291         glob: Choose 'dirent_type' in a way that works better on mingw.
8292         Reported and suggested by Eli Zaretskii <eliz@gnu.org>.
8293         * lib/glob.c (dirent_type): Define as uint_fast32_t.
8295 2018-05-12  Bruno Haible  <bruno@clisp.org>
8297         execute, spawn-pipe: Avoid warning about redefining 'close'.
8298         Reported by Eli Zaretskii <eliz@gnu.org>.
8299         * lib/execute.c: Undefine 'close' before redefining it.
8300         * lib/spawn-pipe.c: Likewise.
8302 2018-05-12  Bruno Haible  <bruno@clisp.org>
8304         nanosleep: Avoid test failure on mingw when it has nanosleep.
8305         Reported by Eli Zaretskii <eliz@gnu.org>.
8306         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check whether alarm() exists.
8307         If it does not exist, use a simpler test program that does not call
8308         alarm().
8310 2018-05-10  Bruno Haible  <bruno@clisp.org>
8312         lock, cond, thread, tls: Use a different symbol as libpthread witness.
8313         Reported by Devin Hussey <husseydevin@gmail.com>.
8314         Based on a patch by Paul Eggert.
8315         * lib/glthread/lock.h (pthread_in_use): Use 'pthread_mutexattr_gettype'
8316         as witness of libpthread.
8317         * lib/glthread/cond.h (pthread_in_use): Likewise.
8318         * lib/glthread/thread.h (pthread_in_use): Likewise.
8319         * lib/glthread/tls.h (pthread_in_use): Likewise.
8321 2018-05-10  Bruno Haible  <bruno@clisp.org>
8323         cond tests: Fix compilation error on Solaris.
8324         * tests/test-cond.c: Include <unistd.h> before defining 'yield' as a
8325         macro.
8327 2018-05-10  Bruno Haible  <bruno@clisp.org>
8329         doc: Add partial info about Android 4.3.
8330         * doc/*-functions/*.texi: Add info about functions that were added
8331         to Bionic between Android 4.3 and Android 9.0.
8333 2018-05-10  Bruno Haible  <bruno@clisp.org>
8335         doc: Add info about Android 9.0.
8336         * doc/**/*.texi: Add info about functions and headers in Bionic from
8337         Android 9.0.
8339 2018-05-09  Paul Eggert  <eggert@cs.ucla.edu>
8341         af_alg: fix my typo in afalg_buffer
8342         * lib/af_alg.c (afalg_buffer): Fix typo I recently introduced.
8343         (afalg_stream): Simplify and avoid the need for a runtime test
8344         at the end.
8346         af_alg: recover better from crypto failures
8347         * lib/af_alg.c (afalg_stream): Recover from crypto failures if the
8348         input stream is seekable, by repositioning the stream back to
8349         where it was, possibly by just calling sendfile with an offset
8350         arg.  This lets us return -EAFNOSUPPORT instead of -EIO in some
8351         cases, which lets our callers try again with user-mode code.
8352         * modules/crypto/af_alg (Depends-on): Depend on fseeko and ftello
8353         instead of on fflush and lseek.
8355         af_alg: distiguish I/O errors better
8356         * lib/af_alg.c (afalg_buffer, afalg_stream): Return -EAFNOSUPPORT,
8357         not -EIO, if it’s OK for the caller to try again with user-mode code.
8358         (afalg_stream) [!_WIN32 || __CYGWIN__]: Return -EIO (not possibly
8359         some other error number) if fflush fails, as the caller should not
8360         try again that case.
8362         af_alg: avoid gotos
8363         * lib/af_alg.c (afalg_buffer, afalg_stream): Rewrite to avoid
8364         gotos, as they were a source of unreliability and made the code a
8365         bit harder to follow.
8367         af_alg: don’t leak file descriptors into children
8368         * lib/af_alg.c (alg_socket): Use SOCK_CLOEXEC when creating sockets.
8369         This code should be compiled only on recent GNU/Linux platforms
8370         so we shouldn’t have to also depend on the accept4 module.
8372         af_alg: coalesce socket creation
8373         * lib/af_alg.c (alg_socket): New function.
8374         (afalg_buffer, afalg_stream): Use it.  This avoids some
8375         code duplication and gotos.
8377         af_alg: fix file descriptor leak
8378         * lib/af_alg.c (afalg_stream): Close leak.
8380         af_alg: Pacify --enable-gcc-warnings on GCC 8
8381         * lib/af_alg.c (afalg_buffer, afalg_stream): Reorder local decls
8382         and checking to pacify gcc -Wjump-misses-init on GCC 8.
8384 2018-05-07  Paul Eggert  <eggert@cs.ucla.edu>
8386         af_alg: Pacify --enable-gcc-warnings
8387         Problem reported by Assaf Gordon in:
8388         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00041.html
8389         * lib/af_alg.c (afalg_buffer): Move local decls to pacify
8390         gcc -Wjump-misses-init.
8391         * lib/sha512.c (shaxxx_stream): Now static.
8393 2018-05-06  Bruno Haible  <bruno@clisp.org>
8395         af_alg: Add ability to use Linux kernel crypto API on data in memory.
8396         * lib/af_alg.h (afalg_buffer): New declaration.
8397         * lib/af_alg.c (afalg_buffer): New function.
8399 2018-05-06  Bruno Haible  <bruno@clisp.org>
8401         af_alg: Avoid warnings.
8402         * lib/af_alg.h (afalg_stream): Mark fallback declaration as inline.
8403         * m4/af_alg.m4 (gl_AF_ALG): Require AC_C_INLINE.
8405 2018-05-06  Bruno Haible  <bruno@clisp.org>
8407         crypto/{md5,sha1,sha256,sha512} tests: Add benchmarks.
8408         * tests/bench-digest.h: New file.
8409         * tests/bench-md5.c: New file.
8410         * tests/bench-sha1.c: New file.
8411         * tests/bench-sha224.c: New file.
8412         * tests/bench-sha256.c: New file.
8413         * tests/bench-sha384.c: New file.
8414         * tests/bench-sha512.c: New file.
8415         * modules/crypto/md5-tests (Files): Add tests/bench-md5.c,
8416         tests/bench-digest.h.
8417         (Depends-on): Add getrusage, gettimeofday.
8418         (Makefile.am): Add variables to build bench-md5.
8419         * modules/crypto/sha1-tests (Files): Add tests/bench-sha1.c,
8420         tests/bench-digest.h.
8421         (Depends-on): Add getrusage, gettimeofday.
8422         (Makefile.am): Add variables to build bench-sha1.
8423         * modules/crypto/sha256-tests (Files): Add tests/bench-sha224.c,
8424         tests/bench-sha256.c, tests/bench-digest.h.
8425         (Depends-on): Add getrusage, gettimeofday.
8426         (Makefile.am): Add variables to build bench-sha224, bench-sha256.
8427         * modules/crypto/sha512-tests (Files): Add tests/bench-sha384.c,
8428         tests/bench-sha512.c, tests/bench-digest.h.
8429         (Depends-on): Add getrusage, gettimeofday.
8430         (Makefile.am): Add variables to build bench-sha384, bench-sha512.
8432 2018-05-06  Bruno Haible  <bruno@clisp.org>
8434         af_alg: Fix a resource leak.
8435         * lib/af_alg.c (afalg_stream): Close socket before returning -EINVAL.
8436         New local variable 'result'.
8438 2018-05-06  Bruno Haible  <bruno@clisp.org>
8440         af_alg: Fix bug with streams that are not at position 0.
8441         * lib/af_alg.c (afalg_stream): Before sendfile, invoke fflush. Don't
8442         assume that the stream is positioned at position 0.
8443         * lib/af_alg.h (afalg_stream): Mention restriction regarding the state
8444         of the stream.
8445         * lib/md5.h (md5_stream): Likewise.
8446         * lib/sha1.h (sha1_stream): Likewise.
8447         * lib/sha256.h (sha256_stream, sha224_stream): Likewise.
8448         * lib/sha512.h (sha512_stream, sha384_stream): Likewise.
8449         * modules/crypto/af_alg (Depends-on): Add fflush, lseek.
8451         crypto/{md5,sha1,sha256,sha512} tests: Enhance test.
8452         * tests/test-digest.h (test_digest_on_files): Add a test with a FILE
8453         stream that is not positioned at the beginning.
8455 2018-05-06  Bruno Haible  <bruno@clisp.org>
8457         af_alg: Add configure option to enable/disable use of Linux crypto API.
8458         Suggested by Assaf Gordon <assafgordon@gmail.com>.
8459         * m4/af_alg.m4 (gl_AF_ALG): Add AC_ARG_WITH invocation. Define C macro
8460         USE_LINUX_CRYPTO_API.
8461         * lib/af_alg.h: Test USE_LINUX_CRYPTO_API, not HAVE_LINUX_IF_ALG_H.
8462         * lib/af_alg.c: Likewise.
8464 2018-05-06  Bruno Haible  <bruno@clisp.org>
8466         Followup to 'af_alg: New module.'.
8467         * modules/crypto/md5 (Depends-on): Remove sys_socket, sys_stat.
8468         * modules/crypto/sha1 (Depends-on): Likewise.
8469         * modules/crypto/sha256 (Depends-on): Likewise.
8470         * modules/crypto/sha512 (Depends-on): Likewise.
8472 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
8474         crypto/{md5,sha1,sha256,sha512}: simplify
8475         * lib/md5.c (md5_stream):
8476         * lib/sha1.c (sha1_stream):
8477         * lib/sha256.c (shaxxx_stream):
8478         Simplify, partly by assuming C99.
8479         * lib/sha256.c (shaxxx_stream):
8480         New function, which implements both sha256 and sha224.
8481         Simplify, partly by assuming C99.
8482         (sha256_stream, sha224_stream):
8483         Use it to avoid code duplication, removing a FIXME.
8484         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
8485         Likewise.
8487         af_alg: Improve comments.
8488         * lib/af_alg.h: Use imperatives and tighten up wording.
8490 2018-05-05  Bruno Haible  <bruno@clisp.org>
8492         af_alg: Improve comments.
8493         * lib/af_alg.c (afalg_stream): Improve comment about kernel bug.
8495 2018-05-05  Bruno Haible  <bruno@clisp.org>
8497         af_alg: New module.
8498         * lib/af_alg.h: Test HAVE_* macro through '#if', not '#ifdef'.
8499         * lib/af_alg.c: Include "af_alg.h" before the other header files.
8500         * lib/md5.c: Include "af_alg.h" unconditionally.
8501         (md5_stream): Invoke afalg_stream unconditionally.
8502         * lib/sha1.c: Include "af_alg.h" unconditionally.
8503         (sha1_stream): Invoke afalg_stream unconditionally.
8504         * lib/sha256.c: Include "af_alg.h" unconditionally.
8505         (sha256_stream, sha224_stream): Invoke afalg_stream unconditionally.
8506         * lib/sha512.c: Include "af_alg.h" unconditionally.
8507         (sha512_stream, sha384_stream): Invoke afalg_stream unconditionally.
8508         * m4/af_alg.m4: Renamed from m4/linux-if-alg.m4.
8509         (gl_AF_ALG): Renamed from gl_LINUX_IF_ALG_H.
8510         * modules/crypto/af_alg: New file.
8511         * modules/crypto/md5 (Files): Remove files that are now in the
8512         'crypto/af_alg' module.
8513         (Depends-on): Add crypto/af_alg.
8514         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
8515         (Makefile.am): Don't mention af_alg.c here.
8516         * modules/crypto/sha1 (Files): Remove files that are now in the
8517         'crypto/af_alg' module.
8518         (Depends-on): Add crypto/af_alg.
8519         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
8520         (Makefile.am): Don't mention af_alg.c here.
8521         * modules/crypto/sha256 (Files): Remove files that are now in the
8522         'crypto/af_alg' module.
8523         (Depends-on): Add crypto/af_alg.
8524         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
8525         (Makefile.am): Don't mention af_alg.c here.
8526         * modules/crypto/sha512 (Files): Remove files that are now in the
8527         'crypto/af_alg' module.
8528         (Depends-on): Add crypto/af_alg.
8529         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
8530         (Makefile.am): Don't mention af_alg.c here.
8532 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
8534         crypto tests: pacify GCC
8535         * tests/test-digest.h (test_digest_on_files):
8536         Don’t assume digest size fits in int (!).
8538         af_alg: minor style improvements
8539         * lib/af_alg.c (afalg_stream): Prefer C99 style
8540         decl-after-statement, since we’re already assuming C99.  Clarify
8541         by strengthening the bind test and omit unnecessary assignment.
8543 2018-05-05  Bruno Haible  <bruno@clisp.org>
8545         af_alg: Fix bug on empty files.
8546         * lib/af_alg.c (afalg_stream): Ignore the kernel's result if the input
8547         stream is empty.
8549 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
8551         sys-limits.h: new file for crypto and safe I/O
8552         * lib/af_alg.c: Include sys-limits.h.
8553         (MAX_RW_COUNT): Remove.  Use replaced by SYS_BUFSIZE_MAX.
8554         (afalg_stream): Also reject negative sizes for sendfile; they
8555         should not happen and the code is a bit cleaner and faster this way.
8556         * lib/safe-read.c: Include sys-limits.h.
8557         (BUGGY_READ_MAXIMUM): Remove.  All uses replaced by SYS_BUFSIZE_MAX.
8558         * lib/sys-limits.h: New file, with values and commentary derived
8559         from the old safe-read.c and from GNU Emacs sysdep.c.
8560         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
8561         * modules/crypto/sha512, modules/safe-read, modules/safe-write:
8562         Add lib/sys-limits.h to Files section.
8564 2018-05-05  Bruno Haible  <bruno@clisp.org>
8566         af_alg: Improve function signature.
8567         * lib/af_alg.h (afalg_stream): Swap second and third argument.
8568         * lib/af_alg.c (afalg_stream): Likewise.
8569         * lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c: Callers changed.
8571 2018-05-05  Bruno Haible  <bruno@clisp.org>
8573         crypto/{md5,sha1,sha256,sha512}: Fix compilation error (S_TYPEISTMO).
8574         * modules/crypto/md5 (Depends-on): Add 'sys_stat'.
8575         * modules/crypto/sha1 (Depends-on): Likewise.
8576         * modules/crypto/sha256 (Depends-on): Likewise.
8577         * modules/crypto/sha512 (Depends-on): Likewise.
8579 2018-05-05  Bruno Haible  <bruno@clisp.org>
8581         crypto/{md5,sha1,sha256,sha512}: Fix module description.
8582         * modules/crypto/md5 (Depends-on): Add 'sys_socket'.
8583         * modules/crypto/sha1 (Depends-on): Likewise.
8584         * modules/crypto/sha256 (Depends-on): Likewise.
8585         * modules/crypto/sha512 (Depends-on): Likewise.
8587 2018-05-05  Bruno Haible  <bruno@clisp.org>
8589         af_alg: Add documentation.
8590         * lib/af_alg.h: Add comments.
8592 2018-05-05  Bruno Haible  <bruno@clisp.org>
8594         sha512: Add tests.
8595         * tests/test-sha512.c: New file.
8596         * modules/crypto/sha512-tests: New file.
8598 2018-05-05  Bruno Haible  <bruno@clisp.org>
8600         sha256: Add tests.
8601         * tests/test-sha256.c: New file.
8602         * modules/crypto/sha256-tests: New file.
8604 2018-05-05  Bruno Haible  <bruno@clisp.org>
8606         sha1 tests: Add test for sha1_stream.
8607         * tests/test-sha1.c: Include test-digest.h.
8608         (main): Invoke test_digest_on_files on 'sha1_stream'.
8609         * modules/crypto/sha1-tests (Files): Add tests/test-digest.h.
8611 2018-05-05  Bruno Haible  <bruno@clisp.org>
8613         md5 tests: Add test for md5_stream.
8614         * tests/test-digest.h: New file.
8615         * tests/test-md5.c: Include test-digest.h.
8616         (main): Invoke test_digest_on_files on 'md5_stream'.
8617         * modules/crypto/md5-tests (Files): Add tests/test-digest.h.
8619 2018-04-28  Matteo Croce  <mcroce@redhat.com>
8621         md5sum: Use AF_ALG when available.
8622         * lib/md5.c: Include af_alg.h.
8623         (md5_stream): Use afalg_stream when available.
8624         * modules/crypto/md5 (Files): Add the af_alg files.
8625         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
8626         (Makefile.am): Add af_alg.c.
8628 2018-04-28  Matteo Croce  <mcroce@redhat.com>
8630         sha512sum: Use AF_ALG when available.
8631         * lib/sha512.c: Include af_alg.h.
8632         (sha512_stream, sha384_stream): Use afalg_stream when available.
8633         * modules/crypto/sha512 (Files): Add the af_alg files.
8634         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
8635         (Makefile.am): Add af_alg.c.
8637 2018-04-28  Matteo Croce  <mcroce@redhat.com>
8639         sha256sum: Use AF_ALG when available.
8640         * lib/sha256.c: Include af_alg.h.
8641         (sha256_stream, sha224_stream): Use afalg_stream when available.
8642         * modules/crypto/sha256 (Files): Add the af_alg files.
8643         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
8644         (Makefile.am): Add af_alg.c.
8646 2018-04-28  Matteo Croce  <mcroce@redhat.com>
8648         sha1sum: Use AF_ALG when available.
8649         * lib/af_alg.h: New file.
8650         * lib/af_alg.c: New file.
8651         * lib/sha1.c: Include af_alg.h.
8652         (sha1_stream): Use afalg_stream when available.
8653         * m4/linux-if-alg.m4: New file.
8654         * modules/crypto/sha1 (Files): Add the new files.
8655         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
8656         (Makefile.am): Add af_alg.c.
8658 2018-05-05  Bruno Haible  <bruno@clisp.org>
8660         all: Replace more http URLs by https URLs.
8661         * lib/localename.c: Use https: URL.
8662         * lib/timespec.h: Likewise.
8664 2018-05-03  Paul Eggert  <eggert@cs.ucla.edu>
8666         maint: port more modules to GCC 8
8667         * lib/dirname.h (base_name):
8668         * lib/exclude.h (new_exclude):
8669         * lib/xstrndup.h (xstrndup):
8670         Add malloc attribute.
8671         * lib/readutmp.c: Pacify GCC 8 about safe use of strncpy.
8672         * lib/sig-handler.h (get_handler) [SA_SIGINFO]: Simplify.
8673         This pacifies GCC 8.
8674         * m4/gnulib-common.m4 (gl_COMMON_BODY):
8675         Define _GL_ATTRIBUTE_MALLOC here.  All other definitions removed.
8677 2018-05-03  Bruno Haible  <bruno@clisp.org>
8679         Simplify code. Drop support for Borland C++ on Windows.
8680         Reported by Gisle Vanem <gisle.vanem@gmail.com>.
8681         * lib/accept4.c: Simplify 'defined _WIN32 || defined __WIN32__' to just
8682         'defined _WIN32'.
8683         * lib/canonicalize-lgpl.c: Likewise.
8684         * lib/classpath.c: Likewise.
8685         * lib/clean-temp.c: Likewise.
8686         * lib/csharpexec.c: Likewise.
8687         * lib/ctime.c: Likewise.
8688         * lib/dosname.h: Likewise.
8689         * lib/dup2.c: Likewise.
8690         * lib/errno.in.h: Likewise.
8691         * lib/error.c: Likewise.
8692         * lib/euidaccess.c: Likewise.
8693         * lib/execute.c: Likewise.
8694         * lib/fcntl.in.h: Likewise.
8695         * lib/fcntl.c: Likewise.
8696         * lib/filename.h: Likewise.
8697         * lib/findprog.c: Likewise.
8698         * lib/flock.c: Likewise.
8699         * lib/fopen.c: Likewise.
8700         * lib/freopen.c: Likewise.
8701         * lib/fstat.c: Likewise.
8702         * lib/fsync.c: Likewise.
8703         * lib/gc-gnulib.c: Likewise.
8704         * lib/get-rusage-data.c: Likewise.
8705         * lib/getaddrinfo.c: Likewise.
8706         * lib/getdelim.c: Likewise.
8707         * lib/getdtablesize.c: Likewise.
8708         * lib/gethostname.c: Likewise.
8709         * lib/getlogin.c: Likewise.
8710         * lib/getlogin_r.c: Likewise.
8711         * lib/getopt.c: Likewise.
8712         * lib/getpagesize.c: Likewise.
8713         * lib/getpass.c: Likewise.
8714         * lib/getrusage.c: Likewise.
8715         * lib/gettimeofday.c: Likewise.
8716         * lib/glob.c: Likewise.
8717         * lib/inttypes.in.h: Likewise.
8718         * lib/isapipe.c: Likewise.
8719         * lib/javaexec.c: Likewise.
8720         * lib/link.c: Likewise.
8721         * lib/localcharset.c: Likewise.
8722         * lib/localename.h: Likewise.
8723         * lib/localename.c: Likewise.
8724         * lib/localtime.c: Likewise.
8725         * lib/lseek.c: Likewise.
8726         * lib/mbsinit.c: Likewise.
8727         * lib/mkdir.c: Likewise.
8728         * lib/msvc-nothrow.h: Likewise.
8729         * lib/nanosleep.c: Likewise.
8730         * lib/nl_langinfo.c: Likewise.
8731         * lib/nonblocking.c: Likewise.
8732         * lib/nproc.c: Likewise.
8733         * lib/open.c: Likewise.
8734         * lib/openpty.c: Likewise.
8735         * lib/pathmax.h: Likewise.
8736         * lib/pipe-filter-aux.c: Likewise.
8737         * lib/pipe-filter-gi.c: Likewise.
8738         * lib/pipe-filter-ii.c: Likewise.
8739         * lib/pipe.c: Likewise.
8740         * lib/pipe2.c: Likewise.
8741         * lib/poll.c: Likewise.
8742         * lib/popen.c: Likewise.
8743         * lib/posix_openpt.c: Likewise.
8744         * lib/printf-parse.c: Likewise.
8745         * lib/progreloc.c: Likewise.
8746         * lib/putenv.c: Likewise.
8747         * lib/read.c: Likewise.
8748         * lib/relocatable.c: Likewise.
8749         * lib/rename.c: Likewise.
8750         * lib/same-inode.h: Likewise.
8751         * lib/secure_getenv.c: Likewise.
8752         * lib/select.c: Likewise.
8753         * lib/sethostname.c: Likewise.
8754         * lib/setlocale.c: Likewise.
8755         * lib/sigaction.c: Likewise.
8756         * lib/sigprocmask.c: Likewise.
8757         * lib/sleep.c: Likewise.
8758         * lib/spawn-pipe.h: Likewise.
8759         * lib/spawn-pipe.c: Likewise.
8760         * lib/spawni.c: Likewise.
8761         * lib/stat-time.h: Likewise.
8762         * lib/stat-w32.c: Likewise.
8763         * lib/stat.c: Likewise.
8764         * lib/stdio.in.h: Likewise.
8765         * lib/stdio-impl.h: Likewise.
8766         * lib/stdio-read.c: Likewise.
8767         * lib/stdio-write.c: Likewise.
8768         * lib/stdlib.in.h: Likewise.
8769         * lib/strerror_r.c: Likewise.
8770         * lib/strftime-fixes.c: Likewise.
8771         * lib/sys_stat.in.h: Likewise.
8772         * lib/sys_types.in.h: Likewise.
8773         * lib/sys_wait.in.h : Likewise.
8774         * lib/system-quote.h: Likewise.
8775         * lib/system-quote.c: Likewise.
8776         * lib/tmpdir.c: Likewise.
8777         * lib/tzset.c: Likewise.
8778         * lib/uname.c: Likewise.
8779         * lib/unistd.in.h: Likewise.
8780         * lib/utime.in.h: Likewise.
8781         * lib/utime.c: Likewise.
8782         * lib/utimecmp.c: Likewise.
8783         * lib/utimens.c: Likewise.
8784         * lib/vasnprintf.c: Likewise.
8785         * lib/vma-iter.h: Likewise.
8786         * lib/vma-iter.c: Likewise.
8787         * lib/wait-process.c: Likewise.
8788         * lib/wcsftime.c: Likewise.
8789         * lib/wctype.in.h: Likewise.
8790         * lib/write.c: Likewise.
8791         * tests/nap.h: Likewise.
8792         * tests/test-cloexec.c: Likewise.
8793         * tests/test-dup-safer.c: Likewise.
8794         * tests/test-dup2.c: Likewise.
8795         * tests/test-dup3.c: Likewise.
8796         * tests/test-fcntl.c: Likewise.
8797         * tests/test-get-rusage-data.c: Likewise.
8798         * tests/test-getaddrinfo.c: Likewise.
8799         * tests/test-getlogin.h: Likewise.
8800         * tests/test-isatty.c: Likewise.
8801         * tests/test-localename.c: Likewise.
8802         * tests/test-mbrtowc-w32.c: Likewise.
8803         * tests/test-nonblocking.c: Likewise.
8804         * tests/test-nonblocking-pipe-main.c: Likewise.
8805         * tests/test-nonblocking-socket-main.c: Likewise.
8806         * tests/test-nonblocking-socket.h: Likewise.
8807         * tests/test-pipe.c: Likewise.
8808         * tests/test-pipe2.c: Likewise.
8809         * tests/test-poll.c: Likewise.
8810         * tests/test-pthread_sigmask1.c: Likewise.
8811         * tests/test-select.h: Likewise.
8812         * tests/test-sethostname2.c: Likewise.
8813         * tests/test-sigprocmask.c: Likewise.
8814         * tests/test-spawn-pipe-child.c: Likewise.
8815         * tests/test-stat-time.c: Likewise.
8816         * tests/test-system-quote-main.c: Likewise.
8817         * tests/test-utimens-common.h: Likewise.
8818         * tests/test-wcrtomb-w32.c: Likewise.
8819         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
8820         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
8821         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
8822         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
8823         * m4/locale-ar.m4 (gt_LOCALE_AR): Likewise.
8824         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
8825         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
8826         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
8827         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
8828         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
8829         * m4/nocrash.m4 (GL_NOCRASH): Likewise.
8830         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET): Likewise.
8831         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
8832         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
8833         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Likewise.
8834         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
8836 2018-05-02  Bruno Haible  <bruno@clisp.org>
8838         localename: Fix test failures on mingw.
8839         * lib/localename.c (gl_locale_name_thread): Remove code specific to
8840         native Windows.
8841         (gl_locale_name_posix): Move code specific to native Windows here.
8842         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
8843         Accept result without charset suffix, as it appears on mingw.
8845 2018-04-28  Paul Smith  <psmith@gnu.org>
8847         bootstrap: Avoid gnulib operations if not needed
8848         * build-aux/bootstrap: Remove unused variable gnulib_mk.
8849         Set $gnulib_extra_files early so it can be overridden in .conf.
8850         Remove redundant --import flag from $gnulib_tool_options.
8851         Set $use_gnulib to false if no gnulib modules or files are needed.
8852         If $use_gnulib is false, don't do anything related to gnulib.
8853         A lot of this is just whitespace (indentation) changes.
8855 2018-04-27  Paul Eggert  <eggert@cs.ucla.edu>
8857         manywarnings: port to GCC 8.0
8858         * build-aux/gcc-warning.spec: Add -Wcatch-value,
8859         -Wclass-memaccess, -Wdo-subscript, -Wextra-semi.  Adjust to the
8860         fact that the GCC help message now mentions operands for
8861         -Warray-bounds, -Wformat, -Wformat-overflow, -Wformat-truncation,
8862         -Wimplicit-fallthrough, -Wplacement-new, -Wshift-overflow,
8863         -Wstrict-aliasing, -Wstrict-overflow, -Wstringop-overflow,
8864         and -Wunused-const-variable.
8865         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wattribute-alias,
8866         -Wcast-align=strict, -Wcast-function-type, -Wif-not-aligned,
8867         -Wmissing-attributes, -Wmultistatement-macros,
8868         -Wpacked-not-aligned, -Wsizeof-pointer-div, -Wstringop-truncation,
8869         -Wsuggest-attribute=cold, -Wsuggest-attribute=malloc.
8871 2018-04-24  Bruno Haible  <bruno@clisp.org>
8873         sys_socket: Make SO_REUSEPORT available across platforms.
8874         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8875         * lib/sys_socket.in.h (SO_REUSEPORT): New macro.
8876         * doc/posix-headers/sys_socket.texi: Mention the issue.
8877         * tests/test-poll.c (SO_REUSEPORT): Remove.
8878         * tests/test-select.h: Include <sys/socket.h>.
8879         (SO_REUSEPORT): Remove.
8880         * modules/select-tests (Depends-on): Add 'sys_socket'.
8882 2018-04-21  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
8884         localcharset: short-circuit the search for an alias on a Mac
8885         * lib/localcharset.c (get_charset_aliases): Add a tautological
8886         UTF-8 entry to speed up the search for this case.
8887         Most machines default to a UTF-8 locale nowadays, so begin the
8888         list of aliases with a dummy UTF-8 entry so it will be found
8889         immediately and a time-consuming search through the rest of
8890         the list is avoided.
8892 2018-04-11  Paul Eggert  <eggert@cs.ucla.edu>
8894         fts: add comment
8895         * lib/fts.c (fts_build): Explain why ==, not >.
8896         See remark by Bernhard Voelker in:
8897         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00041.html
8899         fts: fix bug in find across filesystems
8900         This fixes a bug I introduced last summer.
8901         Problem reported by Kamil Dudka in:
8902         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00033.html
8903         * lib/fts.c (filesystem_type, dirent_inode_sort_may_be_useful)
8904         (leaf_optimization):
8905         New arg for file descriptor.  All callers changed.
8906         (fts_build): Check for whether inodes should be sorted
8907         before closing the directory.
8909 2018-04-07  Bruno Haible  <bruno@clisp.org>
8911         unicase/u*-context: Fix link errors with libunistring <= 0.9.9.
8912         Reported by Genki Sky <sky@genki.is>.
8913         * modules/unicase/u8-prefix-context (configure.ac): Require libunistring
8914         version 0.9.10 or newer.
8915         * modules/unicase/u8-suffix-context (configure.ac): Likewise.
8916         * modules/unicase/u16-prefix-context (configure.ac): Likewise.
8917         * modules/unicase/u16-suffix-context (configure.ac): Likewise.
8918         * modules/unicase/u32-prefix-context (configure.ac): Likewise.
8919         * modules/unicase/u32-suffix-context (configure.ac): Likewise.
8921 2018-04-07  Bruno Haible  <bruno@clisp.org>
8923         execute: Update comment.
8924         * lib/execute.h (execute): Refer to spawn-pipe.h, not pipe.h.
8926 2018-04-05  Paul Eggert  <eggert@cs.ucla.edu>
8928         fts: treat CIFS like NFS
8929         Problem reported by Kamil Dudka in:
8930         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00015.html
8931         * lib/fts.c (S_MAGIC_CIFS): New macro.
8932         (dirent_inode_sort_may_be_useful, leaf_optimization):
8933         Treat CIFS like NFS.
8935 2018-03-28  Bruno Haible  <bruno@clisp.org>
8937         c-stack: Fix possible build failure on some platforms.
8938         * lib/c-stack.c (die): Define whenever this function is referenced.
8940 2018-03-28  Paul Eggert  <eggert@cs.ucla.edu>
8942         time_rz: fix workaround for Mac OS X 10.6 infloop
8943         Problems reported by Charles A. Roelli (Bug#27736#117).
8944         * m4/time_rz.m4 (gl_TIME_RZ): Use a slightly different timestamp.
8945         Also, discard output, which clutters the 'configure' log.
8947 2018-03-27  Paul Eggert  <eggert@cs.ucla.edu>
8949         havelib: port to Solaris 10 /bin/sh
8950         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Use 'test ! EXPR'
8951         instead of '! test EXPR'.
8953 2018-03-26  Paul Eggert  <eggert@cs.ucla.edu>
8955         time_rz: work around Mac OS X 10.6 infloop
8956         * doc/posix-functions/localtime.texi:
8957         * doc/posix-functions/localtime_r.texi: Mention the bug.
8958         * lib/time_rz.c (localtime_rz): Work around the bug.  It’d be
8959         better to fix localtime and localtime_r instead, but that would be
8960         more work and is not needed to fix the Emacs problem.
8961         * m4/time_rz.m4 (gl_TIME_RZ): Detect the bug.
8963 2018-03-24  Jim Meyering  <meyering@fb.com>
8965         test-version-etc.sh: don't use diff directly: use init.sh's compare
8966         We'd rather not sacrifice readable "diff -u" output even for
8967         "diff -c" output (not supported by busybox) or for even less
8968         readable ed-style "diff" output.  So use init.sh's compare function
8969         * tests/test-version-etc.sh: Source init.sh and add "." to path.
8970         Remove "./" from invocation of test-version-etc, so we use path.
8971         And s/diff/compare/.
8972         * modules/version-etc-tests (Depends-on): Add test-framework-sh,
8973         to get init.sh.
8974         Prompted by Eric Blake's comments in
8975         https://lists.gnu.org/r/sed-devel/2018-03/msg00015.html
8977 2018-03-24  Bruno Haible  <bruno@clisp.org>
8979         javacomp-script, javacomp: Add support for Java 10.
8980         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 10 and
8981         target-version 10.
8982         * lib/javaversion.h: Update comments.
8983         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
8984         source_version_index, get_goodcode_snippet, get_failcode_snippet,
8985         TARGET_VERSION_BOUND, target_version_index,
8986         corresponding_classfile_version): Accept source_version 10 and
8987         target_version 10.
8988         * lib/javacomp.h: Update comments accordingly.
8990 2018-03-24  Bruno Haible  <bruno@clisp.org>
8992         javacomp-script, javacomp: Update comments.
8993         * m4/javacomp.m4: Update comments regarding gcj.
8994         * lib/javacomp.h: Likewise.
8996 2018-03-24  Bruno Haible  <bruno@clisp.org>
8998         javacomp-script, javacomp: Fix support for Java 7, 8, 9.
8999         * lib/javaversion.h: Update comments.
9000         * lib/javacomp.h: Likewise.
9001         * lib/javacomp.c (default_target_version, source_version_index,
9002         get_goodcode_snippet, get_failcode_snippet): Recognize "9" instead of
9003         "1.9".
9004         (TARGET_VERSION_BOUND): Bump to 9.
9005         (target_version_index, corresponding_classfile_version): Recognize "9"
9006         instead of "1.9".
9007         (get_source_version_for_javac): New function.
9008         (is_envjavac_nongcj_usable, is_javac_usable): Add
9009         source_version_for_javac argument.
9010         (compile_java_class): Determine and pass source_version_for_javac.
9011         * m4/javacomp.m4: Recognize version '9' instead of '1.9'. When invoking
9012         $JAVAC or javac, pass '-source 1.6' instead of '-source 1.5' when
9013         appropriate.
9015 2018-03-23  Jim Meyering  <meyering@fb.com>
9017         test-version-etc.sh: port to diff without -c
9018         * tests/test-version-etc.sh: Don't use diff's -c option.
9019         This caused spurious test failure on Alpine Linux, which
9020         uses busybox's diff. Reported by Assaf Gordon in
9021         https://lists.gnu.org/r/sed-devel/2018-03/msg00013.html
9023 2018-03-23  Paul Eggert  <eggert@cs.ucla.edu>
9025         c-stack: port to recent GCC build
9026         Problem reported by The Fireplace (Bug#30913).
9027         * lib/c-stack.c (die): Define only if used.
9029 2018-03-20  Bruno Haible  <bruno@clisp.org>
9031         euidaccess: Port to native Windows.
9032         * lib/euidaccess.c (euidaccess): On native Windows, just use _access().
9033         * posix-modules (exclude_for_mingw): Remove 'euidaccess'.
9035 2018-03-19  Bruno Haible  <bruno@clisp.org>
9037         javacomp: Add support for Java 7, 8, 9.
9038         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
9039         source_version_index, get_goodcode_snippet, get_failcode_snippet,
9040         corresponding_classfile_version): Accept source_version 1,7, 1.8, 1.9
9041         and target_version 1,7, 1.8, 1.9.
9042         * lib/javacomp.h: Update comments accordingly.
9044 2018-03-19  Bruno Haible  <bruno@clisp.org>
9046         javacomp-script: Add support for Java 9.
9047         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.9 and
9048         target-version 1.9.
9050 2018-03-16  Bruno Haible  <bruno@clisp.org>
9052         glob: Don't compile replacements on recent glibc systems.
9053         * lib/glob.in.h: Use the usual idiom for the double-inclusion guard. If
9054         REPLACE_GLOB is 0, include the system's <glob.h> and use
9055         _GL_CXXALIAS_SYS.
9056         * m4/glob.m4 (gl_GLOB): Set REPLACE_GLOB instead of GLOB_H. Accept
9057         _GNU_GLOB_INTERFACE_VERSION 2 as well. Delete the file conf$$-globtest
9058         inside the AC_RUN_IFELSE block. Remove GL_GENERATE_GLOB_H conditional.
9059         * modules/glob (Dependencies): Test REPLACE_GLOB instead of GLOB_H.
9060         Remove snippet/warn-on-use.
9061         (configure.ac): Test REPLACE_GLOB instead of GLOB_H.
9062         (Makefile.am): Create glob.h always. Update list of substitutions in
9063         glob.h. Don't depend on $(WARN_ON_USE_H).
9065 2018-03-16  Bruno Haible  <bruno@clisp.org>
9067         glob: Fix link error on native Windows.
9068         * modules/glob (Depends-on): Add 'lstat'.
9070 2018-03-15  Bruno Haible  <bruno@clisp.org>
9072         glob: Fix compilation error in C++ mode.
9073         * lib/glob.in.h (_Restrict_): Define, like in regex.h and spawn.in.h.
9075 2018-03-15  Bruno Haible  <bruno@clisp.org>
9077         host-cpu-c-abi: Support for RISC-V CPU.
9078         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the various
9079         riscv32 and riscv64 ABIs.
9080         References:
9081         https://github.com/riscv/riscv-toolchain-conventions
9082         https://gcc.gnu.org/onlinedocs/gcc-7.3.0/gcc/RISC-V-Options.html
9083         https://gnu-mcu-eclipse.github.io/toolchain/riscv/
9085 2018-03-08  Paul Eggert  <eggert@cs.ucla.edu>
9087         fflush: be more paranoid about libio.h change
9088         Suggested by Eli Zaretskii in:
9089         https://lists.gnu.org/r/emacs-devel/2018-03/msg00270.html
9090         * lib/fbufmode.c (fbufmode):
9091         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
9092         (disable_seek_optimization, rpl_fflush):
9093         * lib/fpending.c (__fpending):
9094         * lib/fpurge.c (fpurge):
9095         * lib/freadable.c (freadable):
9096         * lib/freadahead.c (freadahead):
9097         * lib/freading.c (freading):
9098         * lib/freadptr.c (freadptr):
9099         * lib/freadseek.c (freadptrinc):
9100         * lib/fseeko.c (fseeko):
9101         * lib/fseterr.c (fseterr):
9102         * lib/fwritable.c (fwritable):
9103         * lib/fwriting.c (fwriting):
9104         Look at _IO_ftrylockfile as well as at _IO_EOF_SEEN.
9106 2018-03-07  Paul Eggert  <eggert@cs.ucla.edu>
9108         maint: write-file-hooks -> before-save-hook
9109         write-file-hooks is obsolete since Emacs 22.1 (released June 2007) and
9110         it's time to use the recommended replacement.
9111         Problem reported by Glenn Morris in:
9112         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00008.html
9113         * build-aux/announce-gen, build-aux/bootstrap:
9114         * build-aux/do-release-commit-and-tag, build-aux/gendocs.sh:
9115         * build-aux/git-version-gen, build-aux/gitlog-to-changelog:
9116         * build-aux/gnu-web-doc-update, build-aux/gnupload:
9117         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
9118         * build-aux/update-copyright, build-aux/useless-if-before-free:
9119         * build-aux/vc-list-files:
9120         Update hook usage for files where Gnulib is the canonical source.
9122 2018-03-05  Paul Eggert  <eggert@cs.ucla.edu>
9124         binary-io: pacify gcc -Wunused-parameter
9125         Problem reported by Reuben Thomas in:
9126         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00005.html
9127         * lib/binary-io.h (__gl_setmode, __gl_setmode_check):
9128         Use _GL_UNUSED where appropriate.
9130         fflush: adjust to glibc 2.28 libio.h removal
9131         Problem reported by Daniel P. Berrangé in:
9132         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00000.html
9133         * lib/fbufmode.c (fbufmode):
9134         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
9135         (disable_seek_optimization, rpl_fflush):
9136         * lib/fpending.c (__fpending):
9137         * lib/fpurge.c (fpurge):
9138         * lib/freadable.c (freadable):
9139         * lib/freadahead.c (freadahead):
9140         * lib/freading.c (freading):
9141         * lib/freadptr.c (freadptr):
9142         * lib/freadseek.c (freadptrinc):
9143         * lib/fseeko.c (fseeko):
9144         * lib/fseterr.c (fseterr):
9145         * lib/fwritable.c (fwritable):
9146         * lib/fwriting.c (fwriting):
9147         Check _IO_EOF_SEEN instead of _IO_ftrylockfile.
9148         * lib/stdio-impl.h (_IO_IN_BACKUP) [_IO_EOF_SEEN]:
9149         Define if not already defined.
9151 2018-02-27  Paul Eggert  <eggert@cs.ucla.edu>
9153         environ: fix link error on 32-bit Cygwin
9154         Problem reported for GNU Emacs by Ken Brown in:
9155         https://lists.gnu.org/r/emacs-devel/2018-02/msg00765.html
9156         * lib/unistd.in.h (environ) [__i386__]: Do not redeclare.
9158 2018-02-24  Bruno Haible  <bruno@clisp.org>
9160         mbrtowc tests: Fix regression on glibc.
9161         Reported by Bernhard Voelker.
9162         * tests/test-mbrtowc.c (main): Fix expected value of wc.
9164 2018-02-24  Bruno Haible  <bruno@clisp.org>
9166         striconveha, uniconv/*: Avoid test failures on musl libc.
9167         * tests/iconvsupport.c: New file.
9168         * tests/test-striconveha.c (main): Skip autodetect_jp tests if iconv()
9169         does not support the ISO-2022-JP-2 encoding.
9170         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
9171         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
9172         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
9173         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
9174         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
9175         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
9176         * modules/striconveha-tests (Files): Add tests/iconvsupport.c.
9177         (Makefile.am): Link test-striconveha with iconvsupport.o.
9178         * modules/uniconv/u8-conv-from-enc-tests (Files): Add
9179         tests/iconvsupport.c.
9180         (Makefile.am): Link test-u8-conv-from-enc with iconvsupport.o.
9181         * modules/uniconv/u8-strconv-from-enc-tests (Files): Add
9182         tests/iconvsupport.c.
9183         (Makefile.am): Link test-u8-strconv-from-enc with iconvsupport.o.
9184         * modules/uniconv/u16-conv-from-enc-tests (Files): Add
9185         tests/iconvsupport.c.
9186         (Makefile.am): Link test-u16-conv-from-enc with iconvsupport.o.
9187         * modules/uniconv/u16-strconv-from-enc-tests (Files): Add
9188         tests/iconvsupport.c.
9189         (Makefile.am): Link test-u16-strconv-from-enc with iconvsupport.o.
9190         * modules/uniconv/u32-conv-from-enc-tests (Files): Add
9191         tests/iconvsupport.c.
9192         (Makefile.am): Link test-u32-conv-from-enc with iconvsupport.o.
9193         * modules/uniconv/u32-strconv-from-enc-tests (Files): Add
9194         tests/iconvsupport.c.
9195         (Makefile.am): Link test-u32-strconv-from-enc with iconvsupport.o.
9197 2018-02-24  Bruno Haible  <bruno@clisp.org>
9199         localename: Add support for musl libc.
9200         * m4/localename.m4 (gl_LOCALENAME): Check for <langinfo.h>.
9201         * lib/localename.c (gl_locale_name_thread_unsafe): Use NL_LOCALE_NAME
9202         on Linux platforms which define NL_LOCALE_NAME.
9204 2018-02-24  Bruno Haible  <bruno@clisp.org>
9206         mbrtowc tests: Don't make assumptions about the charset the C locale.
9207         * tests/test-mbrtowc.c (main): For bytes >= 0x80, don't assume a
9208         particular mapping in the C locale.
9210 2018-02-24  Bruno Haible  <bruno@clisp.org>
9212         ptsname_r: Don't expect that this function sets errno.
9213         * tests/test-ptsname_r.c (test_errors): Don't test errno after return
9214         from ptsname_r().
9215         * doc/glibc-functions/ptsname_r.texi: Mention the issue.
9217 2018-02-23  Bruno Haible  <bruno@clisp.org>
9219         xmalloca: pacify gcc -Wbad-function-cast
9220         * lib/xmalloca.h (xmalloca): Insert intermediate cast here as well.
9222 2018-02-23  Paul Eggert  <eggert@cs.ucla.edu>
9224         nl_langinfo: pacify gcc -Wunused-function
9225         * lib/nl_langinfo.c (ctype_codeset): Do not define if
9226         REPLACE_NL_LANGINFO && !GNULIB_defined_CODESET, as it is unused in
9227         this case.  Without this change, I got a diagnostic when building
9228         coreutils on Fedora 27 with gcc 7.3.1 20180130.
9230         same: pacify gcc -Wunused-variable
9231         * lib/same.c (same_nameat) [!CHECK_TRUNCATION]:
9232         Omit unused variable.
9234         malloca: pacify gcc -Wbad-function-cast
9235         * lib/malloca.h (malloca): Pacify gcc -Wbad-function-cast
9236         diagnostic that I got on Fedora 27 with gcc 7.3.1 20180130.
9237         To pacify GCC, I had to cast alloca’s result to some type other
9238         than void * before casting that to uintptr_t.
9240 2018-02-20  Paul Eggert  <eggert@cs.ucla.edu>
9242         utimecmp: new function utimecmpat
9243         * lib/utimecmp.c: Include fcntl.h, sys/stat.h and dirname.h.
9244         Do not include utimens.h.
9245         (utimecmpat): New function, generalizing utimecmp.
9246         (utimecmp): Now a thin layer around utimecmpat.
9247         * modules/utimecmp (Depends-on): Depend on dirname-lgpl, fstatat,
9248         utimensat instead of on lstat and utimens.
9250         same: new function same_nameat
9251         * lib/same.c: Include fcntl.h.
9252         * lib/same.c (same_nameat): New function, generalizing same_name.
9253         (same_name): Now a thin layer around same_nameat.
9254         * m4/same.m4 (gl_SAME): Check for fpathconf, not pathconf.
9255         * modules/same (Depends-on): Depend on fstatat, openat.
9257 2018-02-18  Eric Gallager  <egall@gwmail.gwu.edu>  (tiny change)
9259         warnings: Add support for Objective C.
9260         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): New
9261         macro.
9263 2018-02-17  Bruno Haible  <bruno@clisp.org>
9265         lock: Fix test-once1 crash on FreeBSD11.
9266         * lib/glthread/lock.h: On FreeBSD, test the weak value of the symbol
9267         'pthread_create', not 'pthread_cancel'.
9269 2018-02-17  Bruno Haible  <bruno@clisp.org>
9271         lock: Add test of gl_once.
9272         * tests/test-once.c: New file.
9273         * modules/lock-tests (Files): Add it.
9274         (Makefile.am): Build and test programs 'test-once1' and 'test-once2'.
9276 2018-02-17  Bruno Haible  <bruno@clisp.org>
9278         thread: Fix compilation error on IRIX.
9279         * lib/glthread/thread.h: Include <unistd.h>. Include <signal.h> when
9280         needed; include it outside the C++ extern "C" {} block.
9281         * doc/posix-headers/pthread.texi: Mention the problem with
9282         pthread_atfork on IRIX.
9284 2018-02-04  Bruno Haible  <bruno@clisp.org>
9286         nl_langinfo: Override the system's nl_langinfo() when needed.
9287         Reported by Jim Meyering.
9288         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Set REPLACE_NL_LANGINFO=1
9289         also when HAVE_LANGINFO_T_FMT_AMPM or HAVE_LANGINFO_ALTMON is 0.
9291 2018-02-04  Bruno Haible  <bruno@clisp.org>
9293         signal-h, monetary, strings: Fix build failure in some cases.
9294         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
9295         * modules/signal-h (Makefile.am): In the GNULIB_* substitutions, use '/'
9296         as delimiter in sed command, not '|'.
9297         * modules/monetary (Makefile.am): Likewise.
9298         * modules/strings (Makefile.am): Likewise.
9300 2018-02-03  Jim Meyering  <meyering@fb.com>
9302         maint.mk: exempt "/proc/filesystems" from "file system" syntax check
9303         * top/maint.mk (sc_file_system): Don't complain about
9304         "/proc/filesystems".
9306 2018-02-03  Bruno Haible  <bruno@clisp.org>
9308         stdlib: Fix compilation error on OpenIndiana.
9309         * lib/stdlib.in.h: Before including <sys/loadavg.h>, include
9310         <sys/time.h>.
9311         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
9312         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
9314 2018-02-03  Bruno Haible  <bruno@clisp.org>
9316         host-cpu-c-abi: Avoid use of 'grep -E' on OpenIndiana.
9317         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX): Require AC_PROG_EGREP,
9318         and use $EGREP instead of 'grep -E'.
9319         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Use 'grep' instead of
9320         'grep -E'.
9322 2018-02-02  Paul Eggert  <eggert@cs.ucla.edu>
9324         malloca: Add a compile-time verification.
9325         * lib/malloca.c (small_t): Verify that it is wide enough.
9326         * modules/malloca (Depends-on): Add verify.
9328 2018-02-02  Bruno Haible  <bruno@clisp.org>
9330         malloca: Add an argument check.
9331         Suggested by Paul Eggert.
9332         * lib/malloca.c (freea): Check against an invalid argument.
9334 2018-02-02  Bruno Haible  <bruno@clisp.org>
9336         localename: Add support for OpenIndiana.
9337         * lib/localename.c (gl_locale_name_thread_unsafe): Add code for
9338         Solaris 11 variants with uselocale() but without getlocalename_l().
9340 2018-02-02  Bruno Haible  <bruno@clisp.org>
9342         malloca, xmalloca: Make multithread-safe.
9343         Reported by Florian Weimer <fweimer@redhat.com>.
9344         Implements an idea by Ondřej Bílka <neleai@seznam.cz>.
9345         * lib/malloca.h (malloca): In the stack allocation case, return a
9346         pointer that is a multiple of 2 * sa_alignment_max.
9347         (sa_increment): Remove enum item.
9348         * lib/xmalloca.h (xmalloca): In the stack allocation case, return
9349         a pointer that is a multiple of 2 * sa_alignment_max.
9350         * lib/malloca.c (NO_SANITIZE_MEMORY): Remove macro.
9351         (MAGIC_NUMBER, MAGIC_SIZE, preliminary_header, HEADER_SIZE, header,
9352         HASH_TABLE_SIZE, mmalloca_results): Remove.
9353         (small_t): New type.
9354         (mmalloca, free): Rewritten.
9355         * lib/malloca.valgrind: Remove file.
9356         * modules/malloca (Files): Remove it.
9357         (Depends-on): Remove verify.
9359 2018-01-31  Bruno Haible  <bruno@clisp.org>
9361         environ: Fix link error on 64-bit Cygwin.
9362         * lib/unistd.in.h (environ): On Cygwin, redeclare with the
9363         __declspec(dllimport) attribute.
9364         * doc/posix-functions/environ.texi: Mention the Cygwin problem.
9366 2018-01-30  Bruno Haible  <bruno@clisp.org>
9368         get-rusage-data: Add support for Minix 3.
9369         * lib/get-rusage-data.c (get_rusage_data): Return 0 on Minix.
9371 2018-01-30  Bruno Haible  <bruno@clisp.org>
9373         vma-iter: Add support for Minix 3.
9374         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Minix.
9375         * lib/vma-iter.c: On Minix, read /proc/<pid>/map.
9377 2018-01-27  Bruno Haible  <bruno@clisp.org>
9379         Fix malfunction of socket functions on HP-UX in 64-bit mode.
9380         * m4/socketlib.m4 (gl_SOCKETLIB): Add comment.
9381         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define
9382         _HPUX_ALT_XOPEN_SOCKET_API.
9383         * modules/accept (Depends-on): Add 'extensions'.
9384         * modules/getpeername (Depends-on): Likewise.
9385         * modules/getsockname (Depends-on): Likewise.
9386         * modules/getsockopt (Depends-on): Likewise.
9387         * modules/recvfrom (Depends-on): Likewise.
9388         * doc/posix-functions/accept.texi: Mention the HP-UX socklen_t problem.
9389         * doc/posix-functions/getpeername.texi: Likewise.
9390         * doc/posix-functions/getsockname.texi: Likewise.
9391         * doc/posix-functions/getsockopt.texi: Likewise.
9392         * doc/posix-functions/recvfrom.texi: Likewise.
9394 2018-01-27  Bruno Haible  <bruno@clisp.org>
9396         getsockname tests: More tests.
9397         * tests/test-getsockname.c (open_server_socket): New function, mostly
9398         copied from test-poll.c.
9399         (main): Check that getsockname fills in addr.
9400         * modules/getsockname-tests (Depends-on): Add the necessary
9401         dependencies.
9402         (test_getsockname_LDADD): Link with $(INET_PTON_LIB).
9404 2018-01-26  Paul Eggert  <eggert@cs.ucla.edu>
9406         manywarnings: fix maintainer comment
9407         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Fix comment so that
9408         it does not mistakenly think that ‘-1)’ is an option.
9410 2018-01-26  Bruno Haible  <bruno@clisp.org>
9412         langinfo: Fix last commit.
9413         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
9414         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_ALTMON.
9416 2018-01-24  Bruno Haible  <bruno@clisp.org>
9418         langinfo, nl_langinfo: Add support for alternative month names.
9419         * m4/langinfo_h.m4 (gl_LANGINFO_H): Define HAVE_LANGINFO_ALTMON.
9420         * lib/langinfo.in.h (ALTMON_1...ALTMON_12): New macros.
9421         * lib/nl_langinfo.c (rpl_nl_langinfo): Treat ALTMON_i like MON_i.
9422         * tests/test-nl_langinfo.c (main): Test ALTMON_*.
9423         * doc/posix-headers/langinfo.texi: Document support of ALTMON_*.
9424         * doc/posix-functions/nl_langinfo.texi: Likewise.
9426 2018-01-23  Paul Eggert  <eggert@cs.ucla.edu>
9428         Merge strftime.c changes from glibc
9429         This incorporates:
9430         2017-11-14 [BZ #10871] Implement alternative month names
9431         2017-11-14 [BZ #10871] Abbreviated alternative month names (%Ob)
9432         2017-06-20 Use locale_t, not __locale_t, throughout glibc
9433         * lib/nstrftime.c (ABALTMON_1) [!COMPILE_WIDE]: New macro.
9434         (LOCALE_PARAM) [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL]:
9435         Use locale_t, not __locale_t.
9436         (a_altmonth, f_altmonth, aam_len) [_NL_CURRENT]: New macros.
9437         (__strftime_internal): Add support for alternate months.
9439 2018-01-23  Bruno Haible  <bruno@clisp.org>
9441         doc: Mention another prerequisite for using Gnulib.
9442         Reported at <https://stackoverflow.com/questions/48378214/>.
9443         * doc/gnulib-tool.texi (Initial import): Mention requirement to use
9444         AC_CONFIG_HEADERS.
9446 2018-01-22  Mathieu Lirzin  <mthl@gnu.org>
9448         build: GuixSD doesn't have /bin/bash
9449         * Makefile (SHELL): Search 'bash' in the PATH environment variable.
9451 2018-01-21  Bruno Haible  <bruno@clisp.org>
9453         Avoid test failures on Microsoft Windows Subsystem for Linux.
9454         * tests/test-fcntl.c (main): Allow a different errno.
9455         * tests/test-rename.h (test_rename): Likewise.
9456         * tests/test-renameat.c (main): Likewise.
9457         * tests/test-renameat2.c (main): Likewise.
9459 2018-01-14  Paul Eggert  <eggert@cs.ucla.edu>
9461         filenamecat: make base a suffix of result
9462         * lib/filenamecat-lgpl.c (longest_relative_suffix): Remove.
9463         (mfile_name_concat): Always make BASE a suffix of the result, as
9464         cp expects this.  To implement this, separate with '.' instead of
9465         '/' in some rare cases.  Clarify spec to say ./BASE not BASE.
9466         * tests/test-filenamecat.c (main): Adjust tests to match
9467         current behavior.  Check that BASE_IN_RESULT points to
9468         a copy of BASE and is a suffix of the resultk, and that DIR
9469         is a prefix of the result that is no longer than the prefix
9470         indicated by BASE_IN_RESULT.
9472 2018-01-04  Mathieu Lirzin  <mthl@gnu.org>
9474         update-copyright: Handle use of ©
9475         * build-aux/update-copyright ($circle_c_re): Update regex to
9476         handle use of © in headers.
9478 2018-01-04  Tim Rühsen  <tim.ruehsen@gmx.de>
9480         Fix -Wundef warning in user-included header lib/cdefs.h.
9481         * lib/cdefs.h: Check if defined before using __USE_FORTIFY_LEVEL.
9483 2018-01-04  Bruno Haible  <bruno@clisp.org>
9485         pthread_sigmask: Avoid compilation error on mingw.
9486         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
9487         * lib/signal.in.h (pthread_sigmask): Don't declare it it's defined as a
9488         macro.
9490 2018-01-03  Paul Eggert  <eggert@cs.ucla.edu>
9492         test-framework-sh: ‘ps -ef’, not ‘ps ef’
9493         * tests/init.sh (rand_bytes_): Put ‘-’ before new-style ps options.
9494         Suggested by Bob Proulx (Bug#29968).
9495         * build-aux/mktempd (rand_bytes): Make it like tests/init.sh.
9497 2018-01-02  Eric Blake  <eblake@redhat.com>
9499         stat-time: silence -Wunused-parameter regression
9500         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
9501         Prefer attribute over cast-to-void.
9502         (stat_time_normalize): Mark st as potentially unused.
9504 2018-01-02  Paul Eggert  <eggert@cs.ucla.edu>
9506         test-framework-sh: avoid netstat
9507         Problem reported by Kristýna Streitová (Bug#29947).
9508         * tests/init.sh (rand_bytes_): Stop using netstat, as it's
9509         deprecated on SuSE and it's not that important anyway.
9511 2018-01-01  Jim Meyering  <meyering@fb.com>
9513         update-copyright: add code to handle more special cases
9514         After running "make update-copyright" this year, five files
9515         required additional manual changes.  Automate those adjustments
9516         for next year.
9517         * Makefile (_year_and_prev): Define.
9518         (update-copyright): Add perl commands to induce this year's post-
9519         update-copyright adjustments.
9521 2018-01-01  Paul Eggert  <eggert@cs.ucla.edu>
9523         version-etc: new year
9524         * build-aux/gendocs.sh (version):
9525         * doc/gendocs_template:
9526         * doc/gendocs_template_min:
9527         * doc/gnulib.texi:
9528         * lib/version-etc.c (COPYRIGHT_YEAR):
9529         Update copyright dates by hand in templates and the like.
9531         maint: fix 'make update-copyright'
9532         * Makefile (update-copyright): Adjust to 2016-11-23 change
9533         to config/srclist-update, which changed the format of srclist.txt.
9535 2017-12-30  Paul Eggert  <eggert@cs.ucla.edu>
9537         chdir-safer: remove this module
9538         * MODULES.html.sh (func_all_modules): Remove chdir-safer.
9539         * NEWS: Document removal.
9540         * lib/chdir-safer.c, lib/chdir-safer.h, m4/afs.m4, m4/chdir-safer.m4:
9541         * modules/chdir-safer: Remove these files.
9543 2017-12-29  Samuel Thibault  <samuel.thibault@gnu.org>
9545         Add cross-compilation results for GNU/Hurd.
9546         * m4/calloc.m4: Add GNU/Hurd guess.
9547         * m4/cbrtl.m4: Likewise.
9548         * m4/ceil.m4: Likewise.
9549         * m4/ceilf.m4: Likewise.
9550         * m4/ceill.m4: Likewise.
9551         * m4/chown.m4: Likewise.
9552         * m4/duplocale.m4: Likewise.
9553         * m4/exp2l.m4: Likewise.
9554         * m4/expm1.m4: Likewise.
9555         * m4/fchdir.m4: Likewise.
9556         * m4/floor.m4: Likewise.
9557         * m4/floorf.m4: Likewise.
9558         * m4/fmod.m4: Likewise.
9559         * m4/fmodf.m4: Likewise.
9560         * m4/fmodl.m4: Likewise.
9561         * m4/getcwd.m4: Likewise.
9562         * m4/getgroups.m4: Likewise.
9563         * m4/gettimeofday.m4: Likewise.
9564         * m4/hypot.m4: Likewise.
9565         * m4/hypotf.m4: Likewise.
9566         * m4/hypotl.m4: Likewise.
9567         * m4/link-follow.m4: Likewise.
9568         * m4/link.m4: Likewise.
9569         * m4/linkat.m4: Likewise.
9570         * m4/log.m4: Likewise.
9571         * m4/log10.m4: Likewise.
9572         * m4/log10f.m4: Likewise.
9573         * m4/log1p.m4: Likewise.
9574         * m4/log1pf.m4: Likewise.
9575         * m4/log1pl.m4: Likewise.
9576         * m4/log2.m4: Likewise.
9577         * m4/log2f.m4: Likewise.
9578         * m4/logf.m4: Likewise.
9579         * m4/lstat.m4: Likewise.
9580         * m4/malloc.m4: Likewise.
9581         * m4/mbrlen.m4: Likewise.
9582         * m4/mbrtowc.m4: Likewise.
9583         * m4/mkdir.m4: Likewise.
9584         * m4/mkfifo.m4: Likewise.
9585         * m4/mknod.m4: Likewise.
9586         * m4/mkstemp.m4: Likewise.
9587         * m4/modf.m4: Likewise.
9588         * m4/modff.m4: Likewise.
9589         * m4/modfl.m4: Likewise.
9590         * m4/printf.m4: Likewise.
9591         * m4/pselect.m4: Likewise.
9592         * m4/ptsname.m4: Likewise.
9593         * m4/putenv.m4: Likewise.
9594         * m4/readlink.m4: Likewise.
9595         * m4/realloc.m4: Likewise.
9596         * m4/remainder.m4: Likewise.
9597         * m4/remainderf.m4: Likewise.
9598         * m4/remainderl.m4: Likewise.
9599         * m4/rmdir.m4: Likewise.
9600         * m4/round.m4: Likewise.
9601         * m4/roundf.m4: Likewise.
9602         * m4/roundl.m4: Likewise.
9603         * m4/select.m4: Likewise.
9604         * m4/setenv.m4: Likewise.
9605         * m4/signbit.m4: Likewise.
9606         * m4/sleep.m4: Likewise.
9607         * m4/stat.m4: Likewise.
9608         * m4/strerror.m4: Likewise.
9609         * m4/strtok_r.m4: Likewise.
9610         * m4/symlink.m4: Likewise.
9611         * m4/symlinkat.m4: Likewise.
9612         * m4/trunc.m4: Likewise.
9613         * m4/truncf.m4: Likewise.
9614         * m4/truncl.m4: Likewise.
9615         * m4/tzset.m4: Likewise.
9616         * m4/ungetc.m4: Likewise.
9617         * m4/usleep.m4: Likewise.
9618         * m4/wcwidth.m4: Likewise.
9620 2017-12-28  Bruno Haible  <bruno@clisp.org>
9622         gnulib-tool: Make --conditional-dependencies work better.
9623         Reported by Dmitry Selyutin <ghostman.sd@gmail.com>.
9624         * gnulib-tool (Options): Don't reject the combination of
9625         --conditional-dependencies with --with-tests.
9626         (func_emit_autoconf_snippets): Add argument referenceable_modules.
9627         Don't reference $modules.
9628         (func_import, func_create_testdir): Pass it.
9630 2017-12-19  Paul Eggert  <eggert@cs.ucla.edu>
9632         regex: use re_malloc etc. consistently
9633         Problem and original patch reported by Arnold Robbins in:
9634         https://sourceware.org/ml/libc-alpha/2017-12/msg00241.html
9635         * lib/regcomp.c (re_comp):
9636         * lib/regexec.c (push_fail_stack, build_trtable, match_ctx_clean):
9637         Use re_malloc/re_realloc/re_free instead of malloc/realloc/free.
9639 2017-12-15  Tim Rühsen  <tim.ruehsen@gmx.de>
9640             Paul Eggert  <eggert@cs.ucla.edu>
9642         glob: Silence warning about void pointer arithmetic.
9643         * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
9644         arithmetic.
9646 2017-12-15  Bruno Haible  <bruno@clisp.org>
9648         spawn-pipe: Silence a clang warning.
9649         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
9650         * lib/spawn-pipe.c: Disable clang -Wconditional-uninitialized warnings
9651         in this file.
9653 2017-12-12  Paul Eggert  <eggert@cs.ucla.edu>
9655         explicit_bzero: port to macOS + Clang 9.0.0
9656         Problem reported by Marcus Johnson (Bug#29658).
9657         * lib/explicit_bzero.c (explicit_bzero) [__clang__]:
9658         Don’t use asm.
9660 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
9662         doc: Improve explanation of supporting relocatable libraries.
9663         * doc/relocatable-maint.texi (Supporting Relocation): Explain
9664         properly how to build the relocatable module for
9665         libraries. (Method and example code from Bruno Haible.)
9667 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
9669         doc: Use better texinfo tags in a few cases.
9670         * doc/gnulib.texi (Extending Gnulib): Use @option or @command
9671         instead of @samp in a few places.
9673 2017-12-11  Bruno Haible  <bruno@clisp.org>
9675         unistr/base: Update comment.
9676         * lib/unistr.in.h: Update comment about u*_mbtouc_unsafe functions.
9678 2017-12-10  Pádraig Brady  <P@draigBrady.com>
9680         test-faccessat.c: unlink temp file to avoid subsequent test failure
9681         * tests/test-faccessat.c: Remove the file to avoid failure
9682         to open the file on subsequent runs due to being created
9683         with no permissions.
9685 2017-12-10  Bruno Haible  <bruno@clisp.org>
9687         doc: New sect. "Modifying the build rules of a Gnulib import directory".
9688         * doc/gnulib-tool.texi (Modified build rules): New node.
9690 2017-12-10  Bruno Haible  <bruno@clisp.org>
9692         doc: Tweak wording.
9693         * doc/gnulib-tool.texi (Multiple instances): Talk about "programs", not
9694         "binaries".
9696 2017-12-05  Sam Steingold  <sds@gnu.org>
9697             Bruno Haible  <bruno@clisp.org>
9699         no-c++: Avoid "egrep: repetition-operator operand invalid" error.
9700         * m4/no-c++.m4 (gt_NO_CXX): Don't use '+' characters nor spaces in the
9701         AC_EGREP_CPP pattern.
9703 2017-12-03  Bruno Haible  <bruno@clisp.org>
9705         all: Replace more http URLs by https URLs.
9706         * lib/sm3.h, lib/sm3.c, tests/test-sm3.c: Use https: URL.
9707         * lib/unigbrk/u-grapheme-breaks.h: Likewise.
9708         * lib/unigbrk/uc-grapheme-breaks.c: Likewise.
9709         * tests/unigbrk/test-uc-grapheme-breaks.c: Likewise.
9711 2017-11-28  Paul Eggert  <eggert@cs.ucla.edu>
9713         Port better to CentOS 5
9714         Problems reported by Tom G. Christensen in:
9715         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00053.html
9716         * doc/glibc-functions/strverscmp.texi (strverscmp):
9717         Document strverscmp bug with glibc 2.9 and earlier.
9718         * doc/posix-functions/tzset.texi (tzset):
9719         Document that TZ with angle brackets is POSIX-2001 and later.
9720         * tests/test-nstrftime.c: Include unistd.h.
9721         (TZ_ANGLE_BRACKETS_SHOULD_WORK): New macro.
9722         (TZ): Use it to skip tests with angle brackets in TZ,
9723         for older systems.
9725         stat: add missing module dependencies
9726         * modules/lstat, modules/stat, modules/utimensat (Depends-on):
9727         Add stat-time.
9729 2017-11-28  Benno Schulenberg  <bensberg@telfort.nl>
9731         stat: fix compilation failure on macOS Sierra
9732         Reported by Marius Schamschula <mschamschula@gmail.com> in:
9733         https://savannah.gnu.org/bugs/?52546
9734         * lib/stat.c: Add missing include of stat-time.h.
9736 2017-11-28  Jim Meyering  <meyering@fb.com>
9738         test-faccessat.c: correct BASE definition to avoid parallel test failure
9739         * tests/test-faccessat.c (BASE): Define using this file's name, not
9740         that of test-lstat.c.  Using the latter caused this test to fail
9741         sometimes when run concurrently with test-lstat.
9743 2017-11-27  Daiki Ueno  <ueno@gnu.org>
9745         unicase: fix VPATH build
9746         * modules/unicase/special-casing (Makefile.am): Ensure that the
9747         base directory is created when generating
9748         unicase/special-casing.h.
9750 2017-11-27  Daiki Ueno  <ueno@gnu.org>
9752         libunistring: update to Unicode 9.0.0
9753         * lib/gen-uni-tables.c (fill_properties): Recognize
9754         Sentence_Terminal and Prepended_Concatenation_Mark.
9755         (is_property_default_ignorable_code_point): Exclude U+08E2.
9756         (fill_arabicshaping): Allow missing whitespace when parsing;
9757         recognize "AFRICAN FEH", "AFRICAN QAF", and "AFRICAN MOON".
9758         (output_blocks): Increase the element size of the level1 table to
9759         accommodate more blocks.
9760         (get_lbp): Recognize ZWJ, E_Base, and E_Modifier characters;
9761         Update each class according to the standard.
9762         (get_wbp): Recognize ZWJ, E_Base, E_Modifier, Glue_After_Zwj, and
9763         E_Base_GAZ characters.
9764         (output_gbp_table): Recognize ZWJ, E_Base, E_Modifier,
9765         Glue_After_Zwj, and E_Base_GAZ characters.
9766         * lib/unictype.in.h (UC_JOINING_GROUP_AFRICAN_FEH)
9767         (UC_JOINING_GROUP_AFRICAN_QAF, UC_JOINING_GROUP_AFRICAN_MOON): New
9768         enum value.
9769         * lib/unilbrk/lbrktables.h (LBP_ZWJ, LBP_EB, LBP_EM): New enum
9770         value.
9771         * lib/unilbrk/lbrktables.c (unilbrk_table): Extend the table with
9772         LBP_ZWJ, LBP_EB, and LBP_EM.
9773         * lib/uniwbrk.in.h (WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, WBP_EBG): New
9774         enum value.
9775         * lib/uniwbrk/u-wordbreaks.h: Implement WB3c, WB15, and WB16.
9776         * lib/uniwbrk/wbrktable.h (uniwbrk_prop_index): New variable
9777         declaration.
9778         * lib/uniwbrk/wbrktable.c (uniwbrk_prop_index): New variable.
9779         (uniwbrk_table): Implement WB14.
9780         * tests/uniwbrk/test-uc-wordbreaks.c (wordbreakproperty_to_string):
9781         Check WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, and WBP_EBG.
9782         * modules/unigbrk/u{32,16,8}-grapheme-breaks: No longer depend on
9783         uc-is-grapheme-break.
9784         * modules/unigbrk/uc-grapheme-breaks: New module.
9785         * modules/unigbrk/uc-grapheme-breaks-tests: New module.
9786         * lib/unigbrk.in.h (GBP_ZWJ, GBP_EB, GBP_EM, GBP_GAZ, GBP_EBG): New
9787         enum value.
9788         (uc_grapheme_breaks): New function, replacing uc_is_grapheme_break.
9789         * lib/unigbrk/u-grapheme-breaks.h: New file.
9790         * lib/unigbrk/u{32,16,8}-grapheme-breaks.c: Rewrite using
9791         u-grapheme-breaks.h instead of uc_is_grapheme_break.
9792         * lib/unigbrk/uc-grapheme-breaks.c: New file.
9793         * lib/unigbrk/uc-is-grapheme-break.c: Partially update to TR29 rev
9794         29.
9795         * tests/unigbrk/test-uc-gbrk-prop.c
9796         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
9797         GBP_GAZ, and GBP_EBG.
9798         * tests/unigbrk/test-uc-grapheme-breaks.c: New test.
9799         * tests/unigbrk/test-uc-is-grapheme-break.c
9800         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
9801         GBP_GAZ, and GBP_EBG.
9802         (main): Skip unsupported rules involving 3 or more characters,
9803         namely GB10, GB12, and GB13.
9804         * lib/uniwidth/width.c (nonspacing_table_data): Update.
9805         * all generated files under lib/uni* and tests/uni*: Regenerate.
9806         * all the affected modules: Bump version.
9808 2017-11-26  Bruno Haible  <bruno@clisp.org>
9810         strfmon_l: Fix compilation error with glibc 2.5.
9811         Reported by Tom G. Christensen <tgc@jupiterrise.com>
9812         in <https://lists.gnu.org/r/bug-gnulib/2017-11/msg00051.html>.
9813         * lib/monetary.in.h: Include also <locale.h>.
9815 2017-11-24  Paul Eggert  <eggert@cs.ucla.edu>
9817         posixtm: remove PDS_LEADING_YEAR
9818         This changes the API slightly, in a hopefully-innocuous way.
9819         Without this change the code had undefined behavior when a
9820         caller specified neither PDS_LEADING_YEAR nor PDS_TRAILING_YEAR.
9821         Problem reported by Pádraig Brady in:
9822         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00048.html
9823         * NEWS: Mention this.
9824         * lib/posixtm.c (posix_time_parse): Treat the absence of
9825         PDS_TRAILING_YEAR as if PDS_LEADING_YEAR were present.
9826         * lib/posixtm.h (PDS_LEADING_YEAR): Remove (actually, leave it
9827         present, but define it as zero, for compatibility with existing
9828         source code).  All other PDS_* values moved up.
9829         * tests/test-posixtm.c (LY): New macro.
9830         (T): Use it.  Do not expect a particular numeric encoding
9831         for PDS_CENTURY etc.
9833 2017-11-23  Paul Eggert  <eggert@cs.ucla.edu>
9835         stat: work around Solaris bug with tv_nsec < 0
9836         * doc/posix-functions/fstat.texi (fstat):
9837         * doc/posix-functions/fstatat.texi (fstatat):
9838         * doc/posix-functions/lstat.texi (lstat):
9839         * doc/posix-functions/stat.texi (stat):
9840         Mention Solaris 11 bug.
9841         * lib/fstat.c, lib/fstatat.c, lib/lstat.c: Include stat-time.h.
9842         * lib/fstat.c (rpl_fstat) [!WINDOWS_NATIVE]:
9843         * lib/lstat.c (rpl_lstat):
9844         * lib/stat.c (rpl_stat):
9845         Normalize resulting timestamps.
9846         * lib/fstatat.c (normal_fstatat): New function.
9847         (rpl_fstatat): Use it.
9848         * lib/stat-time.h: Include intprops.h, errno.h, stddef.h.
9849         (stat_time_normalize): New function.
9850         * m4/fstat.m4 (gl_FUNC_FSTAT):
9851         * m4/fstatat.m4 (gl_FUNC_FSTATAT):
9852         * m4/lstat.m4 (gl_FUNC_LSTAT):
9853         * m4/stat.m4 (gl_FUNC_STAT):
9854         Replace on Solaris.
9855         * modules/fstat (Depends-on):
9856         * modules/fstatat (Depends-on):
9857         Add stat-time.
9858         * modules/stat-time (Depends-on): Add errno, intprops.
9860 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
9862         regex: merge from glibc
9863         * lib/regcomp.c (init_word_char): Add comments.
9865 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
9867         regex: merge from glibc
9868         * lib/regcomp.c (__regcomp, __regfree) [_LIBC]: Now hidden.
9869         * lib/regex_internal.h (internal_function): Remove.
9870         All uses removed.
9872 2017-11-20  Bruno Haible  <bruno@clisp.org>
9874         crypto/gc-sm3: Fix buffer overrun.
9875         * lib/gc-gnulib.c (MAX_DIGEST_SIZE): Bump to 32.
9876         Reported by Coverity.
9878 2017-11-12  Jim Meyering  <meyering@fb.com>
9880         maint: shorten https://lists.gnu.org/archive/html/... links
9881         Each /archive/html/ part can be replace with /r/.
9882         Run this to induce the change:
9883         git grep -l archive/html|xargs perl -pi -e 's,/archive/html/,/r/,g'
9884         * ChangeLog: Perform that substitution.
9885         * Makefile: Likewise.
9886         * STATUS-libposix: Likewise.
9887         * build-aux/bootstrap: Likewise.
9888         * doc/maintain.texi: Likewise.
9889         * gnulib-tool: Likewise.
9890         * lib/allocator.h: Likewise.
9891         * lib/argp-ba.c: Likewise.
9892         * lib/argp-pv.c: Likewise.
9893         * lib/canon-host.c: Likewise.
9894         * lib/canonicalize-lgpl.c: Likewise.
9895         * lib/float.in.h: Likewise.
9896         * lib/fstat.c: Likewise.
9897         * lib/getdelim.c: Likewise.
9898         * lib/getprogname.c: Likewise.
9899         * lib/glthread/thread.h: Likewise.
9900         * lib/intprops.h: Likewise.
9901         * lib/mbsrtowcs-state.c: Likewise.
9902         * lib/safe-read.c: Likewise.
9903         * lib/signal.in.h: Likewise.
9904         * lib/stat.c: Likewise.
9905         * lib/stdbool.in.h: Likewise.
9906         * lib/stdio-impl.h: Likewise.
9907         * lib/stdio.in.h: Likewise.
9908         * lib/sysexits.in.h: Likewise.
9909         * lib/timespec.h: Likewise.
9910         * lib/wcsrtombs-state.c: Likewise.
9911         * m4/alloca.m4: Likewise.
9912         * m4/extern-inline.m4: Likewise.
9913         * m4/fstatat.m4: Likewise.
9914         * m4/gnulib-common.m4: Likewise.
9915         * m4/lib-ignore.m4: Likewise.
9916         * m4/printf.m4: Likewise.
9917         * m4/regex.m4: Likewise.
9918         * m4/stat-size.m4: Likewise.
9919         * m4/std-gnu11.m4: Likewise.
9920         * m4/stdbool.m4: Likewise.
9921         * m4/sys_types_h.m4: Likewise.
9922         * m4/threadlib.m4: Likewise.
9923         * m4/vararrays.m4: Likewise.
9924         * pygnulib/GLImport.py: Likewise.
9925         * tests/test-exp.h: Likewise.
9926         * tests/test-exp2.h: Likewise.
9927         * tests/test-expm1.h: Likewise.
9928         * tests/test-fflush2.c: Likewise.
9929         * tests/test-getopt_long.h: Likewise.
9930         * tests/test-intprops.c: Likewise.
9931         * tests/test-log.h: Likewise.
9932         * tests/test-log10.h: Likewise.
9933         * tests/test-log1p.h: Likewise.
9934         * tests/test-log2.h: Likewise.
9935         * tests/test-printf-posix.h: Likewise.
9936         * tests/test-regex.c: Likewise.
9937         * tests/test-snprintf-posix.h: Likewise.
9938         * tests/test-sprintf-posix.h: Likewise.
9939         * tests/test-stdalign.c: Likewise.
9940         * tests/test-stdbool.c: Likewise.
9941         * tests/test-vasnprintf-posix.c: Likewise.
9942         * tests/test-vasprintf-posix.c: Likewise.
9943         * top/maint.mk: Likewise.
9945 2017-11-12  Bruno Haible  <bruno@clisp.org>
9947         faccessat: Make the last change more robust.
9948         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Require
9949         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Treat "guessing yes" like "yes".
9951 2017-11-11  Paul Eggert  <eggert@cs.ucla.edu>
9953         faccessat: port to macOS (Bug#29231)
9954         macOS faccessat has the same bug that lstat does: if the file
9955         name ends in '/' it ignores the trailing slash.
9956         Problem reported for Emacs by Vincent Zhang.
9957         * doc/posix-functions/faccessat.texi (faccessat): Document this.
9958         * lib/faccessat.c (_GL_INCLUDING_UNISTD_H): Define and undef
9959         around the initial includes.  Include errno.h, string.h, sys/stat.h.
9960         (orig_faccessat) [HAVE_FACCESSAT]: New function.
9961         Include "unistd.h" after defining it.
9962         (rpl_faccessat) [HAVE_FACCESSAT]: New implementation.
9963         * lib/unistd.in.h (faccessat) [REPLACE_FACCESSAT]:
9964         Handle in the usual way.
9965         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Replace faccessat if
9966         lstat dereferences symlinks, since faccessat is likely to
9967         have the same problem.
9968         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Default REPLACE_ACCESSAT.
9969         * modules/faccessat (Depends-on): Add fstatat.
9970         Depend if REPLACE_FACCESSAT is 1, too.
9971         (configure.ac): Link if REPLACE_FACCESSAT is 1.
9972         * modules/faccessat-tests (Depends-on): Add symlink.
9973         * modules/unistd (unistd.h): Substitute REPLACE_FACCESSAT.
9974         * tests/test-faccessat.c (main): Test for the bug.
9976 2017-11-11  Bruno Haible  <bruno@clisp.org>
9978         getprogname: Fix compilation error on IRIX.
9979         * lib/getprogname.c (getprogname) [__sgi]: Fix type of local variable
9980         'namesize'.
9982 2017-11-11  Bruno Haible  <bruno@clisp.org>
9984         year2038: Tweak last patch.
9985         * m4/year2038.m4 (gl_YEAR2038): Correct indentation.
9987 2017-11-06  Paul Eggert  <eggert@cs.ucla.edu>
9989         year2038: be more insistent about 64-bit time_t
9990         Applications requiring access to arbitrary files should not be
9991         built with 32-bit time_t on hosts that have 64-bit timestamps,
9992         as this can lead to real trouble at runtime.
9993         * m4/year2038.m4 (gl_YEAR2038): Do not require AC_CANONICAL_HOST.
9994         Check on all systems, not just MinGW.  Use a heuristic involving
9995         TIME_T_32_BIT_OK, cross_compiling, and the touch command to
9996         output a failure or just a warning, to make it more likely that
9997         builders will select 64-bit time_t.
9999 2017-11-05  Paul Eggert  <eggert@cs.ucla.edu>
10001         havelib: fix typo in previous change
10002         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Fix typo.
10004         Don’t use AC_EGREP_CPP if affected by CFLAGS
10005         * m4/float_h.m4 (gl_FLOAT_H):
10006         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI):
10007         * m4/lib-ld.m4 (AC_LIB_PROG_LD):
10008         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB):
10009         * m4/year2038.m4 (gl_YEAR2038):
10010         Prefer AC_COMPILE_IFELSE to AC_EGREP_CPP when testing conditions
10011         likely to be affected by the choice of CFLAGS, since CFLAGS are
10012         not used by AC_EGREP_CPP.  Without this patch, ‘./configure
10013         CFLAGS="-m32"’ fails on gzip with GNU/Linux x86-64.
10015         fstatat: pacify GCC on unusual platform
10016         * lib/fstatat.c (orig_fstatat) [!HAVE_WORKING_FSTATAT_ZERO_FLAG]:
10017         Omit, as it’s unused in this case.
10019 2017-10-29  Paul Eggert  <eggert@cs.ucla.edu>
10021         timespec: prefer ‘assume’ to ‘assure’
10022         This avoids some runtime tests.  The rest of the module makes
10023         similar assumptions and there is little point to testing here.
10024         * lib/timespec.h: Include verify.h instead of assure.h.
10025         (timespec_cmp): Use ‘assume’, not ‘assure’.
10026         Also, remove an unnecessary cast to ‘int’, as lots of other
10027         code in this module now causes -Wconversion to complain, and
10028         this is a problem with -Wconversion not with the code.
10030         * modules/timespec (Depends-on): Depend on ‘verify’, not ‘assure’.
10032         Port recent gnulib-tool change to Dash
10033         * gnulib-tool (func_create_testdir): Don't assume that the shell
10034         retokenizes after expanding "$@" inside the call to
10035         func_execute_command.  Dash 0.5.8-2.1ubuntu2 does not.
10037 2017-10-27  Jim Meyering  <meyering@fb.com>
10039         timespec.h: use "assure" to avoid a spurious warning
10040         * lib/timespec.h: Include "assure.h" and use it to help
10041         gcc7's -Wstrict-overflow avoid a false positive warning
10042         for a use in coreutils' ls.c.  Suggested by Paul Eggert in
10043         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00007.html
10044         * modules/timespec (Depends-on): Add assure.
10046 2017-10-29  Bruno Haible  <bruno@clisp.org>
10048         Avoid several test failures with traditional locales on Haiku.
10049         * m4/locale-ar.m4 (gt_LOCALE_AR): On BeOS and Haiku, set LOCALE_AR=none.
10050         * m4/locale-fr.m4 (gt_LOCALE_FR): On BeOS and Haiku, set LOCALE_FR=none.
10051         * m4/locale-ja.m4 (gt_LOCALE_JA): On BeOS and Haiku, set LOCALE_JA-none.
10052         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On BeOS and Haiku, set
10053         LOCALE_ZH_CN=none.
10055 2017-10-29  Bruno Haible  <bruno@clisp.org>
10057         strerror_r-posix: Fix behaviour and test failure on Haiku.
10058         * lib/strerror_r.c (strerror_r): Don't assume that valid error numbers
10059         are positive. Work around return value 0 instead of ERANGE on Haiku.
10060         For unknown error numbers, use a format string consistent with perror().
10061         * doc/posix-functions/strerror_r.texi: Mention the Haiku problem.
10062         * tests/test-strerror_r.c (main): Don't assume that valid error numbers
10063         are positive.
10065 2017-10-29  Bruno Haible  <bruno@clisp.org>
10067         get-rusage-data: Avoid crash on Haiku.
10068         * lib/get-rusage-data.c: Avoid the setlimit-based implementation.
10070 2017-10-29  Bruno Haible  <bruno@clisp.org>
10072         get-rusage-as: Avoid crash on Haiku.
10073         * lib/get-rusage-as.c: Avoid the setlimit-based implementation.
10075 2017-10-29  Bruno Haible  <bruno@clisp.org>
10077         ilogbl: Ensure replacement on Haiku.
10078         * m4/ilogbl.m4 (gl_FUNC_ILOGBL): Invoke gl_FUNC_ILOGBL_WORKS and set
10079         REPLACE_ILOGBL if ilogbl does not work.
10080         (gl_FUNC_ILOGBL_WORKS): New macro.
10081         * lib/math.in.h (ilogbl): Replace if REPLACE_ILOGBL is 1.
10082         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ILOGBL.
10083         * modules/math (Makefile.am): Substitute REPLACE_ILOGBL.
10084         * modules/ilogbl (Depends-on, configure.ac): Consider REPLACE_ILOGBL.
10085         * doc/posix-functions/ilogbl.texi: Mention the Haiku problem.
10087 2017-10-29  Bruno Haible  <bruno@clisp.org>
10089         expl: Ensure replacement on Haiku.
10090         * m4/expl.m4 (gl_FUNC_EXPL): Test whether an expl() return value is
10091         zero.
10092         * doc/posix-functions/expl.texi: Mention the Haiku problem.
10094 2017-10-29  Bruno Haible  <bruno@clisp.org>
10096         math: Fix test failure on Haiku.
10097         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Override on Haiku.
10098         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Update accordingly.
10099         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
10100         * doc/posix-headers/math.texi: Mention the Haiku problem.
10102 2017-10-29  Bruno Haible  <bruno@clisp.org>
10104         gnulib-tool: Avoid unnecessary config.h.in remaking in testdirs.
10105         * gnulib-tool (func_create_testdir): Use workaround against 'autoheader'
10106         bug reported at <https://savannah.gnu.org/support/index.php?109406>.
10108 2017-10-29  Bruno Haible  <bruno@clisp.org>
10110         crypto/*: Verify that the header file is self-contained.
10111         * tests/test-gc-*.c: Include the module's header file immediately after
10112         <config.h>.
10113         * tests/test-hmac-*.c: Likewise.
10114         * tests/test-arcfour.c: Likewise.
10115         * tests/test-arctwo.c: Likewise.
10116         * tests/test-des.c: Likewise.
10117         * tests/test-md2.c: Likewise.
10118         * tests/test-md4.c: Likewise.
10119         * tests/test-md5.c: Likewise.
10120         * tests/test-rijndael.c: Likewise.
10121         * tests/test-sha1.c: Likewise.
10122         * tests/test-sm3.c: Likewise.
10124 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
10125             Bruno Haible  <bruno@clisp.org>
10127         crypto/gc: fix build failure with -Werror=suggest-attribute=const
10128         * lib/gc.h (gc_hash_digest_length): Mark with 'const' attribute.
10130 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
10132         New module: crypto/gc-sm3
10133         * lib/gc.h: Declare SM3-related stuffs.
10134         * lib/gc-gnulib.c: Support sm3 in internal functions.
10135         * lib/gc-libgcrypt.c: Support sm3 with libgcrypt.
10136         * m4/gc-sm3.m4: m4 file for gc-sm3 module.
10137         * modules/crypto/gc-sm3: Define gc-sm3 module.
10138         * tests/test-gc-sm3.c: Implement SM3 test case with libgcrypt.
10139         * modules/crypto/gc-sm3-tests: Define gc-sm3 test module.
10140         * MODULES.html.sh: List gc-sm3 module.
10142 2017-10-29  Bruno Haible  <bruno@clisp.org>
10144         random, random_r: Mention different prototypes on Haiku.
10145         * doc/posix-functions/random.texi: Mention different prototype on Haiku.
10146         * doc/glibc-functions/random_r.texi: Likewise.
10147         * doc/glibc-functions/initstate_r.texi: Likewise.
10148         * doc/glibc-functions/setstate_r.texi: Likewise.
10150 2017-10-28  Bruno Haible  <bruno@clisp.org>
10152         posix_spawn: Avoid spurious message in configure output.
10153         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Discard stderr output from
10154         'cmp' command.
10156 2017-10-28  Bruno Haible  <bruno@clisp.org>
10158         inet_ntop, inet_pton: Determine needed library correctly on Haiku.
10159         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Search also in libnetwork.
10160         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
10162 2017-10-28  Bruno Haible  <bruno@clisp.org>
10164         ioctl: Override non-POSIX declaration on Haiku.
10165         * m4/ioctl.m4 (gl_FUNC_IOCTL): Include also <unistd.h>.
10166         * lib/sys_ioctl.in.h: Add comment about Haiku.
10167         * doc/posix-functions/ioctl.texi: Mention Haiku problem.
10168         * doc/glibc-headers/sys_ioctl.texi: Likewise.
10170 2017-10-28  Bruno Haible  <bruno@clisp.org>
10172         crypto/sm3: Add overview documentation to the .h file.
10173         * lib/sm3.h: Add comments.
10175 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
10177         New module: crypto/sm3
10178         This new module can be used to compute SM3 message digest of files or
10179         memory blocks according to the specification GM/T 004-2012
10180         Cryptographic Hash Algorithm SM3, published by State Cryptography
10181         Administration, China.
10182         The official SM3 cryptographic hash algorithm specification is
10183         available at
10184         http://www.sca.gov.cn/sca/xwdt/2010-12/17/content_1002389.shtml
10185         * lib/sm3.h: Declare the APIs of sm3 module.
10186         * lib/sm3.c: Implement SM3 hash algorithm.
10187         * m4/sm3.m4: m4 file for sm3 module.
10188         * modules/crypto/sm3: Define sm3 module.
10189         * tests/test-sm3.c: Implement SM3 test case.
10190         * modules/crypto/sm3-tests: Define sm3 test module.
10191         * MODULES.html.sh: List sm3 module.
10193 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
10195         gc-libgcrypt: fix undefined enum type in switch statement
10196         Resolve the following build failure:
10197         lib/gc-libgcrypt.c: In function 'gc_hash_open':
10198         lib/gc-libgcrypt.c:317:5: error: case value '0' not in enumerated type
10199         'Gc_hash_mode {aka enum Gc_hash_mode}' [-Werror=switch]
10200              case 0:
10201              ^~~~
10202         * lib/gc.h (enum Gc_hash_mode): Add value GC_NULL.
10203         * lib/gc-libgcrypt.c (gc_hash_open): Use this enum value instead of 0.
10205 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
10207         gc-libgcrypt: fix assignment error due to -Werror=pointer-sign
10208         Resolve the following build failure:
10209         lib/gc-libgcrypt.c: In function 'gc_hash_read':
10210         lib/gc-libgcrypt.c:460:14: error: pointer targets in assignment differ
10211         in signedness [-Werror=pointer-sign]
10212             digest = gcry_md_read (ctx->gch, 0);
10213                    ^
10214         * lib/gc-libgcrypt.c (gc_hash_read): Cast result of gcry_md_read.
10216 2017-10-26  Bruno Haible  <bruno@clisp.org>
10218         havelib: Fix value of LD for 32-bit compilation on NetBSD/sparc64.
10219         * m4/lib-ld.m4 (AC_LIB_PROG_LD): On NetBSD/sparc64 with CC="gcc -m32",
10220         set LD to '/usr/bin/ld -m elf32_sparc', not '/usr/bin/ld'.
10222 2017-10-21  Paul Eggert  <eggert@cs.ucla.edu>
10224         glob: fix another heap buffer overflow
10225         Problem reported by Tim Rühsen in:
10226         https://sourceware.org/bugzilla/show_bug.cgi?id=22332
10227         * lib/glob.c (glob): Avoid buffer overrun when unescaping.
10229 2017-10-19  Paul Eggert  <eggert@cs.ucla.edu>
10231         quotearg: pacify compiler re unsigned
10232         * lib/quotearg.c (quotearg_n_options):
10233         Rewrite to avoid diagnostic from overly-picky compiler.
10234         Problem reported by Sami Kerola in:
10235         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00060.html
10237         glob: fix heap buffer overflow
10238         * lib/glob.c (glob): Fix off-by-one error introduced into
10239         glibc in commit dd7d45e838a42b0ed470c44b55901ea98d0c2bab
10240         dated 1997-10-29 20:33:40.  Problem reported by Tim Rühsen in:
10241         https://sourceware.org/bugzilla/show_bug.cgi?id=22320
10242         Fix suggested by Bruno Haible.
10244 2017-10-18  Paul Eggert  <eggert@cs.ucla.edu>
10246         glob: pacify fuzzer for mempcpy
10247         Problem reported by Tim Rühsen in:
10248         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00054.html
10249         * lib/glob.c (glob): Do not pass NULL to mempcpy.
10251 2017-10-12  Bruno Haible  <bruno@clisp.org>
10253         doc: Fix syntax error (regression from 2017-10-03).
10254         * doc/posix-functions/strncpy.texi: Fix syntax error.
10256 2017-10-12  Bruno Haible  <bruno@clisp.org>
10258         doc: Update for Solaris 11.3.
10259         * doc/**/*.texi: For bugs that exist in both Solaris 11.0 and 11.3,
10260         mention Solaris 11.3.
10261         * m4/log2.m4: Fix comments.
10262         * m4/log2f.m4: Likewise.
10263         * m4/printf.m4: Update comments.
10264         * m4/rename.m4: Likewise.
10265         * m4/strncat.m4: Likewise.
10267         all: Write "Solaris 11.0" instead of "Solaris 11 2011-11".
10269 2017-10-10  Bruno Haible  <bruno@clisp.org>
10271         doc: Improve doc about ioctl.
10272         * doc/posix-functions/ioctl.texi: Fix list of platforms with non-POSIX
10273         prototype.
10275 2017-10-09  Bruno Haible  <bruno@clisp.org>
10277         wcwidth: Don't use obsolete syntax of 'test'.
10278         Reported by Eric Blake.
10279         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Don't optimize two 'test'
10280         invocations into one, as POSIX marks '-a' and '-o' as "obsolescent".
10282 2017-10-09  Bruno Haible  <bruno@clisp.org>
10284         getopt-posix: Fix build failure when using ac_cv_header_getopt_h=no.
10285         Reported by Christian Ehrhardt <christian.ehrhardt@canonical.com>
10286         and Daniel P. Berrange <berrange@redhat.com>.
10287         * lib/unistd.in.h (getopt): Don't attempt to avoid namespace pollution
10288         on glibc systems. The getopt-pfx-core.h file declares exactly what
10289         unistd.h needs, nothing more.
10291 2017-10-08  Bruno Haible  <bruno@clisp.org>
10293         vma-iter: Improve support for FreeBSD.
10294         * lib/vma-iter.c (vma_iterate_proc): New function, extracted from
10295         vma_iterate.
10296         (vma_iterate): Use it. For FreeBSD, try vma_iterate_bsd first.
10298 2017-10-08  Bruno Haible  <bruno@clisp.org>
10300         vma-iter: Fix truncated result on NetBSD (regression from 2017-10-07).
10301         * lib/vma-iter.c (MIN_LEFTOVER): Define to 1, not 0.
10303 2017-10-07  KO Myung-Hun  <komh@chollian.net>
10305         test-framework-sh: Fix 'invalid path dir' error.
10306         On OS/2, a path separator is ';' not ':'. And ':' is used as a
10307         separator between a drive letter and directory parts.
10308         As a result, an absolute path such as x:/path/to/dir on OS/2 is
10309         treated as an invalid path dir.
10310         * tests/init.sh (PATH_SEPARATOR): Set at startup.
10311         (path_prepend_): '?:*' is also an absolute path. Use $PATH_SEPARATOR
10312         instead of hard coded ':'.
10314 2017-10-07  Bruno Haible  <bruno@clisp.org>
10316         vma-iter: Fix truncated result on Linux (regression from 2017-09-26).
10317         * lib/vma-iter.c (MIN_LEFTOVER): New macro.
10318         (STACK_ALLOCATED_BUFFER_SIZE): Set to a minimal value if not needed.
10319         (rof_open): On Linux, do multiple read() calls and make sure
10320         MIN_LEFTOVER bytes are left when read() returns.
10322 2017-10-07  Bruno Haible  <bruno@clisp.org>
10324         vma-iter: Improve support for GNU/Hurd.
10325         * lib/vma-iter.c (vma_iterate): On GNU/Hurd, use the Mach vm_region()
10326         API, not the /proc file system.
10328 2017-10-07  Bruno Haible  <bruno@clisp.org>
10330         test-framework-sh: Don't require bash on Windows and OS/2.
10331         Reported by KO Myung-Hun.
10332         * tests/test-init.sh: Use 'shopt' only when running in bash.
10334 2017-10-06  KO Myung-Hun  <komh@chollian.net>
10336         wcwidth: check a macro version of wcwidth () as well
10337         * lib/wchar.in.h: Revert commit from 2016-01-14.
10338         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test if wcwidth is a macro.
10340 2017-10-06  Bruno Haible  <bruno@clisp.org>
10342         getopt-posix: Clarify copyright header.
10343         * lib/getopt.in.h: Don't state that gnulib is under LGPL.
10344         * lib/getopt-pfx-core.h: Likewise.
10345         * lib/getopt-pfx-ext.h: Likewise.
10346         * lib/getopt-cdefs.in.h: Likewise.
10348 2017-10-03  Bruno Haible  <bruno@clisp.org>
10350         Fix warning "`gl_HOST_CPU_C_ABI' was expanded before it was required".
10351         * modules/host-cpu-c-abi (configure.ac): Require, don't invoke
10352         gl_HOST_CPU_C_ABI.
10354 2017-10-03  Bruno Haible  <bruno@clisp.org>
10356         doc: warn about misuse of strncpy and wcsncpy.
10357         * doc/posix-functions/strcpy.texi: Describe requirements on prior
10358         memory allocation.
10359         * doc/posix-functions/wcscpy.texi: Likewise.
10360         * doc/posix-functions/strncpy.texi: Describe what this function is not
10361         useful for.
10362         * doc/posix-functions/wcsncpy.texi: Likewise.
10364 2017-10-02  Paul Eggert  <eggert@cs.ucla.edu>
10366         fsuage: fix typo in previous change
10367         * lib/fsusage.c: Remove stray include of full-read.h.
10368         Problem reported by Sam Steingold for macOS (Bug#28669).
10370 2017-10-01  Paul Eggert  <eggert@cs.ucla.edu>
10372         fsusage: remove SVR2 support
10373         SVR2 was obsolete by 1986 and is no longer supported by anybody,
10374         and its code was getting in the way of use of this module by
10375         Emacs, which has its own ‘read’ function anyway.
10376         * lib/fsusage.c: Do not include sys/filsys.h.
10377         (get_fs_usage): Remove SVR2-specific code.
10378         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE):
10379         Do not test for sys/filsys.h or set STAT_READ_FILSYS.
10380         * modules/fsusage (Depends-on): Do not depend on full-read.
10382         Simplify autoupdate of licenses
10383         * config/srclistvars.sh (GNUWWWLICENSES): Move to a more-typical
10384         place.
10386 2017-10-01  Bruno Haible  <bruno@clisp.org>
10388         vma-iter: Add support for GNU/Hurd.
10389         * lib/vma-iter.c: Treat GNU/Hurd like Linux.
10390         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
10392 2017-09-30  Bruno Haible  <bruno@clisp.org>
10394         vma-iter: Make it work on 32-bit Solaris with module 'largefile'.
10395         * modules/vma-iter: Don't test for sys/procfs.h, as this test would
10396         fail when module 'largefile' is in use.
10397         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't test HAVE_SYS_PROCFS_H.
10398         * lib/vma-iter.c: Undefine _FILE_OFFSET_BITS early.
10399         Don't test HAVE_SYS_PROCFS_H.
10401 2017-09-30  Bruno Haible  <bruno@clisp.org>
10403         havelib: Make it work for CC="gcc -m32" (regression from 2017-02-19).
10404         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Require gl_HOST_CPU_C_ABI.
10405         When $CC produces 32-bit code, set acl_libdirstem to 'lib', not 'lib64'.
10406         * modules/havelib (Depends-on): Add host-cpu-c-abi.
10408 2017-09-30  Bruno Haible  <bruno@clisp.org>
10410         uniname/uniname: Don't assume C99 compiler (regression from 2015-02-16).
10411         * lib/uniname/uniname.c (unicode_name_character): Add braces around
10412         scope of local variables.
10414 2017-09-28  Bruno Haible  <bruno@clisp.org>
10416         string: code style
10417         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Reorder list of
10418         substitutable variables.
10419         * modules/string (Makefile.am): Likewise.
10421 2017-09-26  Bruno Haible  <bruno@clisp.org>
10423         uniname/uniname-tests: Tighten code.
10424         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Merge two
10425         local variables into one.
10427 2017-09-26  Bruno Haible  <bruno@clisp.org>
10429         vma-iter: Improvements for Linux and BSD platforms.
10430         - Add support for DragonFly BSD.
10431         - Make it more reliable on Linux, GNU/kFreeBSD, FreeBSD, NetBSD.
10432         * lib/vma-iter.c (struct rofile, rof_open, rof_peekchar, rof_close):
10433         Read the entire file into memory in a single system call.
10434         (vma_iterate): Update. Read from /proc on DragonFly BSD like on FreeBSD.
10435         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on DragonFly BSD.
10437 2017-09-26  Bruno Haible  <bruno@clisp.org>
10439         vma-iter: Provide the protection flags on FreeBSD.
10440         * lib/vma-iter.c (vma_iterate) [FreeBSD]: When reading from /proc,
10441         skip three fields between the addresses and the protection flags.
10443 2017-09-26  Paul Eggert  <eggert@cs.ucla.edu>
10445         glob: remove bogus extern decl
10446         * lib/glob.c (__glob_pattern_type): Remove now-spurious
10447         extern declaration.  Problem reported by Adhemerval Zanella in:
10448         https://sourceware.org/ml/libc-alpha/2017-09/msg00972.html
10450 2017-09-25  Paul Eggert  <eggert@cs.ucla.edu>
10452         uniname/uniname-tests: integer overflow fix
10453         * tests/uniname/test-uninames.c (fill_names, fill_aliases):
10454         Check for integer overflow.
10456         duplocale-tests: fix unlikely crash
10457         * tests/test-duplocale.c (get_locale_dependent_values):
10458         Don’t crash with absurdly long month names.
10460         maint: fix overflow checking in nap.h
10461         * modules/chown-tests:
10462         * modules/fchownat-tests, modules/fdutimensat-tests:
10463         * modules/futimens-tests, modules/lchown-tests:
10464         * modules/stat-time-tests, modules/utime-tests:
10465         * modules/utimens-tests, modules/utimensat-tests:
10466         Depend on intprops.
10467         * tests/nap.h: Include intprops.h.
10468         (diff_timespec): Handle overflow properly.
10470         sys_types: update URL
10471         * m4/sys_types_h.m4: Use https: URL.
10473         parse-datetime: fix dependency
10474         * modules/parse-datetime (Depends-on): Depend
10475         on nstrftime, not strftime.
10477         parse-datetime, posixtm: avoid uninit access
10478         * lib/parse-datetime.y (parse_datetime2):
10479         * lib/posixtm.c (posixtime):
10480         Do not access uninitialized storage, even though the resulting
10481         value is never used.
10483 2017-09-25  Bruno Haible  <bruno@clisp.org>
10485         vma-iter: Improvements for BSD platforms.
10486         - Add support for GNU/kFreeBSD.
10487         - Make it work on FreeBSD and NetBSD even when /proc is not mounted.
10488         - Speed up on OpenBSD.
10489         * lib/vma-iter.c (struct rofile, rof*): Define also on GNU/kFreeBSD.
10490         (vma_iterate_bsd): New function.
10491         (vma_iterate): Use it as fallback on FreeBSD and NetBSD. Use it as
10492         first choice on OpenBSD. Treat GNU/kFreeBSD like Linux.
10493         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
10494         * modules/vma-iter (configure.ac): Require AC_C_INLINE.
10496 2017-09-23  Bruno Haible  <bruno@clisp.org>
10498         strfmon_l: New module.
10499         * modules/strfmon_l: New file.
10500         * lib/strfmon_l.c: New file.
10501         * m4/strfmon_l.m4: New file.
10502         * doc/posix-functions/strfmon_l.texi: Mention the new module.
10503         * modules/strfmon_l-tests: New file.
10504         * tests/test-strfmon_l.c: New file.
10506         monetary: New module.
10507         * modules/monetary: New file.
10508         * lib/monetary.in.h: New file.
10509         * m4/monetary_h.m4: New file.
10510         * doc/posix-headers/monetary.texi: Mention the new module.
10511         * modules/monetary-tests: New file.
10512         * tests/test-monetary.c: New file.
10513         * modules/monetary-c++-tests: New file.
10514         * tests/test-monetary-c++.cc: New file.
10515         * modules/duplocale-tests (configure.ac): Use AC_CHECK_HEADERS_ONCE.
10517 2017-09-23  Bruno Haible  <bruno@clisp.org>
10519         duplocale tests: Fix test crash on Linux/x86.
10520         * tests/test-duplocale.c (test_with_uselocale): Disconnect the mixed2
10521         locale from the current thread before freeing it.
10523 2017-09-21  Paul Eggert  <eggert@cs.ucla.edu>
10525         mktime: port to OpenVMS
10526         Problem reported by John E. Malmberg in:
10527         https://lists.gnu.org/r/bug-gnulib/2017-09/msg00100.html
10528         * m4/mktime.m4 (TIME_T_IS_SIGNED): Default to 0.
10530 2017-09-16  Paul Eggert  <eggert@cs.ucla.edu>
10532         manywarnings: port to GCC on 64-bit MS-Windows
10533         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Work better if
10534         LONG_MAX < PTRDIFF_MAX.  Problem reported by Richard Copley in:
10535         https://lists.gnu.org/r/emacs-devel/2017-09/msg00392.html
10537 2017-09-13  Bruno Haible  <bruno@clisp.org>
10539         all: Replace many more http URLs by https URLs. Update stale URLs.
10540         * users.txt: Remove mention of 'newts'.
10541         * lib/localename.c: Update comment about LANG_SOTHO.
10543 2017-09-13  Paul Eggert  <eggert@cs.ucla.edu>
10545         all: Replace many http URLs by https URLs.
10547 2017-09-12  Bruno Haible  <bruno@clisp.org>
10549         doc: Prefer https URLs where possible.
10550         * doc/**/*.texi: Use https URLs instead of http URLs where possible.
10551         * doc/ld-output-def.texi: Remove unavailable URL.
10553 2017-09-12  Paul Eggert  <eggert@cs.ucla.edu>
10555         maintainer-makefile: FTP -> HTTPS
10556         * top/maint.mk (url_dir_list, ftp-gnu): Use HTTPS protocol instead
10557         of FTP, which is planned to be decommissioned on 2017-11-01.
10559 2017-09-12  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
10561         libc-config: Fix __GNUC_PREREQ macro.
10562         * lib/libc-config.h (__GNUC_PREREQ): Use __GNUC_MINOR__, not
10563         __GNUC_MINOR.
10565 2017-09-09  Bruno Haible  <bruno@clisp.org>
10567         gnulib-tool: Simplify commit from 2015-08-20.
10568         * gnulib-tool (func_add_or_update): Remove local variable
10569         is_binary_file.
10571 2017-09-08  Bruno Haible  <bruno@clisp.org>
10573         stddef: Avoid conflict with system-defined max_align_t.
10574         The configure-determined HAVE_MAX_ALIGN_T may not always be accurate.
10575         Reported by Werner Lemberg <wl@gnu.org> in
10576         <https://lists.gnu.org/r/bug-gnulib/2017-08/msg00185.html>.
10577         * lib/stddef.in.h (rpl_max_align_t): Renamed from max_align_t.
10578         (max_align_t): Define as a macro.
10579         (GNULIB_defined_max_align_t): New macro. Guards against multiple
10580         definitions of rpl_max_align_t in different copies of gnulib-generated
10581         <stddef.h>.
10583 2017-09-05  Paul Eggert  <eggert@cs.ucla.edu>
10585         libc-config: port to MSVC
10586         Problems reported by Gisle Vanem in:
10587         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00016.html
10588         * lib/libc-config.h (__inline): Don't define if HAVE___INLINE.
10589         (libc_hidden_proto): Stick to Standard C syntax for varargs macro.
10590         * m4/__inline.m4: New file.
10591         * modules/libc-config (Files): Add it.
10592         (Depends-on): Use it.
10594         glob: Use enum for __glob_pattern_type result
10595         From a patch proposed by Adhemerval Zanella in:
10596         https://sourceware.org/ml/libc-alpha/2017-09/msg00212.html
10597         * lib/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
10598         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
10599         * lib/glob_internal.h (__glob_pattern_type):
10600         * lib/glob.c (glob):
10601         * lib/glob_pattern_p.c (__glob_pattern_p):
10602         Use them.
10604         glob: fix for use in glibc
10605         Problem reported by Adhemerval Zanella in:
10606         https://sourceware.org/ml/libc-alpha/2017-09/msg00213.html
10607         * lib/glob.c (DT_UNKNOWN, DT_DIR, DT_LINK):
10608         Do not redefine if _LIBC.
10610 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
10612         glob: fix bugs with long login names
10613         Problem reported by Adhemerval Zanella in:
10614         https://sourceware.org/ml/libc-alpha/2017-08/msg00455.html
10615         * lib/glob.c (GET_LOGIN_NAME_MAX): Remove.
10616         (glob): Use the same scratch buffer for both getlogin_r and
10617         getpwnam_r.  Don’t require preallocation of the login name.  This
10618         simplifies storage allocation, and corrects the handling of
10619         long login names.
10621 2017-09-02  Bruno Haible  <bruno@clisp.org>
10623         dirent: Update doc.
10624         * doc/posix-headers/dirent.texi: More concrete list of platforms.
10626 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
10628         glob: fix getpwnam_r errno typo
10629         * lib/glob.c (glob): Fix longstanding misuse of errno after
10630         getpwnam_r, which returns an error number rather than setting
10631         errno.
10633         glob: fix typo in recent change
10634         * lib/glob.c (glob) [!HAVE_GETPWNAM_R && !_LIBC]:
10635         Fix recently-introduced typo.
10637 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
10639         glob: don't save and restore errno unnecessarily
10640         * lib/glob.c (glob): Don't save and restore errno
10641         merely because we have getpwnam_r.
10643         glob: don't assume getpwnam_r
10644         * lib/glob.c (glob): Port recent patches to platforms
10645         lacking getpwnam_r.
10647         scratch_buffer: don’t use private glibc API
10648         Suggested by Florian Weimer in:
10649         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00004.html
10650         * lib/scratch_buffer.h: Rename to lib/malloc/scratch_buffer.h.
10651         * lib/scratch_buffer_grow.c: Rename to
10652         lib/malloc/scratch_buffer_grow.c.
10653         * lib/scratch_buffer_grow_preserve.c: Rename to
10654         lib/malloc/scratch_buffer_grow_preserve.c.
10655         * lib/scratch_buffer_set_array_size.c: Rename to
10656         lib/malloc/scratch_buffer_set_array_size.c.
10657         * lib/scratch_buffer.h: New file.
10658         * modules/scratch_buffer (Files, Makefile.am):
10659         Adjust to source-file renaming.
10661 2017-09-01  Paul Eggert  <eggert@cs.ucla.edu>
10663         glob: use scratch_buffer instead of extend_alloca
10664         Much of the lib/glob.c part of this patch comes from a glibc patch
10665         proposed by Adhemerval Zanella in:
10666         https://sourceware.org/ml/libc-alpha/2017-08/msg00456.html
10667         * lib/glob.c: Do not include <config.h>, since <libc-config.h>,
10668         included via glob.h, does this for us now.
10669         (__set_errno): Remove, as libc-config does this for us now.
10670         Include <scratch_buffer.h>.
10671         (GETPW_R_SIZE_MAX): Remove.
10672         (glob): Use struct scratch_buffer instead of extend_alloca.
10673         * lib/glob.in.h: Include libc-config.h rather than
10674         including <sys/cdefs.h> conditionally.
10675         (__BEGIN_DECLS, __END_DECLS, __THROW, __THROWNL, attribute_hidden)
10676         (__glibc_unlikely, __restrict, weak_alias):
10677         Remove, as libc-config does this for us now.
10678         * m4/glob.m4 (gl_PREREQ_GLOB):
10679         Remove sys/cdefs.h tests; no longer needed.
10680         * modules/glob (Depends-on): Add libc-config, scratch_buffer.
10681         (glob.h): Do not replace HAVE_SYS_CDEFS_H.
10683         scratch_buffer: new module
10684         * lib/scratch_buffer.h, lib/scratch_buffer_grow.c:
10685         * lib/scratch_buffer_grow_preserve.c:
10686         * lib/scratch_buffer_set_array_size.c:
10687         New files, copied from glibc with very minor changes that can be
10688         copied back.
10689         * modules/scratch_buffer: New file.
10691         libc-config: new module
10692         * MODULES.html.sh: Add libc-config.
10693         * lib/cdefs.h: New file, copied from the GNU C Library with very
10694         minor changes that can be copied back.
10695         * lib/libc-config.h, modules/libc-config: New files.
10697 2017-08-31  Paul Eggert  <eggert@cs.ucla.edu>
10699         glob: match dangling symlinks
10700         This fixes a bug I inadvertently introduced to Gnulib when I
10701         merged glibc glob back into gnulib on 2007-10-16.  This fix is
10702         inspired by a patch proposed for glibc by Adhemerval Zanella in:
10703         https://sourceware.org/ml/libc-alpha/2017-08/msg00446.html
10704         * doc/posix-functions/glob.texi: Update list of affected platforms.
10705         * lib/glob.c (__lstat64): New macro.
10706         (is_dir): New function.
10707         (glob, glob_in_dir): Match symlinks even if they are dangling.
10708         (link_stat, link_exists_p): Remove.  All uses removed.
10709         * lib/glob.in.h (__attribute_noinline__): Remove; no longer used.
10710         * m4/glob.m4 (gl_PREREQ_GLOB): Do not check for fstatat.
10711         * modules/glob-tests (Depends-on): Add symlink.
10712         * tests/test-glob.c: Include errno.h, unistd.h.
10713         (BASE): New macro.
10714         (main): Test dangling symlinks, if symlinks are supported.
10716         glob, backupfile: inode 0 is a valid inode number
10717         * doc/posix-functions/readdir.texi (readdir):
10718         * doc/posix-headers/dirent.texi (dirent.h):
10719         Document more readdir portability issues.
10720         * lib/backupfile.c (REAL_DIR_ENTRY): Remove.
10721         (numbered_backup): Don’t treat inode 0 any differently from
10722         other inode values.
10723         * lib/glob.c (struct readdir_result): Remove skip_entry member.
10724         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
10725         All uses removed.
10726         * modules/glob (Depends-on): Remove d-ino.
10728         glob: simplify symlink detection
10729         * lib/glob.c (dirent_type): New type.  Use uint_fast8_t not
10730         uint8_t, as C99 does not require uint8_t.
10731         (struct readdir_result): Use it.  Do not define skip_entry unless
10732         it is needed; this saves a byte on platforms lacking d_ino.
10733         (readdir_result_type, readdir_result_skip_entry):
10734         New functions, replacing ...
10735         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
10736         ... these functions, which were removed.  This makes the callers
10737         easier to read.  All callers changed.
10738         (D_INO_TO_RESULT): Now empty if there is no d_ino.
10740 2017-08-30  Pádraig Brady  <P@draigBrady.com>
10742         fts-tests: tag as a longrunning-test so not included by default
10743         * modules/fts-tests: This test takes about 20s on current systems,
10744         and uses about 285M of space on ext4.
10746 2017-08-30  Pádraig Brady  <P@draigBrady.com>
10748         renameat2: fix compilation on alpine linux
10749         * m4/renameat.m4: Check for <linux/fs.h> presence.
10750         * lib/renameat2.h: Only include <linux/fs.h> if present.
10751         Reported by Assaf Gordon on Alpine Linux.
10753 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
10755         glob: try to port recent changes to MS-Windows
10756         Problem reported by Bruno Haible in:
10757         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00170.html
10758         * lib/glob.c (__glob_pattern_p) [!_LIBC]: Move from here ...
10759         * lib/glob.in.h (__glob_pattern_p): ... to here.
10761 2017-08-24  Eric Blake  <eblake@redhat.com>
10763         warnings: fix compilation with old autoconf
10764         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C))
10765         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): Use m4_defun rather than
10766         AC_DEFUN.
10767         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C))
10768         (gl_MANYWARN_ALL_GCC(C++)): Likewise.
10770 2017-08-24  Bruno Haible  <bruno@clisp.org>
10772         glob: Fix compilation error on NetBSD 7.0 and OpenBSD 6.0.
10773         * modules/glob (Depends-on): Add c99.
10775 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
10777         glob: fix typo that broke platforms lacking d_ino
10778         This typo also hurt performance on GNU/Linux and similar hosts.
10779         * lib/glob.c (D_INO_TO_RESULT): Fix typo (reversed ifdef)
10780         in previous change.
10782 2017-08-23  Paul Eggert  <eggert@cs.ucla.edu>
10784         glob: merge from glibc with Zanella glob changes
10785         Merge glob from glibc, with changes for glob proposed
10786         by Adhemerval Zanella in the thread starting here:
10787         https://sourceware.org/ml/libc-alpha/2017-08/msg01079.html
10788         plus some fixes for this merge.
10789         * lib/glob_internal.h, lib/glob_pattern_p.c, lib/globfree.c:
10790         New files, ported from glibc.
10791         * lib/glob-libc.h (_Restrict_): Remove.  All uses replaced
10792         with __restrict.
10793         (__size_t): Remove.  All uses replaced by size_t.
10794         (size_t): Define by defining __need_size_t and including <stddef.h>.
10795         This should work even in non-glibc platforms, where any name
10796         pollution is OK.
10797         Use __USE_MISC instead of __USE_BSD || __USE_GNU.
10798         (struct stat64): Don’t worry about __GLOB_GNULIB.
10799         (glob, globfree, glob_pattern_p): Remove macros for
10800         __USE_FILE_OFFSET64 && __GNUC__ < 2 && !defined __GLOB_GNULIB
10801         case.  Remove _GL_ARG_NONNULL as GNU behavior is to accept NULL
10802         but set errno.
10803         * lib/glob.c (_GL_ARG_NONNULL) [!_LIBC]: Remove.  All uses
10804         removed since the glibc behavior works on null pointers.
10805         Do not include stdio.h; old SunOS is irrelevant now.
10806         Do not worry about GLOB_ONLY_P as we now mimic glibc here.
10807         Include glob_internal.h.
10808         (D_INO_TO_RESULT): Depend on (_LIBC || D_INO_IN_DIRENT), not
10809         ((POSIX || WINDOWS32) && !__GNU_LIBRARY__).  The latter probably
10810         worked only coincidentally.
10811         (attribute_hidden, __attribute_noinline__, __glibc_unlikely):
10812         Remove macros; now done in glob.in.h.
10813         (size_add_wrapv): Do not use __builtin_add_overflow if __ICC.
10814         (glob): Properly initialize glob structure with
10815         GLOB_BRACE|GLOB_DOOFFS (bug 20707).
10816         Remove old code using SHELL since Bash no longer
10817         uses this.
10818         (glob, prefix_array): Separate MS code better.
10819         (glob, glob_in_dir): Use C99 decls before statements when glibc
10820         does.
10821         (glob_in_dir): Remove old Amiga and VMS code.
10822         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
10823         separate files.
10824         * lib/glob.in.h (attribute_hidden, __attribute_noinline__)
10825         (__glibc_unlikely):
10826         Move here from glob.c.
10827         (__restrict): New macro here, replacing the _Restrict_ in glob.c.
10828         (weak_alias): New macro.
10829         (__size_t): Remove.  All uses replaced by size_t.
10830         * modules/d-ino (License): Now LGPLv2+, for compatibility with glob.
10831         * modules/glob (Files): Add +lib/glob_internal.h,
10832         lib/glob_pattern_p.c, lib/globfree.c.
10833         (Depends-on): Remove snippet/arg-nonnull.
10835 2017-08-22  Paul Eggert  <eggert@cs.ucla.edu>
10837         glob: port to clang's Undefined Sanitizer
10838         Problem reported by Tim Rühsen in:
10839         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00144.html
10840         * lib/glob.c (FLEXIBLE_ARRAY_MEMBER) [_LIBC]: Define to empty.
10841         (glob_in_dir): Do not rely on undefined behavior in accessing
10842         struct members beyond their bounds.  Use a flexible array member
10843         instead.
10845 2017-08-21  Paul Eggert  <eggert@cs.ucla.edu>
10847         vc-list-files: port to Solaris 10
10848         * build-aux/vc-list-files: Don't assume test -e works.
10850 2017-08-21  Karl Berry  <karl@freefriends.org>
10852         * doc/posix-functions/srandom.texi (srandom): typo }.
10854 2017-08-20  Paul Eggert  <eggert@cs.ucla.edu>
10856         git-version-gen: port to Solaris 10
10857         Problem reported by Dagobert Michelsen in:
10858         http://lists.gnu.org/r/grep-devel/2017-08/msg00002.html
10859         * build-aux/git-version-gen (v_from_git):
10860         Use expr instead of shell substitution.
10862 2017-08-19  Bruno Haible  <bruno@clisp.org>
10864         host-cpu-c-abi: Improve detection of MIPS ABI.
10865         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, test the value of
10866         _MIPS_SIM.
10868 2017-08-17  Bruno Haible  <bruno@clisp.org>
10870         hypot tests: Fix test failure on FreeBSD 11.0/x86.
10871         * tests/test-hypot.h (test_function): Declare z as 'volatile'.
10873 2017-08-17  Bruno Haible  <bruno@clisp.org>
10875         float: Fix LDBL_MIN value on FreeBSD/x86.
10876         * lib/float.in.h (LDBL_MIN) [__FreeBSD__]: Add more precision.
10878 2017-08-17  Bruno Haible  <bruno@clisp.org>
10880         random: Fix test compilation failure on Cygwin 1.5.25.
10881         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_INITSTATE,
10882         HAVE_DECL_SETSTATE.
10883         * m4/random.m4 (gl_FUNC_RANDOM): Test whether initstate and setstate are
10884         declared.
10885         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_INITSTATE,
10886         HAVE_DECL_SETSTATE.
10887         * lib/stdlib.in.h (initstate): Declare also if HAVE_DECL_INITSTATE is 0.
10888         (setstate): Declare also if HAVE_DECL_SETSTATE is 0.
10889         * doc/posix-functions/initstate.texi: Mention the Cygwin 1.5.x problem.
10890         * doc/posix-functions/random.texi: Likewise.
10891         * doc/posix-functions/setstate.texi: Likewise.
10892         * doc/posix-functions/srandom.texi: Likewise.
10894 2017-08-16  Bruno Haible  <bruno@clisp.org>
10896         stdnoreturn: Fix test compilation failure on Cygwin.
10897         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On Cygwin, use gnulib's
10898         <stdnoreturn.h> replacement.
10899         * lib/stdnoreturn.in.h (noreturn): Treat Cygwin like MSVC.
10900         * doc/posix-headers/stdnoreturn.texi: Mention the Cygwin problem.
10902 2017-08-16  Bruno Haible  <bruno@clisp.org>
10904         thread: Fix conflict with pthread_sigmask module.
10905         * lib/glthread/thread.h (pthread_sigmask): Don't declare it weak if
10906         it's defined as a macro.
10907         * modules/thread (Depends-on): Add pthread_sigmask.
10909 2017-08-16  Paul Eggert  <eggert@cs.ucla.edu>
10911         rename: port better to NetBSD
10912         * doc/posix-functions/rename.texi (rename): NetBSD 7
10913         does not have the link-count bug.
10914         * m4/rename.m4 (gl_FUNC_RENAME): Don’t consider NetBSD to be
10915         broken merely because rename ("a", "b") removes "a" when the two
10916         names are hard links to the same file.
10918 2017-08-16  Bruno Haible  <bruno@clisp.org>
10920         iconv_open, uni*: Add support for VPATH builds with OpenBSD 'make'.
10921         * modules/iconv_open (Makefile.am): In the rules that use gperf, prefix
10922         the target file names with '$(srcdir)/'.
10923         * modules/unicase/locale-language (Makefile.am): Likewise.
10924         * modules/unicase/special-casing (Makefile.am): Likewise.
10925         * modules/unictype/bidiclass-byname (Makefile.am): Likewise.
10926         * modules/unictype/category-byname (Makefile.am): Likewise.
10927         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
10928         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
10929         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
10930         * modules/unictype/property-byname (Makefile.am): Likewise.
10931         * modules/unictype/scripts (Makefile.am): Likewise.
10932         * modules/uninorm/composition (Makefile.am): Likewise.
10934 2017-08-16  Bruno Haible  <bruno@clisp.org>
10936         nonblocking-socket tests: Fix failure on OpenBSD 6.0.
10937         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE): Increase
10938         value for OpenBSD.
10940 2017-08-16  Bruno Haible  <bruno@clisp.org>
10942         rename, renameat: Update doc regarding NetBSD.
10943         * doc/posix-functions/rename.texi: Clarify that when using
10944         -D_XOPEN_SOURCE=500 on NetBSD 7.0, the hard link bug is gone.
10945         * doc/posix-functions/renameat.texi: Be more precise about NetBSD
10946         version.
10948 2017-08-15  Paul Eggert  <eggert@cs.ucla.edu>
10950         renameat2: port better to macOS
10951         * lib/renameat2.c (renameat2): Use renameatx_np if available.
10953         futimens: don’t assume struct timespec layout
10954         * m4/futimens.m4 (gl_FUNC_FUTIMENS):
10955         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT):
10956         * tests/test-fdutimensat.c (main):
10957         * tests/test-futimens.h (test_futimens):
10958         * tests/test-lutimens.h (test_lutimens):
10959         * tests/test-utimens.h (test_utimens):
10960         * tests/test-utimensat.c (main):
10961         Don’t assume that struct timespec is a two-member structure in
10962         tv_sec, tv_nsec order.  Although this is true on all platforms we
10963         know about, POSIX does not guarantee it.
10965         rename: document+test NetBSD rename
10966         Test failure reported by Bruno Haible in:
10967         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00104.html
10968         This is an area where NetBSD is better-behaved than POSIX,
10969         so allow the NetBSD behavior in tests.
10970         * doc/posix-functions/rename.texi:
10971         * doc/posix-functions/renameat.texi: Document NetBSD behavior.
10972         * tests/test-rename.h (test_rename): Allow NetBSD behavior.
10974 2017-08-15  Bruno Haible  <bruno@clisp.org>
10976         renameat: Ensure declaration in <stdio.h> on NetBSD.
10977         * lib/stdio.in.h: Include <unistd,h> also on NetBSD.
10978         * doc/posix-functions/renameat.texi: Mention this problem.
10980 2017-08-15  Bruno Haible  <bruno@clisp.org>
10982         duplocale: Work around NetBSD 7.0 bug.
10983         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Test against the NetBSD 7.0 bug.
10984         * lib/duplocale.c: Add comment about NetBSD problem.
10985         * doc/posix-functions/duplocale.texi: Mention the NetBSD problem.
10987 2017-08-15  Bruno Haible  <bruno@clisp.org>
10989         duplocale tests: Verify use with *_l functions.
10990         * modules/duplocale-tests (configure.ac): Test for uselocale and
10991         some *_l functions.
10992         * tests/test-duplocale.c (test_with_uselocale): New function, extracted
10993         from main.
10994         (get_locale_dependent_values_from, test_with_locale_parameter): New
10995         functions.
10996         (main): Test both test_with_uselocale and test_with_locale_parameter.
10998 2017-08-15  Bruno Haible  <bruno@clisp.org>
11000         extensions: Enable NetBSD specific extensions.
11001         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _NETBSD_SOURCE.
11003 2017-08-14  Bruno Haible  <bruno@clisp.org>
11005         open, openat: Update doc about O_CLOEXEC.
11006         * doc/posix-functions/open.texi: More concrete list of platforms.
11007         * doc/posix-functions/openat.texi: Likewise.
11009 2017-08-14  Paul Eggert  <eggert@cs.ucla.edu>
11011         open: support O_CLOEXEC
11012         * NEWS, doc/posix-functions/open.texi:
11013         * doc/posix-functions/openat.texi: Document this.
11014         * lib/fcntl.in.h (O_CLOEXEC): Default to a nonzero value.
11015         (GNULIB_defined_O_CLOEXEC): New symbol.
11016         * lib/open.c: Include cloexec.h.
11017         (open): Support O_CLOEXEC.
11018         * lib/openat.c: Include cloexec.h.
11019         (rpl_openat): Support O_CLOEXEC.
11020         * lib/popen-safer.c: Do not include cloexec.h.
11021         (open_noinherit): Remove.
11022         (popen_safer): Use O_CLOEXEC instead of set_cloexec_flag.
11023         * lib/save-cwd.c: Do not include cloexec.h.
11024         (save_cwd): Use O_CLOEXEC instead of set_cloexec_flag.
11025         * m4/open-cloexec.m4: New file.
11026         * m4/open.m4 (gl_FUNC_OPEN): Require gl_PREPROC_O_CLOEXEC.
11027         Replace 'open' if O_CLOEXEC is not present.
11028         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_PREPROC_O_CLOEXEC.
11029         Replace 'openat' if O_CLOEXEC is not present.
11030         * modules/freopen (Depends-on): Depend on 'open' if replacing freopen.
11031         * modules/open (Files): Add m4/open-cloexec.m4.
11032         (Depends-on): Depend on cloexec if replacing 'open'.
11033         * modules/openat (Files): Add m4/open-cloexec.m4.
11034         (Depends-on): Depend on cloexec if replacing openat.
11035         * modules/popen-safer (Depends-on): Remove cloexec.
11036         * modules/save-cwd (Depends-on): Remove cloexec, and add
11037         fd-safer-flag and 'open'.
11039 2017-08-13  Paul Eggert  <eggert@cs.ucla.edu>
11041         reallocarray: minor fixes
11042         * doc/glibc-functions/reallocarray.texi: Update version numbers.
11043         * m4/reallocarray.m4 (gl_FUNC_REALLOCARRAY): Don't trust _cv_ contents.
11044         * modules/reallocarray (License): Change from GPL to LGPL.
11045         * tests/test-reallocarray.c (main): Fix ENOMEM typo.
11046         Indent properly and don't use tabs.
11048 2017-08-13  Darshit Shah  <darnir@gnu.org>
11050         reallocarray: New module
11051         reallocarray is a new function in glibc 2.26 to safely allocate an array
11052         of memory locations with integer overflow protection.
11053         * MODULES.html.sh: Add reallocarray.
11054         * doc/glibc-functions/reallocarray.texi: Documentation for reallocarray.
11055         * lib/reallocarray.c: New file to implement module reallocarray.
11056         * lib/stdlib.in.h: Add function declarations for reallocarray.
11057         * m4/reallocarray.m4: New file.
11058         * m4/stdlib_h.m4: Declare reallocarray.
11059         * modules/reallocarray: New file.
11060         * modules/reallocarray-test: New file.
11061         * modules/stdlib: Coerce stdlib.h to export reallocarray.
11062         * tests/test-reallocarray.c: New test.
11064 2017-08-12  Paul Eggert  <eggert@cs.ucla.edu>
11066         dirent-safer: fix cloexec race
11067         * lib/opendir-safer.c: Include fcntl.h instead of unistd-safer.h.
11068         (opendir_safer): Use F_DUPFD_CLOEXEC.
11069         * modules/dirent-safer (Depends-on): Add fcntl.  Remove unistd-safer.
11070         * tests/test-dirent-safer.c: Do not include unistd-safer.h,
11071         as it is no longer a prerequisite.  Use F_DUPFD_CLOEXEC
11072         instead of dup_safer.
11074         fts: fix cloexec races
11075         * lib/fts.c [!_LIBC]: Do not include dirent--.h, unistd--.h, cloexec.h.
11076         (opendirat, diropen): Use O_CLOEXEC instead of set_cloexec_flag.
11077         (fts_build): Use F_DUPD_CLOEXEC rinstad of set_cloexec_flag.
11078         (fd_ring_check): Set cloexec flag on new file descriptors.
11079         (fts_build, fd_ring_check): While we’re at it, make sure the
11080         resulting file descriptor is not 0, 1, or 2, since that is easy.
11082 2017-08-11  Bruno Haible  <bruno@clisp.org>
11084         fts tests: Fix link error.
11085         Reported by Tom G. Christensen in
11086         https://lists.gnu.org/r/bug-gnulib/2017-08/msg00078.html
11087         * modules/fts-tests (Makefile.am): Link test-fts against LIBINTL.
11089 2017-08-10  Paul Eggert  <eggert@cs.ucla.edu>
11091         fts: port recent changes to CentOS 6
11092         Problem reported by Tom G. Christensen in:
11093         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00064.html
11094         * lib/fts.c (fsword): New type.
11095         (struct dev_type, filesystem_type): Use it.
11096         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for __fsword_t.
11097         Also, check for f_type only if fstatfs and sys/vfs.h work.
11099 2017-08-09  Paul Eggert  <eggert@cs.ucla.edu>
11101         tempname: do not depend on secure_getenv
11102         Excess dependency noted by Eli Zaretskii (Bug#28023#17).
11103         * lib/tempname.c (__secure_getenv) [!_LIBC]: Remove; unused.
11104         * modules/tempname (Depends-on): Remove secure_getenv.
11106 2017-08-08  Paul Eggert  <eggert@cs.ucla.edu>
11108         extensions: add _OPENBSD_SOURCE
11109         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _OPENBSD_SOURCE.
11111 2017-08-06  Reuben Thomas  <rrt@sc3d.org>
11112             Bruno Haible  <bruno@clisp.org>
11114         manywarnings: Add support for C++.
11115         * build-aux/g++-warning.spec: New file.
11116         * m4/manywarnings-c++.m4: New file.
11117         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C++)): New macro, that
11118         redirects to manywarnings-c++.m4.
11119         * modules/manywarnings (Files): Add m4/manywarnings-c++.m4.
11121 2017-08-06  Paul Eggert  <eggert@cs.ucla.edu>
11123         git-version-gen: another fix for tags with "-"
11124         * build-aux/git-version-gen: Improve fix for tags containing "-".
11125         Suggested by Markus Armbruster in:
11126         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00034.html
11128 2017-08-06  Bruno Haible  <bruno@clisp.org>
11130         warnings, manywarnings: Add support for multiple languages, not just C.
11131         * warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS_IMPL): Renamed from
11132         gl_UNKNOWN_WARNINGS_ARE_ERRORS.
11133         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C)): New macro.
11134         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): New macro.
11135         (gl_UNKNOWN_WARNINGS_ARE_ERRORS): Dispatch to
11136         gl_UNKNOWN_WARNINGS_ARE_ERRORS(_AC_LANG).
11137         (gl_WARN_ADD): Require the gl_UNKNOWN_WARNINGS_ARE_ERRORS specialization
11138         of the current language. If C++ is the current language, modify
11139         WARN_CXXFLAGS instead of WARN_CFLAGS.
11140         * manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): New macro, extracted from
11141         gl_MANYWARN_ALL_GCC.
11142         (gl_MANYWARN_ALL_GCC): Dispatch to gl_MANYWARN_ALL_GCC(_AC_LANG).
11144 2017-08-06  Markus Armbruster  <armbru@pond.sub.org>
11146         git-version-gen: Fix for tags containing '-'
11148         Really old versions of git-describe (before v1.5.0, Feb 2007)
11149         don't have the number of commits in their long format output,
11150         i.e. where modern 'git describe --abbrev=4 --match="v*"' prints
11151         "v0.1-1494-g124b9", they print "v0.1-1494-g124b9".  git-version-gen
11152         recognizes both patterns, and normalizes the old format to the new one.
11154         Unfortunately, this normalization code gets confused when the tag
11155         contains '-'.  Reproducer:
11157             $ git-tag -m test v0.2-rc1
11158             $ build-aux/git-version-gen .tarball-version; echo
11159             build-aux/git-version-gen: WARNING: git rev-list failed
11160             UNKNOWN
11162         We take exact tag "v0.2-rc1" for the old format, extract the presumed
11163         tag "v0.2" from it, then run "git rev-list v0.2..HEAD" to count
11164         commits since tha tag.  Fails, because tag "v0.2" does not exist.
11166         * git-version-gen: We could perhaps drop support for versions from
11167         more than a decade ago.  But tightening the pattern match is easy
11168         enough, so do that.  Still breaks when you use version tags ending in
11169         something matching -g????, but you arguably get what you deserve then.
11171 2017-08-05  Paul Eggert  <eggert@cs.ucla.edu>
11173         valgrind-tests: use ls, and cache
11174         * m4/valgrind-tests.m4: Test ls, not bash.
11175         Problem reported by Reuben Thomas.
11176         Also, cache the result so that it can be overridden.
11178 2017-08-04  Paul Eggert  <eggert@cs.ucla.edu>
11180         manywarnings: port to 64-bit GCC builds of Emacs
11181         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Compute max safe
11182         object size rather than hardwiring 2147483647.  This is needed to
11183         build GNU Emacs, which has one conditional (and used
11184         only-in-theory) call to malloc with a literal greater than
11185         2147483647.
11187 2017-08-04  Bruno Haible  <bruno@clisp.org>
11189         Relax the license of some modules with no runtime code.
11190         * modules/std-gnu11 (License): Set to 'unlimited'.
11191         * modules/c99 (License): Likewise.
11192         Reported by Reuben Thomas <rrt@sc3d.org>.
11193         * modules/d-ino (License): Set to 'LGPL'.
11194         * modules/host-os (License): Likewise.
11195         * modules/longlong (License): Likewise.
11197 2017-08-03  Paul Eggert  <eggert@cs.ucla.edu>
11199         renameat2: port to RHEL 7 + NFS
11200         * lib/renameat2.c (renameat2) [SYS_renameat2]:
11201         Port to RHEL 7 + NFS.  Problem reported by Ted Zlatanov in:
11202         http://lists.gnu.org/r/emacs-devel/2017-08/msg00082.html
11204 2017-08-02  Paul Eggert  <eggert@cs.ucla.edu>
11206         renameat2: port to non-renameat platforms
11207         Problem reported for MSVC-2015 by Gisle Vanem in:
11208         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00001.html
11209         * lib/renameat2.c [!HAVE_RENAMEAT]: Include <sys/stat.h> here too.
11210         (renameat2) [!HAVE_RENAMEAT]: Fix typo in arg passing.
11212 2017-08-01  Paul Eggert  <eggert@cs.ucla.edu>
11214         manywarnings: port to 32-bit GCC bug
11215         Problem reported by Pino Toscano in:
11216         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00150.html
11217         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Use 2**31 - 1,
11218         not 2**63 - 1, to work around the following GCC bug:
11219         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81650
11221 2017-07-30  Paul Eggert  <eggert@cs.ucla.edu>
11223         backupfile: new function to validate backup suffix
11224         * lib/backupfile.c (set_simple_backup_suffix): New function.
11225         (backupfile_internal): Use it.
11227         canonicalize: fix EOVERFLOW commentary
11228         Problem reported by Bruno Haible in:
11229         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00147.html
11230         * lib/canonicalize.c (canonicalize_filename_mode):
11231         * lib/canonicalize-lgpl.c (__realpath): Fix comments.
11233         Don't interpret EOVERFLOW to mean nonexistence
11234         * lib/fts.c (fts_stat): If lstat fails, report its errno, which
11235         may be EOVERFLOW; this is likely more useful than reporting the
11236         stat errno.
11237         * lib/glob.c (link_stat): Rename from link_exists2_p and
11238         return -1/0 instead of 0/1.  Caller changed.
11239         * lib/glob.c (link_exists_p):
11240         * lib/renameat2.c (rename_noreplace, renameat2):
11241         * lib/tempname.c (try_nocreate):
11242         If errno == EOVERFLOW then the directory entry exists, so do not
11243         act as if it does not exist.
11245         backup-rename: new module
11246         It is like backupfile, except it avoids some race conditions,
11247         and it does not output to stderr or exit.
11248         * MODULES.html.sh: Add backup-rename.
11249         * lib/backup-find.c, lib/backup-internal.h, lib/backup-rename.c:
11250         * modules/backup-rename: New files.
11251         * lib/backupfile.c: Turn this into an internals file, which
11252         contains code common to backupfile and backup_rename.  Include
11253         backupfile-internal.h instead of backupfile.h.  Do not include
11254         argmatch.h or xalloc.h: include xalloc-oversized.h.  Include
11255         renameat2.h and fcntl.h.
11256         (BACKUP_NOMEM): New constant.
11257         (numbered_backup): New args BASE_OFFSET and *DIRPP.  Do not exit
11258         on memory exhaustion; just return BACKUP_NOMEM.  Caller changed.
11259         (backupfile_internal): Rename from find_backup_file_name.
11260         Support new arg RENAME.
11261         (backup_args, backup_types, get_version, xget_version):
11262         Move to lib/backup-find.c.
11263         * lib/backupfile.h (backup_file_rename): New decl.
11264         * modules/backupfile (Files): Add lib/backup-internal.h,
11265         lib/backup-find.c.
11266         (Depends-on): Add dirfd, fcntl, renameat2.
11267         (lib_SOURCES): Add backup-find.c.
11269         renameat2: port better to older Solaris
11270         * lib/renameat2.c (renameat2): Set ret_val properly on old Solaris.
11271         Add goto to use a label, to silence picky compilers.
11273         fts-tests: port to gcc -Wwrite-strings
11274         * tests/test-fts.c (base, base_d): New static vars.
11275         (argv, remove_tree, main): Use them.
11277 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
11279         relocatable-lib{,-lgpl}: improve documentation
11280         * doc/relocatable-maint.texi: Document use of relocatable-lib{,-lgpl}.
11281         Various other updates.
11283 2017-07-30  Reuben Thomas  <rrt@sc3d.org>
11284             Bruno Haible  <bruno@clisp.org>
11286         relocatable-lib{,-lgpl}: add Valgrind suppressions
11287         * lib/relocatable.valgrind: New file.
11288         * modules/relocatable-lib (Files): Add relocatable.valgrind.
11289         * modules/relocatable-lib-lgpl: Likewise.
11291 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
11293         relocatable: Make the license on the sources the GPL.
11294         * lib/relocatable.h, lib/relocatable.c: Change the copyright notice from
11295         LGPL, which was a special case so that the relocatable source files
11296         could be used without gnulib-tool, to GPL. They can still be used under
11297         the LGPL, using the --lgpl option to gnulib-tool.
11299 2017-07-30  Bruno Haible  <bruno@clisp.org>
11301         host-cpu-c-abi: Detect ILP32 ABI on IA-64 HP-UX.
11302         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Distinguish ia64-ilp32
11303         from ia64. For arm64, test only __aarch64__, as __ARM_64BIT_STATE and
11304         __ARM_PCS_AAPCS64 are not reliable indicators: they are not defined on
11305         Ubuntu 14.04 (gcc 4.8.4) and Debian 8 (gcc 4.9.2).
11307 2017-07-27  Paul Eggert  <eggert@cs.ucla.edu>
11309         faccessat: document AT_SYMLINK_NOFOLLOW issue
11310         * doc/posix-functions/faccessat.texi: Modernize platform list.
11311         Document AT_SYMLINK_NOFOLLOW limitation.
11313         renameat2: port to Solaris 10
11314         * lib/renameat2.c (rename_noreplace): Use lstat, not faccessat
11315         with AT_SYMLINK_NOFOLLOW (which is not portable).
11316         (renameat): Undef before using, to avoid endless recursion when
11317         the replacement renameat calls renameat2 which calls the
11318         replacement renameat.
11319         (renameat2): Use lstatat, not faccessat with AT_SYMLINK_NOFOLLOW.
11320         * modules/renameat2 (Depends-on): Remove faccessat.
11321         * modules/renameat-tests (test_renameat_LDADD):
11322         * modules/renameat2-tests (test_renameat2_LDADD):
11323         Remove $(LIB_EACCESS).
11325         renameat2: new module
11326         Although the Linux syscall renameat2 is not in glibc (yet?), it is
11327         useful to have access to its RENAME_NOREPLACE flag.
11328         * MODULES.html.sh (func_all_modules): Add renameat2.
11329         * lib/renameat2.c, lib/renameat2.h, modules/renameat2:
11330         * modules/renameat2-tests, tests/test-renameat2.c: New files.
11331         * lib/renameat.c (renameat): Move most of the implementation
11332         to renameat2, and just call renameat2.
11333         * modules/renameat (Files): Remove lib/at-func2.c.
11334         (Depends-on): Depend only on renameat2.
11335         (Include): Remove <fcntl.h>.
11336         * modules/renameat-tests (test_renameat_LDADD): Add $(LIB_EACCESS),
11337         since renameat (via renameat2) might use faccessat.
11339 2017-07-27  Erik Skultety <eskultet@redhat.com>  (tiny change)
11341         vc-list-files: Adjust the script to support git worktrees
11342         * build-aux/vc-list-files: Require existence, not directory.
11344 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
11346         doc: bring MODULES.html.sh up to date
11347         Somehow a few months ago we stopped updating MODULES.html.sh.
11348         I don’t recall explicitly deciding this, so I updated it now.
11349         Alternatively I suppose we could remove it.
11350         * MODULES.html.sh: Add builtin-expect, c99, ctime, explicit_bzero,
11351         localtime, localtime-buffer, noreturn, nstrftime, strftime-fixes,
11352         truncate, utime, utime-h, windows-stat-inodes,
11353         windows-stat-override, windows-stat-timespec, year2038.  Sort.
11355 2017-07-26  Jim Meyering  <meyering@fb.com>
11357         fprintftime: fix build-break caused by recent renaming
11358         * lib/fprintftime.c: Include "nstrftime.c", not the now-renamed
11359         "strftime.c".
11360         * modules/fprintftime: Depend directly on nstrftime.
11362 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
11364         regex: work with GCC7's -Werror=implicit-fallthrough=
11365         * lib/regex_internal.h (FALLTHROUGH): New macro.
11366         * lib/regcomp.c (peek_token_bracket, parse_expression):
11367         * lib/regexec.c (check_node_accept): Use it.
11369 2017-07-24  Paul Eggert  <eggert@cs.ucla.edu>
11371         fts: simplify fts_build
11372         * lib/fts.c (fts_build): Simplify, and be lazier about
11373         calling leaf_optimization.
11375         fts: three levels of leaf optimization
11376         * lib/fts.c (enum leaf_optimization): New type with three values.
11377         (S_MAGIC_AFS): New macro.  Sort them.
11378         (leaf_optimization): Rename from leaf_optimization_applies, and
11379         return enum leaf_optimization instead of bool.  All uses changed.
11380         Add cases for unknown type and for AFS.
11381         (fts_build): Don’t rely on link counts if NO_LEAF_OPTIMIZATION.
11383         fts: cache dirent_inode_sort_may_be_useful too
11384         * lib/fts.c (struct dev_type): New struct.
11385         (DEV_TYPE_HT_INITIAL_SIZE): New constant.
11386         (dev_type_hash, dev_type_compare, filesystem_type): New functions.
11387         (dirent_inode_sort_may_be_useful, leaf_optimization_applies):
11388         Now takes FTSENT const *, not int.  All uses changed.  Use
11389         filesystem_type to cache.
11390         (link_count_optimize_ok): Remove.  Caller changed to use
11391         leaf_optimization_applies, which now uses shared cache.
11393         fts: introduce MIN_DIR_NLINK
11394         * lib/fts.c (MIN_DIR_NLINK): New constant.
11395         Use it instead of 2, whenever we are talking about link counts.
11397         fts: nlink_t signedness fixups
11398         * lib/fts.c (fts_open): Set rootparent n_dirs_remaining to -1
11399         so that root need not be a special case later.
11400         (fts_read): Remove now-redundant test for fts_level.
11401         Do not assume that nlink_t is signed.
11402         (fts_build): Remove useless decrement of nlinks.
11403         (fts_stat): Avoid unlikely signed integer overflow later, if
11404         nlink_t is signed.
11406         fts-tests: new module
11407         * modules/fts-tests, tests/test-fts.c: New files.
11409 2017-07-23  Bruno Haible  <bruno@clisp.org>
11411         Rename module 'strftime' to 'nstrftime'.
11412         * m4/nstrftime.m4: Renamed from m4/strftime.m4.
11413         * lib/nstrftime.c: Renamed from lib/strftime.c.
11414         * modules/nstrftime: Renamed from modules/strftime.
11415         (Files, Makefile.am): Update.
11416         * tests/test-nstrftime.c: Renamed from tests/test-strftime.c.
11417         Fix comment.
11418         * modules/nstrftime-tests: Renamed from modules/strftime-tests.
11419         (Files, Makefile.am): Update.
11420         * modules/strftime: New file, an obsolete indirection.
11421         * doc/posix-functions/strftime.texi: Update reference.
11422         * config/srclist.txt: Update info.
11423         * NEWS: Mention the change.
11425 2017-07-21  Tim Rühsen  <tim.ruehsen@gmx.de>
11427         malloca: Silence a warning from clang's memory sanitizer.
11428         * lib/malloca.c (NO_SANITIZE_MEMORY): New macro.
11429         (freea): Use it.
11431 2017-07-18  Bruno Haible  <bruno@clisp.org>
11433         host-cpu-c-abi: Fix detection of MIPS ABI.
11434         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, really test the
11435         ABI, not the CPU instruction set.
11437 2017-07-16  Paul Eggert  <eggert@cs.ucla.edu>
11439         explicit_bzero: new module
11440         The explicit_bzero function has been added to glibc.
11441         This module is intended to supports its use in GNU programs.
11442         * doc/glibc-functions/explicit_bzero.texi, lib/explicit_bzero.c:
11443         * m4/explicit_bzero.m4, modules/explicit_bzero:
11444         New files.
11445         * doc/gnulib.texi (Glibc string.h): Link to new doc.
11446         * lib/string.in.h (explicit_bzero): Declare.
11447         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add defaults for it.
11448         * modules/string (string.h): Substitute its vars.
11450 2017-07-16  Bruno Haible  <bruno@clisp.org>
11452         threadlib: Support static linking.
11453         * m4/threadlib.m4 (gl_THREADLIB_BODY): When static linking is in use,
11454         set gl_cv_have_weak to 'no'.
11456 2017-07-16  Bruno Haible  <bruno@clisp.org>
11458         unicase/locale-language: Fix link dependencies.
11459         * modules/unicase/locale-language (Link): New section.
11460         * modules/unicase/locale-language-tests (Makefile.am): Link
11461         test-locale-language program with $(LIBTHREAD).
11463 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
11465         sys_socket: Add support for OpenVMS.
11466         * lib/sys_socket.in.h [__VMS]: Define CMSG_SPACE, CMSG_LEN.
11467         * doc/posix-headers/sys_socket.texi: Mention OpenVMS issues.
11469 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
11471         sys_resource: Add support for OpenVMS.
11472         * lib/resource.in.h [__VMS]: Define RUSAGE_SELF, RUSAGE_CHILDREN.
11473         * doc/posix-headers/sys_resource.texi: Mention OpenVMS issues.
11475 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
11476             Bruno Haible  <bruno@clisp.org>
11478         math: Add support for OpenVMS.
11479         * lib/math.in.h [__VMS]: Include <fp.h>.
11480         * doc/posix-headers/math.texi: Mention OpenVMS issues.
11482 2017-07-15  Bruno Haible  <bruno@clisp.org>
11484         getdtablesize: Add minimal support for OpenVMS.
11485         Reported by John E. Malmberg <wb8tyw@qsl.net>.
11486         * modules/getdtablesize (Description): Fix.
11487         * lib/getdtablesize.c: Fix comment.
11488         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Don't replace the
11489         getdtablesize() function, even though the test fails.
11490         * doc/glibc-functions/getdtablesize.texi: Reference SUSv2. Describe
11491         limitation on OpenVMS.
11493 2017-07-13  Bruno Haible  <bruno@clisp.org>
11495         Revisit cross-compilation guesses.
11496         * m4/wctype_h.m4 (gl_WCTYPE_H): Add comment.
11498 2017-07-13  Bruno Haible  <bruno@clisp.org>
11500         Improve cross-compilation guesses for native Windows.
11501         * m4/btowc.m4 (gl_FUNC_BTOWC): Add cross-compilation guess for native
11502         Windows.
11503         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Likewise.
11504         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Likewise.
11505         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
11506         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): Likewise.
11507         * m4/cbrtl.m4 (gl_FUNC_CBRTL, gl_FUNC_CBRTL_WORKS): Likewise.
11508         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
11509         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
11510         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
11511         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
11512         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
11513         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
11514         * m4/exp2.m4 (gl_FUNC_EXP2_WORKS): Likewise.
11515         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
11516         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
11517         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): Likewise.
11518         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
11519         * m4/fabsl.m4 (gl_FUNC_FABSL_WORKS): Likewise.
11520         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
11521         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
11522         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
11523         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
11524         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
11525         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Likewise.
11526         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Likewise.
11527         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Likewise.
11528         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
11529         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
11530         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
11531         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
11532         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): Likewise.
11533         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
11534         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
11535         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
11536         * m4/hypotf.m4 (gl_FUNC_HYPOTF, gl_FUNC_HYPOTF_WORKS): Likewise.
11537         * m4/hypotl.m4 (gl_FUNC_HYPOTL, gl_FUNC_HYPOTL_WORKS): Likewise.
11538         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
11539         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
11540         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
11541         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
11542         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
11543         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
11544         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
11545         * m4/log.m4 (gl_FUNC_LOG, gl_FUNC_LOG_WORKS): Likewise.
11546         * m4/logf.m4 (gl_FUNC_LOGF, gl_FUNC_LOGF_WORKS): Likewise.
11547         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
11548         * m4/log10.m4 (gl_FUNC_LOG10, gl_FUNC_LOG10_WORKS): Likewise.
11549         * m4/log10f.m4 (gl_FUNC_LOG10F, gl_FUNC_LOG10F_WORKS): Likewise.
11550         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Likewise.
11551         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
11552         * m4/log1pf.m4 (gl_FUNC_LOG1PF, gl_FUNC_LOG1PF_WORKS): Likewise.
11553         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
11554         * m4/log2.m4 (gl_FUNC_LOG2, gl_FUNC_LOG2_WORKS): Likewise.
11555         * m4/log2f.m4 (gl_FUNC_LOG2F, gl_FUNC_LOG2F_WORKS): Likewise.
11556         * m4/log2l.m4 (gl_FUNC_LOG2L_WORKS): Likewise.
11557         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): Likewise.
11558         * m4/logbf.m4 (gl_FUNC_LOGBF_WORKS): Likewise.
11559         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Likewise.
11560         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
11561         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT, gl_MBRTOWC_C_LOCALE): Likewise.
11562         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
11563         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
11564         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
11565         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
11566         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
11567         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
11568         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
11569         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
11570         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
11571         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE,
11572         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2,
11573         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
11574         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
11575         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
11576         * m4/regex.m4 (gl_REGEX): Likewise.
11577         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
11578         * m4/remainderf.m4 (gl_FUNC_REMAINDERF,
11579         gl_FUNC_REMAINDERF_WORKS): Likewise.
11580         * m4/remainderl.m4 (gl_FUNC_REMAINDERL,
11581         gl_FUNC_REMAINDERL_WORKS): Likewise.
11582         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
11583         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
11584         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
11585         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
11586         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
11587         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
11588         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
11589         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
11590         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): Likewise.
11591         * m4/stdint.m4 (gl_STDINT_H): Likewise.
11592         * m4/strerror.m4 (gl_FUNC_STRERROR_0): Likewise.
11593         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
11594         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
11595         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
11596         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
11597         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
11598         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
11599         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
11600         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
11601         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
11602         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
11603         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
11604         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
11605         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
11606         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
11607         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
11608         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
11609         Likewise.
11610         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
11611         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for native
11612         Windows. Enable also on Autoconf 2.70.
11613         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
11614         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
11615         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
11616         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO,
11617         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
11618         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): Add cross-compilation guess
11619         for native Windows.
11620         (gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
11621         gl_VSNPRINTF_ZEROSIZE_C99): Add comment.
11623 2017-07-13  Bruno Haible  <bruno@clisp.org>
11625         Improve cross-compilation guesses for native Windows.
11626         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add cross-compilation guess for native
11627         Windows.
11628         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Don't use internals of
11629         memchr.m4.
11630         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
11632 2017-07-13  Bruno Haible  <bruno@clisp.org>
11634         Improve cross-compilation guesses for native Windows.
11635         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Add cross-compilation guess for
11636         native Windows.
11637         (gl_FUNC_FFLUSH): Update accordingly.
11638         * m4/fclose.m4 (gl_FUNC_FCLOSE): Likewise.
11639         * m4/fseeko.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
11641 2017-07-11  Bruno Haible  <bruno@clisp.org>
11643         More systematic m4 quoting and indentation.
11644         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Quote systematically.
11645         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
11646         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
11647         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
11648         * m4/host-os.m4 (gl_HOST_OS): Likewise.
11649         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H,
11650         gl_WINSIZE_IN_PTEM): Likewise.
11651         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Likewise.
11652         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
11653         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
11654         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Quote systematically.
11655         Correct indentation.
11656         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
11657         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
11658         * m4/jm-winsz2.m4 (gl_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Likewise.
11659         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
11660         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
11661         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
11663 2017-07-10  Bruno Haible  <bruno@clisp.org>
11665         round, roundf: Avoid compiler warning in configure test.
11666         * m4/round.m4 (gl_FUNC_ROUND): Use 'return' instead of exit().
11667         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
11669 2017-07-10  Bruno Haible  <bruno@clisp.org>
11671         getlogin tests: Avoid #ifdefs when sharing code between modules.
11672         * modules/getlogin_r-tests (Files): Add tests/test-getlogin.h.
11673         * modules/getlogin-tests (Files): Likewise. Remove
11674         tests/test-getlogin_r.c.
11675         * tests/test-getlogin.h: Extracted from tests/test-getlogin_r.c.
11676         * tests/test-getlogin.c: Extracted from tests/test-getlogin_r.c.
11677         * tests/test-getlogin_r.c: Include test-getlogin.h. Omit code that tests
11678         getlogin().
11680 2017-07-10  Paul Eggert  <eggert@cs.ucla.edu>
11682         getlogin: don’t assume one name per uid
11683         Problem reported by Wolfgang F. Muthmann (Bug#27640).
11684         * modules/getlogin-tests (Files): Add tests/test-getlogin_r.c.
11685         (ttyname): Remove test.
11686         * modules/getlogin_r-tests (ttyname): Remove test.
11687         * tests/test-getlogin.c: Replace this near-clone of test-getlogin_r.c
11688         with ‘#define TEST_LOGIN’ followed by ‘#include "test-getlogin_r.c"’.
11689         * tests/test-getlogin_r.c: If TEST_GETLOGIN is defined, test
11690         getlogin rather than getlogin_r.  This avoids code duplication.
11691         (main): Use isatty and fstat rather than ttyname and stat.
11692         Use getpwnam instead of getpwuid, to be portable to test platforms
11693         that have multiple login names for the same uid.
11695 2017-07-10  Tim Rühsen  <tim.ruehsen@gmx.de>
11696             Bruno Haible  <bruno@clisp.org>
11698         glob: Fix more memory leaks.
11699         * lib/glob.c (glob): Use 'goto out' in order to free dirname before
11700         returning.
11701         Reported by Tim Rühsen.
11703 2017-07-10  Bruno Haible  <bruno@clisp.org>
11705         Make sure $host and $host_os are defined when used.
11706         * m4/argz.m4 (gl_FUNC_ARGZ): Require AC_CANONICAL_HOST.
11707         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Likewise.
11708         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
11709         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
11710         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
11711         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
11712         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
11713         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
11714         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
11715         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
11716         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
11717         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
11718         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
11719         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST outside the
11720         m4_ifdef block.
11722 2017-07-09  Bruno Haible  <bruno@clisp.org>
11724         *printf: Fix cross-compilation guess for Solaris.
11725         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): Fix copy-and-paste mistake from
11726         2010-12-21.
11728 2017-07-07  Paul Eggert  <eggert@cs.ucla.edu>
11729             Bruno Haible  <bruno@clisp.org>
11731         vasnprintf: port to macOS 10.13
11732         Problem reported by comex in:
11733         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00056.html
11734         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on macOS.
11736 2017-07-06  Bruno Haible  <bruno@clisp.org>
11738         imaxdiv tests: Fix logic.
11739         * tests/test-imaxdiv.c (main): Use == instead of =.
11740         Reported by Coverity.
11742 2017-07-06  Bruno Haible  <bruno@clisp.org>
11744         uninorm/filter: Fix use-after-free bug.
11745         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Maintain
11746         sortbuf == filter->sortbuf invariant.
11747         Reported by Coverity.
11749 2017-07-06  Bruno Haible  <bruno@clisp.org>
11751         glob: Fix more memory leaks.
11752         * lib/glob.c (glob): Free dirname before returning.
11753         Reported by Coverity and Tim Rühsen.
11755 2017-07-06  Paul Eggert  <eggert@cs.ucla.edu>
11757         parse-datetime: fix uninit var bug
11758         Reported by Bruno Haible in:
11759         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00038.html
11760         * lib/parse-datetime.y (parse_datetime2): Do not use
11761         uninitialized.
11763 2017-07-05  Bruno Haible  <bruno@clisp.org>
11765         doc: Update for MSVC 14.
11766         * doc/posix-headers/*.texi: Add info about MSVC 14.
11767         * doc/posix-functions/*.texi: Likewise.
11768         * doc/pastposix-functions/*.texi: Likewise.
11769         * doc/glibc-headers/*.texi: Likewise.
11770         * doc/glibc-functions/*.texi: Likewise.
11772 2017-07-05  Bruno Haible  <bruno@clisp.org>
11774         sched: Fix build failure on native Windows (regression from 2017-06-19).
11775         * m4/sched_h.m4 (gl_SCHED_H): Set HAVE_STRUCT_SCHED_PARAM always.
11777 2017-07-03  John E. Malmberg  <wb8tyw@gmail.com>
11779         stdioext: Port to OpenVMS.
11780         * lib/stdio-impl.h: OpenVMS uses struct _iobuf for FILE information.
11781         * lib/fpending.c (fpending): Remove non-working VMS specific code.
11782         * lib/fbufmode.c (fbufmode): Fix _IOLBF test to use fp_ macro.
11783         * lib/fflush.c (clear_ungetc_buffer): Add OpenVMS to comments.
11784         * lib/fpurge.c (fpurge): Likewise.
11785         * lib/freadable.c (freadable): Likewise.
11786         * lib/freadahead.c (freadahead): Likewise.
11787         * lib/freading.c (freading): Likewise.
11788         * lib/freadptr.c (freadptr): Likewise.
11789         * lib/freadseek.c (freadseek): Likewise.
11790         * lib/fseeko.c (fseeko): Likewise.
11791         * lib/fseterr.c (fseterr): Likewise.
11792         * lib/fwritable.c (fwriteable): Likewise.
11793         * lib/fwriting.c (fwriting): Likewise.
11795 2017-07-01  Benno Schulenberg  <bensberg@telfort.nl>
11797         glob: Declare variables at the very start of their scope.
11798         * lib/glob.c (convert_dirent, convert_dirent64): Give each fragment
11799         its separate scope, so the functions will compile on Haiku.
11801 2017-07-01  Bruno Haible  <bruno@clisp.org>
11803         logbl: Work around a glibc bug on PowerPC64LE.
11804         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Test also negative subnormal
11805         numbers.
11806         * doc/posix-functions/logbl.texi: Update.
11808 2017-06-29  Bruno Haible  <bruno@clisp.org>
11810         stat, fstat: Compile stat-w32.c only on platforms that need it.
11811         Suggested by Paul Eggert.
11812         * modules/stat (configure.ac): Request stat-w32.o only on native
11813         Windows.
11814         * modules/fstat (configure.ac): Likewise.
11816 2017-06-25  Bruno Haible  <bruno@clisp.org>
11818         stat: Improve last change.
11819         * lib/stat-w32.c: Revert last change. Use generic idiom instead.
11821 2017-06-25  Paul Eggert  <eggert@cs.ucla.edu>
11823         stat: port to xlc 12.01
11824         * lib/stat-w32.c: Always include <sys/types.h>.  Otherwise, xlc
11825         12.01 complains "Compilation unit is empty."
11827 2017-06-24  Paul Eggert  <eggert@cs.ucla.edu>
11829         xalloc-oversized: port to icc
11830         * lib/xalloc-oversized.h (xalloc_oversized): Do not use
11831         __builtin_mul_overflow if ICC is defined, as this results in
11832         "undefined reference to `__builtin_mul_overflow'" with icc 17.0.2
11833         20170213.
11835 2017-06-19  Bruno Haible  <bruno@clisp.org>
11837         classpath: Avoid including config.h twice, as it produces warnings.
11838         Reported by John E. Malmberg <wb8tyw@gmail.com>.
11839         * lib/classpath.h: Conditionalize the include of config.h.
11841 2017-06-19  Bruno Haible  <bruno@clisp.org>
11842             John E. Malmberg  <wb8tyw@gmail.com>  (tiny change)
11844         sched: Fix compilation failure on OpenVMS.
11845         * m4/sched_h.m4 (gl_SCHED_H): Require AC_CANONICAL_HOST. On OpenVMS,
11846         test whether <pthread.h> exists and defines struct sched_param.
11847         * lib/sched.in.h: On OpenVMS, include <pthread.h>.
11849 2017-06-17  Paul Eggert  <eggert@cs.ucla.edu>
11851         diffseq: port to GCC 7 with --enable-gcc-warnings
11852         * lib/diffseq.h (diag): Use an if, not an ifdef, for most of the
11853         heuristic check.  This way, GCC 7 with --enable-gcc-warnings does
11854         not complain about big_snake being defined but not used.
11856 2017-06-15  Bruno Haible  <bruno@clisp.org>
11858         gettext-h: Update theoretical condition for use of variable size arrays.
11859         Reported by Paul Eggert.
11860         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Extend comment
11861         to include the theoretical condition for availability of variable size
11862         arrays, if we could trust the value of __STDC_VERSION__.
11864 2017-06-12  Bruno Haible  <bruno@clisp.org>
11866         Relicense some modules under LGPLv2+.
11867         Daiki Ueno's approval is in
11868         https://lists.gnu.org/r/bug-gnulib/2017-06/msg00058.html.
11869         * modules/uniwidth/base (License): Change to LGPLv2+.
11870         * modules/uniwidth/width (License): Likewise.
11872 2017-06-11  Bruno Haible  <bruno@clisp.org>
11874         localename: Fix test failure on DragonFly BSD.
11875         * lib/localename.c (gl_locale_name_thread_unsafe): Treat DragonFly BSD
11876         like FreeBSD.
11878 2017-06-11  Bruno Haible  <bruno@clisp.org>
11880         float: Fix 'float' and 'isinf' failures on DragonFly BSD.
11881         * m4/float_h.m4 (gl_FLOAT_H): Treat DragonFly BSD like FreeBSD.
11882         * lib/float.in.h: Likewise.
11883         * m4/fmal.m4, m4/frexpl.m4, m4/logbl.m4: Update accordingly.
11885 2017-06-11  Bruno Haible  <bruno@clisp.org>
11887         gnulib-tool: Clean up after autotools.
11888         * gnulib-tool (func_create_testdir, func_create_megatestdir): Remove
11889         useless directory left over by the Autotools.
11891 2017-06-11  Paul Eggert  <eggert@cs.ucla.edu>
11893         getopt-posix: port to glibc 2.25.90
11894         Problem reported by Daniel P. Berrange in:
11895         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00003.html
11896         * lib/getopt-pfx-core.h (_GETOPT_CORE_H):
11897         * lib/getopt-pfx-ext.h (_GETOPT_EXT_H):
11898         #undef if __GETOPT_PREFIX is defined.
11900 2017-06-11  Bruno Haible  <bruno@clisp.org>
11902         strtod-obsolete: Fix license.
11903         * modules/strtod-obsolete (License): Change to LGPL.
11905 2017-06-10  Jim Meyering  <meyering@fb.com>
11907         maint: update to work with GCC7's -Werror=implicit-fallthrough=
11908         * lib/savewd.c (FALLTHROUGH): Define.
11909         (savewd_save, savewd_restore): Use this, rather than a comment,
11910         whenever one switch case falls through into the next.
11912 2017-06-08  Bruno Haible  <bruno@clisp.org>
11914         host-cpu-c-abi: Support for aarch64 ILP32 ABI.
11915         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the aarch64 ILP32
11916         ABI. Set HOST_CPU_C_ABI=arm64-ilp32 and define __arm64_ilp32__ in this
11917         case.
11919 2017-06-08  Paul Eggert  <eggert@cs.ucla.edu>
11921         doc: remove robots, add prereqs
11922         * doc/build-automation.texi, doc/gnulib.texi: Mention prereqs for
11923         builds.  Simon's robot site does not seem to be up, so remove
11924         mentions of it for now.
11926 2017-06-08  Bruno Haible  <bruno@clisp.org>
11928         gnulib-tool: Fix bug in func_symlink_if_changed, from 2006-11-13.
11929         * gnulib-tool (func_symlink_target): New function, extracted from
11930         func_symlink.
11931         (func_symlink, func_symlink_if_changed): Use it.
11933 2017-06-08  Bruno Haible  <bruno@clisp.org>
11935         gnulib-tool: Fix bug in func_ln_s, from 2016-01-15.
11936         * gnulib-tool (func_ln_s): Determine cp_src correctly.
11938 2017-06-07  Bruno Haible  <bruno@clisp.org>
11940         canonicalize-lgpl: Avoid conflict with gnulib 'getcwd' module on VMS.
11941         Reported by John E. Malmberg <wb8tyw@gmail.com> in
11942         <https://lists.gnu.org/r/bug-gnulib/2017-06/msg00029.html>.
11943         * lib/canonicalize-lgpl.c (__getcwd): On VMS, when using gnulib's getcwd
11944         override, pass 2 arguments to getcwd, not 3.
11946 2017-06-04  Paul Eggert  <eggert@cs.ucla.edu>
11948         same-inode: port better to VMS 8.2 and later
11949         Problem reported by John E. Malmberg in:
11950         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00005.html
11951         * lib/same-inode.h (SAME_INODE) [__VMS && 80200000 <= __CRTL_VER]:
11952         Use the usual POSIX definition.
11953         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define _USE_STD_STAT.
11955 2017-06-01  Paul Eggert  <eggert@cs.ucla.edu>
11957         error: fix POSIX violation for va_end
11958         Problem reported by Bruno Haible in:
11959         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00001.html
11960         * lib/error.c (error_tail): Do not call va_end here.
11961         (error, error_at_line): Call it here instead.
11963 2017-05-28  Bruno Haible  <bruno@clisp.org>
11965         c-strtod: Make it usable in C++ mode.
11966         * lib/c-strtod.h: Add 'extern "C"' marker for C++.
11968 2017-05-25  Jim Meyering  <meyering@fb.com>
11970         quotearg: fix compilation failure due to FALLTHROUGH misuse
11971         * lib/quotearg.c (quotearg_buffer_restyled): Revert one FALLTHROUGH
11972         macro back to /* fall through */ comment.  The macro can apply only
11973         to a following case statement.  Reported by Assaf Gordon.
11975 2017-05-25  Paul Eggert  <eggert@cs.ucla.edu>
11977         intprops: port to recent icc
11978         Port to icc (ICC) 17.0.4 20170411, which defines __GNUC__ to be 5
11979         but does not support __builtin_add_overflow etc.
11980         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW) [__ICC]:
11981         Define to 0.
11983 2017-05-23  Karl Berry  <karl@freefriends.org>
11985         * config/srclist.txt (iconv.m4): sync broken, comment out
11986         until (hopefully) the next gettext release.
11988 2017-05-22  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
11990         Remove repeated words in comments.
11992 2017-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
11994         fallthrough: reinstate a FALLTHROUGH instance in quotearg
11995         quotearg.c: Reinstate this instance which is significant
11996         when the if branch is not taken.
11998 2017-05-21  Bruno Haible  <bruno@clisp.org>
12000         gnulib-tool: Add options to create hard links.
12001         * gnulib-tool (func_usage): Document options --hardlink,
12002         --local-hardlink, --more-hardlinks.
12003         (func_symlink): Renamed from func_ln.
12004         (func_symlink_if_changed): Renamed from func_ln_if_changed.
12005         (func_hardlink): New function.
12006         (copymode, lcopymode): New variables.
12007         (symbolic, lsymbolic): Remove variables.
12008         (Options): Implement options --hardlink, --local-hardlink,
12009         --more-hardlinks.
12010         (func_should_link): Renamed from func_should_symlink. Set copyaction.
12011         (func_add_file, func_update_file): Update invocation of
12012         func_should_link. Invoke func_hardlink when appropriate.
12013         (func_import): Update comments.
12014         (func_create_testdir): Update invocation of func_should_link. Invoke
12015         func_hardlink when appropriate.
12016         Finally, invoke 'git update-index --refresh' to mitigate the effects of
12017         the hard links on git.
12019 2017-05-20  Bruno Haible  <bruno@clisp.org>
12021         argp: Simplify bit manipulation.
12022         * lib/argp-parse.c (parser_parse_opt): Use &, |, ~ instead of shifts
12023         on a signed integer type.
12025 2017-05-20  Bruno Haible  <bruno@clisp.org>
12027         Avoid wrong configure results with gcc -fsanitize=address.
12028         This completes the work done on 2016-02-06 on this topic.
12029         * m4/memmem.m4 (gl_FUNC_MEMMEM): Free allocated memory before returning.
12030         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
12031         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
12032         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
12033         * m4/fopen.m4 (gl_FUNC_FOPEN): Close allocated FILE streams before
12034         returning.
12035         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
12036         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
12037         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
12038         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
12039         * m4/signbit.m4 (gl_FLOATTYPE_SIGN_LOCATION): Likewise.
12040         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
12041         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Close allocated FILE streams and
12042         free allocated memory before returning.
12043         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
12044         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Close allocated DIR
12045         objects before returning.
12046         * m4/iconv.m4 (AM_ICONV_LINK): Close allocated iconv_t handles before
12047         returning.
12049 2017-05-20  Bruno Haible  <bruno@clisp.org>
12051         gnulib-tool: Don't create hard links between gnulib and its testdirs.
12052         * gnulib-tool (func_create_testdir): Don't invoke 'ln'.
12054 2017-05-20  Bruno Haible  <bruno@clisp.org>
12056         argp, tsearch tests: Fix file list.
12057         * modules/argp-tests (Files): Add tests/macros.h.
12058         * modules/tsearch-tests (Files): Likewise.
12060 2017-05-20  Bruno Haible  <bruno@clisp.org>
12062         getopt-posix tests: Remove redundant include.
12063         * tests/test-getopt.h: Don't include "macros.h". It's already included
12064         by tests/test-getopt-main.h.
12066 2017-05-19  Jim Meyering  <meyering@fb.com>
12068         dfa: two small simplifications
12069         * lib/dfa.c (build_state): Avoid repeating longer expressions.
12071 2017-05-18  Jim Meyering  <meyering@fb.com>
12073         fallthrough: update for GCC 7/8
12074         * lib/quotearg.c (FALLTHROUGH): New macro.
12075         Use it whenever one switch case falls through into the next,
12076         replacing "/* Fall through */" comments.  This exposed one
12077         instance of an unwarranted "fall through" comment: unwarranted
12078         because it preceded a "goto" label not a case statement.
12079         * lib/freopen-safer.c (freopen_safer): Likewise.
12080         * lib/fts.c (leaf_optimization_applies): Likewise.
12081         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
12082         * tests/test-getopt_long.h (getopt_long_loop): Likewise.
12083         * tests/test-tsearch.c (mangle_tree): Likewise.  Also include
12084         tests/macros.h for the definition.
12085         * tests/test-argp.c (group1_parser): Likewise.
12086         * tests/test-getopt.h (getopt_loop): Likewise.
12088 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
12090         argp: fix shift bug
12091         * lib/argp-parse.c (parser_parse_opt): Rework to avoid undefined
12092         behavior on shift overflow, caught by gcc -fsanitize=undefined.
12094         argp: fix pointer-subtraction bug
12095         * lib/argp-help.c (hol_append): Don’t subtract pointers to
12096         different arrays, as this can run afoul of -fcheck-pointer-bounds.
12097         See the thread containing Bruno Haible’s report in:
12098         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00171.html
12100 2017-05-19  Bruno Haible  <bruno@clisp.org>
12102         printf-posix tests: Avoid test failure with "gcc --coverage".
12103         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
12104         * tests/test-printf-posix2.c (main): Test a width of 10000000 rather
12105         than 5000000.
12106         * tests/test-fprintf-posix2.c (main): Likewise.
12108 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
12110         closeout: don’t close stderr when sanitizing
12111         * NEWS: Document this.
12112         * lib/closeout.c (__has_feature): New macro, if not already defined.
12113         (SANITIZE_ADDRESS): New constant.
12114         (close_stdout): Don’t close stderr if sanitizing addresses.
12116 2017-05-19  Bruno Haible  <bruno@clisp.org>
12118         get-rusage-data tests: Avoid failure on Linux/glibc.
12119         * tests/test-get-rusage-data.c (main): Don't expect a strict increase
12120         on glibc systems.
12122 2017-05-18  Bruno Haible  <bruno@clisp.org>
12124         localename: Include necessary header files on Cygwin.
12125         * lib/localename.c [__CYGWIN__]: Include <langinfo.h>, since this is
12126         where NL_LOCALE_NAME is defined.
12128 2017-05-18  Bruno Haible  <bruno@clisp.org>
12130         gettext: Update macros from gettext git.
12131         * m4/intldir.m4: Require Autoconf >= 2.60.
12132         * m4/progtest.m4: Fix typos in copyright notice.
12134 2017-05-18  Bruno Haible  <bruno@clisp.org>
12136         copy-file tests: Fix link error (regression from 2017-05-01).
12137         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12138         * modules/copy-file-tests (Makefile.am): Link test-copy-file with
12139         $(LIB_CLOCK_GETTIME).
12141 2017-05-18  Bruno Haible  <bruno@clisp.org>
12143         unicase/special-casing: Fix incompatibility with gperf-3.0.4
12144         (regression from 2017-02-13).
12145         * lib/unicase/special-casing.in.h: Renamed from
12146         lib/unicase/special-casing.h.
12147         * modules/unicase/special-casing (Files): Add
12148         lib/unicase/special-casing.in.h. Remove lib/unicase/special-casing.h.
12149         (Makefile.am): Add rule for generating unicase/special-casing.h.
12150         Update BUILT_SOURCES and MOSTLYCLEANFILES accordingly.
12151         * lib/unicase/special-casing.c: Include "unicase/special-casing.h",
12152         not "special-casing.h".
12153         * lib/unicase/u*.c: Likewise.
12155 2017-05-17  Bruno Haible  <bruno@clisp.org>
12157         README: Don't ask people to read a TeXinfo file.
12158         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
12159         * README: Tell people how to read the HTML formatted manual.
12161 2017-05-16  Tim Rühsen  <tim.ruehsen@gmx.de>
12163         parse-datetime: Fix memleak
12164         * lib/parse-datetime.y (parse_datetime2): Cleanup on
12165         localtime_rz() failure.
12167 2017-05-16  Bruno Haible  <bruno@clisp.org>
12169         javacomp: Fix handle leak.
12170         Found by Coverity.
12171         * lib/javacomp.c (get_classfile_version): Close fd before returning.
12173 2017-05-16  Bruno Haible  <bruno@clisp.org>
12175         relocate: Make it easier to reclaim allocated memory.
12176         * lib/relocatable.h (relocate2): New declaration/macro.
12177         * lib/relocatable.c (relocate2): New function.
12178         * doc/relocatable-maint.texi (Supporting Relocation): Mention the
12179         relocate2 function.
12180         * lib/localcharset.c (relocate2): Define fallback.
12181         (get_charset_aliases): Invoke relocate2 instead of relocate. Free the
12182         allocated memory.
12183         * lib/javaversion.c (relocate2): Define fallback.
12184         (javaexec_version): Invoke relocate2 instead of relocate. Free the
12185         allocated memory.
12187 2017-05-16  Bruno Haible  <bruno@clisp.org>
12189         relocate: Simplify EMX specific code.
12190         * lib/relocatable.c (relocate): Assume pathname is non-NULL. Use
12191         ISSLASH macro consistently. Avoid dangerous string concatenation idiom.
12193 2017-05-16  Bruno Haible  <bruno@clisp.org>
12195         sigpipe tests: Fix file list.
12196         * modules/sigpipe-tests (Files): Add tests/macros.h.
12198 2017-05-16  Paul Eggert  <eggert@cs.ucla.edu>
12200         manywarnings: update for GCC 7
12201         * build-aux/gcc-warning.spec:
12202         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
12203         Add GCC 7 warnings, notably -Wimplicit-fallthrough=5, which
12204         requires a non-comment fallthrough attribute.  This is a bit
12205         cleaner than the comment versions.
12206         * lib/strftime.c, lib/dfa.c, lib/fnmatch.c, lib/mbrtowc.c:
12207         * lib/vasnprintf.c, tests/macros.h (FALLTHROUGH): New macro.
12208         Use it whenever one switch case falls through into the next.
12209         * lib/fnmatch_loop.c, tests/test-mbrtowc.c, tests/test-sigpipe.c:
12210         Use FALLTHROUGH macro.
12212 2017-05-15  Bruno Haible  <bruno@clisp.org>
12214         gnulib-tool: Fix generated code when libtests contains module 'alloca'.
12215         * gnulib-tool (func_emit_tests_Makefile_am): For libtests.a, use
12216         @ALLOCA@, not @LTALLOCA@.
12218 2017-05-15  Bruno Haible  <bruno@clisp.org>
12220         sys_select: Avoid "was expanded before it was required" warning.
12221         * modules/sys_select (configure.ac): Require, not invoke,
12222         gl_HEADER_SYS_SELECT.
12224 2017-05-14  Paul Eggert  <eggert@cs.ucla.edu>
12226         gnulib-tool: improve GNU Make debugging
12227         * gnulib-tool (func_emit_lib_Makefile_am): Omit unnecessary echo.
12228         Report autoconf diagnostics when it fails, in the output makefile.
12230 2017-05-14  Bruno Haible  <bruno@clisp.org>
12232         stat-time tests: Improve comment.
12233         * tests/test-stat-time.c: Add hyperlink, from Paul Eggert.
12235 2017-05-14  Bruno Haible  <bruno@clisp.org>
12237         same-inode: Adapt for windows-stat-inodes.
12238         * lib/same-inode.h: Include <sys/types.h>.
12239         (SAME_INODE) [_GL_WINDOWS_STAT_INODES]: Define specifically.
12240         * modules/same-inode (Depends-on): Add sys_types.
12242 2017-05-14  Bruno Haible  <bruno@clisp.org>
12244         windows-stat-inodes: New module.
12245         * m4/windows-stat-inodes.m4: New file.
12246         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_STAT_INODES.
12247         * modules/sys_types (Makefile.am): Substitute WINDOWS_STAT_INODES.
12248         * lib/sys_types.in.h [WINDOWS_STAT_INODES]: Override dev_t and ino_t.
12249         (_GL_WINDOWS_STAT_INODES): New macro.
12250         * lib/stat-w32.c: Set _WIN32_WINNT. Include <string.h>, verify.h.
12251         (GetFileInformationByHandleExFunc): New variable.
12252         (initialize): Initialize it.
12253         (_gl_fstat_by_handle) [_GL_WINDOWS_STAT_INODES]: Initialize st_dev and
12254         st_ino appropriately.
12255         * lib/stat.c (rpl_stat): Use the directory entry based approach only as
12256         a fallback, because it does not provide st_dev and st_ino values.
12257         * modules/fstat (Depends-on): Add 'verify'.
12258         * modules/windows-stat-inodes: New file.
12259         * doc/windows-stat-inodes.texi: New file.
12260         * doc/gnulib.texi: Include it.
12261         * doc/posix-headers/sys_stat.texi: Mention the new module.
12263 2017-05-14  Bruno Haible  <bruno@clisp.org>
12265         stat-time tests: Workaround for native Windows.
12266         * tests/test-stat-time.c: Include <stdio.h>, <time.h>.
12267         (filename_stamp1, filename_testfile, filename_stamp2, filename_stamp3):
12268         New variables.
12269         (initialize_filenames): New function.
12270         (main): Invoke it.
12271         (cleanup, prepare_test): Update.
12273 2017-05-14  Bruno Haible  <bruno@clisp.org>
12275         stat-time: Adapt for windows-stat-timespec.
12276         * lib/stat-time.h (get_stat_birthtime) [_GL_WINDOWS_STAT_TIMESPEC]: Use
12277         entire st_ctim field.
12279 2017-05-13  Jim Meyering  <meyering@fb.com>
12281         maint.mk: update regex to reflect 2013 addition of "assume" to verify.h
12282         * top/maint.mk (sc_prohibit_verify_without_use): Don't reject a source
12283         file that uses the assume macro, claiming that verify.h is unused.
12285 2017-05-13  Bruno Haible  <bruno@clisp.org>
12287         Use symbolic values for _WIN32_WINNT.
12288         * lib/ftruncate.c (_WIN32_WINNT): Use symbolic value _WIN32_WINNT_WIN2K.
12289         * lib/sethostname.c (_WIN32_WINNT): Likewise.
12291 2017-05-13  Bruno Haible  <bruno@clisp.org>
12293         year2038: New module.
12294         * m4/year2038.m4: New file.
12295         * modules/year2038: New file.
12296         * doc/year2038.texi: New file.
12297         * doc/gnulib.texi: Include it.
12299 2017-05-13  Bruno Haible  <bruno@clisp.org>
12301         largefile: Simplify.
12302         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Remove unused definition
12303         of _GL_WINDOWS_64_BIT_ST_SIZE.
12305 2017-05-13  Bruno Haible  <bruno@clisp.org>
12307         largefile: Improve and document.
12308         * m4/largefile.m4 (gl_LARGEFILE): Set WINDOWS_64_BIT_ST_SIZE to 0 if
12309         the mingw headers already define 'stat' appropriately.
12310         * modules/largefile (Description): Clarify.
12311         * doc/largefile.texi: New file.
12312         * doc/gnulib.texi: Include it.
12313         * doc/posix-headers/sys_types.texi: Update.
12315 2017-05-13  Bruno Haible  <bruno@clisp.org>
12317         truncate: New module.
12318         * lib/unistd.in.h (truncate): New declaration.
12319         * lib/truncate.c: New file.
12320         * m4/truncate.m4: New file.
12321         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'truncate' is declared.
12322         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TRUNCATE, HAVE_TRUNCATE,
12323         REPLACE_TRUNCATE.
12324         * modules/unistd (Makefile.am): Substitute GNULIB_TRUNCATE,
12325         HAVE_TRUNCATE, REPLACE_TRUNCATE.
12326         * modules/truncate: New file.
12327         * tests/test-unistd-c++.cc (truncate): Test signature.
12328         * doc/posix-functions/truncate.texi: Mention the new module.
12330         * tests/test-truncate.c: New file.
12331         * modules/truncate-tests: New file.
12333 2017-05-13  Bruno Haible  <bruno@clisp.org>
12335         windows-stat-timespec: New module.
12336         * modules/windows-stat-timespec: New file.
12337         * m4/windows-stat-timespec.m4: New file.
12338         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_STAT_TIMESPEC.
12339         * modules/sys_stat (Makefile.am): Substitute WINDOWS_STAT_TIMESPEC.
12340         * lib/sys_stat.in.h (struct stat) [WINDOWS_STAT_TIMESPEC]: Declare with
12341         fields st_atim, st_mtim, st_ctim.
12342         (st_atime, st_mtime, st_ctime): Define as macros.
12343         (_GL_WINDOWS_STAT_TIMESPEC): New macro.
12344         * lib/stat-w32.h (_gl_convert_FILETIME_to_timespec)
12345         [_GL_WINDOWS_STAT_TIMESPEC]: New declaration.
12346         * lib/stat-w32.c (_gl_convert_FILETIME_to_timespec)
12347         [_GL_WINDOWS_STAT_TIMESPEC]: New function.
12348         (_gl_convert_FILETIME_to_POSIX): Adjust coding style.
12349         (_gl_fstat_by_handle): If _GL_WINDOWS_STAT_TIMESPEC, convert the
12350         FILETIME to 'struct timespec', not 'time_t'.
12351         * lib/stat.c (rpl_stat): If _GL_WINDOWS_STAT_TIMESPEC, convert the
12352         FILETIME to 'struct timespec', not 'time_t'.
12353         * lib/stat-time.h (STAT_TIMESPEC): Define also if
12354         _GL_WINDOWS_STAT_TIMESPEC.
12355         * doc/windows-stat-timespec.texi: New file.
12356         * doc/gnulib.texi: Include it.
12358 2017-05-13  Bruno Haible  <bruno@clisp.org>
12360         windows-stat-override: New module.
12361         * lib/sys_stat.in.h (stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provide own
12362         definition. Define GNULIB_defined_struct_stat.
12363         (fstat, fstatat, lstat, stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provoke
12364         link error if this symbol is used and the corresponding module is not
12365         in use.
12366         (_stat64, _stat32i64, _stati64, _stat32, _stat64i32): Don't redefine if
12367         GNULIB_OVERRIDES_STRUCT_STAT.
12368         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
12369         GNULIB_OVERRIDES_STRUCT_STAT.
12370         * modules/sys_stat (Makefile.am): Substitute
12371         GNULIB_OVERRIDES_STRUCT_STAT.
12372         * modules/windows-stat-override: New file.
12374 2017-05-13  Bruno Haible  <bruno@clisp.org>
12376         fstat: Fix module dependency conditions.
12377         * modules/fstat (Depends-on): Fix typo.
12379 2017-05-13  Bruno Haible  <bruno@clisp.org>
12381         stat, fstat: Complete removal of old native Windows code.
12382         * lib/stat.c: Remove old macrology for WINDOWS_NATIVE.
12383         * lib/fstat.c: Likewise.
12384         * lib/stat-w32.c: Likewise.
12386 2017-05-13  Bruno Haible  <bruno@clisp.org>
12388         stat: Complete removal of REPLACE_FUNC_STAT_DIR code.
12389         * lib/stat.c: Remove all REPLACE_FUNC_STAT_DIR code.
12391 2017-05-11  Paul Eggert  <eggert@cs.ucla.edu>
12393         getopt-posix: port to mingw
12394         * lib/getopt.c (flockfile, funlockfile): Define on mingw.
12395         Problem reported by Daniel P. Berrage in:
12396         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00086.html
12398 2017-05-11  Bruno Haible  <bruno@clisp.org>
12400         gettimeofday: Increase precision on mingw.
12401         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Require AC_CANONICAL_HOST.
12402         Set REPLACE_GETTIMEOFDAY to 1 on mingw.
12403         * lib/gettimeofday.c (gettimeofday): On native Windows, use the
12404         GetSystemTimePreciseAsFileTime based implementation always.
12405         * doc/posix-functions/gettimeofday.texi: Mention precision problem on
12406         mingw.
12408 2017-05-11  Bruno Haible  <bruno@clisp.org>
12410         poll: Fix confusion between SOCKETs and FDs on native Windows.
12411         Fix proposed by Daniel P. Berrange <berrange@redhat.com>.
12412         * lib/poll.c [WINDOWS_NATIVE]: Undefine select.
12414 2017-05-11  Bruno Haible  <bruno@clisp.org>
12416         doc: Clarify doc about socket functions on native Windows.
12417         This reworks doc that was added on 2008-09-29.
12418         * doc/posix-functions/select.texi: Fix copy-and-paste mistake and use
12419         clearer wording.
12420         * doc/posix-functions/accept.texi: Use clearer wording.
12421         * doc/posix-functions/bind.texi: Likewise.
12422         * doc/posix-functions/connect.texi: Likewise.
12423         * doc/posix-functions/getpeername.texi: Likewise.
12424         * doc/posix-functions/getsockname.texi: Likewise.
12425         * doc/posix-functions/getsockopt.texi: Likewise.
12426         * doc/posix-functions/ioctl.texi: Likewise.
12427         * doc/posix-functions/listen.texi: Likewise.
12428         * doc/posix-functions/recv.texi: Likewise.
12429         * doc/posix-functions/recvfrom.texi: Likewise.
12430         * doc/posix-functions/send.texi: Likewise.
12431         * doc/posix-functions/sendto.texi: Likewise.
12432         * doc/posix-functions/setsockopt.texi: Likewise.
12433         * doc/posix-functions/shutdown.texi: Likewise.
12434         * doc/posix-functions/socket.texi: Likewise.
12436 2017-05-10  Bruno Haible  <bruno@clisp.org>
12438         poll: Fix link error on native Windows.
12439         * lib/poll.c [WINDOWS_NATIVE]: Undefine recv.
12441 2017-05-10  Bruno Haible  <bruno@clisp.org>
12443         time: Fix missing initialization of HAVE_TIMEZONE_T.
12444         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEZONE_T
12445         here...
12446         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): ... not here.
12447         * m4/time_rz.m4 (gl_TIME_RZ): Require gl_HEADER_TIME_H_DEFAULTS, not
12448         gl_HEADER_SYS_TIME_H_DEFAULTS.
12449         * modules/time_rz (Depends-on): Add 'time'. Remove useless quoting.
12450         (configure.ac): Remove useless quoting.
12452 2017-05-10  Bruno Haible  <bruno@clisp.org>
12454         Implement a way to opt out from MSVC support, part 2.
12455         * modules/msvc-inval (Include): Document recommended idiom.
12456         * modules/msvc-nothrow (Include): Likewise.
12458         Implement a way to opt out from MSVC support.
12459         This is useful for Emacs.
12460         * modules/msvc-nothrow (configure.ac): Invoke gl_MODULE_INDICATOR.
12461         * lib/accept4.c: Include <io.h> as an alternative to msvc-nothrow.h.
12462         * lib/error.c: Likewise.
12463         * lib/fcntl.c: Likewise.
12464         * lib/flock.c: Likewise.
12465         * lib/fstat.c: Likewise.
12466         * lib/fsync.c: Likewise.
12467         * lib/ioctl.c: Likewise.
12468         * lib/isapipe.c: Likewise.
12469         * lib/lseek.c: Likewise.
12470         * lib/nonblocking.c: Likewise.
12471         * lib/poll.c: Likewise.
12472         * lib/select.c: Likewise.
12473         * lib/sockets.h: Likewise.
12474         * lib/sockets.c: Likewise.
12475         * lib/stdio-read.c: Likewise.
12476         * lib/stdio-write.c: Likewise.
12477         * lib/utimens.c: Likewise.
12478         * lib/w32sock.h: Likewise.
12479         * lib/w32spawn.h: Likewise.
12480         * tests/test-cloexec.c: Likewise.
12481         * tests/test-dup-safer.c: Likewise.
12482         * tests/test-dup2.c: Likewise.
12483         * tests/test-dup3.c: Likewise.
12484         * tests/test-fcntl.c: Likewise.
12485         * tests/test-pipe.c: Likewise.
12486         * tests/test-pipe2.c: Likewise.
12487         * lib/ftruncate.c: Likewise.
12488         (chsize_nothrow): Renamed from chsize.
12489         * lib/msvc-nothrow.c: Don't include msvc-inval.h if
12490         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
12491         * lib/close.c: Likewise.
12492         * lib/dup.c: Likewise.
12493         * lib/fclose.c: Likewise.
12494         * lib/raise.c: Likewise.
12495         * tests/test-fgetc.c: Likewise.
12496         * tests/test-fputc.c: Likewise.
12497         * tests/test-fread.c: Likewise.
12498         * tests/test-fwrite.c: Likewise.
12499         * lib/getdtablesize.c: Likewise.
12500         (_setmaxstdio_nothrow): Renamed from _setmaxstdio.
12501         * lib/isatty.c: Don't include msvc-inval.h if
12502         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
12503         Include <io.h> as an alternative to msvc-nothrow.h.
12504         * lib/read.c: Likewise.
12505         * lib/write.c: Likewise.
12506         * lib/dup2.c: Likewise.
12507         (dup2_nothrow): New function.
12508         (ms_windows_dup2): Use it.
12509         * m4/close.m4 (gl_FUNC_CLOSE): Invoke gl_MSVC_INVAL and test
12510         HAVE_MSVC_INVALID_PARAMETER_HANDLER only if gl_MSVC_INVAL is defined.
12511         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
12512         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
12513         * m4/raise.m4 (gl_FUNC_RAISE): Likewise.
12514         * m4/read.m4 (gl_FUNC_READ): Likewise.
12515         * m4/write.m4 (gl_FUNC_WRITE): Likewise.
12516         * doc/windows-without-msvc.texi: New file.
12517         * doc/gnulib.texi (Native Windows Support without MSVC Support): New
12518         section.
12520 2017-05-10  Bruno Haible  <bruno@clisp.org>
12522         wait-process: Adjust native Windows support.
12523         * lib/wait-process.c: Use the usual condition for recognizing a native
12524         Windows platform.
12526 2017-05-10  Bruno Haible  <bruno@clisp.org>
12528         doc: New chapter "Native Windows Support".
12529         * doc/gnulib.texi (Native Windows Support): New chapter.
12530         * doc/windows-libtool.texi: Small wording changes.
12531         * doc/windows-sockets.texi: Small wording and formatting changes.
12533 2017-05-10  Bruno Haible  <bruno@clisp.org>
12535         doc: Move section "Library version handling".
12536         * doc/gnulib.texi: Move section "Library version handling"
12537         from chapter "Miscellaneous Notes" to chapter "Particular Modules".
12539 2017-05-10  Bruno Haible  <bruno@clisp.org>
12541         doc: Move section "Running self-tests under valgrind".
12542         * doc/gnulib.texi: Move section "Running self-tests under valgrind"
12543         from chapter "Particular Modules" to chapter "Miscellaneous Notes".
12545 2017-05-10  Bruno Haible  <bruno@clisp.org>
12547         doc: New chapter "Build Infrastructure Modules".
12548         * doc/gnulib.texi (Build Infrastructure Modules): New chapter.
12550 2017-05-10  Bruno Haible  <bruno@clisp.org>
12552         Prepare for reordering sections in the manual.
12553         * doc/gnulib.texi: Move several sections to separate files. Include
12554         these files.
12555         * doc/out-of-memory.texi: New file, extracted from doc/gnulib.texi.
12556         * doc/obsolete.texi: Likewise.
12557         * doc/extra-tests.texi: Likewise.
12558         * doc/transversal.texi: Likewise.
12559         * doc/namespace.texi: Likewise.
12560         * doc/check-version.texi: Likewise.
12561         * doc/windows-sockets.texi: Likewise.
12562         * doc/windows-libtool.texi: Likewise.
12563         * doc/licenses-texi.texi: Likewise.
12564         * doc/build-automation.texi: Likewise.
12565         * doc/c-locale.texi: Likewise.
12567 2017-05-10  Bruno Haible  <bruno@clisp.org>
12569         Fix instructions how to update manual on www.gnu.org.
12570         * doc/README: Add -I option, so that texi2dvi finds texinfo.tex.
12572 2017-05-09  Bruno Haible  <bruno@clisp.org>
12574         tzset: Expand comment about TZ problem on native Windows.
12575         * lib/tzset.c (tzset): Elaborate comment, based on explanations by
12576         Paul Eggert.
12577         * lib/ctime.c (rpl_ctime): Likewise.
12578         * lib/localtime.c (rpl_localtime): Likewise.
12579         * lib/mktime.c (mktime): Likewise.
12580         * lib/strftime-fixes.c (rpl_strftime): Likewise.
12581         * lib/wcsftime.c (rpl_wcsftime): Likewise.
12583 2017-05-08  Paul Eggert  <eggert@cs.ucla.edu>
12585         intprops: don’t depend on ‘verify’
12586         Problem reported by Ævar Arnfjörð Bjarmason in:
12587         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00054.html
12588         * lib/intprops.h: Do not include verify.h, and move compile-time
12589         checks from here ...
12590         * tests/test-intprops.c (main): ... to here, if they’re not here
12591         already.  Check widths of other standard integer types.
12592         * modules/intprops (Depends-on): Remove ‘verify’.
12594 2017-05-07  Bruno Haible  <bruno@clisp.org>
12596         utimens: On native Windows, support 100ns resolution also if fd < 0.
12597         * lib/utime.in.h: Include <time.h>.
12598         (_gl_utimens_windows): New declaration.
12599         * lib/utime.c (_gl_utimens_windows): New function, based on utime.
12600         (utime): Invoke it.
12601         * lib/utimens.c (fdutimens): On native Windows, call _gl_utimens_windows
12602         instead of utime.
12603         * modules/utime (Depends-on): Add 'time'.
12605 2017-05-07  Bruno Haible  <bruno@clisp.org>
12607         utimens: Improve error code on native Windows.
12608         * lib/utimens.c (fdutimens): If fd was not opened with O_RDWR, fail with
12609         error code EACCES, not EINVAL.
12611 2017-05-07  Bruno Haible  <bruno@clisp.org>
12613         utime: Handle more Windows error codes.
12614         * lib/utime.c (utime): Handle ERROR_BAD_NETPATH.
12615         Based on explanations by Billy O'Neal.
12617 2017-05-05  Bruno Haible  <bruno@clisp.org>
12619         crypto/rijndael: Fix "strict-aliasing rules" warnings, alignment issues.
12620         * lib/rijndael-api-fst.c (rijndaelBlockEncrypt): Declare 'block' as a
12621         union.
12622         (rijndaelPadEncrypt, rijndaelBlockDecrypt): Likewise.
12623         (rijndaelPadDecrypt): Likewise. Use local variable 'iv' to cache the
12624         value of cipher->IV.
12626 2017-05-05  Bruno Haible  <bruno@clisp.org>
12628         wctype-h-c++-tests: Update.
12629         * tests/test-wctype-h-c++.cc: Reorder to match lib/wchar.in.h.
12631 2017-05-05  Bruno Haible  <bruno@clisp.org>
12633         wchar-c++-tests: Update.
12634         * tests/test-wchar-c++.cc (wcsftime): Declare, missing since 2017-04-30.
12636 2017-05-05  Bruno Haible  <bruno@clisp.org>
12638         utime-h-c++-tests: New module.
12639         * tests/test-utime-h-c++.cc: New file.
12640         (utime): Declare, missing since 2017-04-30.
12641         * modules/utime-h-c++-tests: New file.
12643 2017-05-05  Bruno Haible  <bruno@clisp.org>
12645         unistd-c++-tests: Update.
12646         * tests/test-unistd-c++.cc (isatty): Declare, missing since 2012-01-03.
12647         (read): Declare, missing since 2011-04-15.
12648         (sethostname): Declare, missing since 2011-12-03.
12650 2017-05-05  Bruno Haible  <bruno@clisp.org>
12652         time-c++-tests: Update.
12653         * tests/test-time-c++.cc (tzset): Declare, missing since 2017-05-01.
12654         (localtime, gmtime): Declare, missing since 2017-04-30.
12655         (ctime): Declare, missing since 2017-04-30.
12656         (strftime): Declare, missing since 2017-04-30.
12657         (tzalloc, tzfree, localtime_rz, mktime_z): Declare, missing since
12658         2015-07-24.
12660 2017-05-05  Bruno Haible  <bruno@clisp.org>
12662         sys_resource-c++-tests: New module.
12663         * tests/test-sys_resource-c++.cc: New file.
12664         (getrusage): Declare, missing since 2012-04-13.
12665         * modules/sys_resource-c++-tests: New file.
12667 2017-05-05  Bruno Haible  <bruno@clisp.org>
12669         strings-c++-tests: New module.
12670         * tests/test-strings-c++.cc: New file.
12671         (ffs): Declare, missing since 2011-07-12.
12672         * modules/strings-c++-tests: New file.
12674 2017-05-05  Bruno Haible  <bruno@clisp.org>
12676         string-c++-tests: Update.
12677         * tests/test-string-c++.cc (ffsl): Declare, missing since 2011-07-15.
12678         (ffsll): Declare, missing since 2011-07-15.
12680 2017-05-05  Bruno Haible  <bruno@clisp.org>
12682         stdlib-c++-tests: Update.
12683         * tests/test-stdlib-c++.cc (posix_openpt): Declare, missing since
12684         2011-10-18.
12685         (ptsname_r): Declare, missing since 2011-11-07.
12686         (qsort_r): Declare, missing since 2014-08-29.
12687         (random, srandom, initstate, setstate): Declare, missing since
12688         2012-01-14.
12689         (secure_getenv): Declare, missing since 2013-02-05.
12691 2017-05-05  Bruno Haible  <bruno@clisp.org>
12693         stdio-c++-tests: Update.
12694         * tests/test-stdio-c++.cc (pclose): Declare, missing since 2011-09-18.
12696 2017-05-05  Bruno Haible  <bruno@clisp.org>
12698         signal-h-c++-tests: Update.
12699         * tests/test-signal-h-c++.cc (raise): Remove redundant declaration.
12701 2017-05-05  Bruno Haible  <bruno@clisp.org>
12703         math-c++-tests: Update.
12704         * tests/test-math-c++.cc (fmaf): Declare, missing since 2011-10-17.
12705         (fma): Declare, missing since 2011-10-17.
12706         (fmal): Declare, missing since 2011-10-17.
12708 2017-05-05  Bruno Haible  <bruno@clisp.org>
12710         locale-c++-tests: Update.
12711         * tests/test-locale-c++.cc (localeconv): Declare, missing since
12712         2012-03-25.
12714 2017-05-05  Bruno Haible  <bruno@clisp.org>
12716         inttypes-c++-tests: New module.
12717         * tests/test-inttypes-c++.cc: New file.
12718         (strtoimax): Declare, missing since 2012-01-05.
12719         (strtoumax): Declare, missing since 2012-01-05.
12720         * modules/inttypes-c++-tests: New file.
12722 2017-05-05  Bruno Haible  <bruno@clisp.org>
12724         dirent-c++-tests: Update.
12725         * tests/test-dirent-c++.cc (readdir): Declare, missing since 2011-09-13.
12726         (rewinddir): Declare, missing since 2011-09-13.
12727         (dirfd): Declare, missing since 2010-03-08.
12729 2017-05-04  Bruno Haible  <bruno@clisp.org>
12731         argp: Fix mistake in 2017-04-23 commit.
12732         * lib/argp-help.c (__argp_failure): If GNULIB_STRERROR_R_POSIX is set,
12733         assume that strerror_r returns 'int', not 'char *'.
12735 2017-05-04  Reuben Thomas  <rrt@sc3d.org>
12737         argp: Fix typo.
12738         * lib/argp-help.c (argp_doc): Fix spelling mistake in comment.
12740 2017-05-02  Paul Eggert  <eggert@cs.ucla.edu>
12742         utimens: port to Emacs + MS-Windows
12743         Skip the new MS-Windows-specific code if Emacs.
12744         * lib/utimens.c [EMACS_CONFIGUATION]:
12745         Avoid new MS-Windows-specific code.
12746         (USE_SETFILETIME): New macro.
12747         (fdutimens): Use it.
12749 2017-05-01  Paul Eggert  <eggert@cs.ucla.edu>
12751         tzset: update doc for TZ problems on MS-Windows
12752         * doc/posix-functions/ctime.texi,  doc/posix-functions/daylight.texi:
12753         * doc/posix-functions/localtime.texi, doc/posix-functions/mktime.texi:
12754         * doc/posix-functions/strftime.texi, doc/posix-functions/timezone.texi:
12755         * doc/posix-functions/tzname.texi, doc/posix-functions/tzset.texi:
12756         * doc/posix-functions/wcsftime.texi:
12757         Mention some issues with TZ under MS-Windows.
12759 2017-05-01  Bruno Haible  <bruno@clisp.org>
12761         copy-file: Fix build error on mingw.
12762         * modules/copy-file (Depends-on): Add 'close'.
12764 2017-05-01  Bruno Haible  <bruno@clisp.org>
12766         tzset: Work around TZ problem on native Windows.
12767         * m4/tzset.m4 (gl_FUNC_TZSET): Require AC_CANONICAL_HOST. On native
12768         Windows, set REPLACE_TZSET to 1.
12769         * lib/tzset.c (tzset): On native Windows, fix TZ if necessary, and
12770         invoke '_tzset' instead of 'tzset'.
12771         * doc/posix-functions/tzset.texi: Mention the native Windows workaround.
12773         * modules/time_rz (Depends-on): Add tzset.
12774         * lib/time_rz.c (tzset): Remove fallback definition.
12775         * m4/time_rz.m4 (gl_TIME_RZ): Don't test for tzset.
12777 2017-05-01  Bruno Haible  <bruno@clisp.org>
12779         mktime: Fix dependencies.
12780         * modules/mktime (Depends-on): Add 'time'.
12782 2017-05-01  Bruno Haible  <bruno@clisp.org>
12784         New module 'localtime-buffer', split off from module 'gettimeofday'.
12785         * lib/localtime-buffer.h: New file.
12786         * lib/localtime-buffer.c: New file, extracted from lib/gettimeofday.c.
12787         * lib/time.in.h (tzset): New declaration.
12788         (localtime, gmtime): Don't test GNULIB_GETTIMEOFDAY.
12789         * lib/tzset.c: New file, extracted from lib/gettimeofday.c.
12790         * lib/gettimeofday.c: Include localtime-buffer.h. Remove code that was
12791         moved to lib/localtime-buffer.c or lib/tzset.c.
12792         * m4/localtime-buffer.m4: New file.
12793         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TZSET,
12794         HAVE_TZSET, REPLACE_TZSET.
12795         * m4/tzset.m4 (gl_FUNC_TZSET): Move code from m4/gettimeofday.m4 to
12796         here, with modifications. Set HAVE_TZSET, REPLACE_TZSET. Invoke
12797         gl_LOCALTIME_BUFFER_NEEDED.
12798         (gl_FUNC_TZSET_CLOBBER): Don't require gl_HEADER_SYS_TIME_H; not needed
12799         since 2007-01-18.
12800         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Remove code that deals with
12801         tzset.
12802         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require gl_LOCALTIME_BUFFER_DEFAULTS.
12803         Invoke gl_LOCALTIME_BUFFER_NEEDED instead of
12804         gl_GETTIMEOFDAY_REPLACE_LOCALTIME.
12805         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Remove macro.
12806         * modules/localtime-buffer: New file.
12807         * modules/time (Depends-on): Remove 'gettimeofday'.
12808         (Makefile.am): Substitute GNULIB_TZSET, HAVE_TZSET,
12809         REPLACE_TZSET. Don't substitute GNULIB_GETTIMEOFDAY.
12810         * modules/tzset (Description): Enable hyperlink to POSIX spec.
12811         (Files): Add lib/tzset.c.
12812         (Depends-on): Remove gettimeofday. Add localtime-buffer, time.
12813         (configure.ac): Arrange to conditionally compile lib/tzset.c. Invoke
12814         gl_TIME_MODULE_INDICATOR.
12815         * modules/gettimeofday (Depends-on): Add localtime-buffer.
12817 2017-05-01  Bruno Haible  <bruno@clisp.org>
12819         copy-file: Preserve sub-second time stamps.
12820         * lib/copy-file.c: Include stat-time.h, utimens.h instead of <utime.h>.
12821         (qcopy_file_preserving): Use 'struct timespec' and utimens() to
12822         transport the time stamps from the original file to the destination
12823         file.
12824         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for utime, utimes.
12825         * modules/copy-file (Depends-on): Add stat-time, utimns instead of
12826         utime-h.
12828 2017-05-01  Bruno Haible  <bruno@clisp.org>
12830         wctype-t: Fix problems if <wchar.h> gets included after <wctype.h>.
12831         * lib/wctype.in.h: Include not only <ctype.h> but also <wchar.h>. Do so
12832         also on MSVC.
12833         Reported by Eli Zaretskii <eliz@gnu.org>.
12835 2017-05-01  Bruno Haible  <bruno@clisp.org>
12837         wchar: Fix compilation error with the original mingw.org mingw.
12838         * lib/wchar.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
12839         <stddef.h> instead.
12840         * m4/wint_t.m4 (gl_TYPE_WINT_T_PREREQ): New macro, extracted from
12841         gl_WCTYPE_H.
12842         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set HAVE_CRTDEFS_H here; require
12843         gl_TYPE_WINT_T_PREREQ instead.
12844         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_TYPE_WINT_T_PREREQ.
12845         * modules/wchar (Makefile.am): Substitute HAVE_CRTDEFS_H.
12846         Reported by Eli Zaretskii <eliz@gnu.org>.
12848 2017-04-30  Bruno Haible  <bruno@clisp.org>
12850         utimecmp: Add support for native Windows.
12851         * lib/utimecmp.c (SYSCALL_RESOLUTION): Set to 100 on native Windows.
12853 2017-04-30  Bruno Haible  <bruno@clisp.org>
12855         utimens: Add support for native Windows.
12856         * lib/utimens.c: Include <windows.h>, msvc-nothrow.h.
12857         (fdutimens): Provide a native Windows implementation, like utime.c with
12858         added tv_nsec support.
12859         * modules/utimens (Depends-on): Add msvc-nothrow, utime.
12860         Suggested by Tim Rühsen <tim.ruehsen@gmx.de>.
12862 2017-04-30  Bruno Haible  <bruno@clisp.org>
12864         wcsftime: New module.
12865         * lib/wchar.in.h (wcsftime): New declaration.
12866         * lib/wcsftime.c: New file.
12867         * m4/wcsftime.m4: New file.
12868         * m4/wchar_h.m4 (gl_WCHAR_H): Test for wcsftime declaration.
12869         (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_WCSFTIME,
12870         HAVE_WCSFTIME, REPLACE_WCSFTIME.
12871         * modules/wchar (Makefile.am): Substitute GNULIB_WCSFTIME,
12872         HAVE_WCSFTIME, REPLACE_WCSFTIME.
12873         * modules/wcsftime: New file.
12874         * doc/posix-functions/wcsftime.texi: Mention the new module.
12876 2017-04-30  Bruno Haible  <bruno@clisp.org>
12878         strftime-fixes: New module.
12879         * lib/time.in.h (strftime): New declaration.
12880         * lib/strftime-fixes.c: New file.
12881         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Inline gl_FUNC_STRFTIME macro.
12882         (gl_FUNC_STRFTIME): Remove macro.
12883         * m4/strftime-fixes.m4: New file.
12884         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_STRFTIME,
12885         REPLACE_STRFTIME.
12886         * modules/time (Makefile.am): Substitute GNULIB_STRFTIME,
12887         REPLACE_STRFTIME.
12888         * modules/strftime-fixes: New file.
12889         * doc/posix-functions/strftime.texi: Mention the new module.
12891 2017-04-30  Bruno Haible  <bruno@clisp.org>
12893         mktime: Work around TZ problem on native Windows.
12894         * lib/mktime.c: Add #ifs to make the algorithmic workaround independent
12895         from the native Windows workaround.
12896         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): New macro, extracted from
12897         gl_FUNC_MKTIME. If guessing, set gl_cv_func_working_mktime to
12898         'guessing no'.
12899         (gl_FUNC_MKTIME): Require it. Require AC_CANONICAL_HOST.
12900         Set REPLACE_MKTIME to 1 on native Windows. Define NEED_MKTIME_WORKING,
12901         NEED_MKTIME_WINDOWS.
12902         (gl_FUNC_MKTIME_INTERNAL): Require gl_FUNC_MKTIME_WORKS, not
12903         gl_FUNC_MKTIME. Set WANT_MKTIME_INTERNAL, not REPLACE_MKTIME. Define
12904         NEED_MKTIME_INTERNAL.
12905         * m4/timegm.m4 (gl_FUNC_TIMEGM): Require gl_FUNC_MKTIME_WORKS, not
12906         gl_FUNC_MKTIME. Cope with 'guessing yes' value.
12907         * modules/mktime-internal (configure.ac): Test WANT_MKTIME_INTERNAL,
12908         not REPLACE_MKTIME.
12909         * doc/posix-functions/mktime.texi: Mention the native Windows
12910         workaround.
12912 2017-04-30  Bruno Haible  <bruno@clisp.org>
12914         localtime: New module.
12915         * lib/time.in.h (localtime): Declare also if requested by module
12916         'localtime'.
12917         * lib/localtime.c: New file.
12918         * m4/localtime.m4: New file.
12919         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_LOCALTIME.
12920         * modules/time (Makefile.am): Substitute GNULIB_LOCALTIME.
12921         * modules/localtime: New file.
12922         * doc/posix-functions/localtime.texi: Mention the new module.
12924 2017-04-30  Bruno Haible  <bruno@clisp.org>
12926         ctime: New module.
12927         * lib/time.in.h (ctime): New declaration.
12928         * lib/ctime.c: New file.
12929         * m4/ctime.m4: New file.
12930         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_CTIME,
12931         REPLACE_CTIME.
12932         * modules/time (Makefile.am): Substitute GNULIB_CTIME, REPLACE_CTIME.
12933         * modules/ctime: New file.
12934         * doc/posix-functions/ctime.texi: Mention the new module.
12936 2017-04-30  Bruno Haible  <bruno@clisp.org>
12938         gettimeofday: Provide higher resolution on native Windows.
12939         * lib/gettimeofday.c: Don't include <sys/timeb.h>.
12940         (GetSystemTimePreciseAsFileTimeFuncType): New variable.
12941         (initialize): Initialize it.
12942         (gettimeofday) [WINDOWS_NATIVE]: Use it, and convert from FILETIME to
12943         'struct timeval'. Don't use _ftime().
12944         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): Don't test for
12945         <sys/timeb.h> and _ftime.
12947 2017-04-30  Bruno Haible  <bruno@clisp.org>
12949         Document the problem with the Cygwin environment variable TZ.
12950         * doc/posix-functions/tzset.texi: Add note about TZ.
12951         * doc/posix-functions/ctime.texi: Likewise.
12952         * doc/posix-functions/localtime.texi: Likewise.
12953         * doc/posix-functions/mktime.texi: Likewise.
12954         * doc/posix-functions/strftime.texi: Likewise.
12955         * doc/posix-functions/wcsftime.texi: Likewise.
12956         * doc/pastposix-functions/ftime.texi: Likewise.
12958 2017-04-30  Bruno Haible  <bruno@clisp.org>
12960         utime-tests: New module.
12961         * tests/test-utime.c: New file, based on tests/test-utimens.h.
12962         * tests/test-utimens-common.h: Include <sys/stat.h>.
12963         * modules/utime-tests: New file.
12965 2017-04-29  Bruno Haible  <bruno@clisp.org>
12967         utime: New module.
12968         * lib/utime.in.h: Add comment for snippets.
12969         (utime): New declaration.
12970         * lib/utime.c: New file.
12971         * m4/utime.m4: New file.
12972         * m4/utime_h.m4 (gl_UTIME_H): Test for utime declaration.
12973         (gl_UTIME_H_DEFAULTS): Initialize GNULIB_UTIME, HAVE_UTIME,
12974         REPLACE_UTIME.
12975         * modules/utime-h (Depends-on): Add snippets.
12976         (Makefile.am): Substitute GNULIB_UTIME, HAVE_UTIME, REPLACE_UTIME.
12977         Insert snippets.
12978         * modules/utime: New file.
12979         * doc/posix-functions/utime.texi: Mention the new module.
12981 2017-04-29  Bruno Haible  <bruno@clisp.org>
12983         utime-h: Modernize handling of 'struct utimbuf'.
12984         * lib/utime.in.h: Include next <utime.h> if it exists.
12985         (utimbuf): Define to _utimbuf on native Windows.
12986         * m4/utime_h.m4 (gl_UTIME_H): Check for prerequisites of include_next.
12987         Set UTIME_H on native Windows.
12988         (gl_UTIME_MODULE_INDICATOR, gl_HEADER_UTIME_H_DEFAULTS): New macros.
12989         * modules/utime-h (Depends-on): Add include_next.
12990         (Makefile.am): Substitute also HAVE_UTIME_H, INCLUDE_NEXT,
12991         PRAGMA_SYSTEM_HEADER, PRAGMA_COLUMNS, NEXT_UTIME_H.
12993         * lib/utimens.c (utimbuf): Remove fallback definition.
12994         * m4/utimens.m4 (gl_UTIMENS): Don't require
12995         gl_CHECK_TYPE_STRUCT_UTIMBUF.
12996         * m4/utimbuf.m4: Remove file.
12997         * modules/utimens (Files): Remove m4/utimbuf.m4.
12999 2017-04-29  Bruno Haible  <bruno@clisp.org>
13001         Make use of module 'utime-h'.
13002         * modules/copy-file (Depends-on): Add utime-h.
13003         * lib/copy-file.c: Assume that <utime.h> exists.
13004         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for <utime.h>.
13006         * modules/utimens (Depends-on): Add utime-h.
13007         * lib/utimens.c: Assume that <utime.h> exists.
13009 2017-04-29  Bruno Haible  <bruno@clisp.org>
13011         utime-h: New module.
13012         * m4/utime_h.m4: New file.
13013         * lib/utime.in.h: New file.
13014         * modules/utime-h: New file.
13015         * doc/posix-headers/utime.texi: Mention the new module.
13017         * tests/test-utime-h.c: New file.
13018         * modules/utime-h-tests: New file.
13020 2017-04-30  Bruno Haible  <bruno@clisp.org>
13022         Fix a few typos.
13023         * m4/fstat.m4 (gl_FUNC_FSTAT): Require AC_CANONICAL_HOST.
13024         * m4/stat.m4 (gl_FUNC_STAT): Fix comment.
13025         * doc/posix-functions/fstat.texi: Fix a plural typo.
13026         * doc/posix-functions/stat.texi: Likewise.
13027         * m4/include_next.m4: Update comments.
13029 2017-04-29  Bruno Haible  <bruno@clisp.org>
13031         error: Fix mistake in 2017-04-23 commit.
13032         * lib/error.c (print_errno_message): If GNULIB_STRERROR_R_POSIX is set,
13033         assume that strerror_r returns 'int', not 'char *'.
13035 2017-04-29  Bruno Haible  <bruno@clisp.org>
13037         stat: Fix time_t values and other problems on native Windows platforms.
13038         * doc/posix-functions/stat.texi: Mention the problem with the Microsoft
13039         implementations of stat().
13040         * lib/stat.c: Include filename.h instead of dosname.h. Include
13041         malloca.h, stat-w32.h.
13042         (is_unc_root): New function.
13043         (rpl_stat): New implementation for native Windows. Remove
13044         REPLACE_FUNC_STAT_DIR code.
13045         * m4/stat.m4 (gl_FUNC_STAT): On native Windows, set REPLACE_STAT always.
13046         Don't define REPLACE_FUNC_STAT_DIR.
13047         (gl_PREREQ_STAT): Require gl_HEADER_SYS_STAT_H.
13048         * modules/stat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
13049         (Depends-on): Remove dosname. Add filename, malloca.
13050         (configure.ac): Also compile lib/stat-w32.c.
13052 2017-04-29  Bruno Haible  <bruno@clisp.org>
13054         fstat: Fix time_t values on native Windows platforms.
13055         * doc/posix-functions/fstat.texi: Mention the problem with st_*time.
13056         * lib/stat-w32.h: New file.
13057         * lib/stat-w32.c: New file.
13058         * lib/fstat.c: Don't include msvc-inval.h. Include msvc-nothrow.h,
13059         stat-w32.h instead.
13060         (fstat_nothrow): Remove function.
13061         (rpl_fstat): Implement by means of _gl_fstat_by_handle.
13062         * m4/fstat.m4 (gl_FUNC_FSTAT): On native Windows, set REPLACE_FSTAT
13063         always.
13064         (gl_PREREQ_FSTAT): Require gl_HEADER_SYS_STAT_H.
13065         * modules/fstat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
13066         (Depends-on): Remove msvc-inval. Add pathmax, msvc-nothrow.
13067         (configure.ac): Also compile lib/stat-w32.c.
13069 2017-04-29  Paul Eggert  <eggert@cs.ucla.edu>
13071         getopt: port to Solaris 10 with circa-1997 glibc getopt.h
13072         Problem reported by Assaf Gordon and Gavin Smith in:
13073         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00157.html
13074         * lib/getopt-pfx-ext.h (_getopt_internal) [__GETOPT_PREFIX]:
13075         #define this, too.
13077 2017-04-29  Bruno Haible  <bruno@clisp.org>
13079         strerror_r-posix: Fixes for MSVC 14.
13080         * lib/strerror_r.c: Include <stdarg.h>.
13081         (strerror_r): Provide error messages for errno values 100...140.
13082         * doc/posix-functions/strerror_r.texi: Mention the MSVC 14 problem.
13084 2017-04-28  Bruno Haible  <bruno@clisp.org>
13086         noreturn: New module.
13087         * lib/noreturn.h: New file.
13088         * modules/noreturn: New file.
13089         * tests/test-noreturn.c: New file.
13090         * modules/noreturn-tests: New file.
13091         * tests/test-noreturn-c++.cc: New file.
13092         * modules/noreturn-c++-tests: New file.
13094 2017-04-27  Bruno Haible  <bruno@clisp.org>
13096         wctype-h: Fix compilation error with the original mingw.org mingw.
13097         * m4/wctype_h.m4 (gl_WCTYPE_H): Test for <crtdefs.h>. Set
13098         HAVE_CRTDEFS_H.
13099         * modules/wctype-h (Makefile.am): Substitute HAVE_CRTDEFS_H.
13100         * lib/wctype.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
13101         <stddef.h> instead.
13102         Reported and proposed by Eli Zaretskii <eliz@gnu.org>.
13104 2017-04-26  Pádraig Brady  <P@draigBrady.com>
13106         nap.h: Fix compilation on non windows platforms
13107         * tests/nap.h: Move misplaced endif.
13109 2017-04-26  Pádraig Brady  <P@draigBrady.com>
13110         and Paul Eggert  <eggert@cs.ucla.edu>
13112         time_rz: fix heap buffer overflow vulnerability
13113         Reported and analyzed at https://bugzilla.redhat.com/CVE-2017-7476
13114         * lib/time_rz.c (save_abbr): Rearrange the calculation determining
13115         whether there is enough buffer space available, thus avoiding
13116         the problematic promotion of signed to unsigned causing an invalid
13117         comparison when zone_copy is more than ABBR_SIZE_MIN bytes beyond
13118         the start of the buffer.
13119         * tests/test-parse-datetime.c (main): Add a test case written by
13120         Paul Eggert, which overwrites enough of the heap so that
13121         standard glibc will fail with "free(): invalid pointer"
13122         without the patch applied.
13124 2017-04-26  Paul Eggert  <eggert@cs.ucla.edu>
13126         xalloc: add missing integer overflow check
13127         * lib/xalloc.h (x2nrealloc): Also check for multiplication
13128         overflow when P is null.
13130 2017-04-25  Paul Eggert  <eggert@cs.ucla.edu>
13132         parse-datetime: make it standalone
13133         * lib/parse-datetime.y: Include <stdarg.h>, for va_start etc.
13134         (_GL_ATTRIBUTE_FORMAT): New macro.
13135         These are needed to get './gnulib-tool --test parse-datetime' to work.
13137 2017-04-23  Bruno Haible  <bruno@clisp.org>
13139         nap.h: Port to native Windows.
13140         * tests/nap.h (nap_get_stat): Renamed from get_stat. Remove argument fd;
13141         use nap_fd instead. On native Windows, close and reopen nap_fd.
13142         (nap_works): Don't compare the ctimes, because on native Windows, these
13143         are the creation times.
13144         (nap): Update.
13146 2017-04-23  Bruno Haible  <bruno@clisp.org>
13148         nap.h: Fix logic.
13149         * tests/nap.h (nap): Avoid signed integer overflow in loop.
13151 2017-04-23  Bruno Haible  <bruno@clisp.org>
13153         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
13154         * modules/strerror_r-posix (configure.ac): Invoke gl_MODULE_INDICATOR.
13155         * lib/error.c: Test GNULIB_STRERROR_R_POSIX before testing
13156         HAVE_DECL_STRERROR_R, HAVE_STRERROR_R, or STRERROR_R_CHAR_P.
13157         * lib/argp-help.c (__argp_failure): Likewise.
13159 2017-04-23  Bruno Haible  <bruno@clisp.org>
13161         strerror_r-posix: Revert commits from 2016-10-16,2016-11-04,2016-11-14.
13162         * m4/strerror_r.m4: Revert changes since 2016-10-16.
13163         * lib/strerror_r.c: Likewise.
13165 2017-04-23  Paul Eggert  <eggert@cs.ucla.edu>
13167         Target a C99 subset, not a C89 subset
13168         For many years Gnulib has targeted C89 and has resisted using C99
13169         features, as some Gnulib-using programs still wanted to target
13170         C89.  As this no longer seems to be the case, relax the porting
13171         requirements to allow some C99 features.  This is merely a change
13172         to the documentation, to give other Gnulib developers a chance to
13173         weigh in on the topic.
13174         * doc/extern-inline.texi (extern inline):
13175         * doc/gnulib-readme.texi (Portability guidelines):
13176         * doc/gnulib-tool.texi (Initial import):
13177         * doc/gnulib.texi (Header files):
13178         Modernize to talk about C99 and C11 instead of C89 and C99.
13179         * doc/gnulib-readme.texi (Portability guidelines):
13180         Now a section, not merely a subsection, so that it
13181         can be split up.  Modernize a bit.
13182         (C language versions, C99 features assumed)
13183         (C99 features avoided):
13184         New sections.
13186 2017-04-23  Bruno Haible  <bruno@clisp.org>
13188         doc: New section "Modules that modify the way other modules work".
13189         * doc/gnulib.texi (Modules that modify the way other modules work): New
13190         section.
13192 2017-04-23  Bruno Haible  <bruno@clisp.org>
13194         stat-time: Update comments.
13195         * lib/stat-time.h: Fix reference regarding st_ctime on Windows.
13196         * tests/test-utimens-common.h: Add reference regarding st_ctime on
13197         Windows.
13199 2017-04-01  Bruno Haible  <bruno@clisp.org>
13201         glob: Fix more memory leaks.
13202         * lib/glob.c (glob): Free allocated memory before returning.
13203         Reported by Coverity via Tim Rühsen.
13205 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
13207         poll: improve fast check for out-of-range NFD
13208         * lib/poll.c: Do not include intprops.h.
13209         (poll): Compare NFD to INT_MAX, not to TYPE_MAXIMUM (nfds_t) / 2.
13210         * modules/poll (Depends-on): Remove intprops.
13212         ftoastr: cite a newer paper
13213         * lib/ftoastr.c (FTOASTR): In comment, cite Andrysco et al. 2016
13214         instead of Loitsch 2010.
13216 2017-04-22  Bruno Haible  <bruno@clisp.org>
13218         poll: Enable argument check also in the Windows implementation.
13219         * lib/poll.c (poll) [WINDOWS_NATIVE]: Check value of nfd correctly.
13220         Reported by Paul Eggert.
13222 2017-04-22  Bruno Haible  <bruno@clisp.org>
13224         getlogin_r: Work around bug in Mac OS X 10.12.
13225         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test also against the Mac OS X
13226         bug.
13227         * lib/getlogin_r.c (getlogin_r): When getlogin_r returns a string of the
13228         given size minus 1, call getlogin_r a second time, on a larger buffer.
13229         * modules/getlogin_r (Depends-on): Add malloca.
13230         * doc/posix-functions/getlogin_r.texi: Mention the Mac OS X bug.
13232 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
13234         parse-datetime: fix %z and prefer signed int
13235         %z problem reported by Pádraig Brady in:
13236         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00103.html
13237         While fixing it, I decided to prefer signed ints to size_t, as
13238         they are less error-prone (e.g., ubsan catches overflow).
13239         * lib/parse-datetime.y (textint, parser_control, lookup_word, yylex)
13240         (parse_datetime2): Prefer ptrdiff_t to size_t for sizes and object
13241         counts, since signed integers make for better debugging.
13242         (date): Don’t assume %z works in printf formats.
13243         (debug_strfdatetime, debug_strfdate, debug_strftime): Use int for
13244         sizes of buffers known to be small, e.g., because we’re using snprintf.
13245         (parse_datetime2): Simplify call to debug_mktime_not_ok.
13247 2017-04-22  Bruno Haible  <bruno@clisp.org>
13249         *printf: Work around rounding bug on Mac OS X.
13250         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Test for Mac OS X 10.12 bug.
13251         * doc/posix-functions/*printf.texi: Mention the rounding bugs of
13252         Mac OS X and FreeBSD.
13253         * doc/glibc-functions/*printf.texi: Likewise.
13255 2017-04-22  Bruno Haible  <bruno@clisp.org>
13257         vasnprintf tests: Avoid warnings.
13258         * tests/test-vasnprintf-posix3.c (test_function, my_asnprintf,
13259         test_vasnprintf, test_asnprintf): Don't define if there's nothing to
13260         test.
13262 2017-04-22  Bruno Haible  <bruno@clisp.org>
13264         sys_file tests: Avoid warning.
13265         * tests/test-sys_file.c (main): Add a default clause to the switch
13266         statement.
13268 2017-04-22  Bruno Haible  <bruno@clisp.org>
13270         sethostname: Update doc.
13271         * doc/glibc-functions/sethostname.texi: Mention differing prototype on
13272         Mac OS X.
13274 2017-04-22  Bruno Haible  <bruno@clisp.org>
13276         quotearg tests: Avoid warnings.
13277         * tests/test-quotearg.c: Don't include test-quotearg.h if ENABLE_NLS is
13278         false.
13280 2017-04-22  Bruno Haible  <bruno@clisp.org>
13282         poll: Enable argument check.
13283         * lib/poll.c: Include intprops.h.
13284         (poll): Check value of nfd correctly.
13285         * modules/poll (Depends-on): Add intprops.
13287 2017-04-22  Bruno Haible  <bruno@clisp.org>
13289         get-rusage-data: Avoid warnings on Mac OS X.
13290         * lib/get-rusage-data.c: On Mac OS X, don't define
13291         get_rusage_data_via_setrlimit nor get_rusage_data_via_iterator.
13292         (get_rusage_data) [Mac OS X]: Just return 0.
13294 2017-04-22  Bruno Haible  <bruno@clisp.org>
13296         xbinary-io: Fix build error.
13297         * modules/xbinary-io (Depends-on): Add gettext-h.
13298         * lib/xbinary-io.c: Include gettext.h and define _().
13299         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
13300         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00089.html>.
13302 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
13304         parse-datetime: overflow and debug cleanups
13305         This long patch was triggered by this bug report from Ruediger Meier:
13306         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00028.html
13307         I fixed the bug he noted, then found some others nearby, and then
13308         still others.  Oh my goodness, there were a lot of bugs.  I cleaned
13309         up some of the code to follow GNU standards while I was at it.
13310         * lib/parse-datetime.y (ISDIGIT): Remove; all callers changed to
13311         use c_isdigit.
13312         (EPOCH_YEAR): Remove; unused.
13313         (TM_YEAR_BASE): Now an enum rather than a macro.
13314         (HOUR, debug_strfdatetime): Multiply hour by 3600, not 60, to get
13315         time zone offset, since timezones now are in terms of seconds and
13316         not minutes.
13317         (long_time_t): Remove.  All uses replaced by time_t or intmax_t as
13318         appropriate.  Verify that intmax_t is wide enough.
13319         (time_overflow, time_zone_str): New functions, used to deal
13320         more reliably with overflow.
13321         (dbg_printf): Add printf attribute, to help catch integer width errors.
13322         (textint, relative_time, parser_control, time_zone_hhmm, set_hhmmss)
13323         (%union, to_hour, yylex, parse_datetime2):
13324         Use intmax_t instead of long int and/or long_time_t.
13325         All uses changed.
13326         (DBGBUFSIZE): Move earlier.
13327         (relative_time, set_hhmmss, parser_control):
13328         Just use int for nanoseconds and for time zones; that’s wide enough.
13329         (parser_control): Use bool for members like year_seen that can
13330         be booleans instead of counters.  All uses changed.
13331         Remove debug_default_input_timezone; no longer needed.
13332         All uses removed.
13333         (apply_relative_time): Return a bool overflow flag.
13334         All uses changed to check for overflow.
13335         (apply_relative_time, zone, date, relunit, relunit_snumber)
13336         (signed_seconds, unsigned_seconds, yylex, parse_datetime2):
13337         Check for integer overflow portably.
13338         (str_days): Use just int for N, as it’s wide enough.
13339         Prefer 2D char arrays to arrays of char * when it looks like
13340         2D is a win on typical platforms.
13341         Prefer snprintf to strncpy/strncat, for simplicity;
13342         all buffers are smaller than INT_MAX so this is safe.
13343         (TIME_ZONE_BUFSiZE, TM_YEAR_BUFSIZE): New constants.
13344         (debug_print_current_time): Don’t assume tv_nsec is of type long,
13345         as this is not true on x32.  Output "." before any nanoseconds.
13346         (debug_print_current_time, parse_datetime2):
13347         Output local zones using a more-consistent format.
13348         (debug_print_current_time, date, parse_datetime2):
13349         (main) [TEST]:
13350         Don’t assume time_t is the same width as long.
13351         (print_rel_part): New function, replacing ...
13352         (PRINT_REL_PART): ... this macro, which was removed.  All uses changed.
13353         (debug_print_relative_time): Use bool for boolean.
13354         (local_zone): dsts_seen now counts only tDST instances.
13355         (date): Fix printf of size_t to use %z.  Do not assume numeric
13356         tokens have negative values merely because the context suggests
13357         a syntax with "-" separating tokens.
13358         (time_zone_hhmm): Return bool success indicator, which checks for
13359         overflow.  Store result into PC->time_zone instead.  All callers
13360         changed.
13361         (tm_year_str): New function.  Return a bool success indicator and
13362         store the result into a buffer.  All callers changed.  Output the
13363         numerically correct string even if adding 1900 to the year would
13364         overflow.
13365         (to_tm_year): New function, replacing the old to_year.  All
13366         callers changed.
13367         (tm_diff): Sync with glibc.
13368         (lookup_word): Use to_uchar instead of doing it by hand.
13369         (TZBUFSIZE): Now local to the only function that needs it.
13370         (debug_strfdatetime): Simplify now that time zones are int seconds.
13371         (debug_strfdate): Work even if tm_year + 1900 would overflow.
13372         (get_effective_timezone): Remove.  All uses removed.
13373         (parse_datetime2): Use fprintf in pieces instead of snprintfing
13374         to a fixed-size buffer.  Don’t assume that gmtime succeeds iff
13375         localtime succeeds.  Use tm_gmtoff if available.  Simplify how
13376         ‘goto fail;’ works in conjunction with the ‘ok’ flag.
13377         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Don’t define
13378         TIME_T_FITS_IN_LONG_INT, as it is no longer needed.
13379         * modules/parse-datetime (Depends-on): Add inttypes.
13381 2017-04-21  Bruno Haible  <bruno@clisp.org>
13383         gettext-h: Avoid -Wundef warning.
13384         * lib/gettext.h: Test the value of ENABLE_NLS only if it is defined.
13385         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
13386         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00022.html>.
13388 2017-04-05  Tim Rühsen  <tim.ruehsen@gmx.de>
13390         error: Avoid "function declaration isn't a prototype" warning.
13391         * lib/error.c (strerror_r): Turn K&R C prototype to an ANSI C prototype.
13393 2017-04-21  Bruno Haible  <bruno@clisp.org>
13395         vasnprintf: Fix for MSVC 14.
13396         * lib/vasnprintf.c (USE_MSVC__SNPRINTF): New macro.
13397         Everywhere, use !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF instead
13398         of !HAVE_SNPRINTF_RETVAL_C99.
13400 2017-04-21  Bruno Haible  <bruno@clisp.org>
13402         mbrtowc tests: Fix test failures on MSVC 14.
13403         * tests/test-mbrtowc-w32.c (test_one_locale): Accept MSVC's conversion
13404         behaviour for invalid input.
13406 2017-04-21  Bruno Haible  <bruno@clisp.org>
13408         mbsinit: Fix for MSVC 14.
13409         * lib/mbsinit.c (mbsinit): If GNULIB_defined_mbstate_t, provide an
13410         implementation that is in sync with mbrtowc.c. On other platforms, use
13411         an adequate ad-hoc implementation.
13413 2017-04-21  Bruno Haible  <bruno@clisp.org>
13415         Fix test-mbrtowc5.sh failure on native Windows.
13416         * lib/setlocale.c (setlocale_unixlike): Accept "POSIX" as an alias for
13417         "C".
13419 2017-04-21  Bruno Haible  <bruno@clisp.org>
13421         Avoid accidental use of native Windows APIs on Cygwin.
13422         * lib/getaddrinfo.c (WINDOWS_NATIVE): Don't define on Cygwin.
13423         * lib/localcharset.c (WINDOWS_NATIVE): Likewise.
13424         * lib/localename.c (WINDOWS_NATIVE): Likewise.
13426 2017-04-20  Bruno Haible  <bruno@clisp.org>
13428         Remove red warnings from the generated MODULES.html.
13429         * modules/fcntl (Description): Disambiguate function references.
13430         * modules/getcwd-lgpl (Description): Likewise.
13431         * modules/hostent (Description): Likewise.
13432         * modules/servent (Description): Likewise.
13433         * modules/tempname (Description): Likewise.
13435 2017-04-20  Bruno Haible  <bruno@clisp.org>
13437         verify tests: Fix spurious failure with parallel make.
13438         * gnulib-tool (func_emit_tests_Makefile_am): Emit initialization of
13439         EXTRA_PROGRAMS.
13440         * tests/test-verify.sh: Build test-verify-try.o, not test-verify.o.
13441         * tests/test-verify-try.c: New file.
13442         * modules/verify-tests (Files): Add it.
13443         (EXTRA_PROGRAMS): Add test-verify-try.
13444         (MOSTLYCLEANFILES): Update accordingly.
13445         Reported by Adam James Stewart <ajstewart@anl.gov>.
13447 2017-04-18  Bruno Haible  <bruno@clisp.org>
13449         vma-iter: Fix compilation error on Solaris 7.
13450         * lib/vma-iter.c (vma_iterate): Treat missing MAP_ANONYMOUS on Solaris
13451         like on IRIX, OSF/1.
13452         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13454 2017-04-18  Bruno Haible  <bruno@clisp.org>
13456         vma-iter: Fix conflict with module 'largefile' on 32-bit Solaris 9.
13457         * modules/vma-iter (configure.ac): Test whether <sys/procfs.h> can be
13458         included.
13459         * lib/vma-iter.c: On Solaris, test HAVE_SYS_PROCFS_H before including
13460         <sys/procfs.h>.
13461         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't define on Solaris when
13462         <sys/procfs.h> cannot be included.
13463         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13465 2017-04-18  Bruno Haible  <bruno@clisp.org>
13467         getopt-gnu: Add comments.
13468         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Add comments.
13469         * modules/getopt-gnu (configure.ac): Likewise.
13471 2017-04-16  Paul Eggert  <eggert@cs.ucla.edu>
13473         regex: port better to Solaris 10
13474         Solaris 10 <locale.h> includes <libintl.h>, which #defines
13475         gettext, and this causes a double #define.
13476         Problem reported by Gavin Smith in:
13477         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00056.html
13478         * lib/regex_internal.h (gettext): #undef before #defining.
13480 2017-04-15  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
13482         intprops: improve comments
13483         * lib/intprops.h: Improve and shorten commentary.
13484         For the record, if we ever run into a pedantic compiler that
13485         behaves differently from GCC when converting an out-of-range value
13486         to a signed integer, we can work around the problem with something
13487         like the following code, where UCT is the signed counterpart of T
13488         (UCT is sometimes narrower than UT) and all callers are changed
13489         accordingly:
13490         #if __SUNPRO_C <= 0x5120
13491         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
13492            ((t) ((ut) (a) op (ut) (b)))
13493         #else
13494         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
13495            (TYPE_MINIMUM (t) <= (uct) ((ut) (a) op (ut) (b)) \
13496             ? ((t) (uct) (((ut) (a) op (ut) (b)) - TYPE_MINIMUM (t)) \
13497                + TYPE_MINIMUM (t)) \
13498             : (t) (uct) ((ut) (a) op (ut) (b)))
13499         #endif
13501 2017-04-14  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
13503         intprops: try to avoid tickling similar bugs
13504         * lib/intprops.h (_GL_INT_OP_CALC): Document that UT no longer
13505         needs to be the same width as T; it can be wider.
13506         Change callers so that UT is at least as wide as unsigned int,
13507         as I suspect that this is less likely to run into compiler bugs.
13509         intprops: port to Oracle Studio 12.3 x86
13510         Problem reported by Gavin Smith in:
13511         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00049.html
13512         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
13513         Convert unsigned to signed via the usual rather than the standard way,
13514         to avoid a compiler bug in Oracle Studio 12.3 x86.
13516 2017-04-08  Paul Eggert  <eggert@cs.ucla.edu>
13518         getopt: prefer - to _ in new file names
13519         * lib/getopt-cdefs.in.h: Rename from lib/getopt_cdefs.in.h.
13520         * lib/getopt-core.h: Rename from lib/getopt_core.h.
13521         * lib/getopt-ext.h: Rename from lib/getopt_ext.h.
13522         * lib/getopt-pfx-core.h: Rename from lib/getopt_pfx_core.h.
13523         * lib/getopt-pfx-ext.h: Rename from lib/getopt_pfx_ext.h.
13524         All uses changed.
13526         getopt: port recent getopt changes to macOS
13527         Problem reported by Harald Maier (Bug#26398).
13528         The macOS C compiler uses __nonnull for its own purposes and that
13529         clashes with glibc's __nonnull.
13530         * lib/getopt.in.h: Add comment for _GL_ARG_NONNULL snippet.
13531         * lib/getopt_cdefs.in.h (__nonnull): Remove.
13532         * lib/getopt_core.h (getopt):
13533         * lib/getopt_ext.h (getopt_long, getopt_long_only):
13534         Use _GL_ARG_NONNULL, not __nonnull.
13535         * lib/unistd.in.h: Move snippet hooks to before where the getopt
13536         .h files are included, so that _GL_ARG_NONNULL is defined in time.
13537         * modules/getopt-posix (Depends-on): Add snippet/arg-nonnull.
13538         (getopt.h): Interpolate _GL_ARG_NONNULL snippet.
13540 2017-04-06  Paul Eggert  <eggert@cs.ucla.edu>
13542         getopt-gnu: omit some duplicate code
13543         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Don’t require
13544         gl_FUNC_GETOPT_POSIX, as the configure.ac code generated by
13545         gnulib-tool already does this.
13546         * modules/getopt-gnu (configure.ac): Omit code duplicated from
13547         getopt-posix, which we depend on.
13549         getopt-posix: use angle-bracket include
13550         * lib/getopt1.c: Include <config.h>, not "config.h".
13552 2017-04-06  Zack Weinberg  <zackw@panix.com>
13554         getopt: annotate files with relationship to glibc
13556         As the final act in this patchset, adjust the message at the top of
13557         each file to indicate which files are synced with glibc.  (This has
13558         already been done for most of the headers.)
13560         * lib/getopt.c, lib/getopt1.c, lib/getopt_int.h:
13561         Mention in top-of-file boilerplate that these files are shared
13562         between glibc and gnulib.
13565         getopt: split up getopt.in.h and eliminate __need_getopt
13567         Over in glibc, all of the __need macros are being phased out in favor
13568         of small headers that declare only the necessary components, as this
13569         is much simpler and less prone to bugs.  As getopt is shared with
13570         glibc, gnulib needs to do the same for __need_getopt.
13572         __need_getopt is misnamed; what it really means is "we want only the
13573         getopt features specified in POSIX, not the GNU extensions".  glibc
13574         placed the "meat" of getopt.h into getopt_core.h and getopt_ext.h;
13575         these files can be shared verbatim with gnulib.  The portability
13576         wrapper, on the other hand, they have renounced altogether; glibc's
13577         getopt.h will no longer be shared with gnulib at all.  In exchange,
13578         certain glibc-specific quirks (having to do with __posix_getopt) no
13579         longer need appear in gnulib's headers at all.
13581         This patch merges getopt_core.h and getopt_ext.h from glibc, and
13582         splits up the current gnulib-side portability wrapper into three
13583         additional headers: getopt_pfx_core.h and getopt_pfx_ext.h handle
13584         __GETOPT_PREFIX for their respective headers, getopt_cdefs.in.h
13585         handles things like __BEGIN_DECLS and __THROW, and getopt.in.h and
13586         unistd.in.h just use them.  All new files are clearly marked with
13587         whether they are shared with glibc.
13589         * lib/getopt.in.h: Eliminate __need_getopt.  Break up into ...
13590         * lib/getopt_core.h, lib/getopt_ext.h: ... these new files shared
13591         with glibc, and ...
13592         * lib/getopt_cdefs.in.h, lib/getopt_pfx_core.h
13593         * lib/getopt_pfx_ext.h: ... these new files not shared with glibc.
13594         * lib/unistd.in.h: Include getopt_cdefs.h and getopt_pfx_core.h,
13595         instead of defining __need_getopt and including the full getopt.h.
13597         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): Check for sys/cdefs.h.
13598         Define substitution variables GETOPT_CDEFS_H and HAVE_SYS_CDEFS_H.
13599         * modules/getopt-posix (Files): Add new headers and sort list.
13600         (Depends-on): No longer need snippet/arg-nonnull.
13601         (Makefile.am): Generate getopt_cdefs.h.
13604         getopt: better handling of ambiguous options
13606         glibc's getopt uses alloca to construct a linked list of possibilities
13607         for an "ambiguous" long option.  In gnulib, malloc should be used
13608         instead.  Providing for both cases complicates things a fair bit.
13610         This patch rewrites ambiguous-option handling to use a boolean vector
13611         instead of a linked list.  There is then only one allocation that
13612         might need freeing; in glibc it can honor __libc_use_alloca as usual,
13613         and in gnulib we define __libc_use_alloca to always be false, so we
13614         don't need ifdefs in the middle of the function.  This should also be
13615         slightly more efficient in the normal case of long options being fully
13616         spelled out -- I think most people aren't even aware they _can_
13617         sometimes abbreviate long options.
13619         One interesting consequence is that the list of possibilities is now
13620         printed in exactly the order they appear in the list of long options,
13621         instead of the first possibility being shuffled to the end.
13623         (The patch looks bigger than it really is because there's a fair bit
13624         of reindentation and code rearrangement.)
13626         * lib/getopt.c: When used standalone, define __libc_use_alloca
13627         as always false and alloca to abort if called.
13628         (process_long_option): Rewrite handling of ambiguous long options
13629         to use a single boolean vector, not a linked list; use
13630         __libc_use_alloca to decide whether to allocate this using alloca.
13633         getopt: refactor long-option handling
13635         There were two copies of the bulk of the code to handle long options.
13636         Now there is only one.
13638         This change temporarily removes the logic to avoid using alloca when
13639         standalone; the next patch in the series will restore it.
13641         * lib/getopt.c (process_long_option): New function split out
13642         from _getopt_internal_r.
13643         (_getopt_internal_r): Replace both copies of the long-option
13644         processing code with calls to process_long_option.
13647         getopt: tidy up _getopt_initialize a bit
13649         _getopt_data.__posixly_correct is completely redundant to
13650         _getopt_data.__ordering, and some work that logically belongs in
13651         _getopt_initialize was being done by _getopt_internal_r, making the
13652         code harder to understand.
13654         As a side effect, getenv will no longer be called if the first
13655         character of the options string is '+' or '-', which is probably a
13656         Good Thing.  (Perhaps we should have a flag character that
13657         specifically asks for the permutation behavior?)
13659         * lib/getopt_int.h (_getopt_data): Remove __posixly_correct field.
13660         * lib/getopt.c (_getopt_internal_r): Move some initialization code...
13661         (_getopt_initialize): ...here. Don't set d->__posixly_correct.
13664         getopt: merge from glibc: repetition reduction
13666         The definitions of the entry point functions 'getopt' and
13667         '__posix_getopt' can be made substantially less repetitive with a
13668         helper macro.
13670         While I was merging the const-correctness changes from gnulib into
13671         glibc I noticed there are still some unnecessary casts in
13672         _getopt_internal_r.
13674         * lib/getopt.c (getopt, __posix_getopt): Eliminate repetition with
13675         a macro.  Consistently cast 'argv' to 'char **' when calling
13676         _getopt_internal.
13677         (_getopt_internal_r): Remove unnecessary casts when calling exchange.
13680         getopt: clean up error reporting
13682         getopt can print a whole bunch of error messages, and when used
13683         standalone (from gnulib) it uses fprintf to do that.  But fprintf is a
13684         cancellation point and getopt isn't, and also applying fprintf to a
13685         stream in wide-character mode is not allowed.  So every single error
13686         reporting case has an #ifdef _LIBC block in which it calls internal
13687         libc functions instead.  The counterpart patch series in glibc makes
13688         it possible to simplify all of that down to a set of #defines at the
13689         top of the file; core code is written as if it is safe to just call
13690         fprintf, flockfile, and funlockfile.  (One caveat: it's *not* safe to
13691         call any *other* stdio functions.)
13693         * lib/getopt.c: When _LIBC is defined, define fprintf to
13694         __fxprintf_nocancel, flockfile to _IO_flockfile, and funlockfile
13695         to _IO_funlockfile.  When neither _LIBC nor
13696         _POSIX_THREAD_SAFE_FUNCTIONS is defined, define flockfile and
13697         funlockfile as no-ops.
13698         (_getopt_internal_r): Remove all internal #ifdef _LIBC blocks; the
13699         standalone error-printing code can now be used for libc as well.
13700         Add an flockfile/funlockfile pair around one case where the error
13701         message is printed in several chunks.  Don't use fputc.
13704         getopt: fix fencepost error in ambiguous-W-option handling
13706         getopt_long contains an undocumented (AFAICT) feature in which, if you
13707         put "W;" in the short-options list, then '-W foo' and '-Wfoo' are
13708         treated as equivalent to '--foo'.  This is implemented with a partial
13709         second copy of the code for handling long options, and that code
13710         increments optind one too many times when recovering from an ambiguous
13711         abbreviated option, which can cause the main loop to walk past the end
13712         of argv and crash.
13714         I discovered this while writing a test case that tries to exercise all
13715         of getopt's error reporting paths; I wouldn't be surprised to learn
13716         that this feature is never used by real applications.
13718         * lib/getopt.c (_getopt_internal_r): Don't increment
13719         d->optind a second time when reporting ambiguous -W options.
13722         getopt: clean up getopt.c and getopt1.c file headers
13724         In getopt.c, there is no need to include wchar.h at all, and it is
13725         safe nowadays to assume that stdlib.h does declare getenv (several
13726         other gnulib modules make this assumption).
13728         In getopt1.c, the #ifdef _LIBC block at the top can be simplified
13729         by using "" inclusions consistently, and there is no actual need to
13730         include stdlib.h (except in the #ifdef TEST block, where it should be
13731         unconditional), nor to provide a backup definition of NULL at all.
13733         * lib/getopt1.c: Simplify #ifdeffage at top of file.
13734         Move inclusion of stdlib.h to #ifdef TEST block and make
13735         unconditional.  Do not define NULL.
13736         * lib/getopt.c: Don't include wchar.h. No need to declare getenv.
13737         * m4/getopt.m4 (gl_PREREQ_GETENV): Delete.
13738         * modules/getopt-gnu, modules/getopt-posix: Don't call
13739         gl_PREREQ_GETENV.
13742         getopt: harmonize comments with glibc
13744         The comments explaining how the behavior of 'getopt' varies depending
13745         on whether it's the standalone version and whether there are special
13746         characters at the beginning of the options string were inconsistent
13747         between gnulib and glibc, and also out of sync with the code.
13749         * lib/getopt.c, lib/getopt_int.h: Harmonize comments with glibc.
13752         getopt: remove USE_NONOPTION_FLAGS
13754         getopt includes code to parse an environment variable named
13755         _XXX_GNU_nonoption_argv_flags_ (where XXX is the current process's PID
13756         in decimal); but all of it has been #ifdefed out since 2001, with no
13757         official way to turn it back on.
13759         According to commentary in glibc's config.h.in, bash version 2.0
13760         set this environment variable to indicate argv elements that were
13761         the result of glob expansion and therefore should not be treated
13762         as options, but the feature was "disabled later" because "it
13763         caused problems".  According to bash's CHANGES file, "later" was
13764         release 2.01; it gives no more detail about what the problems
13765         were.
13767         Version 2.0 of bash was released on the last day of 1996, and version
13768         2.01 in June of 1997.  Twenty years later, I think it is safe to
13769         assume that this environment variable isn't coming back.
13771         * lib/getopt_int.h: Remove all #ifdef USE_NONOPTION_FLAGS blocks.
13772         * lib/getopt.c: Likewise. Also remove SWAP_FLAGS and the
13773         __libc_argc and __libc_argv externs, which were only used by
13774         #ifdef USE_NONOPTION_FLAGS blocks.
13777         getopt: tabify, in preparation for merge with glibc
13779         glibc sticks to the GNU default of indenting with a mix of
13780         8-column tabs and spaces; make the gnulib copy match.
13782         getopt.h is not included because it is *not* going to be merged in its
13783         present form.
13785         * getopt.c, getopt1.c, getopt_int.h: Tabify.
13787 2017-04-02  Bruno Haible  <bruno@clisp.org>
13789         relocatable-lib-lgpl: Fix link error (regression from 2011-06-16).
13790         * modules/relocatable-lib-lgpl (configure.ac): Add AC_LIBOBJ invocation,
13791         like it was done in modules/relocatable-lib on 2011-05-21 and in
13792         modules/relocatable-prog on 2011-08-15.
13793         Reported by Reuben Thomas <rrt@sc3d.org>.
13795 2017-03-31  Bruno Haible  <bruno@clisp.org>
13797         glob: Fix invalid free() call.
13798         * lib/glob.c (glob): Reset malloc_home_dir when assigning a pointer to
13799         static storage to home_dir.
13800         Reported by Coverity via Tim Rühsen.
13802 2017-03-31  Bruno Haible  <bruno@clisp.org>
13804         glob: Fix memory leaks.
13805         * lib/glob.c (glob): Free allocated memory before returning.
13806         Reported by Coverity via Tim Rühsen.
13808 2017-03-31  Bruno Haible  <bruno@clisp.org>
13810         md5, sha1, sha256, sha512: Add comments regarding correctness.
13811         * lib/md5.h (buflen): Add comments regarding range.
13812         * lib/sha1.h (buflen): Likewise.
13813         * lib/sha256.h (buflen): Likewise.
13814         * lib/sha512.h (buflen): Likewise.
13815         * lib/md5.c (md5_process_bytes): Add comment why memmove is not needed.
13816         * lib/sha1.c (sha1_process_bytes): Likewise.
13817         * lib/sha256.c (sha256_process_bytes): Likewise.
13818         * lib/sha512.c (sha512_process_bytes): Likewise.
13819         Reported by Coverity via Tim Rühsen.
13821 2017-03-22  Paul Eggert  <eggert@cs.ucla.edu>
13823         getopt: merge from glibc
13824         This does not change anything substantial; it merely simplifies
13825         hypothetical merges back to glibc.
13826         * lib/getopt.c, lib/getopt.in.h, lib/getopt1.c, lib/getopt_int.h:
13827         Change copyright notice to match what is in glibc.
13828         * lib/getopt.c: Reorder includes to match glibc.  Remove uses of
13829         USE_IN_LIBIO.  Remove 'register'.  In __LIBC code, use
13830         __open_memstream rather than open_memstream and __glibc_likely
13831         instead of __builtin_expect.
13832         * lib/getopt.in.h (__posix_getopt) [!__GETOPT_PREFIX]: New decl.
13834 2017-03-21  Paul Eggert  <eggert@cs.ucla.edu>
13836         dfa: make [0-9] faster in non-C locales
13837         Problem reported by John P. Linderman (Bug#26193).
13838         * lib/dfa.c (parse_bracket_exp): Remove redundant assignment.
13839         If both ends of the range are ASCII digits, do not worry about
13840         multi-character collating sequences and the like.  Be consistent
13841         about using isalpha as a precondition for setbit_case_fold_c.
13843 2017-03-19  Bruno Haible  <bruno@clisp.org>
13845         lock: Fix compilation error with HP-UX IA64 cc.
13846         * lib/glthread/lock.h (pthread_rwlockattr_setkind_np): Don't declare
13847         weak on non-glibc platforms.
13849 2017-03-19  Paul Eggert  <eggert@cs.ucla.edu>
13851         stdalign: tweak version# and test for HP-UX IA64
13852         Problems reported by Bruno Haible in:
13853         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00078.html
13854         * lib/stdalign.in.h (_Alignas):
13855         * m4/stdalign.m4 (gl_STDALIGN_H):
13856         Use octal, not decimal, for __HP_cc version.  Perhaps HP formerly
13857         used octal (as that is how they document it), but it is decimal in
13858         practice now and the ancient implementations no longer matter.
13859         * tests/test-stdalign.c (main) [__HP_cc && __ia64]: Skip test.
13861 2017-03-19  Bruno Haible  <bruno@clisp.org>
13863         vma-iter: Add support for Solaris.
13864         * lib/vma-iter.c (vma_iterate): On Solaris, use the /proc filesystem
13865         approach.
13866         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on Solaris.
13867         * lib/get-rusage-as.c: Update comment about Solaris.
13868         * lib/get-rusage-data.c: Likewise.
13870 2017-03-19  Bruno Haible  <bruno@clisp.org>
13872         vma-iter: Prefer HP-UX specific API on HP-UX.
13873         * lib/vma-iter.c (vma_iterate): Move HP-UX specific implementation up.
13874         * lib/vma-iter.h: Update.
13875         Just in case HP-UX ever implements mquery().
13877 2017-03-18  Paul Eggert  <eggert@cs.ucla.edu>
13879         stdalign: restore previous behavior for HP-UX IA64
13880         See Bruno Haible's email in:
13881         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
13882         which cites p 150 of a manual saying that 'aligned' works on Itanium.
13883         * lib/stdalign.in.h (_Alignas):
13884         Assume the '061200' applies to Itanium, not to PA-RISC.
13885         * m4/stdalign.m4 (gl_STDALIGN_H): Adjust to match stdalign.in.h.
13887 2017-03-17  Bruno Haible  <bruno@clisp.org>
13889         stat-time, timespec: Support use of the header files in C++ mode.
13890         * lib/stat-time.h: Add "C" linkage declaration.
13891         * lib/timespec.h: Likewise.
13893 2017-03-17  Bruno Haible  <bruno@clisp.org>
13895         stdalign: Make it work with HP-UX cc.
13896         * lib/stdalign.in.h (_Alignas): Don't define for HP-UX cc.
13897         * m4/stdalign.m4 (gl_STDALIGN_H): No need to enable the extra test
13898         for HP-UX cc.
13900 2017-03-17  Paul Eggert  <eggert@cs.ucla.edu>
13902         flexmember: try to detect HP-UX 11.31 cc bug
13903         Problem reported by Bruno Haible in:
13904         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
13905         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
13906         Attempt to detect bug in HP-UX 11.31 cc.
13908 2017-03-16  Bruno Haible  <bruno@clisp.org>
13910         stdint: Fix test compilation failure with HP-UX 11 cc.
13911         * lib/stdint.in.h (_STDINT_MIN): Remove macro.
13912         (_STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN): New macros.
13913         (PTRDIFF_MIN, SIG_ATOMIC_MIN, WCHAR_MIN, WINT_MIN): Define using
13914         _STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN.
13916 2017-03-14  Bruno Haible  <bruno@clisp.org>
13918         gnulib-tool: Don't produce a tests directory with only snippet .h files.
13919         * gnulib-tool (func_modules_transitive_closure_separately): If
13920         testsrelated_modules ends up with no "real" modules, aside from
13921         modules with applicability 'all', set it to empty.
13923 2017-03-14  Bruno Haible  <bruno@clisp.org>
13925         vma-iter: Add support for HP-UX.
13926         * modules/vma-iter (configure.ac): Check for 'pstat_getprocvm'.
13927         * lib/vma-iter.c (vma_iterate): On HP-UX, use pstat_getprocvm().
13928         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on HP-UX.
13929         * lib/get-rusage-as.c: Update comment about HP-UX.
13930         * lib/get-rusage-data.c: Likewise.
13931         (get_rusage_data): Use get_rusage_data_via_setrlimit.
13933 2017-03-14  Bruno Haible  <bruno@clisp.org>
13935         limits-h: Make it work with HP-UX cc.
13936         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define if not
13937         defined.
13939 2017-03-14  Bruno Haible  <bruno@clisp.org>
13941         Fix test failures on DragonFlyBSD.
13942         * tests/test-localeconv.c (main): Treat DragonFlyBSD like FreeBSD.
13943         * tests/test-select.h (test_bad_fd): Likewise.
13944         * tests/test-get-rusage-data.c (main): Treat DragonFlyBSD like OpenBSD.
13946 2017-03-14  Bruno Haible  <bruno@clisp.org>
13948         freadahead: Silence warning on DragonFlyBSD.
13949         * lib/freadahead.c (__sreadahead): Declare ourselves.
13951 2017-03-14  Bruno Haible  <bruno@clisp.org>
13953         vma-iter: Add comment about AIX.
13954         * lib/vma-iter.c: Add comment about why this module is not implemented
13955         on AIX.
13957 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
13959         snippets: move unadjusted snippet sources to lib
13960         Problem reported by Michal Privoznik in:
13961         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00039.html
13962         * lib/_Noreturn.h: Rename from build-aux/snippet/_Noreturn.h.
13963         * lib/arg-nonnull.h: Rename from build-aux/snippet/arg-nonnull.h.
13964         * lib/c++defs.h: Rename from build-aux/snippet/c++defs.h.
13965         * lib/unused-parameter.h: Rename from
13966         build-aux/snippet/unused-parameter.h.
13967         * lib/warn-on-use.h: Rename from build-aux/snippet/warn-on-use.h.
13968         * modules/snippet/_Noreturn (Files:, _NORETURN_H):
13969         * modules/snippet/arg-nonnull (Files:, ARG_NONNULL_H):
13970         * modules/snippet/c++defs (Files:, CXXDEFS_H):
13971         * modules/snippet/unused-parameter (Files:, UNUSED_PARAMETER_H):
13972         * modules/snippet/warn-on-use (Files: WARN_ON_USE_H):
13973         Adjust to file renamings.
13975 2017-03-14  Mathieu Lirzin  <mthl@gnu.org>
13977         gnulib-tool: don't automatically distribute files from top/
13978         * gnulib-tool (func_get_automake_snippet_unconditional): To be able to
13979         not distribute top/README-release by default, don't distribute files
13980         from top/ unconditionally.
13981         * modules/gnumakefile (Makefile.am): Distribute top/GNUmakefile.
13982         * modules/maintainer-makefile (Makefile.am): Distribute top/maint.mk.
13984 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
13986         gnulib-tool: fix typo in comment output
13987         * gnulib-tool (func_import): Fix typo with previous change.
13989         snippets: work around GNU Make 3.82 VPATH
13990         When using 'gnulib-tool --gnu-make' on Emacs, and building
13991         the resulting tarball on Solaris 10 which bundles GNU Make 3.82,
13992         an out-of-source (VPATH) build failed because the sans-copyright
13993         snippet file was not built before the file that used it.
13994         Presumably this is some sort of VPATH thing.  Work around the
13995         problem by using the original snippet, i.e., don’t bother to
13996         remove its copyright notice.
13997         * modules/snippet/_Noreturn, modules/snippet/link-warning:
13998         Don’t assume Automake in comments.  Omit long-incorrect comment.
13999         * modules/snippet/arg-nonnull (BUILT_SOURCES, arg-nonnull.h)
14000         (MOSTLYCLEANFILES):
14001         * modules/snippet/c++defs (BUILT_SOURCES, c++defs.h)
14002         (MOSTLYCLEANFILES):
14003         * modules/snippet/unused-parameter (BUILT_SOURCES, unused-parameter.h)
14004         (MOSTLYCLEANFILES):
14005         * modules/snippet/warn-on-use (BUILT_SOURCES, warn-on-use.h)
14006         (MOSTLYCLEANFILES):
14007         Remove.
14008         * modules/snippet/arg-nonnull (ARG_NONNULL_H):
14009         * modules/snippet/c++defs (CXXDEFS_H):
14010         * modules/snippet/unused-parameter (UNUSED_PARAMETER_H):
14011         * modules/snippet/warn-on-use (WARN_ON_USE_H):
14012         Don’t bother to remove the copyright notice; just use the
14013         original snippet as-is.
14015 2017-03-13  Paul Eggert  <eggert@cs.ucla.edu>
14017         gnulib-tool: minor --gnu-make fixups
14018         * gnulib-tool (func_emit_lib_Makefile_am):
14019         Remove useless code that was a blind alley during implementation.
14020         Problem reported by Thien-Thi Nguyen in:
14021         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00029.html
14022         (func_import): Note the "--gnu-make" option in the output comment.
14024 2017-03-12  Paul Eggert  <eggert@cs.ucla.edu>
14026         gnulib-tool: new option --gnu-make
14027         This is for applications like GNU Emacs that use GNU Make
14028         features instead of Automake.
14029         * doc/gnulib-tool.texi (Initial import): Mention --gnu-make.
14030         * doc/gnulib.texi (Unit test modules, Build robot for gnulib):
14031         Do not assume Automake.
14032         * gnulib-tool (func_determine_path_separator)
14033         (func_modules_transitive_closure, func_update_file)
14034         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
14035         (func_import): Add support for --gnu-make.
14037 2017-03-11  Paul Eggert  <eggert@cs.ucla.edu>
14039         gnulib-common.m4: avoid aclocal.m4 bloat
14040         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB):
14041         Hide AM_PROG_AR from aclocal, so that aclocal does not
14042         install irrelevant macro definitions into aclocal.m4.
14044 2017-03-10  Bruno Haible  <bruno@clisp.org>
14046         vma-iter: Let callers know about error.
14047         * lib/vma-iter.h (vma_iterate): Return 'int', not 'void'.
14048         * lib/vma-iter.c (vma_iterate): Return -1 in case of error.
14050 2017-03-05  Bruno Haible  <bruno@clisp.org>
14052         Fix value of LD for 64-bit compilers on AIX.
14053         * m4/lib-ld.m4 (AC_LIB_PROG_LD): For 64-bit compilers on AIX
14054         ("gcc -maix64" and "xlc -q64"), add option -b64 to $LD.
14056 2017-03-04  Paul Eggert  <eggert@cs.ucla.edu>
14058         dtotimespec: simplify
14059         * lib/dtotimespec.c (dtotimespec): Simplify.
14061 2017-03-04  Bruno Haible  <bruno@clisp.org>
14063         test-calloc-gnu: Reenable test also for GCC 7.
14064         * tests/test-calloc-gnu.c (eight): New function.
14065         (main): Don't skip test; use eight() instead.
14067 2017-03-04  Jim Meyering  <meyering@fb.com>
14069         test-calloc-gnu: port to GCC7
14070         * tests/test-calloc-gnu.c (main) [__GNUC__ >= 7]: Skip a test
14071         that attempts to calloc more than SIZE_MAX bytes, because GCC7
14072         and newer would detect that at compilation time.
14074 2017-03-04  Bruno Haible  <bruno@clisp.org>
14076         tests: Avoid compiler warning about uses of null_ptr.
14077         * tests/null-ptr.h: New file.
14078         * tests/test-canonicalize.c: Include null-ptr.h.
14079         (null_ptr): Remove function.
14080         * tests/test-canonicalize-lgpl.c: Likewise.
14081         * tests/test-memmem.c: Likewise.
14082         * tests/test-ptsname_r.c: Likewise.
14083         * modules/canonicalize-tests (Files): Add tests/null-ptr.h.
14084         * modules/canonicalize-lgpl-tests: Likewise.
14085         * modules/memmem-tests: Likewise.
14086         * modules/ptsname_r-tests: Likewise.
14087         Reported by Jim Meyering.
14089 2017-03-03  Bruno Haible  <bruno@clisp.org>
14091         doc: Mention Mac OS X deficiencies regarding semaphores.
14092         * doc/posix-functions/sem_init.texi: Mention status on Mac OS X.
14093         * doc/posix-functions/sem_destroy.texi: Likewise.
14094         * doc/posix-functions/sem_getvalue.texi: Likewise.
14096 2017-03-03  Bruno Haible  <bruno@clisp.org>
14098         lock tests: Fix test failure on Mac OS X (regression from 2017-01-05).
14099         Reported by Assaf Gordon <assafgordon@gmail.com> via
14100         Pádraig Brady <P@draigBrady.com>.
14101         * tests/test-lock.c: On Mac OS X, use named semaphores, not unnamed
14102         semaphores.
14103         (USE_NAMED_SEMAPHORE, USE_UNNAMED_SEMAPHORE): New macros.
14104         (atomic_int_semaphore): New macro.
14106 2017-02-28  Bruno Haible  <bruno@clisp.org>
14108         perror tests: Tweak for z/OS.
14109         Reported by Daniel Richard G. <skunk@iskunk.org>.
14110         * tests/test-perror.sh: Don't fail z/OS style perror output.
14112 2017-02-26  Bruno Haible  <bruno@clisp.org>
14114         nproc: Refactor large function.
14115         * lib/nproc.c (num_processors_ignoring_omp): New function, extracted
14116         from num_processors.
14117         (num_processors): In this function, only deal with OMP.
14119 2017-02-26  Pádraig Brady  <P@draigBrady.com>
14121         nproc: adjust handling of OpenMP environment variables
14122         to match the return value from omp_get_num_threads(), i.e.:
14123          - honor OMP_THREAD_LIMIT without OMP_NUM_THREADS
14124          - Treat 0 as an invalid value and ignore
14125         Also remove the call to omp_get_num_threads() because
14126         it's ineffective without the omp pragmas in place.
14127         * lib/nproc.c (parse_omp_threads): Return 0 if specified,
14128         so that it can be ignored.
14129         (num_processors): Honor OMP_THREAD_LIMIT even without
14130         OMP_NUM_THREADS being set.  Also fix a typo in the environment
14131         variable being checked, from the previous recent commit.
14133 2017-02-26  Pádraig Brady  <P@draigBrady.com>
14135         nproc: support nested OMP_NUM_THREADS, and OMP_THREAD_LIMIT
14136         * lib/nproc.c (parse_omp_threads): A new function refactored
14137         from num_processors() to support parsing both of the
14138         above environment variables.
14139         (num_processors): Prefer using omp_get_num_threads() with [_OPENMP]
14140         to accurately reflect the current OpenMP nesting level.
14141         Also support the OMP_THREAD_LIMIT environment variable
14142         to limit the max value determined from OMP_NUM_THREADS.
14143         * modules/nproc: Depend on minmax header.
14144         Suggested by Oliver Heimlich.
14146 2017-02-25  Bruno Haible  <bruno@clisp.org>
14148         maintainer-makefile: Fix AC_PROG_SED with autoconf cache.
14149         * m4/gnulib-common.m4 (AC_PROG_SED): Fix AC_CACHE_CHECK invocation.
14151 2017-02-24  Paul Eggert  <eggert@cs.ucla.edu>
14153         ftoastr: port to -Wdouble-promotion
14154         Work around -Wdouble-promotion false alarm in recent GCCs.
14155         * lib/ftoastr.c (PROMOTED_FLOAT): New macro.
14156         (ftoastr_snprintf, FTOASTR): Use it.
14158 2017-02-21  Bruno Haible  <bruno@clisp.org>
14160         lock tests: Fix build failure on GNU/Hurd (regression from 2017-01-05).
14161         Reported by Rene Saavedra <rennes@openmailbox.org> in
14162         https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25821 via Paul Eggert.
14163         * lib/glthread/lock.h: On glibc systems without
14164         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP, use the fallback
14165         implementation of rwlocks.
14166         * lib/glthread/lock.c: Likewise.
14168 2017-02-20  Bruno Haible  <bruno@clisp.org>
14170         lock tests: Fix build failure on z/OS.
14171         Reported by Daniel Richard G. <skunk@iskunk.org>.
14172         * modules/lock-tests (configure.ac): Test for <semaphore.h>.
14173         * tests/test-lock.c (USE_SEMAPHORE): Don't set if <semaphore.h> does not
14174         exist.
14176 2017-02-19  Bruno Haible  <bruno@clisp.org>
14178         havelib: Prefer the search path of /usr/bin/gcc over the one of $CC.
14179         This helps when CC=clang.
14180         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Prefer the search path
14181         of /usr/bin/gcc.
14183         havelib: Support overriding the result of AC_LIB_PREPARE_MULTILIB.
14184         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use AC_CACHE_CHECK.
14186 2017-02-19  Bruno Haible  <bruno@clisp.org>
14188         gnulib-tool: Avoid conflict of havelib-tests with --single-configure.
14189         * gnulib_tool (func_create_testdir): Avoid havelib-tests when
14190         --with-tests --single-configure is specified.
14192 2017-02-16  Tim Rühsen  <tim.ruehsen@gmx.de>
14194         users.txt: Update links, use HTTPS where possible
14195         * users.txt: Updated to HTTPS where possible,
14196         fixed some links to new locations.
14198 2017-02-16  Bruno Haible  <bruno@clisp.org>
14200         xbinary-io: Fix inlining.
14201         * lib/xbinary-io.c: Set XBINARY_IO_INLINE, not XSETMODE_INLINE.
14203 2017-02-16  Paul Eggert  <eggert@cs.ucla.edu>
14205         xbinary-io: rename from xsetmode
14206         This patch is taken from suggestions by Bruno Haible in:
14207         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00060.html
14208         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00061.html
14209         * lib/binary-io.c (__gl_setmode_check): Set errno to EINVAL,
14210         not ENOTTY, when it is an inappropriate device.
14211         * lib/binary-io.h (SET_BINARY): Resurrect.
14212         * lib/xbinary-io.c: Rename from lib/xsetmode.c.
14213         (xset_binary_mode_error): Rename from xsetmode_error.
14214         * lib/xbinary-io.h: Rename from lib/xsetmode.h.
14215         (xset_binary_mode): Rename from xsetmode.
14216         All uses changed.
14217         * modules/xbinary-io: Rename from modules/xsetmode.
14218         Update file names.
14219         * tests/test-binary-io.sh (tmpfiles): Remove no-longer-used file name.
14220         * NEWS: Update to match revised behavior.
14222 2017-02-15  Paul Eggert  <eggert@cs.ucla.edu>
14224         tests: Adjust to recent SET_BINARY change
14225         * tests/test-binary-io.c (main):
14226         * tests/test-binary-io.sh: Remove test for SET_BINARY.
14227         * tests/test-closein.c, tests/test-fflush2.c, tests/test-ftell.c:
14228         * tests/test-ftello.c, tests/test-nonblocking-pipe-child.c:
14229         * tests/test-yesno.c: Use set_binary_mode, not SET_BINARY.
14231         xsetmode: new module
14232         This is to fix a problem noted by Eric Blake.
14233         Code was using xfreopen to change files to binary mode, but this
14234         fails for stdout when in append mode.  Such code should use
14235         xsetmode instead.
14236         * NEWS: Document incompatible changes to binary-io module.
14237         * lib/binary-io.c (__gl_setmode_check) [__DJGPP__ || __EMX__]:
14238         New function.
14239         * lib/binary-io.h (__gl_setmode): Rename from set_binary_mode.
14240         (set_binary_mode): New function, which also checks for tty.
14241         * lib/xsetmode.c, lib/xsetmode.h, modules/xsetmode: New files.
14243 2017-02-14  Paul Eggert  <eggert@cs.ucla.edu>
14245         headers: fix begin-end typos
14246         * lib/mbfile.h, lib/se-selinux.in.h: Fix typos by replacing
14247         _GL_INLINE_HEADER_BEGIN with _GL_INLINE_HEADER_END.
14249         selinux-h: port to PGI 16.10
14250         * lib/se-selinux.in.h: Don't assume that include_next skips over
14251         duplicate -I DIR options.
14253         argp: port to PGI 16.10
14254         * lib/argp-pin.c (dummy): Declare as needed to make file nonempty.
14256 2017-02-13  Darshit Shah  <darnir@gnu.org>
14258         unicase: Update function protoype to match definition.
14259         * lib/unicase/special-casing.h (gl_unicase_special_lookup): Gperf 3.1
14260         uses 'size_t' as the datatype for the 'len' parameter in the functions
14261         it generates. Update the prototype specified here to match the newly
14262         generated function.
14264 2017-02-12  Bruno Haible  <bruno@clisp.org>
14266         times test: Avoid gcc warnings on Linux/x32.
14267         * tests/test-times.c (main): Really cast printf arguments from clock_t
14268         to 'long int'.
14270 2017-02-12  Paul Eggert  <eggert@cs.ucla.edu>
14272         glob: port better to emscripten
14273         Problem reported by Bruno Haible in:
14274         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00031.html
14275         * lib/glob.c (glob): Don't assume HAVE_GETPWNAM_R || _LIBC.
14277 2017-02-11  Bruno Haible  <bruno@clisp.org>
14279         host-cpu-c-abi: Support for 64-bit AIX, 32-bit armhf on arm64, hppa64.
14280         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Define also HOST_CPU.
14281         For the x32 ABI on x86_64, set HOST_CPU_C_ABI to 'x86_64-x32' and define
14282         both __x86_64__ and __x86_64_x32__. For the ELFv2 ABI on powerpc64,
14283         define both __powerpc64__ and __powerpc64_elfv2__. Recognize 64-bit
14284         compilation on AIX. Recognize 32-bit compilation on arm64/Linux.
14285         Distinguish hppa64 from hppa.
14287 2017-02-10  Bruno Haible  <bruno@clisp.org>
14289         search: Don't assume that tsearch() exists if 'VISIT' is defined.
14290         * m4/search_h.m4 (gl_SEARCH_H): Determine HAVE_TYPE_VISIT.
14291         * modules/search (Makefile.am): Substitute HAVE_TYPE_VISIT.
14292         * lib/search.in.h (VISIT): Define if HAVE_TYPE_VISIT is 0.
14294 2017-02-09  Bruno Haible  <bruno@clisp.org>
14296         doc: Don't mention obsolete AC_LIBTOOL_WIN32_DLL macro.
14297         * doc/gnulib.texi (Libtool and Windows): Recommend
14298         LT_INIT([win32-dll]) instead of AC_LIBTOOL_WIN32_DLL.
14299         Reported by Reuben Thomas <rrt@sc3d.org>.
14301 2017-02-08  Paul Eggert  <eggert@cs.ucla.edu>
14303         stddef-tests: port to SIZE_MAX <= INT_MAX
14304         * tests/test-stddef.c: Include <limits.h>, for INT_MAX.
14305         Do not assume that INT_MAX < SIZE_MAX.
14307 2017-02-01  Bruno Haible  <bruno@clisp.org>
14309         lock tests: Fix link error.
14310         * modules/lock-tests (test_rwlock1_LDADD): Add @YIELD_LIB@.
14311         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14313 2017-01-31  Bruno Haible  <bruno@clisp.org>
14315         lock: Fix link error (regression from 2017-01-05).
14316         * lib/glthread/lock.h [USE_POSIX_THREADS_WEAK]: Declare also
14317         pthread_rwlockattr_init, pthread_rwlockattr_setkind_np,
14318         pthread_rwlockattr_destroy weak.
14319         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14321 2017-01-30  Paul Eggert  <eggert@cs.ucla.edu>
14323         Port to PGI 16.10 x86-64
14324         This patch fixes one real bug in gl_anylinked_list2.h, along with
14325         some minor glitches that are not bugs.  It does not silence PGI’s
14326         thousands of bogus warnings when compiling test-intprops.c.
14327         Fortunately, the warnings do not cause a failure.
14328         * lib/c-ctype.h (_C_CTYPE_LOWER_A_THRU_F_N, _C_CTYPE_LOWER_N):
14329         Rename parameter to avoid PGI warning about ‘#define f(n) 'n'’.
14330         My goodness, PGI goes back a long ways - this predates C89!
14331         * lib/gl_anylinked_list2.h (ASYNCSAFE): Fix bug caught by PGI.
14332         For example, ASYNCSAFE (const void *) should expand to
14333         ‘const void *volatile’, not to ‘volatile const void *’.
14334         * lib/spawn.in.h (POSIX_SPAWN_USEVFORK): Don't define if already defined.
14335         * lib/verify.h (verify) [!__GNUC__]:
14336         Use shorter albeit meaningless string to bypass silly compiler limits.
14337         * tests/infinity.h (Infinityf, Infinityd, Infinityl) [__PGI]:
14338         * tests/nan.h (NaNf, NaNd, NaNl):
14339         Use static functions to avoid misguided compiler diagnostics.
14340         Is there some reason we don’t use static functions on all platforms?
14342 2017-01-20  Paul Eggert  <eggert@cs.ucla.edu>
14344         parse-datetime: handle timezones reentrantly
14345         This API change was prompted by a report by Pádraig Brady in:
14346         https://bug.debian.org/851934#10
14347         To help fix the bug, make parse_datetime2 more reentrant.
14348         * NEWS: Document this incompatible change.
14349         * lib/parse-datetime.h, lib/parse-datetime.y (parse_datetime2):
14350         Add two arguments, the timezone and the timezone name.
14351         All callers changed.  If TZ="..." is specified, use it for
14352         calculating defaults.
14353         * lib/parse-datetime.y: Don't include xalloc.h or use xmalloc, as
14354         this code should be usable in a library.
14355         (mktime_ok, get_effective_timezone):
14356         Accept timezone arg too.  All callers changed.
14357         (get_tz): Remove.
14358         (get_effective_timezone): Check for failures.
14360 2017-01-20  Eric Blake  <eblake@redhat.com>
14362         localename: port to cygwin 2.6
14363         * lib/localename.c (gl_locale_name_thread_unsafe): Add clause for
14364         Cygwin.
14365         * modules/localename (Depends-on): Add extensions, since
14366         NL_LOCALE_NAME() is not visible without it.
14368 2017-01-17  Pádraig Brady  <P@draigBrady.com>
14370         parse-datetime: fix dependence on AC_PROG_SED
14371         * modules/parse-datetime: Use `sed` directly like all other modules.
14372         Reported by J William Piggott
14374 2017-01-16  Paul Eggert  <eggert@cs.ucla.edu>
14376         intprops: update doc URLs
14377         * doc/intprops.texi (Integer Range Overflow): Update URLs.
14379 2017-01-16  Bruno Haible  <bruno@clisp.org>
14381         host-cpu-c-abi: Add support for armhf, arm64, x32, s390x.
14382         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Require gl_C_ASM. On x86_64
14383         systems, distinguish x86_64 and x32. On arm systems, distinguish arm,
14384         armhf, arm64, and no longer distinguish arm and armel. On s390x systems,
14385         distinguish s390 and s390x.
14386         * modules/host-cpu-c-abi (Files): Add m4/asm-underscore.m4.
14387         * NEWS: Mention the change regarding 'armel'.
14389 2017-01-15  Paul Eggert  <eggert@cs.ucla.edu>
14391         localeinfo: case_folded_counterparts and WEOF
14392         * NEWS: Document this.
14393         * lib/localeinfo.c (case_folded_counterparts):
14394         First arg is now wint_t, not wchar_t.  This generalizes the
14395         function to also work on WEOF, where it returns 0.
14397         dfa: port to gcc -fsanitize=undefined
14398         * lib/dfa.c (copy): Don’t pass NULL with size 0 to memcpy,
14399         as this runs afoul of gcc -fsanitize=undefined.
14401 2017-01-14  Paul Eggert  <eggert@cs.ucla.edu>
14403         strftime: %z is -00 if unknown
14404         * lib/strftime.c (DO_TZ_OFFSET): Omit arg 'negative'; it's now
14405         the caller's responsibility to set 'negative_number'.  All uses changed.
14406         (__strftime_internal): Put '-' before a zero UTC offset if the time
14407         zone abbreviation starts with "-", which is the recently-introduced
14408         tzdb convention for an unknown UTC offset that is arbitrarily set to 0.
14409         * tests/test-strftime.c: Test for this.
14411 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
14413         dfa: port to older GCC
14414         Problem reported by Assaf Gordon in:
14415         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00103.html
14416         * modules/c99: New module.  This merely attempts to use the latest
14417         C version, which should be enough to solve this particular problem.
14418         The idea is to document which Gnulib modules assume C99 or later.
14419         * modules/dfa (Depends-on): Add it.
14421 2017-01-10  Bruno Haible  <bruno@clisp.org>
14423         Update DEPENDENCIES.
14424         * DEPENDENCIES: List only https URLs. Update recommended version for
14425         autoconf, automake, gperf.
14427 2017-01-10  Jim Meyering  <meyering@fb.com>
14429         maint.mk: enforce spelling of "timestamp" (i.e., no space)
14430         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
14431         disallow /\btime\s+stamps?\b/.  Prefer "timestamp".
14433 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
14435         dfa: minor simplification with emptyset
14436         * lib/dfa.c (build_state): Simplify by using emptyset.
14438 2017-01-09  Paul Eggert  <eggert@cs.ucla.edu>
14440         dfa: shrink constraints from 4 bits to 3
14441         * lib/dfa.c (newline_constraint, letter_constraint)
14442         (other_constraint, prev_newline_dependent)
14443         (prev_letter_dependent, NO_CONSTRAINT, BEGLINE_CONSTRAINT)
14444         (ENDLINE_CONSTRAINT, BEGWORD_CONSTRAINT, ENDWORD_CONSTRAINT)
14445         (LIMWORD_CONSTRAINT, NOTLIMWORD_CONSTRAINT):
14446         Constraints need only 3 bits, not 4.  Using smaller integers
14447         shrinks the code a bit and makes grep a tad faster on x86-64.
14449         dfa: omit unnecessary ptrdiff_t check
14450         * lib/dfa.c (alloc_position_set): Do not worry about ptrdiff_t
14451         overflow, since xnmalloc does that now.
14453         dfa: omit unnecessary allocation
14454         * lib/dfa.c (dfaanalyze): Do not allocate follow set, since
14455         an all-zero follow set works just fine.
14457         dfa: omit unused local
14458         * lib/dfa.c (build_state): Fix up recent change.
14460         maint: remove stray .texi files
14461         Although these were superseded by other files like
14462         doc/posix-functions/ctime.texi, the old files were not removed.
14463         * doc/ctime.texi, doc/inet_ntoa.texi: Remove.
14465 2017-01-08  Paul Eggert  <eggert@cs.ucla.edu>
14467         getprogname: fix port to IRIX
14468         * lib/getprogname.c (getprogname) [__sgi]:
14469         Don't dump core if malloc returns NULL.
14471         dfa: fix reallocation bug when matching newlines
14472         Problem reported for sed by S. Gilles (Bug#25390).
14473         * lib/dfa.c (realloc_trans_if_necessary): Move earlier.
14474         (dfastate): Reallocate before moving any newline transition ...
14475         (build_state): ... instead of reallocating here, where it is too late.
14477 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
14479         Avoid -Wundef warning about undefined WINDOWS_SOCKETS.
14480         * lib/sockets.h: Test if WINDOWS_SOCKETS is defined.
14482 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
14484         Avoid -Wundef warning about undefined __USE_FILE_OFFSET64.
14485         * lib/glob-libc.h: Test if __USE_FILE_OFFSET64 is defined.
14487 2017-01-07  Bruno Haible  <bruno@clisp.org>
14489         stdioext: Port to Minix 3.2 and newer.
14490         * lib/stdio-impl.h: Treat __minix like the newest NetBSD.
14491         * lib/fseeko.c (fseeko): Likewise.
14492         Reported by Nelson Beebe via Paul Eggert.
14494 2017-01-06  Paul Eggert  <eggert@cs.ucla.edu>
14496         getprogname: port to IRIX
14497         * lib/getprogname.c (getprogname): Port to IRIX.
14498         Based on an idea by Bastien Roucariès at:
14499         http://lists.gnu.org/r/bug-gnulib/2010-12/msg00096.html
14500         via code from Bruno Haible at:
14501         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
14503         localename-tests: port to NetBSD 7
14504         Problem reported by Nelson H. F. Beebe.
14505         * tests/test-localename.c:
14506         Test newlocale and uselocale only if both exist.
14508         glob, intprops, xalloc: work around Clang bug
14509         Work around LLVM bug 16404, which is still not fixed.
14510         https://llvm.org/bugs/show_bug.cgi?id=16404
14511         Problem reported by Nelson H. F. Beebe.
14512         * lib/glob.c, lib/intprops.h, lib/xalloc-oversized.h (__has_builtin):
14513         Remove.
14514         * lib/glob.c (size_add_wrapv):
14515         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW, _GL_HAS_BUILTIN_OVERFLOW_P):
14516         * lib/xalloc-oversized.h (xalloc_oversized):
14517         Do not use overflow builtins if Clang.
14519         dfa: fix 'return' typo
14520         Problem reported by Nelson H. F. Beebe.
14521         * lib/dfa.c (merge): Fix typo that Sun compilers rejected.
14523 2017-01-05  Pádraig Brady  <P@draigBrady.com>
14525         parse-datetime: fix generated paths for coverage files
14526         * modules/parse-datetime: Adjust the paths for parse-datetime.y
14527         within parse-datetime.c, so that gcc generates appropriate .gcno
14528         files, allowing lcov to proceed without error.  Previously it
14529         would error trying to find "lib/lib/parse-datetime.y".
14531 2017-01-05  Pádraig Brady  <P@draigBrady.com>
14533         maint.mk: support parallel execution of coverage
14534         * top/maint.mk (coverage): Run dependencies serially,
14535         thus supporting parallel processing of each one,
14536         particularly build-coverage, which builds and runs tests.
14538 2017-01-05  Bruno Haible  <bruno@clisp.org>
14540         lock tests: Prefer semaphore over mutex.
14541         * tests/test-lock.c (USE_SEMAPHORE): New constant.
14542         (struct atomic_int, init_atomic_int, get_atomic_int_value,
14543         set_atomic_int_value) [USE_SEMAPHORE]: Define using a POSIX semaphore.
14544         Suggested by Torvald Riegel <triegel@redhat.com>.
14546 2017-01-05  Bruno Haible  <bruno@clisp.org>
14548         lock: Provide guarantee to avoid writer starvation for rwlocks.
14549         The rationale is: 1) Read-preferring read-write locks are prone to
14550         writer starvation if the number of reader threads multiplied by the
14551         percentage of time they have the lock held is too high. 2) Write-
14552         preferring read-write locks are the only reliable way to avoid this.
14553         3) There have been reports of 'test-lock' hanging on glibc systems
14554         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00009.html,
14555         and glibc indeed implements read-preferring rwlocks by default, see
14556         http://man7.org/linux/man-pages/man3/pthread_rwlockattr_setkind_np.3.html
14557         and https://sourceware.org/bugzilla/show_bug.cgi?id=13701 .
14558         * m4/pthread_rwlock_rdlock.m4: New file.
14559         * m4/lock.m4 (gl_LOCK): Invoke gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
14560         * lib/glthread/lock.h [USE_POSIX_THREADS]: Test
14561         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
14562         of rwlock initialization on glibc systems without
14563         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
14564         of rwlocks altogether on non-glibc systems without
14565         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
14566         [USE_PTH_THREADS]: Use a different implementation of rwlocks altogether.
14567         * lib/glthread/lock.c [USE_POSIX_THREADS]
14568         (glthread_rwlock_init_for_glibc): New function.
14569         [USE_POSIX_THREADS] (glthread_rwlock_rdlock_multithreaded): Update
14570         comment.
14571         [USE_PTH_THREADS]: New implementation of rwlocks.
14572         [USE_WINDOWS_THREADS] (glthread_rwlock_rdlock_func): Prefer writers over
14573         readers.
14574         * modules/lock (Files): Add m4/pthread_rwlock_rdlock.m4.
14575         (Depends-on): Add 'extensions'.
14576         * tests/test-rwlock1.c: New file.
14577         * lock-tests (Files): Add it.
14578         (Depends-on): Add usleep.
14579         (Makefile.am): Add test-rwlock1 to the tests.
14581 2017-01-05  Bruno Haible  <bruno@clisp.org>
14583         thread: Fix pth port.
14584         * lib/glthread/thread.h (pth_init): Declare weak.
14585         (glthread_create, glthread_sigmask, glthread_join, gl_thread_self,
14586         gl_thread_exit): Make sure Pth is initialized before invoking any Pth
14587         function.
14589 2017-01-04  Assaf Gordon  <assafgordon@gmail.com>
14591         parse-datetime: fix debug message on lone year number
14592         Input dates such as
14593           date -d "Apr 11 22:59:00 2011"
14594         are parsed as date (Apr 11, with default year 2016), then time, then a
14595         number (2011). Based on the combination of previously seen tokens,
14596         'digits_to_date_time' determines 2011 to be a year value.
14597         This fixes the debug messages to correctly show the updated year.
14598         Before:
14599             $ date --debug -d 'Apr 11 22:59:00 2011'
14600             date: parsed date part: (Y-M-D) 2016-04-11
14601             date: parsed time part: 22:59:00
14602             date: parsed number part: today/this/now
14603         After:
14604             $ ./src/date --debug -d 'Apr 11 22:59:00 2011'
14605             date: parsed date part: (Y-M-D) 2016-04-11
14606             date: parsed time part: 22:59:00
14607             date: parsed number part: year: 2011
14608         * lib/parse-datetime.y (struct parser_control): Add 'year_seen',
14609         'debug_year_seen' member fields.
14610         (digits_to_date_time): Update 'year_seen' as needed.
14611         (debug_print_current_time): Inform about year updates.
14612         (parse_datetime2): Initialize year_seen,debug_year_seen member fields.
14614         parse-datetime: fix local timezone debug messages
14615         "Local timezones" are strings that affect only DST relative to the
14616         default timezone. The debug messages in parse-datetime.y printed
14617         wrong information when encountering local timezones.
14618         Examples:
14619         Here EET/EEST are time zones ('zone' token, with values +02:00/+03:00):
14620              TZ=Asia/Tokyo ./src/date --debug -d '2011-12-11 EET'
14621              TZ=Asia/Tokyo ./src/date --debug -d '2011-06-11 EEST'
14622         When the default timezone relates to the zone strings, EET/EEST are
14623         parsed as local timezones (tLOCAL_ZONE), and only change the DST
14624         value (0/1, respectively):
14625              TZ=Europe/Helsinki ./src/date --debug -d '2011-12-11 EET'
14626              TZ=Europe/Helsinki ./src/date --debug -d '2011-06-11 EEST'
14627         * lib/parse-datetime.y (debug_print_current_time): If local timezone
14628         was seen, inform about DST change, don't print actual timezone.
14629         (debug_strfdatetime): If local timezone was seen, use default timezone
14630         (and adjust as needed) instead of using incorrect timezone.
14631         (parse_datetime2): Use correct time-zone source string, and adjust
14632         default timezone as needed.
14634         parse-datetime: add debug warning about DST changes
14635         Incorrect date arithmetic due to daylight saving time (DST) are a
14636         common (false) bug report in coreutils.
14637         Detect two such cases and print a warning:
14638         1. year/month/day adjustments (performed on 'struct tm'),
14639            where 'mktime' returns a different isdst value.
14640         2. hour/minute/seconds/ns adjustments (performed on 'time_t'),
14641            where the result of 'localtime(3)' on the value will return a
14642            different isdst value.
14643         Note: DST changes could be harmless or unnoticeable.
14644         Examples (with 'TZ=America/New_York'):
14645         Unnoticeable: result is 2016-Dec-14
14646            $ date -d '2016-06-15 EDT + 6 months' +%b
14647            Dec
14648         Unnoticeable: result is 2016-Dec-15 11:00:00
14649            $ date -d '2016-06-15 12:00:00 EDT + 6 months' +%F
14650            2016-12-15
14651         This is unexpected:
14652            $ date -d '2016-06-01 EDT + 6 months' +%F
14653            2016-11-30
14654         The new debug warnings will show:
14655            $ ./src/date --debug -d '2016-06-01 EDT + 6 months' +%F
14656            ...
14657            date: warning: daylight saving time changed after date adjustment
14658            ...
14659         * lib/parse-datetime.y (parse_datetime2): Detect DST changes, and
14660         print an appropriate warning message.
14662         parse-datetime: add debug warning about date arithmetic
14663         Date arithmetic are done directly on the fields of 'struct tm',
14664         which can result in invalid dates. Normalization with 'mktime(3)'
14665         will then produce a different date - which might cause unexpected
14666         results.
14667         Examples:
14668           '2016-10-31 - 1 month' => 2016-09-31 normalized to 2016-10-01.
14669           '2016-02-29 + 1 year'  => 2017-02-29 normalized to 2017-03-01.
14670         Note that date normalization is not inherently wrong and not rejected,
14671         as it has legitimate uses:
14672           '2016-12-29 + 5 days' => 2016-12-34 noramlized to 2017-01-03.
14673         If the user asked to adjust months but 'mday' changed,
14674         or user asked to adjust years but 'month' changed - warn about it.
14675             $ ./src/date --debug -d '2016-10-31 - 1 month'
14676             ...
14677             date: warning: when adding relative months/years, \
14678                            it is recommended to specify the 15th of the month
14679             ...
14680             date: warning: month/year adjustment resulted in shifted dates:
14681             date:      adjusted Y M D: 2016 09 31
14682             date:    normalized Y M D: 2010 10 01
14683             ...
14684         * lib/parse-datetime.y (parse_datetime2): Detect such cases and print
14685         a warning message. Improve recommendation of when to use 15 of the
14686         month or noon for date arithmetic.
14688         parse-datetime: fix debug message of relative part after timezone
14689         Relative part (e.g '+8 days') after a timezone string was not
14690         reported (was only reported after a timezone number). Due to the
14691         parser's structure, timezone strings with numbers were handled
14692         separately.
14693         before:
14694              # Timezone number + relative part: OK
14695              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 +00:00 -8 days'
14696              ...
14697              date: parsed relative part: -8 day(s)
14698              # Timezone string + relative part: missing
14699              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 UTC -8 days'
14700              [ missing message ]
14701         After: messages are printed in both cases.
14702         * lib/parse-datetime.y ('zone' token): Call debug_print_relative_time.
14704         parse-datetime: fix incorrect debug message on lone number
14705         A lone number is an absolute value, not a relative time part.
14706         before:
14707            $ date --debug -d '20130101'
14708            date: parsed number part: today/this/now
14709         After:
14710            $ ./src/date --debug -d '20130101'
14711            date: parsed number part: (Y-M-D) 2013-01-01
14712         * lib/parse-datetime.y ('item'/'number' tokens): Call
14713         'debug_print_current_time' instead of 'debug_print_relative_time'.
14715 2017-01-02  Paul Eggert  <eggert@cs.ucla.edu>
14717         doc: modernize for C11 etc.
14718         * doc/gnulib-readme.texi (Portability guidelines): Modernize a bit
14719         for C11, MinGW, etc.  This responds to Paul Smith's question in:
14720         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00014.html
14722         dfa: prefer functions to FETCH_WC macro
14723         * lib/dfa.c (FETCH_WC): Remove, replacing with ...
14724         (fetch_wc, bracket_fetch_wc): ... new functions.  These store the
14725         wint_t result into DFA->lex.wctok instead of to a separate arg.
14726         All callers changed.  Move more local decls closer to where
14727         they're used.
14729         dfa: narrow more local var scopes
14730         * lib/dfa.c: Move more local decls to be more local.
14732         dfa: remove duplicate assignment
14733         Problem reported by Bruno Haible in:
14734         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00007.html
14735         * lib/dfa.c (parse_bracket_exp): Simplify.
14737 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
14739         dfa: simplify constraint-dependency checking
14740         * lib/dfa.c (prev_newline_constraint, prev_letter_constraint)
14741         (prev_other_constraint): Remove.
14742         (prev_newline_dependent, prev_letter_dependent):
14743         Simplify, to avoid an unnecessary bitwise AND operation.
14745         dfa: prefer functions and constants to macros
14746         * lib/dfa.c: Prefer constants to macros where either will do.
14747         (streq, isasciidigit, newline_constraint)
14748         (letter_constraint, other_constraint, succeeds_in_context)
14749         (prev_newline_constraint, prev_letter_constraint)
14750         (prev_other_constraint, prev_newline_dependent)
14751         (prev_letter_dependent, accepting, accepts_in_context):
14752         Now static functions instead of function-like macros.
14753         Use lower-case names accordingly.  All uses changed.
14755         dfa: narrow more local var scopes
14756         * lib/dfa.c: Move some more local decls down to nearer where
14757         they're needed.
14759 2016-12-31  Jim Meyering  <meyering@fb.com>
14761         dfa: narrow the scope of many local variables
14762         * lib/dfa.c: Now that we are no longer constrained to c89, move
14763         declarations of many variables (often indices) "down" into the
14764         scope(s) where used or to the point of definition.  This is a
14765         no-semantic-change diff.
14767 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
14769         version-etc: new year
14770         * build-aux/gendocs.sh (version):
14771         * doc/gendocs_template:
14772         * doc/gendocs_template_min:
14773         * doc/gnulib.texi:
14774         * lib/version-etc.c (COPYRIGHT_YEAR):
14775         Update copyright dates by hand in templates and the like.
14776         * all files: Run 'make update-copyright'.
14778 2016-12-31  Eric Blake  <eblake@redhat.com>
14780         do-release-commit-and-tag: avoid shell syntax error
14781         * build-aux/do-release-commit-and-tag (curr_br): $branch can
14782         contain spaces when rebasing.
14784         maint.mk: hoist gnulib_dir definition earlier
14785         * top/maint.mk (gnulib_dir): Move near top of file.
14787 2016-12-31  Jim Meyering  <meyering@fb.com>
14789         maint.mk: do not always evaluate intprops-related shell
14790         * top/maint.mk (_intprops_names): Change := to just "=" to avoid
14791         using gnulib_dir undefined (gnulib_dir is defined later in the
14792         file, which will be fixed separately), and besides, there is no
14793         need to incur the cost of this shell invocation for every single
14794         use of this .mk file.  Reported by Eric Blake in
14795         https://lists.gnu.org/r/bug-gnulib/2016-12/msg00137.html
14797 2016-12-30  Jim Meyering  <meyering@fb.com>
14799         maint.mk: improve sc_prohibit_intprops_without_use
14800         * top/maint.mk (_intprops_names): Don't hard-code the list of
14801         symbol names.  Instead, derive it on the fly.
14803 2016-12-30  Paul Eggert  <eggert@cs.ucla.edu>
14805         dfa: shorten sbit, success
14806         * lib/dfa.c (struct regex_syntax.sbit):
14807         (struct dfa.success): Use char, not int, for array elements, since
14808         they are all in the range 0..7.
14810         dfa: simplify multibyte_prop etc.
14811         This follows up on a change made when dfa.c was in grep, namely grep
14812         commit c797046c7c13c2647182b919a79a4c5b4ecf82b1
14813         dated 2015-08-12 07:35:03 -0700, which removed unused multibyte support.
14814         That earlier simplification allows for some more simplification
14815         and trimming down here.
14816         * lib/dfa.c (struct mb_char_classes): New member nchars_alloc.
14817         (struct lexer_state): New mamber brack.
14818         (struct dfa, addtok_mb): multibyte_prop elements are now char, not int,
14819         since they must be in the range 0..3 now.
14820         Remove members mbcsets, nmbcsets, mbcsets_alloc, since
14821         the brack member now supersedes them.
14822         (parse_bracket_exp): Update dfa->lex.brack instead of dfa->mbcsets.
14823         (addtok): Use dfa->lex.brack instead of dfa->mbcsets.
14824         (dfaparse): Remove unnecessary initializations of already-0 storage.
14825         (free_mbdata): Free d->lex.brack.chars instead of d->mbcsets.
14826         (dfassbuild): No need to clear sup->mbcsets.
14828         dfa: minor performance tweak
14829         * lib/dfa.c (setbit_wc): Test < 0, not == EOF.
14831         dfa: wrap charclass inside a struct
14832         On my platform (gcc Ubuntu 5.4.0-6ubuntu1~16.04.4 x86-64,
14833         en_US.utf8 locale) this makes 'grep -Fi -f list.txt list.txt >out'
14834         about 5% faster, where list.txt is generated by 'aspell dump
14835         master | head -n 100000 >list.txt'.  See Bug#22239.
14836         * lib/dfa.c (charclass): Wrap inside a struct.  All uses changed.
14837         (CHARCLASS_INIT, tstbit, setbit, clrbit, zeroset, fillset, notset)
14838         (equal, emptyset, charclass_index, setbit_wc, setbit_case_fold_c):
14839         Adjust to this, e.g., by using charclass * rather than charclass.
14840         All callers changed as needed.
14841         (copyset): Remove.  All uses changed to simple assignment.
14842         (parse_bracket_exp): Use zeroset instead of memset.
14844 2016-12-30  Jim Meyering  <meyering@fb.com>
14846         maint.mk: update list of intprops.h symbol names
14847         * top/maint.mk (_intprops_names): Regenerate the list of symbol names.
14848         This avoids a false failure of the sc_prohibit_intprops_without_use
14849         rule in grep.
14851 2016-12-29  Eric Blake  <eblake@redhat.com>
14853         getopt: fix parallel test failure
14854         * tests/test-getopt-posix.c (TEST_GETOPT_TMP_NAME): Set name.
14855         * tests/test-getopt-gnu.c (TEST_GETOPT_TMP_NAME): Likewise.
14856         * tests/test-getopt-main.h (main): Use different file names
14857         in case test-getopt-gnu and test-getopt-posix run in parallel.
14859 2016-12-29  Paul Eggert  <eggert@cs.ucla.edu>
14861         xalloc: x2nrealloc check for ptrdiff_t overflow
14862         * lib/xalloc.h (x2nrealloc): Check for ptrdiff_t overflow, too.
14863         * modules/xalloc, modules/xvasprintf (Depends-on): Add stdint.
14865 2016-12-24  Bruno Haible  <bruno@clisp.org>
14867         lock test: Fix performance problem on multi-core machines.
14868         * tests/test-lock.c (USE_VOLATILE): New macro.
14869         (struct atomic_int): New type.
14870         (init_atomic_int, get_atomic_int_value, set_atomic_int_value): New
14871         functions.
14872         (lock_checker_done, rwlock_checker_done, reclock_checker_done): Define
14873         as 'struct atomic_int'.
14874         (lock_checker_thread, test_lock, rwlock_checker_thread, test_rwlock,
14875         reclock_checker_thread, test_recursive_lock): Use the new functions.
14876         Reported by Eric Blake in
14877         https://www.redhat.com/archives/libvir-list/2012-March/msg00854.html
14878         and by Pádraig Brady in
14879         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00117.html.
14881 2016-12-19  Bruno Haible  <bruno@clisp.org>
14883         vma-iter: Fix endless loop on 64-bit Windows.
14884         * lib/vma-iter.c (vma_iterate): On Windows, use 'uintptr_t' instead of
14885         'unsigned long'.
14887 2016-12-19  Bruno Haible  <bruno@clisp.org>
14889         stdint: Fix WINT_MAX to match the gnulib provided wint_t on minw.
14890         * m4/wint_t.m4 (gt_TYPE_WINT_T): Define GNULIB_OVERRIDES_WINT_T here.
14891         * m4/stdint.m4 (gl_STDINT_H): Don't define GNULIB_OVERRIDES_WINT_T.
14892         Invoke gt_TYPE_WINT_T instead.
14893         (gl_STDINT_TYPE_PROPERTIES): Test GNULIB_OVERRIDES_WINT_T.
14894         * modules/stdint (Files): Add m4/wint_t.m4.
14895         * modules/wchar (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
14896         * modules/wctype-h (Makefile.am): Likewise.
14897         * lib/wchar.in.h (wint_t): Override if GNULIB_OVERRIDES_WINT_T is set,
14898         not only on MSVC.
14899         * lib/wctype.in.h (wint_t): Likewise.
14901 2016-12-19  Paul Eggert  <eggert@cs.ucla.edu>
14903         getopt-posix-tests: fix Makefile typo
14904         * modules/getopt-posix-tests (test_getopt_posix_LDADD):
14905         Fix typo: the last ‘_’ was missing in the name.
14906         I suspect that the typo explains this build failure:
14907         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/39
14908         although I can’t reproduce the problem on Solaris 10 sparc.
14910 2016-12-18  Paul Eggert  <eggert@cs.ucla.edu>
14912         dfa: improve worst-case 'replace' performance
14913         See my note in Bug#22357#71.
14914         * lib/dfa.c (insert, delete): Rework to avoid duplicate test.
14915         (merge_constrained): New function, which is like
14916         the old 'merge' function, except with a new argument C2.
14917         Simplify the body by avoiding the need for different sections
14918         of code depending on whether one input is exhausted.
14919         (merge): Use the new function.
14920         (delete): Return the constraint of the deleted position,
14921         not the entire position.  Caller changed.
14922         (replace): Change from O(N*(N + log N)) to O(N log N) algorithm.
14924 2016-12-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
14926         dfa: performance improvement for removal of epsilon closure
14927         See Bug#22357#32.
14928         * lib/dfa.c (delete): Use binary search to find deleted index.
14929         (replace): New function.  It replaces a position with the followed set.
14930         (epsclosure): Replace it with a new algorithm.  Update caller.
14932 2016-12-18  Bruno Haible  <bruno@clisp.org>
14934         Split tests for getopt-posix and getopt-gnu.
14935         * tests/test-getopt-posix.c: New file.
14936         * tests/test-getopt-gnu.c: New file, with code from test-getopt.c.
14937         * tests/test-getopt-main.h: Renamed from tests/test-getopt.c. Remove
14938         stuff moved to test-getopt-gnu.c. Test TEST_GETOPT_GNU instead of
14939         GNULIB_TEST_GETOPT_GNU.
14940         * modules/getopt-posix-tests (Files): Add test-getopt-posix.c,
14941         test-getopt-main.h. Remove test-getopt.c, test-getopt_long.h.
14942         (Makefile.am): Test test-getopt-posix instead of test-getopt.
14943         * modules/getopt-gnu-tests: New file.
14944         * modules/getopt-gnu (configure.ac): Don't define GNULIB_TEST_GETOPT_GNU.
14946 2016-12-18  Bruno Haible  <bruno@clisp.org>
14948         posix-modules: Add options for specific platforms.
14949         * posix-modules (func_usage): Document options --for-mingw, --for-msvc.
14950         (exclude_for_mingw, exclude_for_msvc, exclude): New variables.
14951         Invoke func_tmpdir. Filter out the excludes.
14953 2016-12-18  Bruno Haible  <bruno@clisp.org>
14955         getopt: Fix link error for users of getopt() in <unistd.h>.
14956         * lib/getopt.in.h (getopt etc.): Do the macro definitions also when
14957         __need_getopt is defined. Undefine all macros before defining them.
14958         * modules/getopt (Include): Clarify that including <unistd.h> is also
14959         OK.
14960         * tests/test-getopt.c: Add comment.
14962 2016-12-17  Bruno Haible  <bruno@clisp.org>
14964         getaddrinfo tests: Avoid compilation error on MSVC.
14965         * tests/test-getaddrinfo.c: Don't check the prototypes of freeaddrinfo,
14966         getaddrinfo on native Windows.
14968 2016-12-17  Bruno Haible  <bruno@clisp.org>
14970         getlogin, getlogin_r: Fix link errors on MSVC.
14971         * m4/getlogin.m4 (gl_LIB_GETLOGIN): New macro.
14972         * modules/getlogin (configure.ac): Require gl_LIB_GETLOGIN.
14973         (Link): New section.
14974         * modules/getlogin_r (Files): Add m4/getlogin.m4.
14975         (configure.ac): Require gl_LIB_GETLOGIN.
14976         (Link): New section.
14977         * NEWS: Mention the new link requirements.
14978         * modules/getlogin-tests (test_getlogin_LDADD): New variable.
14979         * modules/getlogin_r-tests (test_getlogin_r_LDADD): New variable.
14981 2016-12-17  Bruno Haible  <bruno@clisp.org>
14983         Un-deprecate the 'progname' module.
14984         * NEWS: Describe the appropriate use-cases of 'progname' versus
14985         'getprogname'. Based on discussion summary at
14986         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00105.html
14988 2016-12-17  Bruno Haible  <bruno@clisp.org>
14990         Reorganize NEWS a bit.
14991         * NEWS: Move some not so important changes away from section
14992         "Important Notes".
14994 2016-12-17  Bruno Haible  <bruno@clisp.org>
14996         tanhf: Avoid redefinition error on MSVC.
14997         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANHF.
14998         * m4/tanhf.m4 (gl_FUNC_TANHF): Set REPLACE_TANHF to 1 if the function
14999         may be defined as an inline function.
15000         * modules/math (Makefile.am): Substitute REPLACE_TANHF.
15001         * lib/math.in.h (tanhf): Override if REPLACE_TANHF is 1.
15003 2016-12-17  Bruno Haible  <bruno@clisp.org>
15005         tanf: Avoid redefinition error on MSVC.
15006         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANF.
15007         * m4/tanf.m4 (gl_FUNC_TANF): Set REPLACE_TANF to 1 if the function
15008         may be defined as an inline function.
15009         * modules/math (Makefile.am): Substitute REPLACE_TANF.
15010         * lib/math.in.h (tanf): Override if REPLACE_TANF is 1.
15012 2016-12-17  Bruno Haible  <bruno@clisp.org>
15014         sqrtf: Avoid redefinition error on MSVC.
15015         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SQRTF.
15016         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Set REPLACE_SQRTF to 1 if the function
15017         may be defined as an inline function.
15018         * modules/math (Makefile.am): Substitute REPLACE_SQRTF.
15019         * lib/math.in.h (sqrtf): Override if REPLACE_SQRTF is 1.
15021 2016-12-17  Bruno Haible  <bruno@clisp.org>
15023         sinhf: Avoid redefinition error on MSVC.
15024         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINHF.
15025         * m4/sinhf.m4 (gl_FUNC_SINHF): Set REPLACE_SINHF to 1 if the function
15026         may be defined as an inline function.
15027         * modules/math (Makefile.am): Substitute REPLACE_SINHF.
15028         * lib/math.in.h (sinhf): Override if REPLACE_SINHF is 1.
15030 2016-12-17  Bruno Haible  <bruno@clisp.org>
15032         sinf: Avoid redefinition error on MSVC.
15033         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINF.
15034         * m4/sinf.m4 (gl_FUNC_SINF): Set REPLACE_SINF to 1 if the function
15035         may be defined as an inline function.
15036         * modules/math (Makefile.am): Substitute REPLACE_SINF.
15037         * lib/math.in.h (sinf): Override if REPLACE_SINF is 1.
15039 2016-12-17  Bruno Haible  <bruno@clisp.org>
15041         logf: Avoid redefinition error on MSVC.
15042         * m4/logf.m4 (gl_FUNC_LOGF): Set REPLACE_LOGF to 1 if the function
15043         may be defined as an inline function.
15045 2016-12-17  Bruno Haible  <bruno@clisp.org>
15047         log10l: Avoid redefinition error on MSVC.
15048         * m4/log10l.m4 (gl_FUNC_LOG10L): Set REPLACE_LOG10L to 1 if the function
15049         may be defined as an inline function.
15051 2016-12-17  Bruno Haible  <bruno@clisp.org>
15053         log10f: Avoid redefinition error on MSVC.
15054         * m4/log10f.m4 (gl_FUNC_LOG10F): Set REPLACE_LOG10F to 1 if the function
15055         may be defined as an inline function.
15057 2016-12-17  Bruno Haible  <bruno@clisp.org>
15059         hypotl: Avoid redefinition error on MSVC.
15060         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Set REPLACE_HYPOTL to 1 if the function
15061         may be defined as an inline function.
15063 2016-12-17  Bruno Haible  <bruno@clisp.org>
15065         hypotf: Avoid redefinition error on MSVC.
15066         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Set REPLACE_HYPOTF to 1 if the function
15067         may be defined as an inline function.
15069 2016-12-17  Bruno Haible  <bruno@clisp.org>
15071         fmodl: Avoid redefinition error on MSVC.
15072         * m4/fmodl.m4 (gl_FUNC_FMODL): Set REPLACE_FMODL to 1 if the function
15073         may be defined as an inline function.
15075 2016-12-17  Bruno Haible  <bruno@clisp.org>
15077         fmodf: Avoid redefinition error on MSVC.
15078         * m4/fmodf.m4 (gl_FUNC_FMODF): Set REPLACE_FMODF to 1 if the function
15079         may be defined as an inline function.
15081 2016-12-17  Bruno Haible  <bruno@clisp.org>
15083         expf: Avoid redefinition error on MSVC.
15084         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_EXPF.
15085         * m4/expf.m4 (gl_FUNC_EXPF): Set REPLACE_EXPF to 1 if the function
15086         may be defined as an inline function.
15087         * modules/math (Makefile.am): Substitute REPLACE_EXPF.
15088         * lib/math.in.h (expf): Override if REPLACE_EXPF is 1.
15090 2016-12-17  Bruno Haible  <bruno@clisp.org>
15092         coshf: Avoid redefinition error on MSVC.
15093         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSHF.
15094         * m4/coshf.m4 (gl_FUNC_COSHF): Set REPLACE_COSHF to 1 if the function
15095         may be defined as an inline function.
15096         * modules/math (Makefile.am): Substitute REPLACE_COSHF.
15097         * lib/math.in.h (coshf): Override if REPLACE_COSHF is 1.
15099 2016-12-17  Bruno Haible  <bruno@clisp.org>
15101         cosf: Avoid redefinition error on MSVC.
15102         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSF.
15103         * m4/cosf.m4 (gl_FUNC_COSF): Set REPLACE_COSF to 1 if the function
15104         may be defined as an inline function.
15105         * modules/math (Makefile.am): Substitute REPLACE_COSF.
15106         * lib/math.in.h (cosf): Override if REPLACE_COSF is 1.
15108 2016-12-17  Bruno Haible  <bruno@clisp.org>
15110         atan2f: Avoid redefinition error on MSVC.
15111         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATAN2F.
15112         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Set REPLACE_ATAN2F to 1 if the function
15113         may be defined as an inline function.
15114         * modules/math (Makefile.am): Substitute REPLACE_ATAN2F.
15115         * lib/math.in.h (atan2f): Override if REPLACE_ATAN2F is 1.
15117 2016-12-17  Bruno Haible  <bruno@clisp.org>
15119         atanf: Avoid redefinition error on MSVC.
15120         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATANF.
15121         * m4/atanf.m4 (gl_FUNC_ATANF): Set REPLACE_ATANF to 1 if the function
15122         may be defined as an inline function.
15123         * modules/math (Makefile.am): Substitute REPLACE_ATANF.
15124         * lib/math.in.h (atanf): Override if REPLACE_ATANF is 1.
15126 2016-12-17  Bruno Haible  <bruno@clisp.org>
15128         asinf: Avoid redefinition error on MSVC.
15129         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ASINF.
15130         * m4/asinf.m4 (gl_FUNC_ASINF): Set REPLACE_ASINF to 1 if the function
15131         may be defined as an inline function.
15132         * modules/math (Makefile.am): Substitute REPLACE_ASINF.
15133         * lib/math.in.h (asinf): Override if REPLACE_ASINF is 1.
15135 2016-12-17  Bruno Haible  <bruno@clisp.org>
15137         acosf: Avoid redefinition error on MSVC.
15138         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ACOSF.
15139         * m4/acosf.m4 (gl_FUNC_ACOSF): Set REPLACE_ACOSF to 1 if the function
15140         may be defined as an inline function.
15141         * modules/math (Makefile.am): Substitute REPLACE_ACOSF.
15142         * lib/math.in.h (acosf): Override if REPLACE_ACOSF is 1.
15144 2016-12-17  Bruno Haible  <bruno@clisp.org>
15146         Avoid redefinition errors on MSVC.
15147         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): Set REPLACE_SNPRINTF to 1 if
15148         the function may be defined as an inline function.
15149         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): Set REPLACE_VSNPRINTF to 1 if
15150         the function may be defined as an inline function.
15152 2016-12-17  Bruno Haible  <bruno@clisp.org>
15154         Avoid redefinition errors on MSVC.
15155         * lib/stdio.in.h: Include <stdlib.h> and <io.h> when necessary.
15156         * lib/unistd.in.h: Include <stdio.h> when necessary.
15158 2016-12-17  Bruno Haible  <bruno@clisp.org>
15160         stdint: Fix WINT_MAX to match the gnulib provided wint_t on MSVC.
15161         * m4/stdint.m4 (gl_STDINT_H): Define GNULIB_OVERRIDES_WINT_T.
15162         * modules/stdint (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
15163         * lib/stdint.in.h [GNULIB_OVERRIDES_WINT_T]: Redefine WINT_MIN and
15164         WINT_MAX.
15166 2016-12-17  Bruno Haible  <bruno@clisp.org>
15168         Avoid autoconf warning.
15169         * modules/frexpl (configure.ac): Require, not invoke, gl_FUNC_FREXPL.
15170         * modules/frexp (configure.ac): Require, not invoke, gl_FUNC_FREXP.
15172 2016-12-17  Bruno Haible  <bruno@clisp.org>
15174         fpending: Revert workaround against Emacs bug.
15175         * lib/stdio-impl.h [__MINGW32__]: Revert conditional.
15176         The Emacs bug is fixed by Eli Zaretskii in
15177         http://lists.gnu.org/r/emacs-devel/2016-12/msg00715.html
15179 2016-12-17  Bruno Haible  <bruno@clisp.org>
15181         getlogin_r tests: Port to mingw.
15182         * tests/test-getlogin_r.c: Don't include <pwd.h> on native Windows. Fixes
15183         regression introduced on 2014-05-19.
15185 2016-12-17  Bruno Haible  <bruno@clisp.org>
15187         getlogin: Port to newer mingw.
15188         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_GETLOGIN.
15189         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Set HAVE_DECL_GETLOGIN.
15190         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETLOGIN, not
15191         HAVE_GETLOGIN.
15192         * lib/unistd.in.h (getlogin): Test HAVE_DECL_GETLOGIN, not
15193         HAVE_GETLOGIN.
15194         * doc/posix-functions/getlogin.texi: Mention the issue.
15195         * tests/test-getlogin.c: Don't include <pwd.h> on native Windows. Fixes
15196         regression introduced on 2014-05-14.
15198 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
15200         builtin-expect: improve port to IBM XL C
15201         Problem reported for z/OS by Daniel Richard G. in:
15202         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00079.html
15203         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
15204         Test for <builtins.h> directly.
15206         builtin-expect: port to IBM XL C
15207         Problem reported for z/OS by Daniel Richard G. in:
15208         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00074.html
15209         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
15210         Also allow __builtin_expect defined via a standard include file.
15212         regex: fix dependency
15213         Problem reported by Bruno Haible in:
15214         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00073.html
15215         * modules/regex: Depend on builtin-expect.
15217         builtin-expect: new module
15218         Fix fnmatch to use it.
15219         Problem reported for z/OS by Daniel Richard G.
15220         * lib/fnmatch.c (__builtin_expect):
15221         * lib/glob.c (__builtin_expect):
15222         * lib/grantpt.c (__builtin_expect) [!_LIBC]:
15223         * lib/memmem.c (__builtin_expect) [!_LIBC]:
15224         * lib/scandir.c (__builtin_expect):
15225         * lib/strstr.c (__builtin_expect) [!_LIBC]:
15226         Remove macro; config.h now does this.
15227         * lib/gl_anytreehash_list1.h (add_to_bucket):
15228         * lib/regex_internal.h (BE):
15229         Assume __builtin_expect.
15230         * m4/builtin-expect.m4, modules/builtin-expect: New files.
15231         * modules/avltreehash-list, modules/fnmatch, modules/glob:
15232         * modules/grantpt, modules/memmem-simple, modules/rbtreehash-list:
15233         * modules/scandir, modules/strstr-simple:
15234         Depend on builtin-expect.
15236 2016-12-15  Bruno Haible  <bruno@clisp.org>
15238         init.sh: Add possibility to not delete temporary files.
15239         * tests/init.sh (remove_tmp_): If the environment variable KEEP is set
15240         to yes, don't erase the temporary directory.
15242 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
15244         regex: fix integer-overflow bug in never-used code
15245         Problem reported by Clément Pit–Claudel in:
15246         http://lists.gnu.org/r/emacs-devel/2016-12/msg00654.html
15247         * lib/regex_internal.h: Include intprops.h.
15248         * lib/regexec.c (re_search_2_stub): Use it to avoid undefined
15249         behavior on integer overflow.
15250         * modules/regex (Depends-on): Add intprops.
15252         fpending: fix port to MinGW on Emacs
15253         * lib/stdio-impl.h [__MINGW32__]: Do not include errno.h.
15254         Problem reported by Eli Zaretskii in:
15255         http://lists.gnu.org/r/emacs-devel/2016-12/msg00642.html
15256         Is Plan 9 still a valid porting target, anyway?
15258 2016-12-15  Paul Eggert  <eggert@cs.ucla.edu>
15260         safe-alloc: use xalloc-oversized
15261         * lib/safe-alloc.c: Include xalloc-oversized.h.
15262         (safe_alloc_oversized): Remove.  All uses changed to xalloc_oversized.
15263         * modules/safe-alloc (Depends-on): Add xalloc-oversized.
15265         xalloc: do not exceed PTRDIFF_MAX
15266         * lib/xmalloc.c (xcalloc) [HAVE_GNU_CALLOC]: Do not omit
15267         xalloc_oversized check, since objects larger than PTRDIFF_MAX
15268         bytes have pointer-subtraction problems.
15270         malloca: do not exceed PTRDIFF_MAX
15271         * lib/malloca.h: Include xalloc-oversized.
15272         (nmalloca): Use xalloc_oversized instead of rolling our own.
15273         * modules/malloca (Depends-on):
15274         * modules/relocatable-prog-wrapper (Depends-on):
15275         Add xalloc-oversized.
15277         quotearg: pacify GCC better
15278         * modules/quotearg (Depends-on): Add minmax, stdint.
15279         * lib/quotearg.c: Include minmax.h, stdint.h.
15280         (nslots): Now int, as there seems little point to going to extra
15281         work merely to support the INT_MAX slot, which nobody ever uses.
15282         (quotearg_n_options): Redo size-overflow checks to pacify GCC
15283         and to catch (mostly-theoretical) ptrdiff_t problems too.
15284         This can be done via one comparison.
15286 2016-12-14  Paul Eggert  <eggert@cs.ucla.edu>
15288         xalloc-oversized: check for PTRDIFF_MAX too
15289         This avoids undefined behavior when subtracting pointers to
15290         objects containing more than PTRDIFF_MAX bytes.
15291         * lib/xalloc-oversized.h (__xalloc_oversized, xalloc_oversized):
15292         Also return 1 if the result would exceed PTRDIFF_MAX>
15293         * modules/xalloc-oversized (Depends-on):
15294         Add stdint.
15296         dfa: fix glitches in previous commit
15297         Sorry, I don't know how I managed to commit the wrong version.
15298         * lib/dfa.c (MIN): Move up.
15299         (xpalloc): Now static.
15301         dfa: fix some unlikely integer overflows
15302         I found these while reviewing the recent Coverity-related fix.
15303         This patch changes part of dfa.c to prefer ptrdiff_t instead of
15304         size_t for object counts.  Using ptrdiff_t is the style typically
15305         used in Emacs; although it wastes a sign bit as sizes can never be
15306         negative, it makes -fsanitize=undefined more likely to catch
15307         integer overflows in index calculation, and nowadays the upside is
15308         typically more important than the downside.  Although perhaps the
15309         rest of dfa.c should be changed to prefer ptrdiff_t as well (much
15310         of dfa.c already does, since it uses state_num which is signed),
15311         that is a bigger change and is not needed to fix the bugs I found.
15312         * lib/dfa.c: Include stdint.h and intprops.h.
15313         (TOKEN_MAX): New macro.
15314         (position_set, struct mb_char_classes, struct dfa, maybe_realloc)
15315         (charclass_index, parse_bracket_exp, addtok, insert, merge)
15316         (realloc_trans_if_necessary, free_mbdata):
15317         Use ptrdiff_t instead of size_t for object counts related to xpalloc.
15318         This is safe because xpalloc checks that the sizes do not exceed
15319         either SIZE_MAX or PTRDIFF_MAX.
15320         (xpalloc): New function, mostly taken from Emacs.
15321         (maybe_realloc, copy, realloc_trans_if_necessary): Use it.
15322         (maybe_realloc): Add NITEMS_MAX to signature.  All callers changed.
15323         (charclass_index): Check for integer overflow in computing
15324         charclass index; it must not exceed TOKEN_MAX - CSET, as CSET is
15325         added to it later.
15326         (alloc_position_set): Check for integer overflow.  On typical
15327         platforms this check has zero overhead, since the constant
15328         expression is false.
15329         (realloc_trans_if_necessary):
15330         Remove assertion, which I hope Coverity no longer needs.
15332         * modules/dfa (Depends-on): Add intprops, stdint.
15334 2016-12-12  Jim Meyering  <meyering@fb.com>
15336         dfa: add an assertion to avoid coverity false positive
15337         * lib/dfa.c (realloc_trans_if_necessary): Otherwise, coverity
15338         warned that "newalloc1 - 2" could overflow.
15340 2016-12-13   Arnold D. Robbins  <arnold@skeeve.com>
15342         dfa: remove DFA_CASE_FOLD flag in favor of RE_ICASE
15343         * dfa.h (DFA_CASE_FOLD): Remove.
15344         * dfa.c (dfasyntax): Set dfa->syntax.case_fold based on RE_ICASE.
15346 2016-12-13  John W. Eaton  <gnu@jweaton.org>
15348         link: fix test to declare use of rename()
15349         * m4/link.m4 (gl_FUNC_LINK): Include <stdio.h> needed with
15350         -Werror=implicit-function-declaration
15352 2016-12-12  Bruno Haible  <bruno@clisp.org>
15354         fpending: Port to native Windows with MSVC.
15355         * lib/fpending.c: Include stdio-impl.h.
15356         (__fpending): Include all known implementations. Err out if it's not
15357         ported.
15358         * m4/fpending.m4 (gl_PREREQ_FPENDING): Remove macro.
15359         * modules/fpending (Files): Add lib/stdio-impl.h.
15360         (configure.ac): Don't invoke gl_PREREQ_FPENDING.
15362 2016-12-12  Bruno Haible  <bruno@clisp.org>
15364         stdioext: Port to native Windows with MSVC.
15365         * lib/stdio-impl.h (WINDOWS_OPAQUE_FILE): New macro.
15366         (struct _gl_real_FILE): New type.
15367         (fp_, _IOREAD, _IOWRT, _IORW, _IOEOF, _IOERR): New macros, for native
15368         Windows.
15369         * lib/fbufmode.c (fbufmode): Add code for native Windows.
15370         * lib/fflush.c (clear_ungetc_buffer): Treat native Windows like the
15371         other SystemV derived implementations.
15372         * lib/fpurge.c (fpurge): Likewise.
15373         * lib/freadable.c (freadable): Likewise.
15374         * lib/freadahead.c (freadahead): Likewise.
15375         * lib/freading.c (freading): Likewise.
15376         * lib/freadptr.c (freadptr): Likewise.
15377         * lib/freadseek.c (freadptrinc): Likewise.
15378         * lib/fseeko.c (fseeko): Likewise.
15379         * lib/fseterr.c (fseterr): Likewise.
15380         * lib/fwritable.c (fwritable): Likewise.
15381         * lib/fwriting.c (fwriting): Likewise.
15382         Reported by Gisle Vanem <gvanem@yahoo.no>.
15384 2016-12-11  Jim Meyering  <meyering@fb.com>
15386         non-recursive-gnulib-prefix-hack.m4: remove leading "(" in case stmt
15387         * m4/non-recursive-gnulib-prefix-hack.m4: That leading "(" happens
15388         to work with most shells, but not with the one provided by many
15389         Solaris 10 systems, so running configure with such a /bin/sh evokes
15390         e.g., "./configure: syntax error at line 33602: `(' unexpected".
15391         Reported by Assaf Gordon in
15392         https://lists.gnu.org/r/sed-devel/2016-12/msg00002.html
15394 2016-12-10  Bruno Haible  <bruno@clisp.org>
15396         threadlib: Optimize out runtime test on Solaris >= 10.
15397         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't set
15398         PTHREAD_IN_USE_DETECTION_HARD if configuring on Solaris 10 or newer.
15399         Reported by Peter Felecan at <https://savannah.gnu.org/bugs/?32087>.
15401 2016-12-10  Bruno Haible  <bruno@clisp.org>
15403         stdint: Update doc about Solaris 9.
15404         * doc/posix-headers/stdint.texi: Add info about Solaris 9.
15406 2016-12-09  Bruno Haible  <bruno@clisp.org>
15408         c-ctype tests: Fix link error on Solaris 9.
15409         * modules/c-ctype-tests (Depends-on): Add 'isblank'.
15410         Reported at <https://savannah.gnu.org/bugs/?46827>.
15412 2016-12-09  Paul Eggert  <eggert@cs.ucla.edu>
15414         dfa: fix performance bug that recomputes trans
15415         * lib/dfa.c (build_state): Fix performance bug introduced in Nov
15416         25 on-demand changes.  The bug caused build_state to reset all
15417         d->trans elements to -2 even when d->trans was already non-null.
15418         Use C99 style decls after statements in this function.
15420         same-inode: port to MinGW
15421         Here st_ino is always 0, so change the definition of SAME_INODE so
15422         that 1 means the two files are the same, 0 with st_ino != 0 means
15423         they differ, and 0 with st_ino == 0 means we don’t know.  Problem
15424         reported by Bruno Haible (Bug#25146).
15425         * doc/posix-headers/sys_stat.texi (sys/stat.h): Update.
15426         * lib/same-inode.h (SAME_INODE): Return 0 on MinGW.
15428 2016-12-04  Bruno Haible  <bruno@clisp.org>
15430         javacomp-script: Support Java 7 and 8.
15431         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.7, 1.8 and
15432         target-version 1.7, 1.8.
15434 2016-12-02  Daiki Ueno  <ueno@gnu.org>
15436         * gnulib-tool (func_import): Relax the regex used for "LGPLv3+ or
15437         GPLv2" rewriting.
15439 2016-12-02  Nikos Mavrogiannopoulos  <nmav@gnutls.org>
15441         * gnulib-tool (func_import): Adhere to the license guideline when
15442         rewriting the license text to "LGPLv3+ or GPLv2":
15443         https://www.gnu.org/prep/maintain/maintain.html#Licensing-of-GNU-Packages
15445 2016-12-02  Bruno Haible  <bruno@clisp.org>
15447         localcharset: Avoid theoretical buffer overrun.
15448         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Don't use the
15449         return value from setlocale if it would lead to a buffer overrun.
15451 2016-12-01  Bruno Haible  <bruno@clisp.org>
15453         Relicense some modules under LGPLv2+.
15454         Kevin Cernekee's approval is in
15455         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00090.html.
15456         * modules/fseterr (License): Change to LGPLv2+.
15457         * modules/mbchar (License): Likewise.
15458         * modules/mbiter (License): Likewise.
15459         * modules/mbsnlen (License): Likewise.
15460         * modules/wcwidth (License): Likewise.
15462 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
15464         scandir: Fix _D_ALLOC_NAMLEN() on OS/2 kLIBC
15465         * lib/scandir.c (_D_ALLOC_NAMLEN): Consider the fields after d_name on
15466         OS/2 kLIBC.
15468 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
15470         alphasort, scandir: Port to OS/2 kLIBC
15471         * lib/alphasort.c (alphasort): Implement according to OS/2 kLIBC
15472         declaration.
15473         * lib/scandir.c (scandir): Add declaration for OS/2 kLIBC.
15475 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
15477         relocatable: Fix that /@unixroot prefix is not working on OS/2 kLIBC
15478         * lib/relocatable.c (relocate): Do not touch pathname if it is started
15479         with '/@unixroot'.
15481 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
15483         sys_socket: typedef sa_family_t correctly on OS/2 kLIBC
15484         * lib/sys_socket.in.h (sa_family_t): Typedef to unsigned char on
15485         OS/2 kLIBC unless TCPV40HDRS is defined.
15487 2016-11-29  Jim Meyering  <meyering@fb.com>
15489         dfa: avoid new infinite loop
15490         This would infloop: echo cx | LC_ALL=C grep -E 'c\b[x ]'
15491         * lib/dfa.c (dfastate): When constructing a new state table, we could
15492         initially declare that we had found a match, and later find that
15493         constraints eliminate that possibility, yet continue to use the
15494         now stale "matched" indicator.  That would lead to an infinite loop.
15495         The solution is to update "matched" when necessary.
15496         Introduced by commit v0.1-983-g403adf1.
15498 2016-11-27  Norihiro Tanaka  <noritnk@kcn.ne.jp>
15500         dfa: avoid match middle in multibyte character
15501         * lib/dfa.c (transit_state): If fails in matching single byte characters
15502         on a state including period expression in non-UTF8 multibyte locales,
15503         skip trailing bytes.
15504         (dfa_supported): Revert previous change.
15506 2016-11-27  Jim Meyering  <meyering@fb.com>
15508         dfa: avoid false match in non-UTF8 multibyte locales
15509         * lib/dfa.c (dfa_supported): Treat any non-UTF8 multibyte locale
15510         as "not supported" so that callers will resort to using regex-based
15511         matcher.  This will surely hurt performance, but correctness trumps
15512         performance here, and the affected locales are less and less relevant,
15513         these days.  See grep's bug report https://bugs.gnu.org/24975.
15515 2016-11-27  Mike Frysinger  <vapier@gentoo.org>
15517         ptsname_r: leverage AC_HEADER_MAJOR to provide major()
15518         * lib/ptsname_r.c: Include the appropriate headers.
15519         [__sun]: Delete sys/sysmacros.h include.
15520         [_AIX || __osf__]: Likewise.
15521         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Depend on AC_HEADER_MAJOR.
15523 2016-11-27  Pádraig Brady  <P@draigBrady.com>
15525         md4,md5,sha*: allow _STRING_INLINE_unaligned enable unaligned operation
15526         * lib/md4.c (md4_process_bytes): The existing define is made internal
15527         in recent versions of glibc, so also use this new public define.
15528         * lib/md5.c (md5_process_bytes): Likewise.
15529         * lib/sha1.c (sha1_process_bytes): Likewise.
15530         * lib/sha256.c (sha256_process_bytes): Likewise.
15531         * lib/sha512.c (sha512_process_bytes): Likewise.
15533 2016-11-27  Pádraig Brady  <P@draigBrady.com>
15535         maint: use a more standard return from mbrtowc test
15536         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Don't return 1
15537         from the test program as this often indicates an
15538         unhandled case in the test program.
15539         (gl_MBRTOWC_INCOMPLETE_STATE): Likewise.
15540         (gl_MBRTOWC_SANITYCHECK): Likewise.
15541         (gl_MBRTOWC_NULL_ARG2): Likewise.
15542         (gl_MBRTOWC_NUL_RETVAL): Likewise.
15544 2016-11-26  Paul Eggert  <eggert@cs.ucla.edu>
15546         freopen: work around glibc bug with closed fd
15547         Work around glibc bug#15589, where freopen mishandles the case
15548         where stdin etc. are already closed.
15549         * doc/posix-functions/freopen.texi (freopen): Document the bug.
15550         * lib/freopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this
15551         instead of __need_FILE, as the latter does not work with glibc.
15552         Include <fcntl.h>, for open flags.
15553         (rpl_freopen): Work around glibc bug.
15554         * m4/freopen.m4 (gl_FUNC_FREOPEN): Check for bug.
15555         * modules/freopen (Depends-on): Add fcntl-h.
15556         * tests/test-freopen.c (main): Test for bug.
15558 2016-11-25  Paul Eggert  <eggert@cs.ucla.edu>
15560         fnmatch: fix typo introduced on 2016-08-17
15561         This fixes the port to non-GCC compilers that lack __builtin_expect.
15562         * lib/fnmatch.c (__builtin_expect): Change A&&B to !A||B.
15564         dfa: simplify with new function fillset
15565         * lib/dfa.c (fillset): New function.
15566         Use it for clarity when applicable.
15568         dfa: fix glitches with on-demand states
15569         Also, adjust commentary to better match new code.
15570         Some of these glitches predate the recent change.
15571         * lib/dfa.c (dfaanalyze): Clear trcount here, so that it counts
15572         only non-initial states.
15573         (dfastate): Rename locals to better match new roles.
15574         Move them into nested scopes if this is easy.
15575         Omit unnecessary calls to zeroset.
15576         Simplify test for whether to throw in the positions of state 0.
15577         Omit C99-ism (decl after statement) since Gawk still wants C89.
15578         (build_state): Omit unnecessary test and assignment.
15579         Fix some confusion that counted transition tables inaccurately
15580         and could cause a memory leak.
15581         (dfaexec_main): Redo to make it clearer to the compiler that
15582         -1 and -2 are the only negative state numbers here.
15584 2016-11-25  Norihiro Tanaka  <noritnk@kcn.ne.jp>
15586         dfa: addition of new state on demand
15587         * src/dfa.c (dfastate): Add argument UC, the current input character.
15588         Fill only a group including the character in transition table.
15589         (realloc_trans_if_necessary): Add the dummy state which means that a
15590         transition table is assigned but the next state is not assigned.
15591         (build_state): Return the next state.  All callers updated.
15592         (transit_state_singlebyte): If we get the dummy state,
15593         fill the transition table.
15594         (dfaexec_main): Handle the dummy state.
15595         (free_mbdata, dfafree): Consider the dummy state.
15597 2016-11-24  Daiki Ueno  <ueno@gnu.org>
15599         srclist: sync with released gettext
15600         * config/srclist.txt: Set "release" option to the files under
15601         $GETTEXT.
15603 2016-11-24  Daiki Ueno  <ueno@gnu.org>
15605         srclist: add "release" option
15606         * config/srclist.txt: Change the format so that the first column
15607         of each line points to the top-level directory of the source
15608         archive.
15609         * config/srclist-update: Accept "release" option that checks files
15610         from the most recently tagged revision in the source archive.
15612 2016-11-21  Bruno Haible  <bruno@clisp.org>
15614         snippet/c++defs: Simplify _GL_CXXALIAS_* macros.
15615         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
15616         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1,
15617         _GL_CXXALIAS_SYS, _GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2):
15618         Inline and remove member function 'rpl ()' of the wrapper struct.
15620 2016-11-20  Paul Eggert  <eggert@cs.ucla.edu>
15622         dfa: fix logic typo
15623         Problem reported by Stephane Chazelas (Bug#24973).
15624         * lib/dfa.c (using_simple_locale): Fix typo that caused some
15625         non-simple locales like fr_FR to be treated as simple.
15627 2016-11-20  Jim Meyering  <meyering@fb.com>
15629         fix test driver leaks: exclude, malloc, realloc
15630         * tests/test-exclude.c (main): Fix trivial leak.
15631         * tests/test-malloc-gnu.c (main): Likewise.
15632         * tests/test-realloc-gnu.c (main): Likewise.
15633         With these changes, grep's tests are now leak free.
15634         I.e., running them with ASAN elicits no failure:
15635           make CFLAGS='-O0 -ggdb3' AM_CFLAGS=-fsanitize=address \
15636             AM_LDFLAGS='-fsanitize=address -static-libasan' check
15638 2016-11-11  Bruno Haible  <bruno@clisp.org>
15640         libunistring: Relicense under dual "LGPLv3+ or GPLv2" license.
15641         * modules/libunistring: (License): Change from LGPL to
15642         "LGPLv3+ or GPLv2".
15643         * modules/libunistring-optional: Likewise.
15644         * modules/unicase/*: Likewise.
15645         * modules/uniconv/*: Likewise.
15646         * modules/unictype/*: Likewise.
15647         * modules/unigbrk/*: Likewise.
15648         * modules/unilbrk/*: Likewise.
15649         * modules/uniname/*: Likewise.
15650         * modules/uninorm/*: Likewise.
15651         * modules/unistdio/*: Likewise.
15652         * modules/unistr/*: Likewise.
15653         * modules/uniwbrk/*: Likewise.
15654         * modules/uniwidth/*: Likewise.
15656 2016-11-12  Bruno Haible  <bruno@clisp.org>
15658         Relicense some modules under LGPLv2+.
15659         Paul Eggert's approval is in
15660         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00037.html.
15661         Eric Blake's approval is in
15662         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00042.html.
15663         Ludovic Courtès's approval is in
15664         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00038.html.
15665         * modules/isnand-nolibm (License): Change to LGPLv2+.
15666         * modules/isnanf-nolibm (License): Likewise.
15667         * modules/isnanl-nolibm (License): Likewise.
15669 2016-11-19  Bruno Haible  <bruno@clisp.org>
15671         Relicense some modules under LGPLv2+.
15672         lib/float+.h is already under LGPLv2+ since 2007-07-13, per
15673         modules/vasnprintf.
15674         Paolo Bonzini's approval for lib/frexp.c and lib/frexpl.c is in
15675         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00074.html.
15676         All other significant changes to the files in lib/ of these modules
15677         are from me.
15678         * modules/memcmp2 (License): Change to LGPLv2+.
15679         * modules/amemxfrm (License): Likewise.
15680         * modules/fpieee (License): Likewise.
15681         * modules/fpucw (License): Likewise.
15682         * modules/frexp-nolibm (License): Likewise.
15683         * modules/frexpl-nolibm (License): Likewise.
15684         * modules/printf-frexp (License): Likewise.
15685         * modules/printf-frexpl (License): Likewise.
15686         * modules/printf-safe (License): Likewise.
15687         * modules/signbit (License): Likewise.
15689 2016-11-17  Bruno Haible  <bruno@clisp.org>
15691         Enable Unicode decoder safety unconditionally.
15692         * lib/unistr.in.h (u32_mbtouc_unsafe): Assume CONFIG_UNICODE_SAFETY.
15693         * lib/unistr/u8-mblen.c (u8_mblen): Likewise.
15694         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
15695         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
15696         * lib/unistr/u8-prev.c (u8_prev): Likewise.
15697         * lib/unistr/u8-strmblen.c (u8_strmblen): Likewise.
15698         * lib/unistr/u8-strmbtouc.c (u8_strmbtouc): Likewise.
15699         * lib/unistr/u16-mblen.c (u16_mblen): Likewise.
15700         * lib/unistr/u16-mbtouc-unsafe.c (u16_mbtouc_unsafe): Likewise.
15701         * lib/unistr/u16-mbtouc-unsafe-aux.c (u16_mbtouc_unsafe_aux): Likewise.
15702         * lib/unistr/u16-prev.c (u16_prev): Likewise.
15703         * lib/unistr/u16-strmblen.c (u16_strmblen): Likewise.
15704         * lib/unistr/u16-strmbtouc.c (u16_strmbtouc): Likewise.
15705         * lib/unistr/u32-mblen.c (u32_mblen): Likewise.
15706         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Likewise.
15707         * lib/unistr/u32-prev.c (u32_prev): Likewise.
15708         * lib/unistr/u32-next.c (u32_next): Likewise.
15709         * lib/unistr/u32-strmblen.c (u32_strmblen): Likewise.
15710         * lib/unistr/u32-strmbtouc.c (u32_strmbtouc): Likewise.
15711         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
15712         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
15713         * tests/unistr/test-u16-prev.c (check_invalid): Enable the
15714         CONFIG_UNICODE_SAFETY tests unconditionally.
15715         * tests/unistr/test-u32-mblen.c (main): Likewise.
15716         * tests/unistr/test-u32-mbtouc.h (test_function): Likewise.
15717         * tests/unistr/test-u32-prev.c (check_invalid): Likewise.
15718         * tests/unistr/test-u32-next.c (main): Likewise.
15719         * tests/unistr/test-u32-strmblen.c (main): Likewise.
15720         * tests/unistr/test-u32-strmbtouc.c (main): Likewise.
15721         * tests/unistr/test-u32-mbtouc.c (FULL_SAFETY): Remove macro.
15722         * lib/unistr/u8-check.c (u8_check): Remove old dead code.
15723         * lib/unistr/u8-mbtouc.c (u8_mbtouc): Likewise.
15724         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
15725         * lib/unistr/u8-mbtoucr.c (u8_mbtoucr): Likewise.
15726         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
15727         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
15728         * lib/unistr/u16-check.c (u16_check): Update comment.
15729         * NEWS: Mention the changes that callers should be aware of.
15731 2016-11-19  Bruno Haible  <bruno@clisp.org>
15733         relocatable-prog-wrapper: Fix breakage on Cygwin.
15734         * modules/relocatable-prog-wrapper (Files): Add lib/stat.c, lib/lstat.c.
15735         (Depends-on): Remove intprops.
15736         * lib/relocwrapper.c: Update dependency tree.
15737         (strerror): Undefine.
15738         * build-aux/install-reloc (func_create_wrapper): Do not compile
15739         strerror.c and strerror-override.c. Erase stat.o and lstat.o.
15741 2016-11-19  Bruno Haible  <bruno@clisp.org>
15743         strerror: Make it compile in C++ mode.
15744         * lib/strerror.c (strerror): Ignore the return value of memcpy().
15746 2016-11-15  Pedro Alves  <palves@redhat.com>
15748         sys_time: add gnulib::timeval for C++
15749         * lib/sys_time.in.h [__cplusplus && defined GNULIB_NAMESPACE]:
15750         Define "timeval" in the GNULIB_NAMESPACE namespace, and #undef any
15751         timeval macro.
15753 2016-11-14  Pedro Alves  <palves@redhat.com>
15755         snippet/c++defs: fix real-floating arg functions in C++ mode
15756         Also, define isfinite, isinf, isnan, signbit in the gnulib
15757         namespace instead of in the global namespace.
15758         * build-aux/snippet/c++defs.h (_GL_BEGIN_NAMESPACE)
15759         (_GL_END_NAMESPACE): New.
15760         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Use them.
15761         (isfinite, isinf, isnan, signbit) [__cplusplus &&
15762         GNULIB_NAMESPACE]: Define them in the GNULIB_NAMESPACE namespace
15763         instead of in the global namespace.
15764         * tests/test-math-c++.cc: Check that the isfinite, isinf, isnan,
15765         signbit overloads exist in the GNULIB_NAMESPACE namespace, instead
15766         of in the global namespace.
15768 2016-11-13  Jim Meyering  <meyering@fb.com>
15770         strftime: don't use __THROW
15771         Each use of __THROW would provoke this from gcc-7-to-be:
15773           lib/strftime.c:371:1: warning: '__leaf__' attribute has no effect \
15774             on unit local functions [-Wattributes]
15775           static int iso_week_days (int, int) __THROW;
15776           ^~~~~~
15777         * lib/strftime.c (__THROW): Don't define.
15778         Remove each use of __THROW.
15779         * lib/strftime.c (memcpy_lowcase, memcpy_uppcase): Remove __THROW.
15780         (tm_diff, iso_week_days, __strftime_internal): Likewise.
15782 2016-11-14  Paul Eggert  <eggert@union>
15784         obstack: port to gcc -fcheck-pointer-bounds
15785         Problem found by 'make check' failure on bleeding-edge coreutils
15786         on an MPX-enabled CPU (Intel Core i3-7100U) running GCC (Ubuntu
15787         6.2.0-5ubuntu12), configured via "./configure
15788         --enable-gcc-warnings CFLAGS='-mmpx -fcheck-pointer-bounds -g3
15789         -O2' LDFLAGS='-static-libmpx -static-libmpxwrappers'".
15790         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER):
15791         New macro, copied from fts_.h.
15792         (struct _obstack_chunk.contents): Use it.
15794 2016-11-14  Eric Blake  <eblake@redhat.com>
15796         strerror_r-posix: Another fix, for HAVE_DECL_STRERROR_R on mingw.
15797         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R, gl_FUNC_STRERROR_R_WORKS):
15798         Avoid _ONCE variants, which may supply a conflicting AC_DEFINE().
15800 2016-11-14  Pádraig Brady  <P@draigBrady.com>
15802         strptime: fix compile error in recent change
15803         * lib/strptime.c (__strptime_internal): Fix ported code.
15805 2016-11-11  Bruno Haible  <bruno@clisp.org>
15807         gnulib-tool: Support for the dual "LGPLv3+ or GPLv2" license.
15808         * gnulib-tool (--lgpl): Accept value 3orGPLv2.
15809         (func_import): Extend determination of license_incompatibilities.
15810         (func_create_testdir): Extend table of license compatibility. Handle
15811         also the licenses GPLv3+, GPL, LGPLv3+.
15813 2016-11-12  Paul Eggert  <eggert@cs.ucla.edu>
15815         strftime: tune %q
15816         * lib/strftime.c (__strftime_internal): Assume tp->tm_mon is in range.
15818         Merge strftime.c changes from glibc
15819         This incorporates:
15820         2007-10-16 [BZ #5184] Add tzset_called argument
15821         2008-06-13 [BZ #6612] pass reference to tzset_called around
15822         2009-10-30 Implement Burmese language locale for Myanmar
15823         2010-01-09 Add support for XPG7 testing
15824         2015-09-26 [BZ #18985] out of range data to strftime() causes a segfault
15825         2015-10-20 Convert miscellaneous function definitions to prototype style
15826         * lib/strftime.c: Copy glibc license, since gnulib-tool rewrites
15827         it anyway and this lessens the difference between gnulib and glibc.
15828         (USE_IN_EXTENDED_LOCALE_MODEL) [_LIBC]: Define.
15829         (__THROW): Define if standard headers do not.
15830         (LOCALE_PARAM): Rename from LOCALE_PARAM_PROTO.  All uses changed.
15831         (memcpy_locase, memcpy_uppcase, tm_diff, __strftime_internal):
15832         Declare with __THROW.
15833         (__strftime_internal): Rename from strftime_case_. Add arg for
15834         whether tzset is called.  All uses changed.  Call tzset at most
15835         once.  Allow %OC, for Burmese.
15836         (a_wkday, f_wkday, a_month, f_month) [_NL_CURRENT]:
15837         Don't assume values are in range.
15839 2016-11-12  Eric Blake  <eblake@redhat.com>
15841         strerror_r-posix: Fix override of AC_FUNC_STRERROR_R
15842         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): New override.
15843         (gl_FUNC_STRERROR_R): Don't reuse AC_DEFINE() with a potentially
15844         different value.
15846 2006-11-12  Pedro Alves  <palves@redhat.com>
15848         Fix gnulib C++ namespace support and std::frexp
15849         * lib/math.in.h (frexp): Use _GL_CXXALIASWARN1 instead of
15850         _GL_CXXALIASWARN.
15852 2006-11-12  Pedro Alves  <palves@redhat.com>
15854         GNULIB_NAMESPACE::func need not pull in rpl_func
15855         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
15856         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1, _GL_CXXALIAS_SYS)
15857         (_GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2): Define a wrapper
15858         struct instead of a function pointer.
15860 2016-11-09  Frediano Ziglio  <fziglio@redhat.com>
15862         manywarnings: fix -Wno-missing-field-initializers detection
15863         * m4/manywarnings.m4: Fix -Wno-missing-field-initializers detection
15864         to be independent of -Wunused-variable.  I.E. ensure the latter
15865         warning doesn't occur so that detection of the former is accurate.
15867 2016-11-05  Pádraig Brady  <pbrady@fb.com>
15869         strftime,strptime: support %q to represent the quarter
15870         * lib/strftime.c (strftime_case_): Add %q case.
15871         * lib/strptime.c (__strptime_internal): Likewise.
15872         * tests/test-strftime.c (quarter_test): A new test case.
15874 2016-11-03  Eric Blake  <eblake@redhat.com>
15876         bootstrap: Fix get_version() for AIX 5.3
15877         * build-aux/bootstrap (get_version): Factor out sed script, since
15878         indented comments choke AIX 5.3 sed.
15879         Reported-by: Michael Felt <aixtools@gmail.com>
15881 2016-11-03  Paul Eggert  <eggert@cs.ucla.edu>
15883         intprops: port to older XL C
15884         Problem reported by Alexander Samoilov in:
15885         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00166.html
15886         http://savannah.nongnu.org/bugs/?49448
15887         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM__TYPEOF__]:
15888         Define to 1 only for XL C 12.1 or later, since this bug
15889         occurs in XL C for AIX 6.0 but not in 12.1.
15891 2016-11-02  Pádraig Brady  <P@draigBrady.com>
15893         backupfile: initialize default suffix within the implementation
15894         * lib/backupfile.c (find_backup_file_name): Initialize the
15895         global variable here, to simplify usage, and to only call
15896         getenv() when needed.
15898 2016-11-01  Paul Eggert  <eggert@cs.ucla.edu>
15900         futimens: remove FIXME for old Linux kernels
15901         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Belatedy do a "simplify
15902         this in 2012" FIXME, like that for utimensat.
15904         utimensat: remove FIXME for old Linux kernels
15905         * lib/utimensat.c (rpl_utimensat): Update FIXME comment.
15906         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Belatedy do a "simplify
15907         this in 2012" FIXME, by assuming the file system bug is absent
15908         unless demonstrated to be present.  We no longer need to worry
15909         about Linux kernel 2.6.32 when building with newer kernels.
15911 2016-10-16  Bruno Haible  <bruno@clisp.org>
15913         qsort_r: Fix macrology for platforms that lack the function.
15914         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for qsort_r.
15915         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_QSORT_R.
15916         * modules/stdlib (Makefile.am): Substitute HAVE_QSORT_R.
15917         * lib/stdlib.in.h (qsort_r): Provide declaration if the function does
15918         not exist.
15919         * m4/qsort_r.m4 (gl_FUNC_QSORT_R): Use AC_CHECK_FUNCS to test whether
15920         the function exists.
15921         * modules/qsort_r: Add comments.
15923 2016-10-26  Paul Eggert  <eggert@cs.ucla.edu>
15925         sys_types: fix Texinfo typos
15926         * doc/glibc-functions/gnu_dev_major.texi:
15927         * doc/glibc-functions/gnu_dev_makedev.texi:
15928         * doc/glibc-functions/gnu_dev_minor.texi: Fix typos.
15930 2016-10-26  John David Anglin  <dave.anglin@bell.net>
15932         getprogname: port to HP-UX
15933         See Bug#24805.
15934         * lib/getprogname.c (getprogname) [__hpux]: Port.
15935         * tests/test-getprogname.c (STREQ) [__hpux]:
15936         Special-case for HP-UX limitations on program name length.
15938 2016-10-20  Bruno Haible  <bruno@clisp.org>
15940         Update doc about target platforms.
15941         * doc/gnulib-intro.texi (Target Platforms): Update list.
15943 2016-10-15  Bruno Haible  <bruno@clisp.org>
15945         opendir, readdir, closedir: Relicense under LGPLv2+.
15946         * modules/opendir (License): Change to LGPLv2+.
15947         * modules/readdir (License): Likewise.
15948         * modules/closedir (License): Likewise.
15950 2016-10-16  Bruno Haible  <bruno@clisp.org>
15952         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
15953         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Override the values set by the
15954         AC_FUNC_STRERROR_R macro. Define HAVE_DECL_STRERROR_R_ORIG.
15955         * lib/strerror_r.c: Use HAVE_DECL_STRERROR_R_ORIG instead of
15956         HAVE_DECL_STRERROR_R.
15958 2016-10-16  Bruno Haible  <bruno@clisp.org>
15960         Make the 'argp' module work without the 'error' module.
15961         * m4/argp.m4 (gl_ARGP): Require AC_FUNC_STRERROR_R.
15963 2016-10-25  Paul Eggert  <eggert@cs.ucla.edu>
15965         diffseq: restore TOO_EXPENSIVE heuristic
15966         * lib/diffseq.h: Problem with diffutils reported by Andreas Schwab
15967         (Bug#24715).  The simplest solution is to restore the
15968         TOO_EXPENSIVE heuristic that I added to GNU diff in 1993, while
15969         using a higher threshold to avoid Bug#16848 on smaller files.
15970         * lib/diffseq.h (struct context): Restore member too_expensive.
15971         (struct partition): Restore members lo_minimal, hi_minimal.
15972         (diag, compareseq): Restore arg find_minimal.  All uses changed.
15973         (diag): Restore the TOO_EXPENSIVE heuristic that I added back in
15974         1993 to make 'diff' run faster (but not as well) on large inputs,
15975         but use a threshold of 4096 instead of the old 256.
15976         * lib/fstrcmp.c (strcmp_bounded):
15977         * lib/git-merge-changelog.c (compute_differences):
15978         Adjust to diffseq.h changes.
15980 2016-10-22  Bruno Haible  <bruno@clisp.org>
15982         iconv: Avoid compilation error when bootstrapping GNU libiconv.
15983         * m4/iconv.m4 (AM_ICONV): When the system does not have an iconv()
15984         declaration yet, define ICONV_CONST to empty.
15986 2016-10-15  Bruno Haible  <bruno@clisp.org>
15988         Avoid gnulib-tool warnings about the dependencies of 'parse-datetime'.
15989         * gnulib-tool (func_get_license): Special-case the 'parse-datetime'
15990         module.
15992 2016-10-16  Bruno Haible  <bruno@clisp.org>
15994         system-quote tests: Avoid compiler warning on AIX.
15995         * tests/test-system-quote-child.c (fopen): Redefine like the system's
15996         <stdio.h> does.
15998 2016-10-16  Bruno Haible  <bruno@clisp.org>
16000         Fix some "gcc -Wall" warnings.
16001         * tests/test-ffsl.c (main): Use variable x, not i.
16002         * tests/test-posix_spawn3.c (parent_main): Consider the return value of
16003         freopen.
16004         * tests/test-sethostname1.c (main): Explicitly ignore the return value
16005         of sethostname.
16007 2016-10-16  Bruno Haible  <bruno@clisp.org>
16009         gnulib-tool: Make --create-testdir on all modules work again.
16010         * gnulib-tool (func_create_testdir): Don't include the
16011         non-recursive-gnulib-prefix-hack module.
16013 2016-10-21  Daiki Ueno  <ueno@gnu.org>
16015         libunistring: change the maintainer to 'all'
16016         * modules/gen-uni-tables, modules/libunistring:
16017         * modules/ucs4-utf16, modules/ucs4-utf8, modules/unicodeio:
16018         * modules/unitypes, modules/utf16-ucs4, modules/utf16-ucs4-unsafe:
16019         * modules/utf8-ucs4, modules/utf8-ucs4-unsafe:
16020         * modules/unicase/*, modules/uniconv/*, modules/unictype/*:
16021         * modules/unilbrk/*, modules/uniname/*, modules/uninorm/*:
16022         * modules/unistdio/*, modules/unistr/*, modules/uniwbrk/*:
16023         * modules/uniwidth/*: Change the maintainer to 'all'.
16025 2016-10-16  Bruno Haible  <bruno@clisp.org>
16027         Simplify "configure: checking ..." messages.
16028         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use AC_MSG_CHECKING instead of
16029         AC_MSG_NOTICE.
16030         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
16032 2016-10-20  Paul Eggert  <eggert@cs.ucla.edu>
16034         quotearg-tests: pacify gcc -Wall
16035         Problem reported by Bruno Haible in:
16036         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00066.html
16037         * tests/test-quotearg-simple.c (use_quote_double_quotes): Move here ...
16038         * tests/test-quotearg.h: ... from here.
16040 2016-10-20  Pádraig Brady  <P@draigBrady.com>
16042         canonicalize-lgpl: fix for missing SIZE_MAX on older systems
16043         * lib/canonicalize-lgpl.c [SIZE_MAX]: Define if needed.
16044         Needed on Centos <= 4.
16046 2016-10-20  Jim Meyering  <meyering@fb.com>
16048         printf.m4: fix a bug in detecting printf %j support
16049         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Fail any system for which
16050         uintmax_t is defined in neither stdint.h nor inttypes.h.
16051         Before, this macro might have mistakenly set
16052         gl_cv_func_printf_sizes_c99=yes on such a system.
16053         Spotted by Zev Weiss.
16055 2016-10-19  Paul Eggert  <eggert@cs.ucla.edu>
16057         sched: substitute HAVE_SYS_CDEFS_H too
16058         Problem reported by Tom G. Christensen in:
16059         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00084.html
16060         * m4/sched_h.m4 (gl_SCHED_H): Set and substitute HAVE_SYS_CDEFS_H.
16061         * modules/sched (Depends-on): Substitute HAVE_SYS_CDEFS_H.
16063 2016-10-19  Pádraig Brady  <P@draigBrady.com>
16065         quotearg: never write beyond the returned length
16066         * lib/quotearg.c (quotearg_buffer_restyled): Switch to a read-only
16067         scan of the string when we initially encounter a single quote when
16068         shell quoting, so that if we then switch to a more concise quoting method
16069         we will not have written beyond that returned length.
16070         This is significant for sh-quote, which has separate routines
16071         to determine the length and do the actual quoting.
16072         * tests/test-quotearg.h: Reinstate the buffer bounds checking
16073         now that we never write more than the returned length.
16075 2016-10-18  Bruno Haible  <bruno@clisp.org>
16077         getprogname tests: Avoid failure in packages that use libtool.
16078         * tests/test-getprogname.c (main): Strip "lt-" prefix.
16079         Based on a patch by Jim Meyering.
16081 2016-10-16  Bruno Haible  <bruno@clisp.org>
16083         getprogname: Fix test failure on Cygwin. Comments.
16084         * lib/getprogname.h: Add comments.
16085         * lib/getprogname.c: Add comments. Fix #elif indentation.
16086         * tests/test-getprogname.c (main): On Cygwin, expect a result without
16087         ".exe" suffix.
16089 2016-10-16  Bruno Haible  <bruno@clisp.org>
16091         Make sure the libunistring detection rejects older versions with a
16092         known bug.
16093         * modules/unistr/u8-strtok (configure.ac): Bump required version.
16094         * modules/unistr/u16-strtok (configure.ac): Likewise.
16095         * modules/unistr/u32-strtok (configure.ac): Likewise.
16097 2016-10-18  Bruno Haible  <bruno@clisp.org>
16099         sh-quote, system-quote: revert regression of unit test.
16100         * tests/test-sh-quote.c (check_one): Do detect buffer overruns.
16101         * tests/test-system-quote-main.c (check_one): Likewise.
16103 2016-10-16  Pádraig Brady  <P@draigBrady.com>
16105         quotearg: fix stale tests
16106         * tests/test-quotearg.c [locale_results]: Add the missing str7
16107         entries to the expected results.
16108         * tests/test-system-quote-main.c (check_one): Don't enforce that we
16109         don't write beyond the returned length, since that's no longer the
16110         case if we switch to a more concise quoting style.
16111         * tests/test-sh-quote.c (check_one): Likewise.
16112         (main): Adjust for the new more concise quoting style.
16113         Reported by Bruno Haible.
16115 2016-10-16  Jim Meyering  <meyering@fb.com>
16117         non-recursive-gnulib-prefix-hack: fix inconsequential typo
16118         * m4/non-recursive-gnulib-prefix-hack.m4: Change a hard-coded "lib"
16119         to "$1".  This macro is always invoked with $1 == lib.
16120         Spotted by Bruno Haible
16122 2016-10-16  Bruno Haible  <bruno@clisp.org>
16124         Fix a test crash.
16125         * tests/test-duplocale.c (main): Skip the test if the 'newlocale' call
16126         fails.
16128 2016-10-16  Pádraig Brady  <P@draigBrady.com>
16130         test-limits-h: suppress -Woverlength-strings
16131         * tests/test-limits-h.c [__GNUC__]: Ignore -Woverlength-strings.
16133 2016-10-15  Bruno Haible  <bruno@clisp.org>
16135         gettime, timespec, utimens: Relicense under LGPL.
16136         * modules/gettime (License): Change to LGPL.
16137         * modules/timespec (License): Likewise.
16138         * modules/utimens (License): Likewise.
16140 2016-10-14  Bruno Haible  <bruno@clisp.org>
16141             Pádraig Brady  <P@draigBrady.com>
16143         canonicalize-lgpl: Support the case path_max > INT_MAX.
16144         * lib/canonicalize-lgpl.c (__realpath): Declare n as ssize_t, not int.
16145         Fix overflow check, for platforms where 'size_t' is larger than 'long'.
16147 2016-10-13  Jim Meyering  <meyering@fb.com>
16149         getprogname: IBM z/OS: avoid NULL-dereference
16150         * lib/getprogname.c (getprogname) [__MVS__]: Don't dereference NULL
16151         upon strdup failure.
16153 2016-10-12  Jim Meyering  <meyering@fb.com>
16155         test-stdint: use _GL_VERIFY rather than "verify" for some tests
16156         * tests/test-stdint.c (verify_width): Implement with _GL_VERIFY
16157         and an abbreviated diagnostic rather than verify with the full one,
16158         because the full-length strings would evoke warnings from gcc with
16159         -Woverlength-strings.
16161 2016-10-13  Paul Eggert  <eggert@cs.ucla.edu>
16163         stdint: port SIZE_MAX to glibc s390
16164         Problem reported by Eric Blake in:
16165         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00031.html
16166         * doc/posix-headers/stdint.texi (stdint.h): Document the fix.
16167         * m4/stdint.m4 (gl_STDINT_H): Check that SIZE_MAX has the
16168         correct type, if possible.
16170 2016-10-13  Daniel Richard G.  <skunk@iSKUNK.ORG>
16172         getprogname: port to IBM z/OS
16173         * lib/getprogname.c (getprogname): Use w_getpsent() to get the name.
16175 2016-10-11  Jim Meyering  <meyering@fb.com>
16177         maint: remove stray space after "." in AC_DEFINE comment.
16178         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Remove space-after-".".
16179         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
16181 2016-10-05  Jim Meyering  <meyering@fb.com>
16183         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
16184         * lib/long-options.c (parse_long_options): Add a break statement
16185         to avoid this new warning/failure:
16186         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
16187           --create-testdir --dir=/t/x --with-tests --test long-options
16188         ../../gllib/long-options.c: In function 'parse_long_options':
16189         ../../gllib/long-options.c:66:12: error: this statement may \
16190           fall through [-Werror=implicit-fallthrough]
16191                    (*usage_func) (EXIT_SUCCESS);
16192                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
16194 2016-10-05  Jim Meyering  <meyering@fb.com>
16196         utimecmp: avoid new GCC 7 warning from -Wbool-operation
16197         Testing this module would fail when using GCC 7 like this:
16198         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
16199           --dir=/tmp/x --with-tests --test utimecmp
16200         ../../gllib/utimecmp.c: In function ‘utimecmp’:
16201         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
16202           [-Werror=bool-operation]
16203                          time_t s = src_s & ~ (res == 2 * BILLION);
16204                                             ^
16205         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
16206           [-Werror=bool-operation]
16207                src_s &= ~ (res == 2 * BILLION);
16208                         ^
16209         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
16210         Instead, make it explicit that we intend to apply it to 0 or 1.
16212 2016-10-10  Norihiro Tanaka  <noritnk@kcn.ne.jp>
16214         dfa: save memory for states
16215         * src/dfa (dfaexec_main): Beginning of dfa execution, release caches of
16216         states if dfa has a lot of caches.
16218 2016-10-10  Eli Zaretskii  <eliz@gnu.org>
16220         wchar, wctype-h: fix for MinGW 3.22.2
16221         * lib/wchar.in.h [__MINGW32__]: Add one more condition for
16222         special invocation, to fix issues with MinGW 3.22.2 wchar.h
16223         when included from <string.h>.
16224         * lib/wctype.in.h [__MINGW32__]: Add special invocation
16225         convention for MinGW 3.22.2, to solve issues with their
16226         wctype.h when included from <ctype.h>.
16228 2016-10-05  Jim Meyering  <meyering@fb.com>
16230         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
16231         * lib/long-options.c (parse_long_options): Add a break statement
16232         to avoid this new warning/failure:
16233         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
16234           --create-testdir --dir=/t/x --with-tests --test long-options
16235         ../../gllib/long-options.c: In function ‘parse_long_options’:
16236         ../../gllib/long-options.c:66:12: error: this statement may \
16237           fall through [-Werror=implicit-fallthrough]
16238                    (*usage_func) (EXIT_SUCCESS);
16239                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
16241         utimecmp: avoid new GCC 7 warning from -Wbool-operation
16242         Testing this module would fail when using GCC 7 like this:
16243         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
16244           --dir=/tmp/x --with-tests --test utimecmp
16245         ../../gllib/utimecmp.c: In function ‘utimecmp’:
16246         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
16247           [-Werror=bool-operation]
16248                          time_t s = src_s & ~ (res == 2 * BILLION);
16249                                             ^
16250         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
16251           [-Werror=bool-operation]
16252                src_s &= ~ (res == 2 * BILLION);
16253                         ^
16254         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
16255         Instead, make it explicit that we intend to apply it to 0 or 1.
16257 2016-10-03  Pádraig Brady  <P@draigBrady.com>
16259         quotearg: minimize shell quoting using double quotes
16260         * lib/quotearg.c (quotearg_buffer_restyled): If an ASCII single
16261         quote in encountered then use double quotes (c style quoting)
16262         when possible, as it simplifies the quoting.
16263         * tests/test-quotearg-simple.c: Add test cases.
16264         * tests/test-quotearg.h (use_quotearg_buffer): Adjust to account
16265         for the fact we now may write beyond the returned length.
16267 2016-10-02  Jim Meyering  <meyering@fb.com>
16269         vasnprintf.c: avoid spurious warning from GCC 7
16270         The presence of cpp directives renders this "FALLTHROUGH" comment
16271         ineffective, so does not suppress the -Wimplicit-fallthrough warning
16272         from GCC 7 built from git on 2016-10-02.
16273         * lib/vasnprintf.c (VASNPRINTF): Move comment down past two cpp
16274         directives, so that it takes effect once again.  This is clearly
16275         not a proper change, and I will revert it once this bug is fixed:
16276         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77817
16278 2016-10-01  Jim Meyering  <meyering@fb.com>
16280         getprogname: correct the test for a __progname variable
16281         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Use AC_CACHE_CHECK
16282         and AC_LINK_IFELSE to check for a global __progname.  If found,
16283         define HAVE_VAR___PROGNAME.
16284         * lib/getprogname.c (getprogname): Reflect the new name of the
16285         feature- checked preprocessor symbol:
16286         s/HAVE_DECL___PROGNAME/HAVE_VAR___PROGNAME/
16288 2016-09-28  Jim Meyering  <meyering@fb.com>
16290         u8-uctomb-aux.c: build: placate GCC 7's new -Wimplicit-fallthrough
16291         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Mark each end of
16292         fall-through case with a /* fallthrough */ comment.
16294         dfa: build: avoid warning from GCC 7's new -Wimplicit-fallthrough
16295         * lib/dfa.c (dfassbuild): Mark the end of this case with a
16296         /* fallthrough */ comment.
16298         getprogname: avoid __progname vs program_invocation_short_name pitfall
16299         I.e., don't let the OpenBSD 5.1 fix induce failure when using newer
16300         glibc.  Would have caused failure with Fedora 25's glibc-2.24-3, but
16301         not with Fedora 24's glibc-2.23.1-10.
16302         * lib/getprogname.c (__progname): Move this declaration down...
16303         (getprogname): ... into the #elif block where used, and make it
16304         explicitly "extern".
16306         getprogname: port to OpenBSD 5.1
16307         * lib/getprogname.c (__progname) [HAVE_DECL___PROGNAME]: Declare.
16308         (getprogname) [HAVE_DECL___PROGNAME]: Return __progname or "?".
16309         * modules/getprogname (configure.ac): Move most of this code...
16310         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): ... to this function,
16311         increment serial number, and add a test for __progname.
16312         https://bugs.gnu.org/24562
16313         Reported by Nelson H. F. Beebe.
16315 2016-09-24  Paul Eggert  <eggert@cs.ucla.edu>
16317         sched: port to GCC 6.2.1 on macOS Sierra
16318         Problem reported by Denis Davydov in:
16319         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00056.html
16320         * lib/sched.in.h [HAVE_SYS_CDEFS_H]:
16321         Include <sys/cdefs.h> before <sched.h>.
16322         * m4/nproc.m4 (gl_PREREQ_NPROC): Include errno.h before sched.h,
16323         so that we needn’t worry about the sched.h include bug here.
16324         * m4/sched_h.m4 (gl_SCHED_H): Check for sys/cdefs.h,
16325         and include it before <sched.h> if it exists, when
16326         checking for <sched.h>.
16328         tests/init.sh: port Alpine fix to AIX 7.1
16329         * tests/init.sh (compare_): When attempting to use diff -U3,
16330         prefer diff -u to -U3 to -c to plain diff.  Do not insist on
16331         diff -u not outputting a space after leading '+', as the users
16332         of 'compare' should not be that picky about its output format.
16333         In the AIX 7.1 case, return with diff exit status (or with 2 if
16334         trouble), instead of some random nonzero exit status.
16335         * tests/test-init.sh (test_compare): Remove space after leading
16336         '+', so that AIX 7.1 'diff' passes the test.
16338 2016-09-22  Paul Eggert  <eggert@cs.ucla.edu>
16340         nl_langinfo: pacify GCC
16341         * lib/nl_langinfo.c (ctype_codeset): Remove unused local.
16342         (rpl_nl_langinfo): Cast string literals to char *, to pacify GCC.
16344         stdint: also set GL_GENERATE_LIMITS_H
16345         Problem reported by Jim Meyering in:
16346         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00052.html
16347         * m4/stdint.m4 (gl_STDINT_H): Also redo the AM_CONDITIONAL.
16349         limits-h, stdint: Don't assume extensions, fix typo
16350         * m4/limits-h.m4 (gl_LIMITS_H):
16351         * m4/stdint.m4 (gl_STDINT_H):
16352         Don't assume AC_USE_SYSTEM_EXTENSIONS.
16353         * m4/stdint.m4 (gl_STDINT_H): Fix typo in setting of LIMITS_H,
16354         reported by Jim Meyering in:
16355         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00050.html
16357 2016-09-21  Jim Meyering  <meyering@fb.com>
16359         getprogname: port to AIX
16360         * lib/getprogname.c (getprogname) [_AIX]: Use getpid, getprocs64
16361         and strdup to obtain a short program name string.  Using code from
16362         Bruno Haible and an idea from Bastien ROUCARIÈS, in
16363         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
16364         Assaf Gordon reported that this new file would fail to compile on
16365         AIX-7.1 32bit.
16367 2016-09-16  Paul Eggert  <eggert@cs.ucla.edu>
16369         extensions: fix typo in comment
16370         * m4/extensions.m4: Sync from Autoconf master.
16372         stdint: support new _WIDTH macros
16373         * doc/posix-headers/stdint.texi: Document this.
16374         * lib/stdint.in.h: Add support for INTMAX_WIDTH. etc.
16375         * m4/stdint.m4 (gl_STDINT_H): Require gl_LIMITS_H.  Check for
16376         support for INTMAX_WIDTH, etc. as well as for support for just C99.
16377         * modules/stdint (Depends-on): Add limits-h.
16378         (Makefile.am): Substitute HAVE_C99_STDINT_H.
16379         * modules/stdint-tests (Depends-on): Add extensions, so that
16380         INTMAX_MAX etc. are defined.
16381         * tests/test-stdint.c: Verify the new macros.
16383         limits-h: new module
16384         This adds ISO/IEC TS 18661-1:2014 support to limits.h.
16385         * MODULES.html.sh: Add limits-h,and move size_max to stdint section.
16386         * doc/posix-headers/limits.texi: Document new module.
16387         * lib/limits.in.h, m4/limits-h.m4, modules/limits-h:
16388         * modules/limit-h-tests, tests/test-limits-h.c: New files.
16390         stdio: don't redefine __USE_MINGW_ANSI_STDIO
16391         * m4/stdio_h.m4 (gl_STDIO_H): Don't define __USE_MINGW_ANSI_STDIO
16392         if it is already defined.  Apparently GNU Emacs relies on this.  See:
16393         http://lists.gnu.org/r/emacs-devel/2016-09/msg00416.html
16395 2016-09-15  Eric Blake  <eblake@redhat.com>
16397         sys_types: avoid glibc 2.25 warnings about major()
16398         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Replace broken version in
16399         older autoconf.
16400         * doc/posix-headers/sys_types.texi (sys/types.h): Document fix.
16401         * doc/glibc-functions/gnu_dev_major.texi (gnu_dev_major): Likewise.
16402         * doc/glibc-functions/gnu_dev_makedev.texi (gnu_dev_makedev): Likewise.
16403         * doc/glibc-functions/gnu_dev_minor.texi (gnu_dev_minor): Likewise.
16405         mountlist: include sysmacros.h for glibc
16406         * m4/mountlist.m4 (gl_PREREQ_MOUTLIST_EXTRA): Include
16407         AC_HEADER_MAJOR.
16408         * lib/mountlist.c (includes): Use correct headers.
16410 2016-09-15  Paul Eggert  <eggert@cs.ucla.edu>
16412         extensions: port to more ISO C TSes
16413         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Sync from Autoconf
16414         master, to add support for more recent ISO C TRs and TSes.
16416 2016-09-13  Paul Eggert  <eggert@cs.ucla.edu>
16418         intprops: new macro TYPE_WIDTH
16419         * lib/intprops.h (TYPE_WIDTH): New macro.
16420         (TYPE_MAXIMUM, _GL_SIGNED_INT_MAXIMUM, INT_STRLEN_BOUND):
16421         * lib/ftoastr.h (_GL_FLOAT_DIG_BITS_BOUND):
16422         * lib/parse-datetime.y (parse_datetime2):
16423         Use it.
16425         extensions: port to recent ISO C TRs
16426         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
16427         Sync from Autoconf master, to add support for recent ISO C TRs.
16428         * m4/stdio_h.m4 (gl_STDIO_H): Define __USE_MINGW_ANSI_STDIO here,
16429         since AC_USE_SYSTEM_EXTENSIONS no longer does that as
16430         the MinGW option is not an extension.
16432 2016-09-11  Paul Eggert  <eggert@cs.ucla.edu>
16434         dfa: port to Solaris 9
16435         Problems reported by Tom G. Christensen in:
16436         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00031.html
16437         * modules/dfa (Depends-on): Add isblank.
16438         * modules/dfa-tests (dfa_match_aux_LDADD):
16439         Rename from test_stat_LDADD, to fix typo.
16440         * tests/dfa-match.sh: Don't require 'timeout'; use it if available.
16442 2016-09-10  Jim Meyering  <meyering@fb.com>
16444         strverscmp: avoid link failure on OS X
16445         * lib/strverscmp.c [!weak_alias]: Define __strverscmp to strverscmp.
16446         Reported by Assaf Gordon in https://bugs.gnu.org/24256#26
16448 2016-08-16  Jim Meyering  <meyering@fb.com>
16450         dfa: new module, importing grep's DFA matcher
16451         Since grep's DFA matcher is now being used by two gnulib-enabled
16452         projects, grep and sed, it makes sense to version-control its
16453         sources and unit tests in one place: here.
16454         * modules/dfa: New module.
16455         * modules/dfa-tests: New file.
16456         * lib/dfa.c: New file, from grep.
16457         * lib/dfa.h: Likewise.
16458         * lib/localeinfo.c: Likewise.
16459         * lib/localeinfo.h: Likewise.
16460         * tests/dfa-match-aux.c: Likewise.
16461         * tests/dfa-invalid-char-class.sh: Likewise.
16462         * tests/dfa-match.sh: Likewise, with minor changes.
16463         * MODULES.html.sh (Misc): Add "dfa" to this list.
16465 2016-09-09  Jim Meyering  <meyering@fb.com>
16467         getprogname-tests: don't depend on assert-h
16468         * modules/getprogname-tests (Depends-on): Remove assert-h.
16469         It was not needed, and in fact would cause build failure for
16470         coreutils on some systems.  Reported by Assaf Gordon in https:
16471         //lists.gnu.org/r/coreutils/2016-09/msg00016.html
16473 2016-09-07  Jim Meyering  <meyering@fb.com>
16475         getprogname-tests: work also when EXEEXT is nonempty
16476         * modules/getprogname-tests (Makefile.am): Define EXEEXT.
16477         * tests/test-getprogname.c (main): Use it.
16478         Suggested by Gisle Vanem.
16480 2016-09-07  Gisle Vanem  <gvanem@yahoo.no>
16482         getprogname: fix errors in previous change
16483         * lib/getprogname.c (getprogname) [HAVE_GETEXECNAME]:
16484         s/program_invocation_name/base/
16485         [HAVE_DECL___ARGV]: Handle NULL __argv or __argv[0].
16487 2016-09-08  Pádraig Brady  <P@draigBrady.com>
16489         parse-datetime: restrict debug output to input string
16490         * lib/parse-datetime.y (parse_datetime2): If we parse
16491         all of the input but determine it's invalid, ensure
16492         we don't output the now invalid input pointer.
16493         This issue was seen with `date -d 'now +1'`.
16495 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
16497         flexmember: new macro FLEXALIGNOF
16498         * lib/flexmember.h: Include <stddef.h>, for offsetof.
16499         (FLEXALIGNOF): Rename from _GL_XALLOC_ALIGNOF, as Emacs can use
16500         this macro.  Update comments.
16502 2016-09-07  Jim Meyering  <meyering@fb.com>
16504         getprogname: port to systems with __argv (mingw, msvc)
16505         * lib/getprogname.c (getprogname): Include "dirname.h" and use
16506         last_component: more general than open coding it with hard-coded "/".
16507         * lib/getprogname.h (getprogname): Prefer "char const *" consistently.
16508         * modules/getprogname (Depends-on): Add dirname-lgpl.
16509         (configure.ac): Check for __argv in <stdlib.h>.
16510         * modules/getprogname-tests: New file.
16511         * tests/test-getprogname.c: New file.
16512         Suggested by Gisle Vanem in
16513         https://lists.gnu.org/r/bug-gnulib/2016-09/msg00014.html
16515 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
16517         flexmember: port better to GCC + valgrind
16518         With a char[] flexible array member in a struct with nontrivial
16519         alignment, GCC-generated code can access past the end of the
16520         array, because GCC assumes there are padding bytes to get the
16521         struct aligned.  So the common idiom of malloc (offsetof (struct
16522         s, m), n) does not properly allocate an n-byte trailing member, as
16523         malloc’s argument should be the next multiple of alignof (struct s).
16524         See GCC Bug#66661: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
16525         Although C11 apparently permits this GCC optimization (i.e., there
16526         was a bug in Gnulib not in GCC), possibly this is a defect in C11.
16527         See the thread containing:
16528         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00317.html
16529         * lib/flexmember.h: New file.
16530         * lib/fnmatch.c, lib/fts.c, lib/glob.c, lib/idcache.c:
16531         * lib/localename.c, lib/time_rz.c:
16532         Include flexmember.h.
16533         * lib/fnmatch_loop.c (struct patternlist):
16534         * lib/localename.c (struct hash_node):
16535         Use FLEXIBLE_ARRAY_MEMBER.
16536         * lib/fnmatch_loop.c (EXT):
16537         * lib/fts.c (fts_alloc):
16538         * lib/glob.c (glob_in_dir):
16539         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
16540         * lib/localename.c (gl_lock_define_initialized):
16541         * lib/time_rz.c (tzalloc):
16542         Use FLEXSIZEOF instead of offsetof.
16543         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
16544         Check that the size of the struct can be taken.
16545         * modules/flexmember (Files): Add lib/flexmember.h.
16546         * modules/fnmatch, modules/glob, modules/localename (Depends-on):
16547         Add flexmember.
16549 2016-09-06  Paul Eggert  <eggert@cs.ucla.edu>
16551         getprogname: port to Solaris 10
16552         * lib/getprogname.c: Include stdlib.h, for getexecname decl.
16553         (getprogname) [HAVE_GETEXECNAME]: Use that, for Solaris 10.
16554         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Check for getexecname.
16556         stdalign: correct mistake in alignof doc
16557         Problem reported by Joseph Myers in:
16558         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00340.html
16559         * doc/posix-headers/stdalign.texi: Do not imply that C11 prohibits
16560         alignof(S) where S is a structure containing a flexible array
16561         member.  The Gnulib substitute does not support this, but C11 does.
16563 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
16565         main.mk: remove sc_program_name, since there is no more need to
16566         use set_program_name in tools (getprogname is enough for most
16567         of the cases).
16568         * cfg.mk (local-checks-to-skip): Remove sc_program_name.
16569         * top/maint.mk (sc_program_name): Remove.
16571 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
16573         Port tests away from progname, since modules that need the
16574         program name already depend on getprogname.
16575         * modules/acl-tests (Depends-on): Remove progname.
16576         * modules/argmatch (Depends-on): Likewise.
16577         * modules/argmatch-tests (Depends-on): Likewise.
16578         * modules/argp-tests (Depends-on): Likewise.
16579         * modules/argp-version-etc-tests (Depends-on): Likewise.
16580         * modules/array-list-tests (Depends-on): Likewise.
16581         * modules/array-oset-tests (Depends-on): Likewise.
16582         * modules/avltree-list-tests (Depends-on): Likewise.
16583         * modules/avltree-oset-tests (Depends-on): Likewise.
16584         * modules/avltreehash-list-tests (Depends-on): Likewise.
16585         * modules/carray-list-tests (Depends-on): Likewise.
16586         * modules/copy-file-tests (Depends-on): Likewise.
16587         * modules/exclude-tests (Depends-on): Likewise.
16588         * modules/fchownat-tests (Depends-on): Likewise.
16589         * modules/fdopendir-tests (Depends-on): Likewise.
16590         * modules/filenamecat-tests (Depends-on): Likewise.
16591         * modules/fstatat-tests (Depends-on): Likewise.
16592         * modules/fstrcmp-tests (Depends-on): Likewise.
16593         * modules/linked-list-tests (Depends-on): Likewise.
16594         * modules/linkedhash-list-tests (Depends-on): Likewise.
16595         * modules/mkdirat-tests (Depends-on): Likewise.
16596         * modules/nonblocking-pipe-tests (Depends-on): Likewise.
16597         * modules/nonblocking-socket-tests (Depends-on): Likewise.
16598         * modules/obstack-printf-tests (Depends-on): Likewise.
16599         * modules/openat-tests (Depends-on): Likewise.
16600         * modules/parse-datetime-tests (Depends-on): Likewise.
16601         * modules/pipe-filter-gi-tests (Depends-on): Likewise.
16602         * modules/pipe-filter-ii-tests (Depends-on): Likewise.
16603         * modules/quotearg-simple-tests (Depends-on): Likewise.
16604         * modules/quotearg-tests (Depends-on): Likewise.
16605         * modules/rbtree-list-tests (Depends-on): Likewise.
16606         * modules/rbtree-oset-tests (Depends-on): Likewise.
16607         * modules/rbtreehash-list-tests (Depends-on): Likewise.
16608         * modules/spawn-pipe-tests (Depends-on): Likewise.
16609         * modules/system-quote-tests (Depends-on): Likewise.
16610         * modules/uniname/uniname-tests (Depends-on): Likewise.
16611         * modules/uninorm/nfc-tests (Depends-on): Likewise.
16612         * modules/uninorm/nfd-tests (Depends-on): Likewise.
16613         * modules/uninorm/nfkc-tests (Depends-on): Likewise.
16614         * modules/uninorm/nfkd-tests (Depends-on): Likewise.
16615         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Likewise.
16616         * modules/unistdio/u16-vsprintf-tests (Depends-on): Likewise.
16617         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Likewise.
16618         * modules/unistdio/u32-vsprintf-tests (Depends-on): Likewise.
16619         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Likewise.
16620         * modules/unistdio/u8-vsprintf-tests (Depends-on): Likewise.
16621         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Likewise.
16622         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Likewise.
16623         * modules/unlinkat-tests (Depends-on): Likewise.
16624         * modules/version-etc-tests (Depends-on): Likewise.
16625         * modules/xalloc-die-tests (Depends-on): Likewise.
16626         * modules/xmemdup0-tests (Depends-on): Likewise.
16627         * modules/xprintf-posix-tests (Depends-on): Likewise.
16628         * modules/xvasprintf-tests (Depends-on): Likewise.
16629         * tests/test-argmatch.c: Do not include progname.h.
16630         (main) Stop calling set_program_name.
16631         * tests/test-argp-version-etc.c: Likewise.
16632         * tests/test-argp.c: Likewise.
16633         * tests/test-argv-iter.c: Likewise.
16634         * tests/test-array_list.c: Likewise.
16635         * tests/test-array_oset.c: Likewise.
16636         * tests/test-avltree_list.c: Likewise.
16637         * tests/test-avltree_oset.c: Likewise.
16638         * tests/test-avltreehash_list.c: Likewise.
16639         * tests/test-carray_list.c: Likewise.
16640         * tests/test-copy-acl.c: Likewise.
16641         * tests/test-copy-file.c: Likewise.
16642         * tests/test-exclude.c: Likewise.
16643         * tests/test-fchownat.c: Likewise.
16644         * tests/test-fdopendir.c: Likewise.
16645         * tests/test-filenamecat.c: Likewise.
16646         * tests/test-fstatat.c: Likewise.
16647         * tests/test-fstrcmp.c: Likewise.
16648         * tests/test-linked_list.c: Likewise.
16649         * tests/test-linkedhash_list.c: Likewise.
16650         * tests/test-mkdirat.c: Likewise.
16651         * tests/test-nonblocking-pipe-main.c: Likewise.
16652         * tests/test-nonblocking-socket-main.c: Likewise.
16653         * tests/test-obstack-printf.c: Likewise.
16654         * tests/test-openat.c: Likewise.
16655         * tests/test-parse-datetime.c: Likewise.
16656         * tests/test-pipe-filter-gi1.c: Likewise.
16657         * tests/test-pipe-filter-gi2-main.c: Likewise.
16658         * tests/test-pipe-filter-ii1.c: Likewise.
16659         * tests/test-pipe-filter-ii2-main.c: Likewise.
16660         * tests/test-quotearg-simple.c: Likewise.
16661         * tests/test-quotearg.c: Likewise.
16662         * tests/test-rbtree_list.c: Likewise.
16663         * tests/test-rbtree_oset.c: Likewise.
16664         * tests/test-rbtreehash_list.c: Likewise.
16665         * tests/test-sameacls.c: Likewise.
16666         * tests/test-set-mode-acl.c: Likewise.
16667         * tests/test-spawn-pipe-main.c: Likewise.
16668         * tests/test-system-quote-main.c: Likewise.
16669         * tests/test-unlinkat.c: Likewise.
16670         * tests/test-version-etc.c: Likewise.
16671         * tests/test-xalloc-die.c: Likewise.
16672         * tests/test-xfprintf-posix.c: Likewise.
16673         * tests/test-xmemdup0.c: Likewise.
16674         * tests/test-xprintf-posix.c: Likewise.
16675         * tests/test-xvasprintf.c: Likewise.
16676         * tests/uniname/test-uninames.c: Likewise.
16677         * tests/uninorm/test-u32-nfc-big.c: Likewise.
16678         * tests/uninorm/test-u32-nfd-big.c: Likewise.
16679         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
16680         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
16681         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
16682         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
16683         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
16684         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
16685         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
16686         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
16687         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
16688         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
16689         * tests/test-c-stack.c: (program_name): Do not define.
16690         (main): Do not set program_name.
16691         * tests/test-closein.c: Likewise.
16692         * tests/test-xstrtol.c: Likewise.
16693         * tests/test-yesno.c: Likewise.
16695 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
16697         Port modules to use getprogname explicitly, instead of requiring
16698         progname to be used (or program_name to be provided).
16699         * lib/argmatch.c: Do not include progname.h.
16700         [TEST] (program_name): Do not define.
16701         [TEST] (main): Call getprogname instead of using program_name.
16702         * lib/c-stack.c: Do not include progname.h.
16703         (program_name): Do not define.
16704         (die): Call getprogname instead of using program_name.
16705         * lib/chdir-long.c: Do not include progname.h.
16706         [TEST_CHDIR] (main): Do not set program_name.
16707         * lib/error.c [!_LIBC]: Include progname.h.
16708         [!_LIBC] (program_name): Define using getprogname.
16709         * lib/euidaccess.c: Do not include progname.h.
16710         [TEST] (main): Do not set program_name.
16711         * lib/git-merge-changelog.c: Include getprogname.h instead of
16712         progname.h.
16713         (usage): Call getprogname instead of using program_name.
16714         (main): Likewise.  Stop calling set_program_name.
16715         * lib/group-member.c: Do not include progname.h.
16716         [TEST] (main): Do not set program_name.
16717         * modules/argmatch (Depends-on): Add getprogname.
16718         * modules/c-stack (Depends-on): Likewise.
16719         * modules/error (Depends-on): Likewise.
16720         * modules/git-merge-changelog (Depends-on): Likewise.
16721         Also remove progname.
16723 2016-09-05  Pino Toscano  <ptoscano@redhat.com>
16725         * NEWS: Document the deprecation of the 'progname' module.
16727 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
16729         getprogname: new module
16730         This provides a LGPL module for getting the name of the current
16731         program, using the same API found on *BSD systems.
16732         * lib/getprogname.c, lib/getprogname.h, m4/getprogname.m4:
16733         * modules/getprogname: New files.
16734         * MODULES.html.sh (Misc): Add getprogname.
16736 2016-09-02  Jim Meyering  <meyering@fb.com>
16738         manywarnings: add -fno-common
16739         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -fno-common
16740         to the list.  Quoting the manual, "Compiling with -fno-common is
16741         useful on targets for which it provides better performance, or if
16742         you wish to verify that the program will work on other systems that
16743         always treat uninitialized variable declarations this way [putting
16744         it in the data section]."  If diffutils had been using this sooner,
16745         it would have prevented this duplicate declaration issue:
16746         http://git.sv.gnu.org/cgit/diffutils.git/commit/?id=v3.4-10-gc2dc91f
16748 2016-08-31  Simon Josefsson  <simon@josefsson.org>
16750         parse-datetime: Fix typo.
16751         * lib/parse-datetime.y (parse_datetime2): Fix typo.
16753 2016-08-30  Paul Eggert  <eggert@cs.ucla.edu>
16755         intprops: tune INT_NEGATE_OVERFLOW for GCC 5 and 6
16756         * lib/intprops.h (INT_NEGATE_OVERFLOW): Tune for platforms like
16757         GCC 5 and 6 that have __builtin_sub_overflow but not
16758         __builtin_sub_overflow_p.  With the recent changes, these
16759         platforms are a tiny bit faster with the INT_NEGATE_RANGE_OVERFLOW
16760         implementation than with INT_SUBTRACT_OVERFLOW implementation,
16761         since the former needs just one runtime comparison whereas the
16762         latter needs two.
16764         strverscmp: sync with glibc
16765         Although this doesn't exactly synchronize with glibc
16766         byte-for-byte, it makes the code behave the same as glibc.
16767         * lib/strverscmp.c (S_I, S_F, S_Z): Now masks, not powers of 2.
16768         (ISDIGIT): Remove, as glibc is sticking with isdigit, and the
16769         difference shouldn't matter in practical use.  All uses changed
16770         back to isdigit.
16771         (__strverscmp, strverscmp): Use new glibc method for weak aliases.
16772         (next_state): Now unsigned char array; redo elements.
16773         (result_type): Now signed char array; redo elements.
16774         (__strverscmp): Fix glibc bug 9913 by using new states.
16775         * tests/test-strverscmp.c (main): Test glibc bug 9913.
16777 2016-08-29  Jim Meyering  <meyering@fb.com>
16779         xalloc-oversized.h: port __builtin_mul_overflow change to GCC 6.2.0
16780         * lib/xalloc-oversized.h: Port this change to GCC 6.2.0, too,
16781         similarly to how it was done to intprops.h.
16783 2016-08-29  Paul Eggert  <eggert@cs.ucla.edu>
16785         intprops.h: port recent changes to GCC 6.2.0
16786         * lib/intprops.h (__has_builtin): Move earlier.
16787         (_GL_HAS_BUILTIN_OVERFLOW): Rename from
16788         _GL_HAS_BUILTIN_OVERFLOW_WITH_NULL and don't worry about whether
16789         the last argument can be null.  All uses changed.
16790         (_GL_HAS_BUILTIN_OVERFLOW_P): Also test __has_builtin.
16791         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
16792         Don't try to use 3rd arg null, as this doesn't work on GCC 6.2.0
16793         and it's not clear which GCC versions it works for.
16794         (_GL_INT_OP_WRAPV): Use _GL_HAS_BUILTIN_OVERFLOW instead of
16795         its definiens.
16797         intprops.h: use __typeof__ with GCC 7
16798         * lib/intprops.h (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW)
16799         (_GL_MULTIPLY_OVERFLOW): Use __typeof__ as in the GCC manual.
16800         This avoids computing the expression's value (which might overflow!).
16802 2016-08-29  Jim Meyering  <meyering@fb.com>
16804         intprops.h, xalloc-oversized.h: work with gcc 7
16805         In gcc 6, __builtin_add_overflow, __builtin_sub_overflow and
16806         __builtin_mul_overflow each accept a NULL pointer as the third
16807         argument.  However in gcc 7, that is no longer accepted.
16808         Instead, one must use the "_p"-suffixed names, with which, the
16809         third parameter is no longer a pointer.
16810         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): Correct
16811         the definition: not true for gcc 7 and subsequent.
16812         (_GL_HAS_BUILTIN_OVERFLOW_P): Define.
16813         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
16814         Provide new definitions for gcc 7 and subsequent.
16815         * lib/xalloc-oversized.h (xalloc_oversized): Provide a definition
16816         that works with gcc-7.
16818         intprops.h: fix missing-backslash problems
16819         * lib/intprops.h (_GL_ADD_OVERFLOW): Add backslash.
16820         (_GL_SUBTRACT_OVERFLOW,_GL_MULTIPLY_OVERFLOW): Likewise.
16822 2016-08-24  Paul Eggert  <eggert@cs.ucla.edu>
16824         intprops: fix paren typo on old platforms
16825         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300#13
16826         * lib/intprops.h (_GL_INT_OP_WRAPV_LONGISH)
16827         [__GNUC__ < 5 && !__has_builtin (__builtin_add_overflow)
16828         && (__STDC_VERSION__ < 201112 || _GL__GENERIC_BOGUS)
16829         && !defined LLONG_MAX]:
16830         Remove stray paren.
16832         intprops: port to OpenVMS
16833         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300
16834         * doc/posix-headers/limits.texi: Document the problem.
16835         * lib/intprops.h (LLONG_MAX, LLONG_MIN) [__INT64_MAX]:
16836         Define if not already defined.
16838 2016-08-19  Assaf Gordon  <assafgordon@gmail.com>
16840         parse-datetime: improve debug implementation
16841         Follow-up to commit 12ad79069 ("add optional debug printing").
16842         Improve parse-datetime's debug implementation: remove macros,
16843         replace global debug flag variable with a function parameter,
16844         use nstrftime for formatting.
16845         See: https://lists.gnu.org/r/bug-gnulib/2016-08/msg00021.html
16846         * lib/parse-datetime.h: (parse_datetime_debug): Remove global extern.
16847         (parse_datetime2): New function, accepts 'flags' parameter, supporting
16848         debug flag. Existing interface 'parse_datetime' left unmodified.
16849         * lib/parse-datetime.c: (parse_datetime_debug): Remove global variable.
16850         (struct parser_control): add 'parse_datetime_debug' member variable.
16851         (parse_datetime): Call new function 'parse_datetime2' without debug.
16852         (parse_datetime2): Adapted from previous 'parse_datetime', initialize
16853         pc.parse_datetime_debug variable as needed.
16854         (to_year): Accept new flags parameter, instead of using global variable.
16855         (debug_print_current_time,debug_print_relative_time,debug_mktime_not_ok):
16856         use struct 'debug' variable instead of global variable.
16857         (DEBUG,DEBUG_PRINT_CURRENT_TIME,DEBUG_PRINT_RELATIVE_TIME,
16858         DEBUG_MKTIME_NOT_OK,PROGRESS,PROGRESS0): Remove macros. Call
16859         correspnding functions directly instead of using macros.
16860         * modules/parse-datetime: Add gnulib's strftime module.
16862 2016-08-19  Daniel Richard G.  <skunk@iSKUNK.ORG>
16864         c-strcase-tests: port to EBCDIC
16865         * tests/test-c-strncasecmp.c: Allow two c_strncasecmp calls
16866         which assume ASCII encoding semantics to run only in ASCII
16867         mode, as they fail in EBCDIC.
16869         sigpipe-tests: fix typo
16870         * tests/test-sigpipe.sh: C, not B.
16872 2016-08-18  Paul Eggert  <eggert@cs.ucla.edu>
16874         canonicalize-lgpl: fix errno after malloca fails
16875         This fixes a typo I recently introduced.  Suggested by Bruno Haible in:
16876         http://lists.gnu.org/r/bug-gnulib/2016-08/msg00039.html
16877         * lib/canonicalize-lgpl.c (__realpath):
16878         Don't assume malloca sets errno on failure.
16880 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
16882         strtod: port errno handling to z/OS
16883         * lib/strtod.c (strtod): Save and restore errno more reliably.
16885 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
16887         strtod: port to z/OS
16888         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
16889         implementation.
16891 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
16893         strtod: port to z/OS
16894         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
16895         implementation.
16897         regex, string: rename to avoid '__string'
16898         * lib/regex.h, lib/string.in.h: Do not use the identifier
16899         '__string', as it is effectively reserved by string.h on z/OS.
16901         c-strcase-tests, wcwidth-tests: depend on c-ctype
16902         * modules/c-strcase-tests, modules/wcwidth-tests (Depends-on):
16903         Add c-ctype.
16905 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
16907         thread: port to z/OS
16908         * lib/glthread/thread.c, lib/glthread/thread.h:
16909         Rudimentary gl_thread support for z/OS.
16911         maint: port tests to z/OS errno behavior
16912         * tests/test-nonblocking-reader.h:
16913         * tests/test-nonblocking-writer.h:
16914         Accommodate z/OS errno code preferences. (I believe this should
16915         still be within spec; IBM is good at following the letter if not
16916         the spirit of such things.)
16918         maint: preprocessor changes to support z/OS
16919         * lib/alloca.in.h, lib/fnmatch.c, lib/get-rusage-as.c:
16920         * lib/glob.c, lib/math.in.h, lib/ptsname_r.c:
16921         * tests/infinity.h, tests/nan.h, tests/test-canonicalize-lgpl.c:
16922         * tests/test-nonblocking-pipe.h:
16924         fclose, strstr-simple, wchar: port to z/OS
16925         * m4/fclose.m4, m4/strstr.m4, m4/wchar_h.m4:
16926         Changes to the Autoconf M4 code to support z/OS.  Note that
16927         fclose() is broken in a different way on z/OS than it is on other
16928         systems, thus the special-case in fclose.m4.
16930         iconv_open-utf-tests, iconv-tests: port to EBCDIC
16931         * tests/test-iconv-utf.c, tests/test-iconv.c:
16932         Added appropriately conditional #pragmas so that the test strings
16933         in test-iconv-utf.c are correctly interpreted in ASCII instead of
16934         EBCDIC (i.e. 'J' == 0x4A and not 0xD1). This issue could be
16935         addressed in a more portable way by simply rewriting all the ASCII
16936         literal characters as octal escapes, but then you would lose the
16937         partial readability that the strings have now. Also, iconv_open()
16938         on z/OS does not recognize "ISO-8859-1", but "ISO8859-1" works.
16940         c-strcase-tests, wcwidth-tests: port to EBCDIC
16941         * tests/test-c-strcasecmp.c: Include c-ctype.h.
16942         (main) [!C_CTYPE_ASCII]: Skip tests that assume ASCII.
16943         * tests/test-wcwidth.c: Likewise.
16945 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
16947         stdbool: don't require _Bool for C++
16948         Problem reported by David Seifert in:
16949         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00005.html
16950         * NEWS, doc/posix-headers/stdbool.texi (stdbool.h): Document this.
16951         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Make the check
16952         more-forgiving for C++, in that it requires only 'bool'.  Be a bit
16953         stricter about checking that bool and _Bool are compatible in C.
16955 2016-08-16  Paul Eggert  <eggert@cs.ucla.edu>
16957         getdelim: remove dependency on realloc-posix
16958         * lib/canonicalize-lgpl.c (alloc_failed)
16959         [!FUNC_REALPATH_WORKS || defined _LIBC]: New function,
16960         (__realpath) [!FUNC_REALPATH_WORKS || defined _LIBC]: Use it.
16961         Use __set_errno where needed, for consistency.
16962         * lib/getdelim.c (alloc_failed): New function.
16963         (getdelim): Use it.
16965 2016-08-09  Assaf Gordon  <assafgordon@gmail.com>
16967         parse-datetime: add optional debug printing
16968         Print parsing information, warnings, and errors to stderr.
16969         * lib/parse-datetime.h (parse_datetimte_debug): New global variable.
16970         * lib/parse-datetime.y:
16971         (DEBUG_*):  Macros calling debug functions if debugging is enabled.
16972         (PROGRESS*): Same as DEBUG, for progress reporting.
16973         (dbg_printf): Print message to stderr, with 'date' prefix.
16974         (struct parser_control): Add 'debug_*_seen' variables.
16975         (str_days): Converts day ordinal/number to string (e.g. 'last wed').
16976         (debug_print_current_time, debug_print_relateive_time): Prints the
16977         current/relative date/time value of parser_control.
16978         (YACC parser syntax): Print parsed parts with DEBUG_* macros.
16979         (to_year): Warn about 2-digit year parsing.
16980         (yylex):   Warn about unrecognized words.
16981         (get_effective_timezone): Returns current timezone in minutes.
16982         (debug_strf{time,date,datetime}): Convert 'struct tm' to string as
16983         clearly and unambigiously as possible.
16984         (debug_mktime_not_ok): Print detailed information about failed
16985         date/time values.
16986         (parse_datetime): Add DEBUG messages for failures, warnings. Add
16987         PROGRESS messages for status messages.
16988         * modules/parse-datetime: Add 'timegm', 'gettext-h' dependencies.
16990 2016-08-06  Jim Meyering  <meyering@fb.com>
16992         tests/init.sh: exclude dash with bad "local" semantics
16993         * tests/init.sh (gl_shell_test_script_): Add a function to
16994         eliminate a shell like "dash" (unlike bash, zsh) that has
16995         surprising/risky "local var='...'" semantics.  Inspired by
16996         the problem and discussion in https://bugs.gnu.org/24116#11.
16998 2016-08-02  Ján Tomko  <jtomko@redhat.com>
17000         maint.mk: expand the prohibit_doubled_word regex
17001         This check has a static list of words that are checked for
17002         repetitions.  Expand it before running the perl script to
17003         avoid using expensive captures.  This decreases the cost
17004         for libvirt from 1.66s to 0.66s.
17005         * top/maint.mk (prohibit_doubled_word_expanded_): Define.
17006         (sc_prohibit_doubled_word): Use it.
17008 2016-07-26  Ján Tomko  <jtomko@redhat.com>
17010         useless-if-before-free: skip non-matching lines early
17011         * build-aux/useless-if-before-free: First match each line with the
17012         simple/quick /\bif\b/ and reject if there is no match. This often
17013         saves the cost of the much more involved regular expression.
17014         For libvirt, this decreases the cost from 1.44s to 1.02s.
17016 2016-07-26  Ján Tomko  <jtomko@redhat.com>
17018         maint.mk: speed up sc_po_check
17019         sc_po_check would skip files based on their names, or on the
17020         existence of files with derived names. Rewrite it to use perl
17021         instead of shell to make the check faster.
17022         * top/maint.mk (perl_translatable_files_list_): Define.
17023         (sc_po_check): Use it.
17025 2016-07-30  Ján Tomko  <jtomko@redhat.com>
17027         maint.mk: speed up require_config_h_first
17028         Instead of spawning three processes per file,
17029         rewrite the check in perl and run it once for all the files.
17030         * top/maint.mk (perl_config_h_first_): Define.
17031         (sc_require_config_h_first): Use it in place of shell code.
17033 2016-07-26  Ján Tomko  <jtomko@redhat.com>
17035         maint.mk: speed up sc_po_check
17036         sc_po_check would skip files based on their names, or on the
17037         existence of files with derived names. Rewrite it to use perl
17038         instead of shell to make the check faster.
17039         * top/maint.mk (perl_translatable_files_list_): Define.
17040         (sc_po_check): Use it.
17042 2016-07-15  Paul Eggert  <eggert@cs.ucla.edu>
17044         obstack: pacify GCC 6 with -Wnull-dereference
17045         Problem reported by Assaf Gordon in:
17046         http://lists.gnu.org/r/bug-gnulib/2016-07/msg00028.html
17047         * lib/obstack.c, lib/obstack.h (obstack_alloc_failed_handler):
17048         Declare with __attribute_noreturn__.
17049         * lib/obstack.h (__attribute_noreturn__): New macro.
17051 2016-07-13  Eric Blake  <eblake@redhat.com>
17053         doc: mention glibc, OS X, Cygwin [S]SIZE_MAX buglet
17054         * doc/posix-headers/stdint.texi (stdint.h): Document the bugs.
17055         * doc/posix-headers/limits.texi (limits.h): Document the bugs.
17057 2016-07-13  Paul Eggert  <eggert@cs.ucla.edu>
17059         doc: mention glibc SSIZE_MAX buglet
17060         * doc/posix-headers/limits.texi (limits.h): Document the bug.
17062 2016-07-04  Martin Kletzander  <mkletzan@redhat.com>
17064         printf-posix: Fix mingw build
17065         Commit 54615b95ff238e235e806855efc46a9abad09f2e changed the regular
17066         expression for detecting C symbol prefixes but forgot to qoute square
17067         brackets in the command line arguments for grep.  That way when
17068         building with mingw the condition was false although it ought to be
17069         true instead.  In particular scenarios this led to the following
17070         compile error:
17072             Cannot export rpl_printf: symbol not found
17073             Cannot export rpl_scanf: symbol not found
17074             collect2: error: ld returned 1 exit status
17076         Fix this by properly quoting square brackets.
17078 2016-07-03  Paul Eggert  <eggert@cs.ucla.edu>
17080         mktime: call tzset as per POSIX
17081         Problem reported by Ludovic Courtès in:
17082         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00068.html
17083         * lib/mktime.c (mktime) [!_LIBC && HAVE_TZSET]: Call tzset.
17084         * m4/mktime.m4 (gl_FUNC_MKTIME): Check for tzset.
17086 2016-06-26  Pádraig Brady  <P@draigBrady.com>
17088         fts: handle readdir() errors
17089         * lib/fts.c (fts_build): readdir(3) returns NULL when finished,
17090         but also upon error when it will also set errno.  Therefore
17091         flag the error case from readdir().  We treat the case where
17092         no items are read the same as if the dir can't be accessed,
17093         i.e. by setting fts_errno to FTS_DNR.
17095 2016-06-24  Paul Eggert  <eggert@cs.ucla.edu>
17097         intprops: port better to GCC 7
17098         GCC 7 __builtin_add_overflow supports a new usage form, where the
17099         last argument is a null pointer, and which merely returns 1 if an
17100         overflow would occur.  This is a constant expression if all
17101         arguments are constants, and should generate faster code when code
17102         needs to be generated.
17103         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): New macro.
17104         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
17105         Use builtin operations if available.
17106         (INT_NEGATE_OVERFLOW): Prefer INT_SUBTRACT_OVERFLOW if builtin
17107         operations are available, as it's almost surely faster.
17109 2016-06-23  Paul Eggert  <eggert@cs.ucla.edu>
17111         intprops-test: port to GCC 6
17112         * tests/test-intprops.c: Ignore -Woverflow if any GCC version,
17113         since the bug is not fixed in GCC 6.1.
17115 2016-06-13  Paul Eggert  <eggert@cs.ucla.edu>
17117         xalloc-oversized: port to GCC 7; fewer warnings
17118         GCC 7 will have a better way to deal with integer overflow.
17119         Plus, fix a warnings problem reported by Tim Ruehsen in:
17120         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00022.html
17121         * lib/xalloc-oversized.h (__xalloc_oversized): New macro.
17122         (xalloc_oversized): Use plain __builtin_mul_overflow if GCC 7 or later.
17123         For GCC 5, use __xalloc_oversized if both args are constants,
17124         or if pedantic.
17126 2016-06-08  Paul Eggert  <eggert@cs.ucla.edu>
17128         regex: port to Sun C
17129         Reported by Daiki Ueno.
17130         * lib/regcomp.c (regcomp, regerror): Use _Restrict_, not
17131         __restrict, in prototype.  This fixes a problem I introduced in
17132         the 2016-02-19 merge from glibc.
17134 2016-05-31  Paul Eggert  <eggert@cs.ucla.edu>
17136         stdbool: Restore __bool_true_false_are_defined check
17137         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL):
17138         __bool_true_false_are_defined is still defined, even with C++11.
17140 2016-05-31  David Seifert  <soap@gentoo.org>  (tiny change)
17142         stdbool: Port AC_CHECK_HEADER_STDBOOL to C++11
17143         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Port to C++11.
17145 2016-05-30  Paul Eggert  <eggert@cs.ucla.edu>
17147         Use GCC_LINT, not lint
17148         FreeBSD and Cygwin #define _Noreturn to empty if 'lint' is defined.
17149         Problem reported by Ken Brown in: http://bugs.gnu.org/23640
17150         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
17151         Document problem with lint and _Noreturn.
17152         * lib/diffseq.h (IF_LINT, IF_LINT2):
17153         * lib/fts.c (sccsid):
17154         * lib/getndelim2.c (IF_LINT):
17155         * lib/gl_anylinked_list2.h (gl_linked_iterator)
17156         (gl_linked_iterator_from_to):
17157         * lib/gl_anytree_list2.h (gl_tree_iterator)
17158         (gl_tree_iterator_from_to):
17159         * lib/gl_anytree_oset.h (gl_tree_iterator):
17160         * lib/gl_array_list.c (gl_array_iterator)
17161         (gl_array_iterator_from_to):
17162         * lib/gl_array_oset.c (gl_array_iterator):
17163         * lib/gl_carray_list.c (gl_carray_iterator)
17164         (gl_carray_iterator_from_to):
17165         * lib/idcache.c:
17166         * lib/inet_ntop.c (IF_LINT):
17167         * lib/regcomp.c (build_charclass_op, create_tree):
17168         * lib/regex_internal.c (re_acquire_state)
17169         (re_acquire_state_context):
17170         * lib/trigl.c (rcsid):
17171         * lib/trim.c (IF_LINT):
17172         * lib/vasnprintf.c (IF_LINT):
17173         * lib/verify.h (assume):
17174         Treat GCC_LINT like lint.
17176 2016-05-29  Bruno Haible  <bruno@clisp.org>
17178         secure_getenv: Port to many more platforms.
17179         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV): Also check for get*id
17180         functions.
17181         * lib/secure_getenv.c (secure_getenv): Add alternate implementations
17182         for non-BSD Unix platforms and for native Windows.
17183         * doc/glibc-functions/secure_getenv.texi: Remove known issue.
17184         Prompted by a request from Nikos Mavrogiannopoulos.
17186 2016-05-27  Eric Blake  <eblake@redhat.com>
17188         canonicalize: Fix broken probe for realpath.
17189         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Fix regression
17190         in logic introduced in 54615b95.
17192 2016-05-26  Eric Blake  <eblake@redhat.com>
17194         unsetenv: relax to LGPLv2+
17195         * modules/unsetenv (License): Match setenv license.
17197 2016-05-20  Ludovic Courtès  <ludo@gnu.org>
17199         gendocs.sh: Set default TOP_NODE_UP_URL in HTML output.
17200         Suggested by Gavin Smith <gavinsmith0123@gmail.com>.
17201         Reported by myglc2 <myglc2@gmail.com> in <http://bugs.gnu.org/22651>.
17202         * build-aux/gendocs.sh (MANUAL_TITLE, PACKAGE, EMAIL)
17203         (commonarg, dirargs, dirs, infoarg, generate_ascii)
17204         (generate_html, generate_info, generate_tex, outdir)
17205         (source_extra, split, srcfile, texarg): Move above 'version'.
17206         (htmlarg): Likewise, and add "-c TOP_NODE_UP_URL=/manual".
17208 2016-05-17  Paul Eggert  <eggert@cs.ucla.edu>
17210         manywarnings: update for GCC 6.1
17211         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
17212         Add GCC 6.1 options that apply to C.
17213         * build-aux/gcc-warning.spec: Add GCC 6.1 options that
17214         do not apply to C, are obsolescent, etc.
17216 2016-05-12  Paul Eggert  <eggert@cs.ucla.edu>
17218         glob: size_t overflow checks
17219         * lib/glob.c (__has_builtin): New macro.
17220         (size_add_wrapv, glob_use_alloca): New static functions.
17221         (glob, glob_in_dir): Check for size_t overflow in several places,
17222         and fix some size_t checks that were not quite right.
17224         glob: don't assume INT_MAX < SIZE_MAX
17225         * lib/glob.c (glob): Prefer SIZE_MAX to ~((size_t) 0), as the
17226         latter is not portable to (probably theoretical) hosts where
17227         SIZE_MAX <= INT_MAX.
17229 2016-05-09  Bruno Haible  <bruno@clisp.org>
17231         Fix undefined behaviour in gettext.h.
17232         * lib/gettext.h (dcpgettext_expr, dcnpgettext_expr): Avoid accessing a
17233         pointer's value after the storage it points to has been freed.
17234         Reported by Michael Pyne in https://savannah.gnu.org/bugs/?47847.
17235         Spotted by Coverity.
17237 2016-05-08  Paul Eggert  <eggert@cs.ucla.edu>
17239         git-version-gen: avoid undefined shift
17240         Problem reported by Mosè Giordano in:
17241         http://lists.gnu.org/r/bug-gnulib/2016-05/msg00012.html
17242         * build-aux/git-version-gen: Avoid undefined behavior if invoked
17243         with --prefix or --fallback but without a later argument.  While
17244         we're at it, omit unnecessary quotes.
17246 2016-05-04  Paul Eggert  <eggert@cs.ucla.edu>
17248         glob: merge glibc changes into lib/glob.c
17249         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c,
17250         dated 2016-05-04 12:09:35 2016 +0200.  Here are the changes:
17251         2016-05-04 CVE-2016-1234: glob: Do not copy d_name field of
17252           struct dirent [BZ #19779]
17253         2016-04-29 glob: Simplify the interface for the GLOB_ALTDIRFUNC
17254           callback gl_readdir
17255         2015-10-20 Convert miscellaneous function definitions to prototype style
17256         2015-10-20 Convert 113 more function definitions to prototype style
17257           (files with assertions)
17258         2015-06-12 Fix getlogin_r namespace (bug 18527).
17259         2014-02-10 Use glibc_likely instead __builtin_expect.
17260         2013-10-20 When glob pattern contains a trailing slash match only
17261           directories. Fixes bug 10278.
17262         2013-09-04 glob: silence -Wattribute warnings
17263         2013-06-07 Avoid use of "register" as optimization hint.
17264         2012-09-25 Use size_t instead of int for internal variables in glob
17265           (bug 14621)
17266         2011-07-20 Check for overflows in expressions
17267         2011-05-28 Remove unused variable
17268         2011-05-22 Add a few more alloca size checks
17269         2010-03-27 Whitespace fixes
17270         2010-03-27 Fix one more issue with the glob patch
17271         2010-03-24 Fix glob with empty pattern
17272         2008-05-27 Remove useless more "if" tests before "free"
17273         * modules/glob (Depends-on): Add stdint.
17275 2016-05-01  Paul Eggert  <eggert@cs.ucla.edu>
17277         mktime: port to stricter signed overflow checking
17278         * lib/mktime.c: Omit 'pragma GCC optimize ("wrapv")'.
17279         (long_int): Require width for INT_MAX * 3 * (seconds per year),
17280         instead of merely for INT_MAX * 2.  In practice platforms that
17281         do the latter also do the former.
17282         (TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT, SHR): Remove.
17283         (shr): New static function, replacing SHR.  All uses changed.
17284         (mktime_min, mktime_max): New constants, replacing TIME_T_MIN
17285         and TIME_T_MAX.  All uses changed.
17286         (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
17287         Use long_int, not time_t.
17288         (long_int_avg): New static function, replacing time_t_avg.
17289         All uses changed.  Round toward positive infinity, as that
17290         generates slightly better code.
17291         (time_t_add_ok, time_t_int_add_ok): Remove.  All uses replaced
17292         by INT_ADD_WRAPV.
17293         (guess_time_tm): Accept time, not a pointer to it.  All uses changed.
17294         (convert_time): New static function.
17295         (ranged_convert): Use it
17296         (ranged_convert): Check for *T out of [mktime_min, mktime_max] range.
17297         Use simpler test for loop exit.
17298         (__mktime_internal): Store negative of guessed offset, to simplify
17299         overflow checking.  Remove no-longer-needed test for small time_t
17300         overflows.
17302         mktime: speed up DEBUG_MKTIME benchmarks
17303         Call tzset just once, at the start, rather than for every test
17304         case.  This lets us measure the CPU cost of mktime as opposed to
17305         that of tzset.  This is relevant when TZ is not set and glibc is
17306         being used.  This speeds up tests by a factor of 40 on my Fedora
17307         23 x86-64 platform.
17308         * lib/mktime.c (main) [DEBUG_MKTIME]: Call localtime at the start,
17309         to call tzset and as a sanity check.  Later on, use localtime_r
17310         instead of localtime.
17312         mktime: resurrect DEBUG_MKTIME testing
17313         * lib/mktime.c [DEBUG_MKTIME]: Do not include <config.h>.
17314         Include <string.h>, for strcmp.
17316         mktime: simplify DEBUG_MKTIME
17317         * lib/mktime.c (DEBUG_MKTIME): Define to 0 if not defined.
17318         Simplify later usage accordingly.
17320         Port mktime_internal offset to unsigned time_t
17321         This avoids some assumptions about wraparound arithmetic on
17322         signed integer overflow.
17323         * lib/mktime-internal.h (mktime_offset_t): New type.
17324         (mktime_internal): Use it in decl.
17325         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]: New type.
17327         * lib/mktime.c (__mktime_internal, localtime_offset):
17328         * lib/timegm.c (timegm): Use it.
17329         * m4/mktime.m4 (gl_TIME_T_IS_SIGNED): New macro.
17330         (gl_FUNC_MKTIME): Require it.
17332 2016-04-27  Paul Eggert  <eggert@cs.ucla.edu>
17334         xstrtol: prohibit monstrosities like "1bB"
17335         Problem reported by Young Mo Kang in: http://bugs.gnu.org/23388
17336         * lib/xstrtol.c (__xstrtol): Allow trailing second suffixes like
17337         "B" only if the first suffix needs a base.
17338         * tests/test-xstrtol.sh: Test this.
17340 2016-04-21  Pádraig Brady  <P@draigBrady.com>
17342         xstrtod: reinstate setting of *result upon ERANGE
17343         * lib/xstrtod.c (XSTRTOD): The user may decide to use
17344         the returned limits upon ERANGE, so allow and document that.
17346 2016-04-20  Tino Calancha  <f92capac@gmail.com>  (tiny change)
17348         xstrtod: modify *result only if no errors
17349         * lib/xstrtod.c (XSTRTOD).
17351 2016-04-19  Paul Eggert  <eggert@cs.ucla.edu>
17353         btowc: document problems in C locale
17354         * doc/posix-functions/btowc.texi (btowc): Mention incompatibility
17355         with mbrtowc.  See: http://bugs.gnu.org/23269#32
17357 2016-04-13  Paul Eggert  <eggert@cs.ucla.edu>
17359         mktime: improve integer overflow checking
17360         * lib/mktime.c: Include stdbool.h, intprops.h, verify.h.
17361         (WRAPV): Remove; no longer needed.
17362         (verify): Remove.  Replace all uses with call to verify.h 'verify'.
17363         (TYPE_IS_INTEGER, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
17364         Remove.  Use intprops.h defns instead.
17365         (leapyear, isdst_differ, time_t_add_ok, time_t_int_ok):
17366         Use bool for Boolean, for clarity.
17367         (time_t_add_ok, time_t_int_add_ok): Use INT_ADD_WRAPV to
17368         detect integer overflow.
17369         * modules/mktime (Depends-on): Add intprops, stdbool, verify.
17371         intprops: check two's complement assumption
17372         Suggested by Eric Blake in:
17373         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00016.html
17374         * lib/intprops.h: Include <verify.h>.  Verify that signed char,
17375         short, int, long, and (if available) long long are two's complement.
17376         * modules/intprops (Depends-on): Add 'verify'.
17378         intprops, mktime, strtol: assume two's complement
17379         These macros were not portable to every conforming C11 ones'
17380         complement platform.  It's not worth the hassle of porting to some
17381         platforms that use ones' complement or signed magnitude, as such
17382         platforms are almost purely theoretical nowadays and porting even
17383         to some of them makes the code harder to review for little
17384         practical benefit.  Problem reported by Florian Weimer in:
17385         https://sourceware.org/ml/libc-alpha/2016-04/msg00295.html
17386         * lib/intprops.h (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
17387         (TYPE_SIGNED_MAGNITUDE, _GL_INT_TWOS_COMPLEMENT):
17388         * lib/mktime.c (TYPE_TWOS_COMPLEMENT):
17389         * lib/strtol.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
17390         (TYPE_SIGNED_MAGNITUDE):
17391         Remove.  All uses rewritten to assume two's complement, which is
17392         all we can reasonably test nowadays anyway.
17393         * top/maint.mk (_intprops_names): Remove the removed macros.
17395 2016-04-11  Paul Eggert  <eggert@cs.ucla.edu>
17397         stdint: port to strict C11 left shift
17398         * lib/stdint.in.h (_STDINT_MIN, _STDINT_MAX):
17399         Pacify clang -Wshift-negative-value, which should be an issue only
17400         on clang setups where stdint.h does not conform to C11 or to C++11.
17401         Problem reported by Philipp Stephani in: http://bugs.gnu.org/23261
17403 2016-04-09  Paul Eggert  <eggert@penguin.cs.ucla.edu>
17405         mbrtowc: work around glibc bug#19932
17406         Fix mbrtowc so that it never returns -1 in the C locale,
17407         as this conflicts with a future version of POSIX
17408         http://austingroupbugs.net/view.php?id=663#c2738
17409         and causes problems with GNU grep: http://bugs.gnu.org/23234
17410         See glibc bug 19932:
17411         https://sourceware.org/bugzilla/show_bug.cgi?id=19932
17412         * doc/posix-functions/mbrlen.texi (mbrlen):
17413         * doc/posix-functions/mbrtowc.texi (mbrtowc):
17414         Document the glibc bug.
17415         * lib/mbrtowc.c [C_LOCALE_MAYBE_EILSEQ]:
17416         Include hard-locale.h, locale.h.
17417         (rpl_mbrtowc): Work around the C_LOCALE_MAYBE_EILSEQ bug,
17418         if the bug is possible.
17419         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): New macro.
17420         (gl_FUNC_MBRTOWC): Use it, and define C_LOCALE_MAYBE_EILSEQ as needed.
17421         * modules/hard-locale (License): Now LGPLv2+, for mbrtowc.
17422         * modules/mbrtowc (Depends-on): Add hard-locale.
17423         * modules/mbrtowc-tests (Files, TESTS): Add tests/test-mbrtowc5.sh.
17424         * tests/test-mbrtowc.c (main): Test for bug fix if arg is '5'.
17425         * tests/test-mbrtowc5.sh: New file.
17427 2016-04-03  Pedro Alves  <palves@redhat.com>
17429         stdint: detect good enough pre-C++11 stdint.h in C++ mode
17430         When gnulib is configured in C++ mode for a system with a working C99
17431         implementation of stdint.h that predates C++11, gnulib ends up
17432         substituting stdint.h anyway.  This works on most targets, but on e.g.,
17433         64-bit MinGW, it doesn't, as gnulib's substitute assumes LP64, while
17434         MinGW is LLP64.  Instead of trying to detect the right types, detect
17435         good-enough-pre-C++11 stdint.h and in such case define
17436         __STDC_CONSTANT_MACROS/__STDC_LIMIT_MACROS in config.h.
17437         * m4/stdint.m4 (gl_STDINT_H): Always define __STDC_CONSTANT_MACROS
17438         / __STDC_LIMIT_MACROS while checking whether the system stdint.h
17439         conforms to C99.  If it does, check whether it hides symbols
17440         behind the __STDC_{CONSTANT|LIMIT}_MACROS macros.  Then if it
17441         does, define those macros in config.h.
17443 2016-04-03  Paul Eggert  <eggert@cs.ucla.edu>
17445         argp: merge changes from glibc
17446         Among other things, this should fix problems found by a Coverity
17447         scan and reported by Andrei Borzenkov:
17448         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00015.html
17449         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00016.html
17450         * lib/argp-ba.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h:
17451         * lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h:
17452         * lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c:
17453         * lib/argp.h:
17454         Merge changes from glibc.
17455         * tests/test-argp-2.sh: Adjust to match new behavior.
17457 2016-04-01  Paul Eggert  <eggert@cs.ucla.edu>
17459         stddef: support configuring with g++
17460         Problem reported by Ángel González in:
17461         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00003.html
17462         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS, max_align_t):
17463         Do not define if _GCC_MAX_ALIGN_T is defined.
17465 2016-03-25  Paul Eggert  <eggert@cs.ucla.edu>
17467         test-framework-sh: minor cleanups
17468         * tests/init.sh (testdir_prefix_): Output a trailing newline,
17469         since strictly speaking POSIX requires this.
17470         (setup_): Do not use the variable 'fail', as that makes the
17471         trace output harder to read ('fail' is typically used by
17472         tests to mean the test failed).  Treat // portably.
17473         Check that new directory is not merely a sibling of the tmp dir.
17474         Avoid unnecessary invocation of tr.
17476         test-framework-sh: revert port to NetBSD 7.0
17477         It was a false alarm; I misinterpreted Assaf Gordon's report.
17478         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
17479         Restore.
17480         (test_dir_): Adjust to mktempd_ change.
17481         (mktempd_): Restore 2nd arg.  Use -t again.
17482         (base_template_, template_, nx_): Resurrect old code.
17484         Port better to Alpine Linux
17485         Its diff implementation does not support -c, but does support -U3.
17486         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
17487         * tests/init.sh (diff_opt_): New var.
17488         (compare_): Prefer diff -U3 to diff -c to plain diff.
17490 2016-03-24  Paul Eggert  <eggert@cs.ucla.edu>
17492         test-framework-sh: port to NetBSD 7.0
17493         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
17494         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
17495         Remove.  All uses removed.
17496         (test_dir_): Adjust to mktempd_ change.
17497         (mktempd_): Omit 2nd arg.  Stop using -t, as it is not portable.
17498         (base_template_, template_, nx_): Simplify by hardcoding.
17500 2016-03-22  Paul Eggert  <eggert@cs.ucla.edu>
17502         gitlog-to-changelog: suppress ignored chatter
17503         * build-aux/gitlog-to-changelog: Do not warn about skipping
17504         an SHA if it would have been ignored anyway.
17506 2016-03-22  Geert Janssens  <janssens-geert@telenet.be>
17508         setlocale: add "sv" to Windows language table
17509         * lib/setlocale.c (language_table) [W32]: Add "sv".
17510         Reported in <https://savannah.gnu.org/bugs/?44588>.
17512 2016-03-21  Paul Eggert  <eggert@cs.ucla.edu>
17514         sys_select: port to new Cygwin
17515         Problem reported by Ken Brown in:
17516         https://lists.gnu.org/r/bug-gnulib/2016-03/msg00054.html
17517         * lib/sys_select.in.h [__CYGWIN__]: Avoid "unknown type name"
17518         diagnostics.
17520 2016-03-17  Jim Meyering  <meyering@fb.com>
17522         test-userspec.c: do not trigger gcc's new -Wmisleading-indentation
17523         * tests/test-userspec.c (main): Remove unnecessary braces and fix
17524         misleading indentation. Here is the diagnostic gcc-6.0-to-be issued:
17525           test-userspec.c:176:9: error: statement is indented as if it were \
17526             guarded by... [-Werror=misleading-indentation]
17527                    {
17528                    ^
17529           test-userspec.c:173:7: note: ...this 'if' clause, but it is not
17530                  if (!diag && !T[i].result)
17531                  ^~
17533 2016-03-15  Paul Eggert  <eggert@cs.ucla.edu>
17535         time_rz: port to clang -Wunused-const-variable
17536         * lib/time_rz.c (TZ): Remove.  All uses removed.
17538         std-gnu11: improve clang support
17539         * m4/std-gnu11.m4: Sync with autoconf, incorporating:
17540         2016-03-15 Also try clang
17541         2016-03-15 Port C11 and C++11 testing to clang
17543         select: port more to Intel 2016.1.150 compiler
17544         Problem reported by Balázs Hajgató in:
17545         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00036.html
17546         * m4/select.m4 (gl_FUNC_SELECT): Require AC_C_RESTRICT.
17548 2016-03-14  Paul Eggert  <eggert@cs.ucla.edu>
17550         select: try to port to 2016.1.150 compiler
17551         Problem reported by Balázs Hajgató in:
17552         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00026.html
17553         * lib/sys_select.in.h (select): Use 'restrict' on arguments where
17554         POSIX specifies 'restrict'.
17556 2016-03-13  Paul Eggert  <eggert@cs.ucla.edu>
17558         localename-tests: memory allocation fixes
17559         * tests/test-localename.c (test_locale_name)
17560         (test_locale_name_thread): Don't call freelocale on a locale
17561         that was the base of a successful newlocale, as that
17562         results in a double free.  Problem reported by Assaf Gordon.
17563         (test_locale_name_thread): Free saved names after use, to pacify
17564         gcc -fsanitize=address.
17566 2016-03-08  Paul Eggert  <eggert@cs.ucla.edu>
17568         intprops: make .h file license match module
17569         * lib/intprops.h: Change the license wording to match glibc format.
17570         This is what is in modules/intprops anyway.  See:
17571         https://sourceware.org/bugzilla/show_bug.cgi?id=19738#c8
17573 2016-03-08  Eric Blake  <eblake@redhat.com>
17575         acl: fix missing return on Cygwin
17576         * lib/set-permissions.c (set_acls) [HAVE_FACL && GETACL]: Don't
17577         fall off end of function. Fixes http://bugs.gnu.org/22949
17579 2016-03-05  Bruno Haible  <bruno@clisp.org>
17581         extern-inline: port to PGI CC
17582         * m4/extern-inline.m4 (gl_EXTERN_INLINE): For PGI CC, don't use the
17583         keyword 'inline'.
17584         Reported by Adam James Stewart in:
17585         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00006.html
17587 2016-02-20  Paul Eggert  <eggert@cs.ucla.edu>
17589         signbit: port back to pre-C++11 GCC
17590         * lib/math.in.h (signbit): Do previous change only if
17591         __cplusplus < 201103.  See Jonathan Wakely in:
17592         https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/UY3VX3W7XEXYTUKHG5BALU4ACUD7ZLGE/
17594 2016-02-19  Kamil Dudka  <kdudka@redhat.com>
17596         mountlist: recognize autofs-mounted remote file systems, too
17597         Originally reported at: https://bugzilla.redhat.com/1309247
17598         * lib/mountlist.c (ME_REMOTE): Return true if a file system is named
17599         "-hosts" because it is used by autofs to mount remote file systems.
17601 2016-02-19  Paul Eggert  <eggert@cs.ucla.edu>
17603         signbit: port to C++ with GCC 6
17604         * lib/math.in.h (signbit) [__cplusplus]:
17605         Do not replace with GCC builtin.  Reported by Orion Poplawski in:
17606         http://lists.gnu.org/r/bug-gnulib/2016-02/msg00005.html
17608         * lib/regex_internal.h (IDX_MAX) [_REGEX_LARGE_OFFSETS]: Now SSIZE_MAX.
17610         regex: make it closer to libc
17611         Make Idx a signed type, rather than possibly unsigned.
17612         The unsignedness was not really buying us anything, since the code
17613         overflows for other reasons before getting to PTRDIFF_MAX.  Making
17614         it signed allows us to use -1 and -2 with abandon, like libc does,
17615         thus lessening the number of differences between gnulib and libc.
17616         Also, it should help avoid gratuitous warnings like the one
17617         reported by Nelson H. F. Beebe in: http://bugs.gnu.org/22702
17618         * lib/regex.h (__re_idx_t): Remove.  All uses changed to regoff_t.
17621         regex: merge patches from libc
17623         2015-10-21  Joseph Myers  <joseph@codesourcery.com>
17624         2015-10-20  Joseph Myers  <joseph@codesourcery.com>
17625         Convert miscellaneous function definitions to prototype style.
17626         * lib/regcomp.c (re_compile_pattern, re_set_syntax)
17627         (re_compile_fastmap, regcomp, regerror, regfree, re_comp):
17628         * lib/regexec.c (regexec, re_match, re_search, re_match_2, re_search_2)
17629         (re_search_2_stub, re_search_stub, re_set_registers, re_exec)
17630         (re_search_internal):
17631         Convert to prototype-style function definition.
17632         Use internal_function for internal functions.
17634 2016-02-10  Paul Eggert  <eggert@cs.ucla.edu>
17636         stdalign: port to older HP and IBM cc
17637         * lib/stdalign.in.h (_Alignas): Port better to older HP and IBM
17638         C compilers, by checking their version numbers.  These version
17639         numbers appear in MariaDB and in Qt code that dates way back and
17640         that conditiionally uses the 'aligned' attribute.
17642 2016-02-09  Paul Eggert  <eggert@cs.ucla.edu>
17644         stdalign: port to clang 3.7.0
17645         Problem reported by Herbert J. Skuhra in:
17646         http://lists.gnu.org/r/emacs-devel/2016-02/msg00476.html
17647         * lib/stdalign.in.h (alignas): Fix typo that prevented 'alignas'
17648         from being defined on clang 3.7.0, which has a buggy stdalign.h.  See:
17649         https://llvm.org/bugs/show_bug.cgi?id=26547
17651 2016-02-08  Paul Eggert  <eggert@cs.ucla.edu>
17653         readdir_r: now obsolescent
17654         * doc/posix-functions/readdir_r.texi (readdir_r): Now obsolescent.
17655         * lib/mountlist.c (read_file_system_list): Add a FIXME.
17657 2016-02-06  Paul Eggert  <eggert@cs.ucla.edu>
17659         misc: port better to gcc -fsanitize=address
17660         Without these patches, ./configure CFLAGS='-fsanitize=address'
17661         would compute incorrect values.  This patch fixes some (but not all)
17662         test failures with recent glibc, with this configuration.
17663         * m4/acl.m4 (gl_ACL_GET_FILE):
17664         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF):
17665         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS):
17666         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO):
17667         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE):
17668         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
17669         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
17670         * m4/getgroups.m4 (gl_FUNC_GETGROUPS):
17671         * m4/getline.m4 (gl_FUNC_GETLINE):
17672         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF):
17673         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF):
17674         * m4/regex.m4 (gl_REGEX):
17675         * m4/strndup.m4 (gl_FUNC_STRNDUP):
17676         * tests/test-calloc-gnu.c (main):
17677         * tests/test-duplocale.c (main):
17678         * tests/test-getgroups.c (main):
17679         * tests/test-getline.c (main):
17680         * tests/test-inttostr.c (main):
17681         * tests/test-localename.c (test_locale_name)
17682         (test_locale_name_thread, test_locale_name_environ)
17683         (test_locale_name_default):
17684         * tests/test-regex.c (main):
17685         * tests/test-setlocale1.c (main):
17686         * tests/test-stat.h (test_stat_func):
17687         Free heap-allocated storage before exiting.
17688         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX):
17689         Don't match *_foo symbols inserted by AddressSanitizer.
17690         * tests/test-regex.c, tests/test-stat.c: Include stdlib.h, for 'free'.
17692 2016-02-02  Jim Meyering  <meyering@fb.com>
17694         verify-tests: also remove stray test-verify.Tpo
17695         * modules/verify-tests (Makefile.am): Arrange for "make clean"
17696         to remove the test-verify.Tpo file that is left behind by
17697         the automake-generated rule upon compilation failure.
17698         Otherwise, that .Tpo file would cause a failed "make distcheck"
17699         at least for grep.
17701 2016-02-02  Paul Eggert  <eggert@cs.ucla.edu>
17703         std-gnu11: new module
17704         This makes it easier for applications to prefer C11 and C++11
17705         to older variants, when compiling C and C++ code.
17706         Unlike most m4/*.m4 files, m4/std-gnu11.m4 is GPLed, as it copies
17707         a nontrivial chunk of GPLed Autoconf source code.
17708         * COPYING: Mention the m4/*.m4 copyright situation.
17709         * MODULES.html.sh (std-gnu11): New module.
17710         * m4/std-gnu11.m4, modules/std-gnu11: New files.
17712 2016-01-25  Paul Eggert  <eggert@cs.ucla.edu>
17714         get-permissions, strftime: fix grammar in comments
17715         * lib/get-permissions.c, lib/strftime.c: Merge into the comments
17716         some grammar fixes Alan Mackenzie made to GNU Emacs.
17718 2016-01-25  Daiki Ueno  <ueno@gnu.org>
17720         gettext: mark as obsolete
17721         Suggested by Paul Eggert in:
17722         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00101.html
17723         * modules/gettext (Status): Mark as obsolete.
17724         (Notice): Suggest to use 'gettext-h' instead.
17725         * modules/gettext-h (Description): Suggest GNU gettext, instead of
17726         the 'gettext' module.
17728 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
17730         gnulib-tool: don't give up on ln -s so easily
17731         * gnulib-tool (func_ln_s): Don't give up on a later ln -s merely
17732         because an earlier one failed.  The targets could be on different
17733         file systems.  Problem reported by KO Myung-Hun in:
17734         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00081.html
17736         closedir: fix OS/2-related typos
17737         Problem reported by KO Myung-Hun in:
17738         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00107.html
17739         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Fix a couple of typos
17740         in the last couple of changes.
17742 2016-01-24  KO Myung-Hun  <komh78@gmail.com>
17744         openat_proc_name: fix that last '/' is overwritten on OS/2 kLIBC
17745         * lib/openat-proc.c (openat_proc_name): Increase dirlen by 1 after
17746         copying a directory.
17748 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
17750         regex: treat [x] as x if x is a unibyte encoding error
17751         Problem reported by Aharon Robbins in:
17752         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00091.html
17753         * lib/regcomp.c (parse_byte) [!_LIBC && RE_ENABLE_I18N]: New function.
17754         (build_range_exp) [!_LIBC && RE_ENABLE_I18N]: Use it.
17756         closedir, dirfd, opendir: port to OpenSolaris 5.10
17757         * m4/closedir.m4 (gl_FUNC_CLOSEDIR):
17758         * m4/dirfd.m4 (gl_FUNC_DIRFD):
17759         * m4/opendir.m4 (gl_FUNC_OPENDIR):
17760         Don't use ${word##pat} substitution, as it doesn't work in
17761         OpenSolaris 5.10 /bin/sh.  Problem reported by Assaf Gordon in:
17762         http://bugs.gnu.org/22443#11
17764 2016-01-23  Paul Eggert  <eggert@cs.ucla.edu>
17766         bootstrap: use American spelling
17767         * build-aux/bootstrap: Honor American spelling.
17769 2016-01-22  Karl Berry  <karl@freefriends.org>
17771         * doc/posix-functions/localtime.texi,
17772         * doc/posix-functions/localtime_r.texi: @item needed for @itemize text.
17774 2016-01-21  Bruno Haible  <bruno@clisp.org>
17776         hash-pjw-bare: fix comment
17777         * lib/hash-pjw-bare.h (hash_pjw_bare): Fix comment.
17779         wcwidth: Replace also on OpenBSD 5.8
17780         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the value of wcwidth(0xFF1A).
17781         * doc/posix-functions/wcwidth.texi: Update.
17783 2016-01-20  Pádraig Brady  <P@draigBrady.com>
17785         gnu-web-doc-update: fix addition of new files
17786         If there were already added (emnpty) dirs,
17787         then cvs aborts the add with the message:
17788           cvs [add aborted]: there is a version in <./dirname> already
17789         * build-aux/gnu-web-doc-update: Add directories separately
17790         to the addition of files, to avoid the above issue
17791         impacting the addition of files.
17793 2016-01-19  Daiki Ueno  <ueno@gnu.org>
17795         utimens-tests: avoid pulling gettext .m4 files
17796         Although this is not the right fix to the original problem:
17797         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html
17798         it makes it possible again for consumer projects to use arbitrary
17799         version of gettext, through the steps described at:
17800         http://www.gnu.org/software/gnulib/manual/html_node/gettextize-and-autopoint.html
17801         See here for details:
17802         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00079.html
17803         * modules/futimens-tests (Depends-on): Add 'gettext-h' in place of
17804         'gettext'.
17805         * modules/utimens-tests (Depends-on): Add 'gettext-h' in place of
17806         'gettext'.
17808 2016-01-18  Paul Eggert  <eggert@cs.ucla.edu>
17810         regex: pacify static checkers
17811         Problem and draft fix reported by Aharon Robbins in:
17812         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
17813         * lib/regcomp.c (build_charclass_op, create_tree) [lint]:
17814         Clear memory to pacify static checkers.
17816         regex: fix [ diagnostic
17817         Problem and fix reported by Aharon Robbins in:
17818         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
17819         * lib/regcomp.c (REG_EBRACK_IDX): Fix misleading diagnostic about [.
17821         regex: fix memory leaks
17822         Problem and draft fix reported by Aharon Robbins in:
17823         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
17824         * lib/regcomp.c (build_range_exp, build_charclass_op)
17825         * lib/regex_internal.c (re_dfa_add_node):
17826         Fix memory leak on failure.
17828 2016-01-18  Pádraig Brady  <P@draigBrady.com>
17830         fts: don't unconditionally use leaf optimization for NFS
17831         NFS st_nlink are not accurate on all implementations,
17832         leading to aborts() if that assumption is made.
17833         See <https://bugzilla.redhat.com/1299169>
17834         * lib/fts.c (leaf_optimization_applies): Remove NFS from
17835         the white list, and document the issue.
17837 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
17838             KO Myung-Hun  <komh@chollian.net>
17840         gnulib-tool: don't assume ln -s works
17841         * gnulib-tool (func_ln_s): New function.
17842         (func_ln): Use it.
17844 2016-01-15  KO Myung-Hun  <komh@chollian.net>
17846         utimes: detect utimes() correctly on OS/2 kLIBC
17847         utimes() of OS/2 kLIBC has some limitations.
17848         1. OS/2 itself supports a file date since 1980 year in local time.
17849         2. OS/2 itself supports only even seconds for a file time.
17850         3. utimes() of OS/2 kLIBC does not work on an opened file.
17851         * m4/utimes.m4: Detect utimes() correctly on OS/2 kLIBC.
17852         * doc/posix-functions/utimes.texi: Document the above limitations of
17853         utimes() on OS/2 kLIBC.
17855 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
17856             KO Myung-Hun  <komh@chollian.net>
17858         openat_proc_name: port to OS/2 kLIBC
17859         OS/2 kLIBC provides a function to retrive a path from a fd. Use it
17860         instead of /proc/self/fd.
17861         * lib/openat-proc.c (openat_proc_name):
17862         Don't assume file name length is less than INT_MAX.
17863         Port to OS/2 kLIBC with __libc_Back_ioFHToPath().
17865 2016-01-14  KO Myung-Hun  <komh@chollian.net>
17867         stdint: check _INTPTR_T_DECLARED for intptr_t etc.
17868         OS/2 kLIBC's stdint.h defines _INTPTR_T_DECLARED and needs its own
17869         definitions of intptr_t and uintptr_t (which use int and unsigned)
17870         to avoid clashes with declarations of system functions like sbrk.
17871         * lib/stdint.in.h (intptr_t, uintptr_t): Check
17872         _INTPTR_T_DECLARED before defining them.
17874         opendir, closedir, dirfd, fdopendir: port to OS/2 kLIBC
17875         * lib/closedir.c (closedir): Unregister fd if closedir() succeeds.
17876         * lib/dirent.in.h (_gl_register_dirp_fd, _gl_unregister_dirp_fd):
17877         Declare on kLIBC.
17878         * lib/dirfd.c (struct dirp_fd_list): New. Structures to keep track of
17879         fd associated with dirp.
17880         (_gl_register_dirp_fd): New. Register fd associated with dirp to
17881         dirp_fd_list.
17882         (_gl_unregister_dirp_fd): New. Unregister fd with closing it.
17883         (dirfd): Implemented for kLIBC.
17884         * lib/fdopendir.c (fdopendir): Implemented for kLIBC.
17885         * lib/opendir.c (opendir): New. Register fd and dirp pair if open()
17886         succeeds.
17887         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Replace if OS/2.
17888         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
17889         (REPLACE_DIRFD): Define to 1 if replaced.
17890         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
17891         * modules/closedir (Depends-on): Add dirfd.
17892         * modules/dirfd (Depends-on): Add 'test $REPLACE_DIRFD = 1' to errno
17893         condition.
17894         (configure.ac): Add dirfd to LIBOBJS if $REPLACE_DIRFD = 1 as well.
17895         * modules/opendir (Depends-on): Add dirfd.
17897         dup, dup2, fcntl: support a directory fd on OS/2 kLIBC
17898         On OS/2 kLIBC, dup(), dup2() and fcntl() do not work on a directory fd.
17899         * lib/dup.c (dup_nothrow): New.
17900         * lib/dup2.c (klibc_dup2dirfd): New. dup2() for a directory fd.
17901         (klibc_dup2): New.
17902         * lib/fcntl.c (klibc_fcntl): New.
17903         * m4/dup.m4 (gl_FUNC_DUP): Check if dup() works on a directory fd.
17904         * m4/dup2.m4 (gl_FUNC_DUP2): Check if dup2() works on a directory fd.
17905         * m4/fcntl.m4 (gl_FUNC_FCNTL): Check if F_DUPFD works on a directory
17906         fd.
17908         pipe_filter_ii_execute: port to OS/2 kLIBC
17909         Pipes on kLIBC do not support O_NONBLOCK like Win32.
17910         * lib/pipe-filter-ii.c (start_wrapper, _beginthreadex, CloseHandle,
17911         WaiForSingleObject, WaitForMultipleObjects): New on OS/2 kLIBC.
17912         Reuse Win32 code on OS/2 kLIBC.
17913         * lib/spawn-pipe.c: Reuse Win32 code on OS/2 kLIBC.
17914         * lib/w32spawn.h: Do not include windows.h on OS/2 kLIBC.
17916         wchar: fix "conflicting types" error for __wcwidth on OS/2 kLIBC
17917         On OS/2 kLIBC, wcwidth is a macro that expands to the name of a
17918         static inline function.  The implementation of wcwidth in wcwidth.c
17919         causes a "conflicting types" error.
17920         * lib/wchar.in.h: Undefine wcwidth on OS/2 kLIBC.
17922         w32spawn: clear SHELL_SPECIAL_CHARS and SHELL_SPACE_CHAR on OS/2 kLIBC
17923         spawn() on OS/2 kLIBC is not silly like one on Windows
17924         * libc/w32spawn.h (SHELL_SPECIAL_CHARS, SHELL_SPACE_CHAR): Set both to
17925         empty string on OS/2 kLIBC.
17927         pipe-filter-aux: undefine HAVE_SELECT on KLIBC
17928         On OS/2 kLIBC, select() works only on sockets.
17929         * lib/pipe-filter-aux.h (HAVE_SELECT): Undefine on OS/2 kLIBC.
17931         binary-io: don't put fd in binary mode if it is a console on EMX
17932         * lib/binary-io.h (SET_BINARY): Don't put fd in binary mode if it is
17933         a console on EMX.
17935 2016-01-15  Pádraig Brady  <P@draigBrady.com>
17937         doc: mention unfixed issues with unsupported localtime() values
17938         * doc/posix-functions/localtime.texi: Mention that FreeBSD 10
17939         returns nonsense for localtime(2^56).
17940         * doc/posix-functions/localtime_r.texi: Likewise.
17942 2016-01-14  Pádraig Brady  <P@draigBrady.com>
17944         doc: mention setlocale() issues on OpenBSD
17945         * doc/posix-functions/setlocale.texi: Mention setlocale(LC_ALL,"")
17946         never fails, and the need to check categories individually.
17948 2016-01-14  Pádraig Brady  <P@draigBrady.com>
17950         sig2str: list all signals on FreeBSD >= 7
17951         FreeBSD >= 7 is contravening POSIX by not defining NSIG
17952         to the maximal statically defined signal value.
17953         It does define _SIG_MAXSIG though, so base SIGNUM_BOUND on that.
17954         * lib/sig2str.h (SIGNUM_BOUND): Define to (_SIG_MAXSIG - 2)
17955         where available, even when NSIG is defined.
17957 2016-01-13  Paul Eggert  <eggert@cs.ucla.edu>
17959         acl-permissions: port to USE_ACL==0 platforms
17960         I ran into this problem when building bleeding-edge GNU Emacs
17961         with gcc -fsanitize=address on Fedora 23.  On this platform
17962         the ACL library does not pass the 'configure' test and Emacs
17963         then does not build due in part to what appear to be typos in the
17964         ACL part of Gnulib.
17965         * lib/acl-internal.c (free_permission_context):
17966         * lib/acl-internal.h (struct permission_context):
17967         Test whether USE_ACL is nonzero, not whether it is defined.
17969 2016-01-12  Martin Sebor  <msebor@redhat.com>
17971         mktime: rename macro to avoid glibc clash
17972         * lib/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.  See:
17973         https://sourceware.org/ml/libc-alpha/2016-01/msg00267.html
17975 2016-01-12  Paul Eggert  <eggert@cs.ucla.edu>
17977         Port "$@" to OpenIndiana ksh93
17978         In http://lists.gnu.org/r/bug-autoconf/2015-12/msg00000.html
17979         Pavel Raiskup reports that ${1+"$@"} runs afoul of a bug in /bin/sh
17980         (derived from ksh 93t+ 2010-03-05).  ${1+"$@"} works around an ancient
17981         bug long-dead shells, so remove the workaround.
17982         * build-aux/announce-gen, build-aux/do-release-commit-and-tag:
17983         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
17984         * build-aux/prefix-gnulib-mk, build-aux/update-copyright:
17985         * build-aux/useless-if-before-free, tests/test-update-copyright.sh:
17986         Use "$@" instead of ${1+"$@"}.
17988         Port Universal Time settings to strict POSIX
17989         * build-aux/announce-gen, build-aux/bootstrap:
17990         * build-aux/do-release-commit-and-tag, build-aux/git-version-gen:
17991         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
17992         * build-aux/gnupload, build-aux/mkinstalldirs:
17993         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
17994         * build-aux/update-copyright, build-aux/useless-if-before-free:
17995         * build-aux/vc-list-files, tests/test-strftime.c:
17996         Use TZ="UTC0", not TZ="UTC".  Either works on GNU platforms,
17997         but POSIX says the behavior of TZ="UTC" is undefined.
17999 2016-01-02  Paul Eggert  <eggert@cs.ucla.edu>
18001         msvc-inval: fix problem with unset shell var
18002         Problem reported by Karl Berry in:
18003         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00004.html
18004         * modules/msvc-inval (Depends-on):
18005         AC_REQUIRE gl_MSVC_INVAL instead of merely calling it.
18006         * modules/msvc-nothrow (Depends-on): Likewise for gl_MSVC_NOTHROW.
18008 2016-01-01  Pádraig Brady  <P@draigBrady.com>
18010         tests: for compare_(), use cmp -s where available
18011         * tests/init.sh (compare_): Only fall back to cmp without
18012         the POSIX defined -s option, where this is not available.
18014 2016-01-01  Paul Eggert  <eggert@cs.ucla.edu>
18016         version-etc: new year
18017         * build-aux/gendocs.sh (version):
18018         * doc/gendocs_template:
18019         * doc/gendocs_template_min:
18020         * doc/gnulib.texi:
18021         * lib/version-etc.c (COPYRIGHT_YEAR):
18022         Update copyright dates by hand in templates and the like.
18023         * all files: Run 'make update-copyright'.
18025 2015-12-31  Paul Eggert  <eggert@cs.ucla.edu>
18027         human: fix output buffer overrun by 1
18028         * lib/human.c (human_readable): Fix off-by-one typo in buffer
18029         calculation that could lead to a one-byte buffer overrun.
18031 2015-12-28  Daiki Ueno  <ueno@gnu.org>
18033         maint: fix operator precedence in mbrtowc test
18034         This is a fix for test breakage introduced by commit 45228d96; the
18035         equality expression must be parenthesized when negated with '!',
18036         otherwise we always get:
18038           test-mbrtowc.c:49: assertion 'ret == (size_t)(-2)' failed
18040         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Negate the entire expression.
18041         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
18043 2015-12-23  James Youngman  <jay@gnu.org>
18045         regexprops-generic: update from regex.h
18046         * doc/regexprops-generic.texi: update by running the regexprops binary
18047         from findutils (the command line is 'regexprops "Regular Expressions"
18048         generic').  The recent (ish) change (5a5a9388) to regex.h aligning
18049         gnulib with GNU grep had made this document out-of-date.
18051 2015-12-23  Pádraig Brady  <P@draigBrady.com>
18053         strftime-tests: avoid false failure on OS X
18054         * tests/test-strftime.c (struct localtime_rz_test): Add an
18055         ahistorical member which is used to warn rather than fail
18056         when tm_isdst isn't set for such entries.  This is the case for
18057         "1970-01-01 13:00:00 +1300 (NZDT)" on Darwin 13/14 at least.
18059 2015-12-20  Kamil Dudka  <kdudka@redhat.com>
18061         fts: ensure leaf optimization is used for NFS
18062         NFS provides usable dirent.d_type but not necessarily for all entries
18063         of large directories.  See <https://bugzilla.redhat.com/1252549>
18064         * lib/fts.c (leaf_optimization_applies): Append NFS on the white list.
18066 2015-12-20  Pádraig Brady  <P@draigBrady.com>
18068         fts: enable leaf optimization for XFS
18069         XFS provides usable dirent.d_type only for DT_DIR,
18070         but the noleaf optimization still applies.
18071         * lib/fts.c (leaf_optimization_applies): Add XFS to the white list.
18073 2015-12-17  Paul Eggert  <eggert@cs.ucla.edu>
18075         intprops: comment fix
18076         * lib/intprops.h: Fix comment.  Reported by Pádraig Brady in:
18077         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00013.html
18079         intprops-test: work around GCC bug 68971
18080         Problem reported by Pádraig Brady in:
18081         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00011.html
18082         * tests/test-intprops.c: Ignore -Woverflow in GCC 6 and earlier.
18083         (main): Add a case that better tests 64-bit long in this area.
18085 2015-12-09  Pavel Raiskup  <praiskup@redhat.com>
18087         gnulib-tool: allow multiple --local-dir usage
18088         * gnulib-tool: Use --local-dir to construct compound
18089         $local_gnulib_path path instead of $local_gnulib_dir.  Determine
18090         PATH_SEPARATOR early.
18091         (local_gnulib_dir): Rename into $local_gnulib_path everywhere.
18092         (func_gnulib_dir): Cut out PATH_SEPARATOR detection code into
18093         func_determine_path_separator because that needs to be detected
18094         earlier now.
18095         (func_determine_path_separator): New function.
18096         (func_path_foreach, func_path_foreach_inner): New functions.
18097         (func_path_prepend, func_path_append): Likewise.
18098         (func_lookup_local_file, func_lookup_local_file_cb): Likewise.
18099         (func_lookup_file, func_all_modules): Use new functions to work
18100         with local_gnulib_path.
18101         (func_modules_in_dir, func_exists_module): New callbacks for
18102         func_path_foreach.
18103         (func_exists_module, func_get_tests_module): Likewise.
18104         (func_is_local_file, func_should_symlink): New helper methods.
18105         (func_add_file, func_update_file): Use new func_should_symlink
18106         instead, DRY.
18107         (func_reconstruct_cached_local_gnulib_path): New helper.
18108         (func_reconstruct_cached_dir): New callback.
18109         (func_import): The cached_local_gnulib_dir renamed to
18110         cached_local_gnulib_path similarly to local_gnulib_dir.
18111         Use new func_reconstruct_cached_local_gnulib_path.
18112         (func_count_relative_local_gnulib_path): New sub-method.
18113         (func_create_testdir): Use func_should_symlink, DRY.
18114         (func_create_megatestdir): Use new functions to work with
18115         local_gnulib_path correctly.
18116         (func_append_local_dir): New helper.
18118 2015-12-08  Pádraig Brady  <P@draigBrady.com>
18120         fix freadptr to work with ungetc on all uClibc configs
18121         Reported at https://bugs.busybox.net/show_bug.cgi?id=4099
18122         where GNU coreutils cut(1) generates invalid output on uClibc
18123         when __UCLIBC_HAS_STDIO_GETC_MACRO__ is not defined.
18124         * lib/freadptr.c (freadptr): Return NULL if there are
18125         ungotten chars.  In this case freadseek() will iterate
18126         again to process the ungotten character.
18128 2015-11-13  Paul Eggert  <eggert@cs.ucla.edu>
18130         xalloc-oversized: improve performance with GCC 5
18131         * lib/xalloc-oversized.h (xalloc_oversized):
18132         Improve performance with GCC 5 by using __builtin_mul_overflow.
18134 2015-11-10  Paul Eggert  <eggert@cs.ucla.edu>
18136         intprops: new public macro EXPR_SIGNED
18137         Emacs can use this macro, so make it public.
18138         * doc/intprops.texi (Arithmetic Type Properties): Rename from
18139         'Integer Type Determination', since some of these macros apply
18140         to non-integer types.  Clarify what kinds of constant expressions
18141         these macros return.  Say when the arguments can be non-integers.
18142         Mention newly published macro EXPR_SIGNED.
18143         * lib/intprops.h (EXPR_SIGNED): Rename from _GL_INT_SIGNED, to
18144         make it public.  All uses changed.
18146         intprops: fix typo in clang port
18147         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix misspelling of
18148         '__builtin_add_overflow' that is not caught by compiler.
18150 2015-11-05  Paul Eggert  <eggert@cs.ucla.edu>
18152         test-timespec: fix typo in previous change
18153         * tests/test-timespec.c (main): Fix typo that reduced test quality.
18155         timespec-sub: fix overflow bug; add tests
18156         * lib/timespec-add.c (timespec_add):
18157         * lib/timespec-sub.c (timespec_sub):
18158         Work even if time_t is narrower than int (a theoretical
18159         possibility).  Redo code for a bit more clarity.
18160         * lib/timespec-sub.c (timespec_sub):
18161         Fix off-by-2 bug if a.tv_sec == TYPE_MINIMUM (time_t) and 0 < b.tv_sec.
18162         * modules/timespec-tests, tests/test-timespec.c: New files.
18164         intprops-test: suppress -Woverlength-strings
18165         Problem reported by Pádraig Brady in:
18166         http://lists.gnu.org/r/bug-gnulib/2015-11/msg00008.html
18167         It is not worth the hassle to port this test to compilers that
18168         cannot handle long strings in diagnostics.
18169         * tests/test-intprops.c [__GNUC__]: Ignore -Woverlength-strings.
18171 2015-11-03  Pádraig Brady  <P@draigBrady.com>
18173         quotearg: add quotearg_n_style_colon()
18174         This quotes with default options of the specified style,
18175         but with quoting enabled for instances of ':'.
18176         * lib/quotearg.h (quotearg_n_style_colon): Description and declaration.
18177         * lib/quotearg.c (quotearg_n_style_colon): New function implementation.
18179 2015-11-04  Paul Eggert  <eggert@cs.ucla.edu>
18181         intprops: revise _WRAPV macros, revert _OVERFLOW
18182         The incompatible changes to the _OVERFLOW macros were too much of
18183         a hassle in practice, so revert them.  Instead, change the new
18184         _WRAPV macros to make them closer in behavior to GCC 5's new
18185         builtin_add_overflow etc. functions.  No other software was using
18186         these newly-added macros yet, so this should be OK.
18187         * NEWS: Revert previous change, since the incompatible change
18188         has been reverted, and nobody used the incompatible version.
18189         * doc/intprops.texi (Wraparound Arithmetic, Integer Type Overflow):
18190         Document revised behavior.
18191         (Integer Range Overflow): Adjust example to match above revisions.
18192         * lib/intprops.h (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW)
18193         (INT_MULTIPLY_OVERFLOW): Revert previous change, so that
18194         these can be used in integer constant expressions again.
18195         (INT_CONST_ADD_OVERFLOW, INT_CONST_SUBTRACT_OVERFLOW)
18196         (INT_CONST_MULTIPLY_OVERFLOW): Remove, as these are no longer
18197         needed.
18198         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
18199         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
18200         (INT_REMAINDER_WRAPV, INT_LEFT_SHIFT_WRAPV):
18201         Remove, as they did not seem that useful.
18202         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV)
18203         (_GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH)
18204         (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
18205         Support new semantics.
18206         (__has_builtin): New macro, if not alreay defined.
18207         (_GL__GENERIC_BOGUS, _GL_INT_OP_CALC, _GL_INT_OP_CALC1): New macros.
18208         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
18209         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
18210         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
18211         (INT_CONST_LEFT_SHIFT_WRAPV): Remove.
18212         (CHECK_SBINOP, CHECK_SSUM, CHECK_SUM1, CHECK_SSUM1)
18213         (CHECK_SDIFFERENCE, CHECK_SPRODUCT, CHECK_PRODUCT1, CHECK_SPRODUCT1):
18214         New macros.
18215         (CHECK_BINOP, CHECK_UNOP, main, CHECK_SUM): Test new behavior.
18217 2015-11-03  Jim Meyering  <meyering@fb.com>
18219         intprops: add parentheses for when OP has precedence lower than "-"
18220         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED): In "a OP b - c",
18221         "a OP b" must be parenthesized for when OP is like "<<", which has
18222         lower precedence than the following "-". Reported by Pádraig Brady.
18224 2015-11-03  Pádraig Brady  <P@draigBrady.com>
18226         quotearg: constify get_quoting_style parameters
18227         * lib/quotearg.h (get_quoting_style): Mark parameter as const.
18228         * lib/quotearg.c (get_quoting_style): Likewise.
18230 2015-11-02  Pádraig Brady  <P@draigBrady.com>
18232         quotearg: add support for $'' shell escaping
18233         * lib/quotearg.h: Add "shell-escape" and "shell-escape-always"
18234         items and descriptions.
18235         * lib/quotearg.c (quotearg_buffer_restyled): Add support for the
18236         above types by quoting like "shell", but using $'...' syntax
18237         for non printable characters, which should provide unambiguous
18238         printable output for any input.
18239         * tests/test-quotearg-simple.c: Update accordingly.
18241 2015-11-02  Pádraig Brady  <P@draigBrady.com>
18243         maint: use a more standard return from mbrtowc test
18244         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Don't return 1
18245         from the test program as this is non standard and often
18246         indicates an unhandled case in the test program.
18247         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
18249 2015-10-30  Paul Eggert  <eggert@cs.ucla.edu>
18251         intprops: add WRAPV and const flavors for GCC 5
18252         If available, use GCC 5's builtin functions for efficient integer
18253         overflow checking.  Also, add macros like INT_ADD_WRAPV efficently
18254         and safely compute the low-order bits of the correct answer.
18255         A downside of these efficient functions is that they cannot be
18256         used in constant expressions, so add macros like INT_CONST_ADD_OVERFLOW
18257         and INT_CONST_ADD_WRAPV that can be used even in constant expressions.
18258         * NEWS: Document the incompatible changes to INT_ADD_OVERFLOW etc.
18259         * doc/intprops.texi (Integer Properties, Integer Type Overflow):
18260         Document the changes.
18261         (Wraparound Arithmetic): New section.
18262         (Integer Range Overflow):
18263         Put this subsection last, since it's least useful.
18264         * lib/intprops.h (INT_CONST_ADD_OVERFLOW)
18265         (INT_CONST_SUBTRACT_OVERFLOW, INT_CONST_MULTIPLY_OVERFLOW):
18266         New macros, with the meaning that INT_ADD_OVERFLOW etc. used to have.
18267         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
18268         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
18269         (INT_REMAINDER_WRAPV, _GL_INT_OP_WRAPV, _GL_EXPR_CAST)
18270         (_GL_INT_OP_WRAPV_LONGISH, INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
18271         (INT_MULTIPLY_WRAPV, _GL_OP_OVERFLOW, _GL_OP_WRAPV, _GL_OP_WRAPV_GENSYM):
18272         New macros.
18273         (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW, INT_MULTIPLY_OVERFLOW):
18274         Generate calls to GCC builtins if available, for speed.
18275         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
18276         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
18277         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
18278         (INT_CONST_LEFT_SHIFT_WRAPV): New macros.
18279         (main, CHECK_BINOP, CHECK_UNOP, CHECK_SUM, CHECK_PRODUCT)
18280         (CHECK_QUOTIENT, CHECK_REMAINDER):
18281         Test WRAPV and CONST flavors (when available) too.
18283 2015-10-30  Pádraig Brady  <P@draigBrady.com>
18285         doc: use extended timezone format in iso-8601 example
18286         * doc/parse-datetime.texi: The standard states that extended format
18287         is to be used consistently throughout.
18288         Note that lib/parse-datetime.y can handle either tz format.
18290 2015-10-25  Paul Eggert  <eggert@cs.ucla.edu>
18292         stdalign: port to Sun C 5.9
18293         * doc/posix-headers/stdalign.texi: Document this.
18294         * lib/stdalign.in.h (_Alignas): Sun C 5.9 also supports
18295         __attribute__ ((__aligned__ (...))).
18297 2015-10-20  Paul Eggert  <eggert@cs.ucla.edu>
18299         time_rz: fix comment about tzalloc
18300         * lib/time_rz.c (tzalloc): Fix comment.
18302 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
18304         stdalign: work around pre-4.9 GCC x86 bug
18305         * lib/stdalign.in.h (_Alignof): Work around bug in pre-4.9 GCC on
18306         x86, when -std=gnu11 is used.  Problem reported by Jim Meyering in:
18307         http://lists.gnu.org/r/bug-gnulib/2015-10/msg00038.html
18309 2015-10-18  Pádraig Brady  <P@draigBrady.com>
18311         maint.mk: sc_tight_scope: remove extraneous expressions
18312         * top/maint.mk (tight_scope): This is not really required since
18313         commit 3ef58f46 as sed_wrap ensures we don't get an empty expression
18314         that matches all nm entries.  But it does remove extraneous entries
18315         that may be confusing or cause issue in future maintenance.
18317 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
18319         time_rz: return NULL if localtime_r fails
18320         * lib/time_rz.c (localtime_rz): Return NULL if localtime_r fails,
18321         while still attempting to pacify bleeding-edge GCC.
18323         fts: port to C11 alignof
18324         * doc/posix-headers/stdalign.texi (stdalign.h):
18325         Document the C11 restriction.
18326         * lib/fts.c: Include stddef.h, for max_align_t.
18327         (fts_alloc): Align using max_align_t, not FTSENT.
18328         * modules/fts (Depends-on): Add stddef.
18330 2015-10-18  Jim Meyering  <meyering@fb.com>
18332         time_rz: avoid warning from bleeding-edge gcc's -Wnonnull
18333         Compiling with gcc version 6.0.0 20151017 (experimental) (GCC), I
18334         would see this:
18336         lib/time_rz.c: In function 'localtime_rz':
18337         lib/time_rz.c:292:15: error: nonnull argument 'tm' compared to NULL \
18338           [-Werror=nonnull]
18339                    if (tm && !save_abbr (tz, tm))
18340                        ^
18342         That was complaining about "tm" because it is a parameter that was
18343         declared with the __nonnull__ attribute.
18344         * lib/time_rz.c (localtime_rz): Don't bother setting "tm" to the
18345         result of localtime_r.
18347 2015-10-17  Jim Meyering  <meyering@fb.com>
18349         maint.mk: _gl_TS_function_match: fix "extern" name extracting regexp
18350         * top/maint.mk (_gl_TS_function_match): This heuristic extern-function-
18351         name-extraction regexp mistakenly used \S+, and would mistakenly
18352         extract "*F" from "extern int *F()" rather than the desired "F".
18353         Use \w+ instead.
18355 2015-10-17  Jim Meyering  <meyering@fb.com>
18357         maint.mk: sc_tight_scope: factor and support OS X
18358         * top/maint.mk (_gl_tight_scope): Address three issues:
18359         - factor out four instances of code that wraps a string in "^...$"
18360         - allow nm-reported symbol names to have an optional leading "_"
18361         - add "main" to the list of ignored variable names, because on os x,
18362         "main" has nm-reported type "S" in the variable-checking section.
18364 2015-10-16  Dmitry Smirnov  <onlyjob@member.fsf.org>
18366         safe-alloc-tests: fix typo in license header
18367         * tests/test-safe-alloc.c: Mention LGPL 2.1, not 3.1
18369 2015-10-15  Simon Reinhardt  <simon@keinstein.org>
18371         copy-file: fix mem leak in error case
18372         * lib/copy-file.c (qcopy_file_preserving): Free the 32KiB buffer
18373         upon error opening or performing I/O to the src and dest files.
18375 2015-10-15  Mike Frysinger  <vapier@chromium.org>
18377         localename: control langinfo.h inclusion
18378         This header is only used to work around buggy behavior in old
18379         versions of glibc, so do not include it all the time.  Otherwise
18380         we get build failures on systems that do not provide langinfo.h.
18381         * lib/localename.c: Wrap langinfo.h include with same ifdefs used
18382         in the source later on.
18383         The patch was originally submitted to gettext as:
18384         https://lists.gnu.org/r/bug-gettext/2015-10/msg00011.html
18386 2015-10-13  Paul Eggert  <eggert@cs.ucla.edu>
18388         binary-io, math, pthread, sys_socket, u64, unistd: port to strict C
18389         * lib/binary-io.c, lib/math.c, lib/pthread.c, lib/sys_socket.c:
18390         * lib/u64.c, lib/unistd.c:
18391         Append 'typedef int dummy;', to pacify compilers that are picky
18392         about empty translation units.
18394 2015-10-12  Pino Toscano  <ptoscano@redhat.com>
18396         accept4-tests: fix to avoid non portable flags
18397         * tests/test-accept4.c (main): Pass only SOCK_* flags to accept4(),
18398         as they are the only documented ones, and passing others may trigger
18399         EINVAL (seen on FreeBSD 10.1-RELEASE).
18400         * doc/glibc-functions/accept4.texi: Mention that we don't provide
18401         the SOCK_CLOEXEC or SOCK_NONBLOCK defines.
18403 2015-10-06  Pavel Raiskup  <praiskup@redhat.com>
18405         gnulib-tool: fix tests of 'extensions' module
18406         This complements f8fe25fab60e3c687a124 commit.
18407         * gnulib-tool (func_emit_pre_early_macros): New function, it wraps
18408         emitting of initial gl_EARLY macros.
18409         (func_import, func_create_testdir): All dumps of gl_PROG_AR_RANLIB
18410         replaced with func_emit_pre_early_macros call.
18412 2015-10-06  Paul Eggert  <eggert@cs.ucla.edu>
18414         unicase/locale-language: fix typo in utf-8 cookie
18415         * lib/unicase/locale-languages.gperf: Fix gperf input file format.
18416         Problem reported by Zbigniew Jędrzejewski-Szmek.
18418 2015-10-02  Paul Eggert  <eggert@cs.ucla.edu>
18420         xalloc: do not worry about GCC 5 warning on 32 bit
18421         * lib/xalloc.h: Revert previous change.
18422         I found a better way to fix this in coreutils.
18424 2015-10-02  Pádraig Brady  <P@draigBrady.com>
18426         xalloc: avoid GCC 5.1 warning on 32 bit
18427         * lib/xalloc.h: Disable -Wstrict-overflow for uses of
18428         xalloc_oversized(), which was seen to give this warning
18429         on GCC 5.1 on 32 bit: "assuming signed overflow does not occur
18430         when simplifying conditional".
18432 2015-10-02  Daiki Ueno  <ueno@gnu.org>
18434         uniname/uniname-tests: avoid compiler warnings
18435         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Remove
18436         unused local variables.
18437         (test_alias_lookup): Fix alias name display in failure cases.
18439 2015-09-26  Paul Eggert  <eggert@cs.ucla.edu>
18441         c-ctype: do not worry about EBCDIC + char signed
18442         Drop support for EBCDIC with char being signed, as this breaks too
18443         many programs.  Problem reported by Ben Pfaff in:
18444         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00053.html
18445         * lib/c-ctype.h: Verify that we are not using EBCDIC with
18446         char being signed.
18447         (_C_CTYPE_LOWER_A_THRU_F_N): New macro.
18448         (_C_CTYPE_LOWER_N, _C_CTYPE_A_THRU_F): Use it.
18449         (_C_CTYPE_DIGIT, _C_CTYPE_LOWER, _C_CTYPE_PUNCT, _C_CTYPE_UPPER):
18450         (c_isascii, c_isgraph, c_isprint, c_ispunct, c_tolower, c_toupper):
18451         * tests/test-c-ctype.c (test_all):
18452         Simplify by assuming standard char values cannot be negative.
18453         * tests/test-c-ctype.c (NCHARS, to_char): Remove; all uses removed.
18455 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
18457         c-ctype: port better to z/OS EBCDIC
18458         Problems reported by Daniel Richard G. in:
18459         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00050.html
18460         * lib/c-ctype.h (_C_CTYPE_CNTRL): Rewrite in terms of
18461         the C standard escapes and _C_CTYPE_OTHER_CNTRL.
18462         (_C_CTYPE_OTHER_CNTRL): New macro.
18463         * tests/test-c-ctype.c (test_all): Test from CHAR_MIN, not
18464         from SCHAR_MIN, as the functions are defined only from values
18465         promoted from char or from unsigned char, not necessarily from
18466         signed char.
18468 2015-09-25  Pavel Raiskup  <praiskup@redhat.com>
18470         gnulib-common.m4: fix gl_PROG_AR_RANLIB/AM_PROG_AR clash
18472         The gl_PROG_AR_RANLIB (it is always called by gl_EARLY) sets AR
18473         and ARFLAGS variables.  Doing this unconditionally could break
18474         later Automake's AM_PROG_AR invocation (at least it's
18475         AC_CHECK_TOOLS call to detect correct 'ar' binary).
18477         Original purpose of the gl_PROG_AR_RANLIB was only to handle the
18478         Amsterdam Compiler Kit, so make the previous code to have effects
18479         only on ACK, and rather automatically call the Automake's
18480         AM_PROG_AR as soon as possible to decide other cases.
18482         References:
18483         http://lists.gnu.org/r/bug-gnulib/2015-07/msg00001.html
18485         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): AC_BEFORE AM_PROG_AR.
18486         Set the AR/ARFLAGS to ACK defaults OR call AM_PROG_AR.  If neither
18487         is possible, keep setting AR/ARFLAGS to reasonable defaults.
18488         * gnulib-tool (func_import): Put the gl_USE_SYSTEM_EXTENSIONS
18489         right before gl_PROG_AR_RANLIB into gnulib-comp.m4 (if the
18490         'extensions' module is used.
18491         * modules/extensions (configure.ac-early): Remove as this snippet
18492         is added to gnulib-comp.m4 earlier anyway.
18494 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
18496         sockets: MS Windows initalization fixes
18497         Problem reported by Test User in:
18498         http://lists.gnu.org/r/help-shishi/2015-09/msg00001.html
18499         * lib/sockets.h (SOCKETS_1_0, SOCKETS_2_0, SOCKETS_2_1):
18500         Correct the endianness.
18501         * lib/sockets.c (gl_sockets_startup): Return 2 on any version
18502         number mismatch, not just on <.  Cleanup before any such failure.
18504 2015-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
18506         gc: fix detection of installed libgcrypt version
18507         * m4/gc.m4: Use AM_PATH_LIBCRYPT to test for libcrypt versions
18508         at least as recent as 1.4.4.  The previously used macro is not
18509         available now, since modules were removed in version 1.6.0.
18511 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
18513         c-ctype: rewrite to use inline functions
18514         This simplifies maintenance, since it makes for just one
18515         implementation of each function, letting the compiler have the fun
18516         of optimization.  In practice this works well nowadays with GCC.
18517         E.g., c_isascii might need only three instructions even though the
18518         source code lists every ASCII character individually in a large
18519         switch statement.
18520         Also, fix some z/OS porting bugs reported by Daniel Richard G. in:
18521         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00037.html
18522         * NEWS: Document the API change.
18523         * lib/c-ctype.c: Drastically simplify, since this now just expands
18524         inline functions.
18525         * lib/c-ctype.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18526         (C_CTYPE_INLINE): New macro.
18527         (C_CTYPE_CONSECUTIVE_DIGITS, C_CTYPE_CONSECUTIVE_LOWERCASE)
18528         (C_CTYPE_CONSECUTIVE_UPPERCASE): Remove.
18529         Verify that either ASCII or EBCDIC is being used.
18530         (_C_CTYPE_SIGNED_EBCDIC, _C_CTYPE_CNTRL, _C_CTYPE_A_THRU_F_N)
18531         (_C_CTYPE_DIGIT_N, _C_CTYPE_LOWER_N, _C_CTYPE_UPPER_N)
18532         (_C_CTYPE_CASES, _C_CTYPE_A_THRU_F, _C_CTYPE_DIGIT, _C_CTYPE_LOWER)
18533         (_C_CTYPE_UPPER, _C_CTYPE_PUNCT_PLAIN):
18534         New private macros.
18535         (_C_CTYPE_CNTRL): In EBCDIC, '\x07' is a control, not '\xff'.
18536         (c_isalnum, c_isalpha, c_isascii, c_isblank, c_iscntrl, c_isdigit)
18537         (c_isgraph, c_islower, c_isprint, c_ispunct, c_isspace, c_isupper)
18538         (c_isxdigit, c_tolower, c_toupper): Now inline functions.
18539         (c_tolower, c_toupper): When converting, return the unsigned char,
18540         as that is what z/OS does.
18541         * lib/c-strcaseeq.h (CASEEQ): Simplify in the light of the removal
18542         of some c-ctype.h macros.
18543         * modules/c-ctype (Depends-on): Add extern-inline; remove verify.
18544         * tests/test-c-ctype.c (test_all): Fix test for c_toupper and
18545         c_tolower promotion to be compatible with z/OS.
18547 2015-09-24  Pavel Raiskup  <praiskup@redhat.com>
18549         gitlog-to-changelog: trim only trailing whitespaces
18550         This is fix for --format regression introduced by commit
18551         2b93079a5d1baa4d;  it caused that --format='%s%n%n%b%n' (see the
18552         doubled %n string) had no effect anymore.  This format
18553         specification has been used e.g. by GNU paxuitils (commit
18554         edfd8bcc3).
18556         * build-aux/gitlog-to-changelog (main): Stop squashing multiple
18557         newlines in commmit messages.
18559 2015-09-23  Paul Eggert  <eggert@cs.ucla.edu>
18561         Test that c_iscntrl agrees with iscntrl, etc.
18562         Suggested by Daniel Richard G. in:
18563         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00034.html
18564         * modules/c-ctype-tests (Depends-on): Add ctype.
18565         * tests/test-c-ctype.c: Include <ctype.h>.
18566         (NCHARS): New constant.
18567         (test_agree_with_C_locale): New function.
18568         (main): Use it.
18569         (test_all): Use named constants.
18571         c-ctype: improve c_isascii testing
18572         * tests/test-c-ctype.c (test_all): Port c_isascii test to EBCDIC.
18573         Add a test to count the number of ASCII characters.
18575 2015-09-22  Paul Eggert  <eggert@cs.ucla.edu>
18577         savewd: remove SAVEWD_CHDIR_READABLE
18578         It was problematic in the light of file systems that ignore umask.
18579         Problem reported by Sebastian Unger in: http://bugs.gnu.org/21534
18580         * NEWS: Document this.
18581         * lib/mkancesdirs.c (mkancesdirs): MAKE_DIR now returns 0 if
18582         successful, -1 (setting errno) on failure, rather than something
18583         more complicated than that.
18584         * lib/mkdir-p.c (make_dir_parents):
18585         Do not use SAVEWD_CHDIR_READABLE.
18586         * lib/savewd.c (savewd_chdir):
18587         Remove support for SAVEWD_CHDIR_READABLE.
18588         * lib/savewd.h (SAVEWD_CHDIR_READABLE): Remove.
18590         c-ctype: port better to EBCDIC
18591         Problems reported by Daniel Richard G. in
18592         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00020.html
18593         * lib/c-ctype.c: Include <limits.h>, for CHAR_MIN and CHAR_MAX.
18594         Include "verify.h".
18595         (C_CTYPE_ASCII, C_CTYPE_CONSECUTIVE_DIGITS)
18596         (C_CTYPE_CONSECUTIVE_LOWERCASE, C_CTYPE_CONSECUTIVE_UPPERCASE):
18597         Define as enum constants with value false, if not defined, so that
18598         code can use 'if' instead of 'ifdef'.  Using 'if' helps make the
18599         code more portable, as both branches of the 'if' are compiled on
18600         all platforms.
18601         (C_CTYPE_EBCDIC): New constant.
18602         Verify that the character set is either ASCII or EBCDIC.
18603         (to_char): New static function.
18604         (c_isascii, c_iscntrl):
18605         Assume standard control-character assignments for EBCDIC.
18606         (c_isalnum, c_isalpha, c_isdigit, c_islower, c_isgraph, c_isprint)
18607         (c_ispunct, c_isupper, c_isxdigit, c_tolower, c_toupper):
18608         Rewrite to use 'if' instead of 'ifdef'.
18609         Use to_char if non-ASCII.  Prefer <= to >=.
18610         Prefer true and false to 1 and 0, for booleans.
18611         (c_iscntrl): Use 'if', not 'ifdef'.
18612         * modules/c-ctype (Depends-on): Add verify.
18613         * tests/test-c-ctype.c: Include <limits.h>, for CHAR_MIN
18614         (to_char): New function.
18615         (test_all): Port to EBCDIC.  Add some more tests, e.g., for c_ispunct.
18617 2015-09-21  Pádraig Brady  <P@draigBrady.com>
18619         nanosleep: fix return code for interrupted replacement
18620         * lib/nanosleep.c (nanosleep): In the replaced nanosleep, ensure
18621         that we return -1 in the case the call is interrupted by a signal,
18622         rather than the current value of 1.
18623         Diagnosed and tested by Daniel Richard G.
18625 2015-09-19  Paul Eggert  <eggert@cs.ucla.edu>
18627         Diagnose ERE '()|\1'
18628         Problem reported by Hanno Böck in: http://bugs.gnu.org/21513
18629         * lib/regcomp.c (parse_reg_exp): While parsing alternatives, keep
18630         track of the set of previously-completed subexpressions available
18631         before the first alternative, and restore this set just before
18632         parsing each subsequent alternative.  This lets us diagnose the
18633         invalid back-reference in the ERE '()|\1'.
18635         regex: merge patches from libc
18637         2015-09-08  Joseph Myers  <joseph@codesourcery.com>
18638         Move bits/libc-lock.h and bits/libc-lockP.h out of bits/ (bug 14912).
18639         * lib/regex_internal.h:
18640         Include <libc-lock.h> instead of <bits/libc-lock.h>.
18642         2015-06-09  Joseph Myers  <joseph@codesourcery.com>
18643         Fix regcomp wcscoll, wcscmp namespace (bug 18497).
18644         * lib/regcomp.c (build_range_exp): Call __wcscoll instead of
18645         wcscoll.
18646         * lib/regexec.c (check_node_accept_bytes): Likewise.
18648         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
18649         Fix regex wcrtomb namespace (bug 18496).
18650         * lib/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
18651         instead of wcrtomb.
18653         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
18654         Fix regex wctype namespace (bug 18495).
18655         * lib/regcomp.c (re_compile_fastmap_iter): Call __towlower
18656         instead of towlower.
18657         * lib/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
18658         instead of iswlower.  Call __towupper instead of towupper.
18659         * lib/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
18660         instead of iswalnum.
18662         2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
18663         * lib/regcomp.c (parse_bracket_exp): Initialize type to
18664         COLL_SYM in a couple of places to avoid uninitialized variable
18665         wanings on tilegx gcc 4.8.2.
18667         2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
18668         * lib/regex_internal.h: Remove NOT_IN_libc.
18670         2014-11-17  Andreas Schwab  <schwab@suse.de>
18671         * lib/regex_internal.h: Don't include <locale/elem-hash.h>.
18673         2014-09-11  Roland McGrath  <roland@hack.frob.com>
18674         Move findidx nested functions to top-level.
18675         * lib/regcomp.c [_LIBC]: #include <locale/weight.h>.
18676         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
18677         Pass new arguments to findidx.
18678         * lib/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
18679         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
18680         Don't #include it inside the function.  Pass new arguments to findidx.
18681         * lib/regex_internal.h:
18682         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
18683         (re_string_elem_size_at): Don't #include it inside the function.
18684         Pass new arguments to findidx.
18686         2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
18687         Check if DEBUG is defined in regex_internal.c
18688         * lib/regex_internal.c: Check if DEBUG is defined and is set.
18690 2015-09-08   Assaf Gordon  <assafgordon@gmail.com>
18692         ceill: detect buggy OpenBSD implementation
18693         * m4/ceill.m4 (gl_FUNC_CEILL): Detect buggy openBSD implementation
18694         which returns zero for small values.  Discussed here:
18695         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00010.html
18697 2015-09-08  Dave Chiluk  <chiluk@canonical.com>
18699         mountlist: add me_mntroot field on Linux machines
18700         * lib/mountlist.c (read_file_system_list): Populate me_mntroot in
18701         mount_entry so Linux machines based on /proc/self/mountinfo can
18702         distinguish between bind mounts and original mounts.  In reality bind
18703         mounts aren't treated differently than mountroot=/ mounts by the
18704         kernel, but the user often wants these bind mounts distinguished.
18705         * lib/mountlist.h (struct mount_entry): Add me_mntroot element.
18706         More details at https://pad.lv/1432871
18708 2015-09-08  Christian Egli  <christian.egli@sbs.ch>
18710         doc: Describe to use multiple instances of gnulib
18711         * doc/gnulib-tool.texi: Add a section to the manual outlining how two
18712         instances of gnulib with different modules can be used, for example one
18713         for a lib and another one for associated tools.
18715 2015-09-01  Pádraig Brady  <P@draigBrady.com>
18717         base32: mark function as __attribute__ const
18718         * lib/base32.h (isbase32): Mark __attribute__ const as
18719         suggested by GCC, and consistent with the base64 module.
18721 2015-08-20  Daiki Ueno  <ueno@gnu.org>
18723         gnulib-tool: don't transform binary files with sed
18724         * gnulib-tool (func_add_or_update): Don't apply sed_transform_* to
18725         .mo and .class files.
18726         Reported by Denis Denisov.
18728 2015-08-10  Daiki Ueno  <ueno@gnu.org>
18730         gperf: respect silent rules
18731         * modules/gperf (Makefile.am): Define V_GPERF, V_GPERF_, and
18732         V_GPERF_0 for silent rules.
18733         * modules/iconv_open (Makefile.am): Use V_GPERF.
18734         * modules/unicase/locale-language (Makefile.am): Likewise.
18735         * modules/unicase/special-casing (Makefile.am): Likewise.
18736         * modules/unictype/category-byname (Makefile.am): Likewise.
18737         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
18738         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
18739         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
18740         * modules/unictype/property-byname (Makefile.am): Likewise.
18741         * modules/unictype/scripts (Makefile.am): Likewise.
18742         * modules/uninorm/composition (Makefile.am): Likewise.
18744 2015-08-03  Paul Eggert  <eggert@cs.ucla.edu>
18746         Improve port of stdalign to C++11
18747         Problem reported by Sundaram in:
18748         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00003.html
18749         * lib/stdalign.in.h (alignof, alignas): Don't define if C++11 or newer.
18750         (__alignas_is_defined): Define if C++11 or newer.
18752 2015-08-01  Assaf Gordon  <assafgordon@gmail.com>  (tiny change)
18754         pmccabe2html: fix gawk regex escaping
18755         * build-aux/pmccabe2html: Add one more backslash to properly
18756         escape the gsub replacement value.  Fixes this error:
18757         gawk: ./build-aux/pmccabe2html:425: \
18758         warning: escape sequence `\&' treated as plain `&'
18760 2015-07-29  Paul Eggert  <eggert@cs.ucla.edu>
18762         time_rz: port to pedantic memcpy
18763         * lib/time_rz.c (tzalloc): Pacify pedantic memcpy implementations
18764         that reject memcpy (..., NULL, 0).
18766 2015-07-27  Paul Eggert  <eggert@cs.ucla.edu>
18768         time_rz: port better to MinGW
18769         Don't change tzname, as this makes MinGW dump core (Bug#21020).
18770         Instead, store the tzname copy in the struct tm_zone object.
18771         Problem reported by Eli Zaretskii in: http://bugs.gnu.org/21020#48
18772         * lib/strftime.c [!_LIBC]:
18773         * lib/time_rz.c: Include time-internal.h.
18774         * lib/strftime.c (strftime_case_) [!HAVE_TM_ZONE]: Infer the zone
18775         name from *TZ rather than from TZNAME, doable because *TZ now has
18776         a tzname_copy member.
18777         * lib/time-internal.h: New file, with contents taken from
18778         lib/time_rz.c.  It's separate because strftime.c now accesses
18779         struct tm_zone members.
18780         (struct tm_zone) [HAVE_TZNAME && !HAVE_TM_ZONE]:
18781         New member tzname_copy.
18782         * lib/time_rz.c (struct tm_zone): Move to time-internal.h.
18783         (tzalloc) [HAVE_TZNAME && !HAVE_TM_ZONE]:
18784         Initialize tzname_copy member.
18785         (save_abbr) [HAVE_TZNAME && !HAVE_TM_ZONE]: Save abbreviation
18786         in tzname_copy member.
18787         (revert_tz) [HAVE_TZNAME]: Remove no-longer-needed tzname saving.
18788         (restore_tzname): Remove; no longer needed.  All calls removed.
18789         * modules/time_rz (Files): Add lib/time-internal.h.
18791         time: port __need_time_t to MinGW
18792         * lib/time.in.h (__need_time_t): Do not treat specially on MinGW.
18793         Fix reported by Eli Zaretskii in: http://bugs.gnu.org/21020#36
18795 2015-07-25  Paul Eggert  <eggert@cs.ucla.edu>
18797         strftime: fix newly-introduced bug on Solaris
18798         * lib/strftime.c (strftime_case_): Set the local variable 'zone'
18799         consistently at the start, rather than doing some of the setup at
18800         the start and some in the %Z format spec.  This is cleaner, and
18801         works better with time_rz on platforms like Solaris where struct
18802         tm lacks a tm_zone member, as when !HAVE_TM_GMTOFF %z's calls to
18803         mktime_z and localtime_rz can mess up the tzname cache.
18805         test-strftime: test for Solaris bug
18806         * modules/strftime-tests (Depends-on): Add strerror.
18807         * tests/test-strftime.c: Include <errno.h>.
18808         (posixtm_test): New function, containing the old 'main'.
18809         (struct tzalloc_test, struct localtime_rz_test): New types.
18810         (TZ, LT): New static vars.
18811         (tzalloc_test): New function.
18812         (main): Rewrite in terms of posixtm_test and tzalloc_test.
18814         time_rz: port to Solaris etc.
18815         Works around a tzname problem on platforms like Solaris that have
18816         tzname but not tm_zone, by setting tzname at the appropriate time
18817         and restoring it later.
18818         * lib/time_rz.c (tzname_address, tzname_value) [HAVE_TZNAME]:
18819         New static vars.
18820         (save_abbr) [HAVE_TZNAME]: Set them.
18821         (revert_tz) [HAVE_TZNAME]: Clear or use them.
18822         (restore_tzname): New function.
18823         (localtime_rz, mktime_z): Use it.
18825         time_rz: now LGPL
18826         * modules/time_rz (License): Now LGPL, because strftime depends on it.
18828         time_rz: make a constant 'const'
18829         * lib/time_rz.c (local_tz): Now const.
18831         time_rz: fix off-by-one typo
18832         * lib/time_rz.c (extend_abbrs): Fix off-by-one typo.
18834 2015-07-23  Paul Eggert  <eggert@cs.ucla.edu>
18836         fprintftime, strftime: use timezone_t args
18837         * NEWS: Document the change.
18838         * lib/fprintftime.h (fprintftime):
18839         * lib/strftime.c (extra_args) [my_strftime]:
18840         * lib/strftime.h (nstrftime):
18841         Time zone arg is now of type timezone_t, not int.
18842         * lib/strftime.c (mktime_z) [_LIBC]: New macro.
18843         (__gmtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: Remove; no longer used.
18844         (my_strftime) [emacs && !my_strftime]:
18845         (emacs_strftimeu) [emacs && !FPRINTFTIME]:
18846         Remove; Emacs doesn't need this any more.
18847         (HAVE_TZSET) [my_strftime]: Unset, since we no longer want
18848         fprintftime and nstrftime to call tzset.
18849         (ut) [!my_strftime]: Remove, replacing with ...
18850         (tz) [!my_stftime]: ... this new macro.  All uses changed.
18851         (strftime_case_): Use localtime_rz and mktime_z instead
18852         of localtime_r and mktime.
18853         * modules/fprintftime (Depends-on): Add time_rz.
18854         * modules/strftime (Depends-on): Add time_rz.  Remove time_r.
18855         * tests/test-strftime.c (main): Adjust to new nstrftime API.
18857         time_rz: new module
18858         * MODULES.html.sh: Add time_rz.
18859         * lib/time_rz.c, m4/time_rz.m4, modules/time_rz: New files.
18860         * lib/time.in.h (timezone_t, tzalloc, tzfree, localtime_rz, mktime_z):
18861         New decls if _GNU_SOURCE && @GNULIB_TIME_RZ@ && ! @HAVE_TIMEZONE_T@.
18862         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS):
18863         New var HAVE_TIMEZONE_T (default 0).
18864         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
18865         New var GNULIB_TIME_RZ (default 0).
18866         * modules/time (time.h): Substitute the new vars.
18868         flexmember: license is now unlimited
18869         * modules/flexmember (License): Change to unlimited,
18870         since its only source file gives an unlimited license.
18872 2015-07-15  Eric Blake  <eblake@redhat.com>
18874         maint: update copyright paper procedures
18875         * config/srclist.txt: Drop outdated files.
18876         * doc/Copyright/conditions.txt: Update to latest.
18877         * doc/Copyright/assign.changes.manual: Delete.
18878         * doc/Copyright/assign.future.manual: Likewise.
18879         * doc/Copyright/assign.manual: Likewise.
18880         * doc/Copyright/assign.translation.manual: Likewise.
18881         * doc/Copyright/disclaim.changes.manual: Likewise.
18882         * doc/Copyright/disclaim.manual: Likewise.
18883         * doc/Copyright/disclaim.program: Likewise.
18885 2015-07-07  Daiki Ueno  <ueno@gnu.org>
18887         localename: fix link error on Illumos
18888         Illumos defines __sun, but does not have getlocalename_l nor the
18889         equivalent.  This partially reverts commit 387c214.
18890         * m4/localename.m4 (gl_LOCALENAME): Check if getlocalename_l is
18891         available, as well as uselocale.
18892         * lib/localename.c [HAVE_USELOCALE && __sun]: Don't fallback to
18893         use getlocalename_l if it is not available.
18895 2015-07-07  Daiki Ueno  <ueno@gnu.org>
18897         unistr/uN-strtok-tests: avoid a trivial leak
18898         * tests/unistr/test-u-strtok.h (test_u_strtok): Untabify.  Free
18899         input and delim after the multibyte delimiter tests.
18901 2015-07-04  Paul Eggert  <eggert@cs.ucla.edu>
18903         file-has-acl, acl-permissions: fix HP-UX typos
18904         Problem reported by John David Anglin in: http://bugs.gnu.org/20979
18905         * lib/file-has-acl.c (file_has_acl):
18906         * lib/set-permissions.c (context_acl_from_mode)
18907         (context_aclv_from_mode, set_acls):
18908         Fix some obvious typos when HAVE_GETCL /* HP-UX */.
18909         They were introduced by the recent ACL changes.
18911         regex: match current GNU grep behavior
18912         These symbols have not matched GNU grep behavior for quite some time.
18913         Fix prompted by Balazs Kezes bug report at: http://bugs.gnu.org/20974
18914         * lib/regex.h (RE_SYNTAX_GREP, RE_SYNTAX_EGREP):
18915         Change to match current GNU behavior.
18916         Simplify by expressing it as differences from POSIX BREs and EREs.
18917         (RE_SYNTAX_POSIX_EGREP): No longer differs from GNU behavior.
18919 2015-07-03  Jim Meyering  <meyering@fb.com>
18921         set-permissions.c: adjust acl_from_mode's cpp guard
18922         * lib/set-permissions.c (acl_from_mode): Guard with #ifdef
18923         directives identical to those guarding the sole use.
18924         Otherwise, on some systems, we'd get a warning about
18925         the function being defined but not used.
18926         Also, filter through cppi to correct misleading indentation
18927         of cpp directives.
18929 2015-07-03  Pádraig Brady  <P@draigBrady.com>
18931         tests: restrict shells to those that support 'local'
18932         The local keyword is very widely supported and used
18933         in tests in coreutils and grep at least.  Therefore
18934         restrict to testing with shells that support it.
18935         This mainly excludes /bin/sh on Solaris.
18936         * tests/init.sh (gl_shell_test_script_): Add a test for 'local'.
18938 2015-07-03  Seiya Kawashima  <skawashima@uchicago.edu>  (tiny change)
18939         and Daiki Ueno  <ueno@gnu.org>
18941         unistr/uN-strtok: handle multibyte delimiters
18942         Previously, uN_strtok moved PTR to the next unit to the token end.
18943         When DELIM contained a multibyte character, the new position could
18944         be a middle of a multibyte character.
18945         * lib/unistr/u-strtok.h (FUNC): Place PTR at the next character
18946         after the token.
18947         * lib/unistr/u8-strtok.c (U_STRMBLEN): New macro.
18948         * lib/unistr/u16-strtok.c (U_STRMBLEN): New macro.
18949         * lib/unistr/u32-strtok.c (U_STRMBLEN): New macro.
18950         * modules/unistr/u8-strtok (Depends-on): Depend on
18951         unistr/u8-strmblen.
18952         * modules/unistr/u16-strtok (Depends-on): Depend on
18953         unistr/u16-strmblen.
18954         * modules/unistr/u32-strtok (Depends-on): Depend on
18955         unistr/u32-strmblen.
18956         * tests/unistr/test-u-strtok.h: New file.
18957         * tests/unistr/test-u8-strtok.c: New file.
18958         * tests/unistr/test-u16-strtok.c: New file.
18959         * tests/unistr/test-u32-strtok.c: New file.
18960         * modules/unistr/u8-strtok-tests: New file.
18961         * modules/unistr/u32-strtok-tests: New file.
18962         * modules/unistr/u16-strtok-tests: New file.
18964 2015-07-02  Friedrich Haubensak  <hsk@fli-leibniz.de>
18966         update-copyright: fix test failure with perl >= 5.22 (trivial)
18967         * build-aux/update-copyright: Escape a literal left curly bracket,
18968         required with perl >= 5.22
18970 2015-07-02  Daiki Ueno  <ueno@gnu.org>
18972         u{16,32}-strstr-tests: relax timeout condition
18973         On slower platforms (e.g., Solaris 10/SPARC), u{16,32}-strstr
18974         tests can take longer than 5 seconds to complete.
18975         Reported by Dagobert Michelsen in:
18976         https://lists.gnu.org/r/bug-libunistring/2015-06/msg00006.html
18977         * tests/unistr/test-u16-strstr.c (main): Increase timeout from 5
18978         seconds to 10 seconds.
18979         * tests/unistr/test-u32-strstr.c (main): Likewise.
18981 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
18983         gnulib-common.m4: change the ARFLAGS default to 'cr'
18984         In some GNU/Linux distributions people started to compile 'ar'
18985         binary with --enable-deterministic-archives (binutils project).
18986         That, however, in combination with previous autotools long time
18987         working default AR{_,}FLAGS=cru causes warnings on such
18988         installations:
18989         ar: `u' modifier ignored since `D' is the default (see `U')
18990         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Set ARFLAGS='cr' if not
18991         set already.
18993 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
18995         selinux-h: avoid double free after *getfilecon()
18996         Originally reported by Ben Shelton on bug-tar:
18997         http://lists.gnu.org/r/bug-tar/2015-04/msg00009.html
18998         * lib/getfilecon.c (map_to_failure): Set the already freed '*con'
18999         pointer to NULL.  Man getfilecon(3) says that any non-NULL '*con'
19000         param should be freed by freecon(3) (regardless the return value).
19002 2015-07-01  Pavel Fedin  <p.fedin@samsung.com>
19004         fix pty related tests issues on Windows (trivial)
19005         * lib/grantpt.c (grantpt): grantpt.c seems to be never used on Windows,
19006         however it's still present in tests/ subdirectory of the final project.
19007         Therefore avoid it to pass `make check`.
19008         * tests/test-openpty.c (main): Windows has no PTYs and gnulib's openpty()
19009         will just return -ENOSYS, so avoid this non applicable test allowing
19010         the build to proceed.
19012 2015-07-01  Pádraig Brady  <P@draigBrady.com>
19014         acl: fix definition of acl_from_mode on FreeBSD
19015         This was causing basic coreutils copy operations to fail
19016         with ENOTSUP or ENOENT error messages.
19017         * lib/acl-internal.h (acl_from_mode): Only define when
19018         ! defined HAVE_ACL_FROM_TEXT.  That allows the version
19019         of acl_from_mode() defined in lib/set-permissions.c to
19020         be used on FreeBSD at least.
19021         * lib/set-permissions.c: Fix up comment spelling,
19022         and a redundant variable assignment; noticed in passing.
19024 2015-06-30  Pádraig Brady  <P@draigBrady.com>
19026         readutmp: port to FreeBSD >= 9
19027         * lib/readutmp.h: Map utmpxname() to setutxdb().
19028         With that coreutils who(1) and pinky(1) tests pass.
19030 2015-06-30  Paul Eggert  <eggert@cs.ucla.edu>
19032         mgetgroups: port to strict OS X
19033         The previous fix wasn't working, so use a bigger hammer (Bug#20923).
19034         * lib/mgetgroups.c: Ignore -Wpointer-sign diagnostics.
19035         (getgrouplist_gids) [HAVE_GETGROUPLIST]: Remove.  All uses removed.
19036         * m4/mgetgroups.m4 (gl_MGETGROUPS): Revert recent changes.
19038 2015-06-29  Paul Eggert  <eggert@cs.ucla.edu>
19040         mgetgroups: port to strict OS X
19041         * doc/glibc-functions/getgrouplist.texi (getgrouplist):
19042         Document the getgrouplist problem.
19043         * lib/mgetgroups.c (getgrouplist_gids) [HAVE_GETGROUPLIST]:
19044         New macro.
19045         (mgetgroups): Use it.
19046         * m4/mgetgroups.m4 (gl_MGETGROUPS):
19047         Check for OS X signature for getgrouplist.
19049 2015-06-29  Jim Meyering  <meyering@fb.com>
19051         linkat: fix invalid definition of LINKAT_SYMLINK_NOTSUP on OS X
19052         It started like this when building coreutils' latest on OS X,
19053         invoking ./configure with a nonempty --cache=.cache:
19055           lib/linkat.c:46:42: error: operator '||' has no right operand
19056           lib/linkat.c: In function 'rpl_linkat':
19057           lib/linkat.c:330:27: error: #if with no expression
19059         Here's linkat.c's line 46:
19061           #if !HAVE_LINKAT || LINKAT_SYMLINK_NOTSUP
19063         Here's some context:
19065           $ grep linkat_nofoll .cache
19066           gl_cv_func_linkat_nofollow=${gl_cv_func_linkat_nofollow=no}
19067           $ grep LINKAT_SYM lib/config.h
19068           #define LINKAT_SYMLINK_NOTSUP
19070         The problem is that m4/linkat.m4's gl_FUNC_LINKAT
19071         uses AC_CACHE_CHECK to set LINKAT_SYMLINK_NOTSUP,
19072         but that violates a tenet of AC_CACHE_CHECK: it must
19073         have no side effect other than setting its cache variable.
19075         What happens is that when the cache is set, we'd skip the
19076         code in that AC_CACHE_CHECK call, and leave LINKAT_SYMLINK_NOTSUP
19077         defined to whatever value it happened to have in configure's
19078         environment.  In my case, it was not defined, so this later code:
19080           AC_DEFINE_UNQUOTED([LINKAT_SYMLINK_NOTSUP], [$LINKAT_SYMLINK_NOTSUP],
19081             [Define to 1 if linkat can create hardlinks to symlinks])
19083         would emit code with an empty RHS.
19085         * m4/linkat.m4 (gl_FUNC_LINKAT): Move the setting of
19086         $LINKAT_SYMLINK_NOTSUP out of the AC_CACHE_CHECK code block.
19088 2015-06-28  Jim Meyering  <meyering@fb.com>
19090         mountlist: avoid an unused-label warning on OS X
19091         * lib/mountlist.c (read_file_system_list) [MOUNTED_GETMNTINFO]:
19092         Building on OS X, I saw a warning about the "free_then_fail" label
19093         being unused.  Give it the _GL_UNUSED_LABEL attribute.
19095         error.c: correct printf-style format: %d -> %u
19096         * lib/error.c (error_at_line): Correct __fxprintf format to use %u,
19097         rather than %d, to match the type of "line_number", unsigned int.
19099 2015-06-25  Pádraig Brady  <P@draigBrady.com>
19101         fts: avoid reading beyond the heap allocation
19102         GCC 5.1.1 with -O2 and -fsanitize=address reports
19103         a read of size 4 from a heap object of size 3 is indeed invalid,
19104         though this may be due to incorrect padding assumptions by GCC, see:
19105         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
19106         * lib/fts.c (fts_alloc): Increase allocation to alignof(FTSENT).
19107         * modules/fts: Depend on stdalign.
19109 2015-06-24  Pádraig Brady  <P@draigBrady.com>
19111         savedir: avoid undefined behavior in qsort call
19112         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
19113         "runtime error: null pointer passed as argument 1,
19114          which is declared to never be null"
19115         * lib/savedir.c (streamsavedir): Avoid the call with no entries.
19117 2015-06-24  Pádraig Brady  <P@draigBrady.com>
19119         userspec: avoid undefined behavior in gettext call
19120         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
19121         "runtime error: null pointer passed as argument 2,
19122          which is declared to never be null"
19123         * lib/userspec.c (parse_with_separator): Avoid passing NULL to gettext()
19125 2015-06-20  Glenn Morris  <rgm@gnu.org>
19127         gitlog-to-changelog: improve gitmerge.el commits
19128         Let the Emacs ChangeLog generation process exclude "skipped"
19129         messages from merge commits (Bug#20717).
19130         * build-aux/gitlog-to-changelog: Handle gitmerge.el skipped commits.
19132 2015-06-20  Paul Eggert  <eggert@cs.ucla.edu>
19134         wchar: fix MinGW compilation warnings
19135         This lets Texinfo compile cleanly.  See Eli Zaretskii in:
19136         http://lists.gnu.org/r/bug-gnulib/2015-06/msg00050.html
19137         * lib/wchar.in.h: Do not use special invocation convention on MinGW.
19139 2015-06-20  Daiki Ueno  <ueno@gnu.org>
19141         uniname/uniname-tests: use pristine data files
19142         For copyright and maintenance reasons, use the data files from UCD
19143         without modification.
19144         * tests/uniname/test-uninames.c (FIELDLEN): Remove.
19145         (getfield): Remove.
19146         (aliases_count): New global variable.
19147         (fill_names): Skip comments and empty lines in the input.  Don't
19148         use getfield.
19149         (fill_aliases): Likewise.
19150         (main): Change the expected command line arguments to:
19151         NAMES... ["--" ALIASES...].
19152         * tests/uniname/test-uninames.sh: Adjust to the change in
19153         test-uninames.c.
19154         * tests/uniname/UnicodeDataNames.txt: Remove.
19155         * tests/uniname/UnicodeData.txt: New file, from Unicode 8.0.0.
19156         * tests/uniname/NameAliases.txt: Use the pristine copy of the data
19157         file from Unicode 8.0.0.
19159 2015-06-19  Pádraig Brady  <P@draigBrady.com>
19161         linked-list, linkedhash-list: avoid compiler warnings
19162         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
19163         -Werror=suggest-attribute=pure (from GCC 5.1.1).
19165 2015-06-19  Daiki Ueno  <ueno@gnu.org>
19167         libunistring: bump minimum version to 0.9.6
19168         * all modules depending on updated Unicode data: Regenerate.
19169         The modules are listed by a script that does:
19170         - for each file listed by: git show --oneline --name-only 705f4efc
19171           - deduce the containing modules, based on "Files:"
19172         - deduce the modules which depend on the containing modules, based
19173           on "Depends-on:"
19175 2015-06-18  Daiki Ueno  <ueno@gnu.org>
19177         uniname/uniname: update to Unicode 8.0.0
19178         * lib/uniname/uninames.h: Regenerate.
19179         * tests/uniname/NameAliases.txt: Update from Unicode 8.0.0.
19180         * tests/uniname/UnicodeDataNames.txt: Update from Unicode 8.0.0.
19182 2015-06-18  Daiki Ueno  <ueno@gnu.org>
19184         libunistring: update to Unicode 8.0.0
19185         * lib/gen-uni-tables.c (SIZEOF): New macro.
19186         (output_numeric): Increase the maximum number of fractions from
19187         128 to 160.  Increase the level3 value width from 7 bits to 8
19188         bits.  Use SIZEOF instead of a hard-coded integer.
19189         (output_blocks): Decrease the cut-off threshold from 0x30000 to
19190         0x28000.
19191         (fill_blocks): Increase the maximum number of blocks from 256 to
19192         384.  Use SIZEOF instead of a hard-coded integer.
19193         (get_lbp): Adjust to new characters added in Unicode 8.0.0.
19194         * lib/unictype/numeric.c (uc_numeric_value): Adjust the level3
19195         value width.
19196         * lib/unilbrk/lbrktables.c (unilbrk_table): Implement LBP21b and
19197         a new case added to LBP22.
19198         * lib/uniwidth/width.c (nonspacing_table_data): Add U+08E3,
19199         U+A69E, U+FE2E..U+FE2F, U+111CA..U+111CC, U+11300,
19200         U+115DC..U+115DD, U+1171D..U+1171F, U+11722..U+11725,
19201         U+11727..U+1172B, U+1DA00..U+1DA36, U+1DA3B..U+1DA6C, U+1DA75,
19202         U+1DA84, U+1DA9B..U+1DA9F, and U+1DAA1..U+1DAAF.
19203         * tests/uniwidth/test-uc_width2.sh: Same updates as in
19204         lib/uniwidth/width.c.
19205         * all generated files under lib/uni* and tests/uni*: Regenerate.
19207 2015-06-16  Pádraig Brady  <P@draigBrady.com>
19209         gnu-web-doc-update: add --mirror to remove stale files
19210         * build-aux/gnu-web-doc-update: Add a --mirror option to remove
19211         out of date files from the CVS server.  Since this is usually
19212         appropriate, a prompt is given when the option is not specified,
19213         along with the `cvs remove` command that would be run.
19215 2015-06-06  Paul Eggert  <eggert@cs.ucla.edu>
19217         acl-permissions: pacify -Wsuggest-attribute=const
19218         Problem reported by Masanari Iida in: http://bugs.gnu.org/20753
19219         * lib/acl-internal.h (free_permission_context):
19220         Declare with attribute const if ! (defined USE_ACL &&
19221         (HAVE_ACL_GET_FILE || defined GETACL)).
19223         fsync: document AIX misbehavior
19224         * doc/posix-functions/fsync.texi (fsync):
19225         Document failure on AIX with read-only file descriptor.
19227 2015-06-05  Jonathan Perkin  <jperkin@joyent.com>  (tiny change)
19229         stdio: Don't redefine gets when using C++
19230         * lib/stdio.in.h (gets): Disable warning on C++.
19232 2015-06-05  Paul Eggert  <eggert@cs.ucla.edu>
19234         acl-permissions: port to AIX, C89 HP-UX
19235         Problems reported by Michael Felt.
19236         * lib/file-has-acl.c (file_has_acl) [HAVE_STATACL]:
19237         * lib/get-permissions.c (get_permissions) [USE_ACL && HAVE_STATACL]:
19238         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]:
19239         * lib/set-permissions.c (set_acls) [HAVE_ACLX_GET && ACL_AIX_WIP]:
19240         Add cast for AIX, whose system calls are declared to accept
19241         char * even though the arguments are really char const *.
19242         * lib/get-permissions.c (get_permissions):
19243         If USE_ACL && HAVE_GETACL /* HP-UX */, don't assume C99.
19244         If USE_ACL && HAVE_STATACL /* older AIX */, add missing decl
19245         that broke a build.
19246         * lib/mountlist.c (read_file_system_list) [MOUNTED_VMOUNT]:
19247         Rework types to pacify xlc.
19249 2015-06-03  Pádraig Brady  <P@draigBrady.com>
19251         vasprintf-posix: avoid compiling vasnprintf where possible
19252         * modules/vasprintf-posix: Avoid compiling the large vasnprintf
19253         module where not required.  For example on a GNU/Linux system
19254         when gnulib-tool is run with the --conditional-dependencies option.
19256 2015-06-02  Pádraig Brady  <P@draigBrady.com>
19258         file-has-acl: fix build on Mac OS X 10
19259         This reverts commit f1b37e3a which doesn't work on Mac OS X >= 10.4
19260         which has an incompatible 6 parameter getxattr() call.
19261         * doc/glibc-functions/getxattr.texi: Mention the divergent getxattr()
19262         call on Mac OS X >= 10.4.
19263         * doc/glibc-functions/fgetxattr.texi: Likewise.
19264         * lib/file-has-acl.c: Revert to more complete combined check.
19265         * m4/acl.m4 (gl_FILE_HAS_ACL): Likewise.
19266         Reported by Jack Howarth.
19268 2015-06-02  Pádraig Brady  <P@draigBrady.com>
19270         prefix-gnulib-mk: remove no longer needed special case
19271         * build-aux/prefix-gnulib-mk (prefix): Since commit e3704b9c,
19272         continued lib_SOURCES lines are no longer present,
19273         so special case handling of such entries is not required.
19275 2015-06-01  Pádraig Brady  <P@draigBrady.com>
19277         acl: don't depend on the deprecated qacl module
19278         * modules/acl (Depends-on): Use q{copy,set}-acl instead.
19280 2015-06-01  Pádraig Brady  <P@draigBrady.com>
19282         gnulib-tool: concatenate lib_SOURCES to a single line
19283         * gnulib-tool: Refactor the line merging sed logic,
19284         and use that to output a single lib_SOURCES line for each module.
19285         gnulib using projects often postprocess this output to prepend
19286         subdir paths to each item, and having a single line simplifies this
19287         processing allowing better decoupling from the gnulib-tool output.
19289 2015-06-01  Pavel Fedin  <p.fedin@samsung.com>
19291         pthread_sigmask: discount system version if a simple macro (trivial)
19292         MinGW64 has: #define pthread_sigmask(H, S1, S2) 0
19293         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Call the
19294         function to ensure it's available.
19296 2015-05-31  Pádraig Brady  <P@draigBrady.com>
19298         readlinkat: avoid OS X 10.10 trailing slash bug
19299         * doc/posix-functions/readlink.texi: Mention that OS X 10.10
19300         has this bug.
19301         * doc/posix-functions/readlinkat.texi: Likewise.  Also mention
19302         that OS X 10.10 has this function.
19303         * lib/readlinkat.c (rpl_readlinkat): Handle the trailing slash bug,
19304         as done for readlink().
19305         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check for the readlink()
19306         trailing slash bug, and assume readlinkat() has the same issue.
19307         Also fix a typo where $gl_cv_decl_readlink_works was tested,
19308         rather than the correct $gl_cv_decl_readlinkat_works.
19310 2015-05-29  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
19312         acl-permissions: Fix build on Mac OS X and older AIX (Bug#20681)
19313         * lib/set-permissions.c (set_acls): Fix more errors introduced in the acl
19314         module rewrite.
19316         acl-permissions: Fix build on Solaris and Cygwin
19317         Reported by Tom G. Christensen <tgc@jupiterrise.com>:
19318         * lib/set-permissions.c (set_acls): The count, entries, ace_count, and
19319         ace_entries variables have moved into struct permission_context but
19320         they were still accessed as local variables here.
19322 2015-05-29  Pádraig Brady  <P@draigBrady.com>
19324         linkat: avoid OS X 10.10 trailing slash with symlink bug
19325         On Darwin 14.3.0 linkat(,"path1",,"dangling_symlink/",)
19326         causes the symlink to be dereferenced, and if it points
19327         to a non existent file, that file will be created as
19328         a hard link to "path1".
19329         This fixes a test failure in test-linkat.c.
19330         * m4/linkat.m4 (gl_FUNC_LINKAT): Augment the test with
19331         this case.  The existing workaround in linkat.c for
19332         trailing slash issues, suffices for this case.
19333         * doc/posix-functions/linkat.texi: Add OS X 10.10 to
19334         the list of platforms with trailing slash issues.
19336 2015-05-28  Pádraig Brady  <P@draigBrady.com>
19338         unlinkat: handle ignoring of ".." on Darwin 14
19339         * lib/unlinkat.c: unlinkat() has the same bug as unlink()
19340         on Mac OS X 10.10, where it ignores paths with a trailing "..",
19341         so handle in the same manner.
19342         * m4/unlinkat.m4: Comment on this Darwin issue.
19343         * doc/posix-functions/unlink.texi: Update the latest version
19344         where the issue was seen.
19345         * doc/posix-functions/unlinkat.texi: Mention this issue.
19346         Fixes a test failure in test-unlinkat.c.
19348 2015-05-27  Paul Eggert  <eggert@cs.ucla.edu>
19350         qacl: split into qcopy-acl and qset-acl
19351         Emacs needs the former, but not the latter.
19352         * modules/acl-permissions: New file, containing most of the old qacl.
19353         * modules/file-has-acl (Depends-on): Depend on acl-permissions, not qacl.
19354         * modules/qacl: Now merely depends on qcopy-acl and qset-acl.
19355         * modules/qcopy-acl, modules/qset-acl: New files.
19356         * MODULES.html.sh (File system functions):
19357         Mention the new modules, and mention qacl while we're at it.
19359 2015-05-27  Glenn Morris  <rgm@gnu.org>
19361         gitlog-to-changelog: new option --ignore-line
19362         (This patch is imported from the GNU Emacs master.)
19363         This option ignores individual commit lines matching a pattern.
19364         * build-aux/gitlog-to-changelog: Add --ignore-line option.
19366 2015-05-27  Andreas Gruenbacher  <agruenba@redhat.com>
19368         qacl: Reimplement qset_acl and qcopy_acl (Bug#20666)
19369         Implement get_permissions and set_permissions primitives for getting all
19370         the permissions of a file, storing them, and later setting them. (In the
19371         minimal case, the permissions consist only of a file mode.) Reimplement
19372         qset_acl and qcopy_acl based on these new primitives: this avoids code
19373         duplication and makes error handling more consistent.
19374         The Solaris and Cygwin code still uses duplicate code paths for setting
19375         a file mode while making sure that no acls exist and setting an explicit
19376         acl; this is no worse than before, but could be cleaned up.  The AIX
19377         code still doesn't read ACLs, it only makes sure that acls don't get in
19378         the way when setting a file mode.
19379         * lib/acl-internal.h (struct permission_context): New data structure.
19380         (get_permissions, set_permissions, free_permission_context): Declare.
19381         * lib/acl-internal.c (free_permission_context): New helper function.
19382         * lib/get-permissions.c (get_permissions): New helper function split off
19383         from qcopy_acl.
19384         * lib/set-permissions.c: (set_acls_from_mode): On Solaris, Cygwin, and
19385         AIX, set a file's permissions based only on a file mode.
19386         (acl_from_mode, context_acl_from_mode, context_aclv_from_mode): All
19387         other platforms construct a temporary acl from the file mode and set
19388         that acl in the same way as setting an acl read from the source file.
19389         This should help avoid code duplication and inconsistent / buggy
19390         behavior.
19391         (set_acls): New helper function Split off from qcopy_acl.
19392         (chmod_or_fchmod): Moved here from qset-acl.c.
19393         (set_permissions): New helper function.
19394         * lib/qcopy-acl.c (qcopy_acl): Rewrite using get_permissions and
19395         set_permissions.
19396         * lib/qset-acl.c (qset_acl): Rewrite using set_permissions.
19397         * modules/qacl: Add get-permissions.c and set-permissions.c.
19399         file-has-acl: Split feature tests again (Bug#20667)
19400         * lib/file-has-acl.c: Instead of testing for
19401         XATTR_NAME_POSIX_ACL_ACCESS and XATTR_NAME_POSIX_ACL_DEFAULT,
19402         define them when needed.
19403         * m4/acl.m4 (gl_FILE_HAS_ACL): With that, Paul's
19404         GETXATTR_WITH_POSIX_ACLS change shouldn't be needed anymore.
19406 2015-05-27  Pádraig Brady  <P@draigBrady.com>
19408         string: fix build failure on BSD/OSX with FORTIFY_SOURCE
19409         This avoids a conflict with "FORTIFY_SOURCE" variants
19410         of the string functions when they're replaced on NetBSD-6.0.1
19411         and Darwin-14.3.0 at least.
19412         * lib/string.in.h: Avoid including our "lib/string.h" while
19413         including the system <string.h>.
19415 2015-05-26  Eric Blake  <eblake@redhat.com>
19417         stdio: limit __gnu_printf__ witness to gcc 4.4+
19418         * lib/error.h (_GL_ATTRIBUTE_SPEC_PRINTF): Move gcc version probe...
19419         * m4/stdio_h.m4 (gl_STDIO_H): ...here.
19421         error: use correct printf attributes on mingw
19422         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF): New define.
19424         inttypes: force correct mingw PRIdMAX even without <stdio.h>
19425         * modules/inttypes (Depends-on): Require extensions, so that mingw
19426         always uses GNU style inttypes.
19427         * lib/inttypes.in.h: On mingw, include <stdio.h>.
19429         stdio: fix probe on mingw under gcc 5.1
19430         * m4/stdio_h.m4 (gl_STDIO_H): Change to compile test, to work
19431         around new gcc preprocessor rules.
19433 2015-05-07  Glenn Morris  <rgm@gnu.org>
19435         gitlog-to-changelog: parse "Tiny-change"
19436         * build-aux/gitlog-to-changelog: Treat "Tiny-change" like
19437         "Copyright-paperwork-exempt".  (Bug#20324)
19439 2015-05-06  Pádraig Brady  <P@draigBrady.com>
19441         doc: document glibc posix_fallocate() issues
19442         * doc/posix-functions/posix_fallocate.texi: Mention the
19443         glibc efficiency problems and issues with NFS.
19445 2015-05-05  Karl Berry  <karl@freefriends.org>
19447         * build-aux/gendocs.sh (usage): document new css default
19448         for HTML (--htmlarg).
19450 2015-04-29  Paul Eggert  <eggert@cs.ucla.edu>
19452         extern-inline: no need for workaround in GCC 5.1
19453         * doc/extern-inline.texi (extern inline):
19454         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
19455         GCC bugs 54113 and 63877 are fixed in GCC 5.1, so don't work
19456         around these bugs in GCC 5.1 and later.  Maybe in a decade or
19457         two we can remove these workarounds.
19459 2015-04-28  Pádraig Brady  <P@draigBrady.com>
19461         eealloc, pagealign_alloc, xalloc: avoid clang warnings
19462         Avoid [-Wunknown-attributes] warnings like:
19463         warning: unknown attribute '__alloc_size__' ignored
19464         * lib/xalloc.h: Don't use the __alloc_size__  attribute
19465         with clang, as support has been fully removed as of clang 3.5:
19466         https://github.com/llvm-mirror/clang/commit/c047507a
19467         * lib/eealloc.h: Likewise.
19468         * lib/pagealign_alloc.h: Likewise.
19470 2015-04-27  Paul Eggert  <eggert@cs.ucla.edu>
19472         tests: pacify GCC 5.1's stricter printf checking
19473         * tests/test-dirname.c (main):
19474         * tests/test-getaddrinfo.c (simple):
19475         * tests/test-getlogin.c (main):
19476         * tests/test-getndelim2.c (main):
19477         * tests/test-inttostr.c (CK):
19478         * tests/test-md5.c (main):
19479         * tests/test-read-file.c (main):
19480         * tests/test-sha1.c (main):
19481         Fix mismatches between printf format and value signedness.
19482         * tests/test-inttostr.c (FMT, CAST_VAL, V_min, V_max):
19483         Remove, as CAST_VAL always returned a value of type uintmax_t.
19485         fts: port to GCC 5.1 with --enable-gcc-warnings
19486         Without this fix, GCC 5.1 (correctly) warns about a subscript
19487         error on the fts_name component of FTSENT.  It's actually a
19488         flexible member, so define it that way on C99 or later hosts.
19489         * lib/fts.c (fts_alloc): Use offsetof, not sizeof, for a
19490         structure that now has a flexible array member.
19491         * lib/fts_.h (__FLEXIBLE_ARRAY_MEMBER): New macro.
19492         (FTSENT): fts_name is now flexible on C99-or-later platforms.
19493         * modules/fts (Depends-on): Add flexmember.
19495 2015-04-26  Paul Eggert  <eggert@cs.ucla.edu>
19497         file-has-acl: port to CentOS 6
19498         Problem reported by Tom G. Christensen in:
19499         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00074.html
19500         * lib/file-has-acl.c: Use GETXATTR_WITH_POSIX_ACLS instead of a
19501         combination of HAVE_SYS_XATTR_H, HAVE_LINUX_XATTR_H, and
19502         HAVE_GETXATTR.
19503         * m4/acl.m4 (gl_FILE_HAS_ACL): Test fot the entire combination of
19504         linux/xattr.h, sys/xattr.h, getxattr, XATTR_NAME_POSIX_ACL_ACCESS,
19505         and XATTR_NAME_POSIX_ACL_DEFAULT, since that's what
19506         file-has-acl.c actually needs.
19508 2015-04-26  Pádraig Brady  <P@draigBrady.com>
19510         file-has-acl: always return false when ACLs aren't supported
19511         * lib/file-has-acl.c (file_has_acl): Consistent with other paths,
19512         change the GNU/Linux getxattr path, to transform "not supported"
19513         errors to a false return rather than an error.  This is handled
19514         within file_has_acl() due to the platform specific tests to
19515         determine if ACLs are not supported.
19517 2015-04-25  Paul Eggert  <eggert@cs.ucla.edu>
19519         gettext: propagate po/Makefile.in.in too
19520         * build-aux/po/Makefile.in.in: Copy from latest gettext.
19521         * config/srclist.txt: In build-aux/po, copy Makefile.in.in and
19522         remove-potcdate.sin from $GETTEXT.  This fixes a version mismatch
19523         between Makefile.in.in and the gettext-runtime m4 files.
19525 2015-04-24  Paul Eggert  <eggert@cs.ucla.edu>
19527         file-has-acl: new module, split from acl
19528         And add a new module file-has-acl-tests to match.
19529         I ran into a problem with the recent changes to the acl module,
19530         as they introduced a typo 'test use_xattrs = 0' into 'configure'.
19531         When using the fixed version with Emacs, I discovered that
19532         file-has-acl wasn't separated out well enough for Emacs (e.g., it
19533         had multiple libraries, but needed only one), so I fixed that too.
19534         * NEWS: Document this incompatible change.
19535         * modules/file-has-acl, modules/file-has-acl-tests: New files.
19536         * m4/acl.m4 (gl_FUNC_ACL_ARG): New macro, split from gl_FUNC_ACL.
19537         Initialize gl_need_lib_has_acl.
19538         (gl_FUNC_ACL): Require it.
19539         Simplify use of 'test'.  Set LIB_HAS_ACL if gl_need_lib_has_acl.
19540         Move the file-has-acl.c-relevant stuff to ...
19541         (gl_FILE_HAS_ACL): ... this new macro.  Rewrite to fix 'test
19542         use_xattrs = 0' typo, and omit some needless work.  Set
19543         gl_need_lib_has_acl=1 if we'll need LIB_HAS_ACL to be set
19544         when gl_FUNC_ACL is called.
19545         * modules/acl (Files, lib_SOURCES): Remove lib/file-has-acl.c.
19546         (Link): Remove $(LIB_HAS_ACL).
19547         * modules/acl-tests (Files, Depends-on, configure.ac, TESTS)
19548         (check_PROGRAMS): Move stuff relevant to file-has-acl to
19549         modules/file-has-acl-tests.
19550         (test_file_has_acl_LDADD): Move to modules/file-has-acl-tests.
19552         manywarnings: add GCC 5.1 warnings
19553         * build-aux/gcc-warning.spec: Add -Wabi=, -Warray-bounds,
19554         -Warray-bounds=, -Wc++14-compat, -Wc90-c99-compat,
19555         -Wc99-c11-compat, -Wshadow-ivar, -Wsized-deallocation,
19556         -Wsuggest-override, -Wuse-without-only.  Change
19557         -Wnormalized=... operands to match 5.1.
19558         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wbool-compare,
19559         -Wchkp, -Wdesignated-init, -Wdiscarded-array-qualifiers,
19560         -Wdiscarded-qualifiers, -Wformat-signedness,
19561         -Wincompatible-pointer-types, -Wint-conversion,
19562         -Wlogical-not-parentheses, -Wmemset-transposed-args, -Wodr,
19563         -Wshift-count-negative, -Wshift-count-overflow,
19564         -Wsizeof-array-argument, -Wsuggest-final-methods,
19565         -Wsuggest-final-types, -Wswitch-bool.  Remove -Warray-bounds,
19566         and add -Warray-bounds=2 as a special case.
19568 2015-04-21  Simon Josefsson  <simon@josefsson.org>
19570         doc: update FDL template to match FDL examples.
19571         * doc/alloca-opt.texi:
19572         * doc/alloca.texi:
19573         * doc/c-ctype.texi:
19574         * doc/c-strcase.texi:
19575         * doc/c-strcaseeq.texi:
19576         * doc/c-strcasestr.texi:
19577         * doc/c-strstr.texi:
19578         * doc/c-strtod.texi:
19579         * doc/c-strtold.texi:
19580         * doc/ctime.texi:
19581         * doc/error.texi:
19582         * doc/gcd.texi:
19583         * doc/gnulib-tool.texi:
19584         * doc/inet_ntoa.texi:
19585         * doc/intprops.texi:
19586         * doc/lib-symbol-visibility.texi:
19587         * doc/maintain.texi:
19588         * doc/parse-datetime.texi:
19589         * doc/quote.texi:
19590         * doc/regexprops-generic.texi:
19591         * doc/standards.texi: Remove spurious 'with' in FDL license
19592         template.
19594 2015-04-21  Paul Eggert  <eggert@cs.ucla.edu>
19596         lstat: fix cross-compilation 'ln -s' problem
19597         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
19598         Have the test program call 'symlink' rather than a separate
19599         script run 'ln -s'; this is more likely to work in
19600         cross-compilation environments.  Reported by Pavel Fedin in:
19601         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00060.html
19603 2015-04-16  Ludovic Courtès  <ludo@gnu.org>
19605         gendocs.sh: default to a common CSS style sheet for HTML output
19606         * build-aux/gendocs.sh (htmlarg): Change default value.
19608 2015-04-15  Mats Erik Andersson  <gnu@gisladisker.se>
19610         gnulib-tool: output bold attribute more portably
19611         * gnulib-tool (func_show_module_list): Change hexadecimal
19612         numbers to octal in BOLD_ON and BOLD_OFF.  The use of hex
19613         encoded numbers as arguments to `printf' is not portable,
19614         and is not claimed by POSIX.  This is the case with FreeBSD.
19616 2015-04-15  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
19618         qacl: Simplify HP-UX acl_nontrivial check
19619         * lib/acl-internal.c: Remove struct stat parameter from HP-UX's version of
19620         acl_nontrivial. Check if the acl has at most three entries instead (it must
19621         have exactly three entries according to the HP-UX documentation). Ignore
19622         uids and gids as long as an entry is either for a user (i.e., the owner),
19623         a group (i.e., the owning group), or others.
19624         * lib/acl-internal.h: Change HP-UX's acl_nontrivial prototype.
19625         * lib/qcopy-acl.c (qcopy_acl): With that, we no longer need to stat the file.
19627 2015-04-15  Andreas Gruenbacher   <andreas.gruenbacher@gmail.com>
19629         acl: On Linux, check for acls without libacl
19630         On Linux, use the getxattr syscall instead of the acl_extended_file libacl
19631         library function to check for the presence of acls, avoiding a library.
19632         * lib/file-has-acl.c: Include xattr headers if we have them.
19633         (file_has_acl): On Linux, use getxattr().
19634         * m4/acl.m4 (gl_FUNC_ACL): Define LIB_HAS_ACL as the libraries to link with for
19635         file_has_acl(). Check for xattr headers and getxattr().
19637 2015-04-14  Ángel González  <keisial@gmail.com>
19639         tempname: avoid unused parameter warnings (trivial)
19640         * lib/tempname.c (try_dir): Tag with __GL_UNUSED.
19641         (try_nocreate): Likewise.
19643 2015-04-14  HIRAMATSU Yoshifumi  <hiramatu@boreas.dti.ne.jp>
19645         fseeko: fix build failure on NetBSD >= 6 (trivial)
19646         * lib/fseeko.c (feeko): NetBSD 6 changed the definition of _offset
19647         from 'fpos_t struct' to __off_t, which is a typedef of __int64_t.
19649 2015-04-09  Paul Eggert  <eggert@cs.ucla.edu>
19651         gitlog-to-changelog: port to MS-Windows
19652         * build-aux/gitlog-to-changelog (git_dir_option):
19653         Use strftime with "%Y-%m-%d", not "%F", to avoid a bug in
19654         MS-Windows Perl.  Reported by Eli Zaretskii in:
19655         http://lists.gnu.org/r/emacs-devel/2015-04/msg00504.html
19657 2015-04-07  Karl Berry  <karl@gnu.org>
19659         gendocs: new option --tex for passing args to texi2dvi.
19660         * build-aux/gendocs.sh: new option --tex, default -t @finalout.
19661         (TEXI2DVI): cut to just command name.
19662         (usage): mention new option, and update copyright.
19663         <generate_tex>: use it.
19665 2015-04-07  Karl Berry  <karl@gnu.org>
19667         * config/srclistvars.sh (GETTEXT): new definition.
19668         * config/srclist.txt: use it for gettext .m4 files.
19669         Thread starting at http://lists.gnu.org/r/bug-gnulib/201
19670         and confirmed at http://lists.gnu.org/r/bug-gnulib/2015-02/msg00146.html
19671         and continuing into April.
19673 2015-04-07  Daiki Ueno  <ueno@gnu.org>
19675         uniname/uniname-tests: fix failure due to alias
19676         Reported by Jack Howarth in:
19677         <https://lists.gnu.org/r/bug-libunistring/2015-04/msg00000.html>.
19678         * tests/uniname/test-uninames.c (name_has_alias): New function.
19679         (test_inverse_lookup): Exclude character name with valid alias,
19680         from randomly generated character names.
19681         (main): Fill unicode_aliases before calling test functions.
19683 2015-04-03  Giuseppe Scrivano  <gscrivan@redhat.com>
19685         hash: remove deprecated hash_insert0 function
19686         * lib/hash.h (hash_insert0): Remove deprecated function.
19687         * lib/hash.c (hash_insert0): Likewise.
19689 2015-04-02  Pádraig Brady  <P@draigBrady.com>
19691         mountlist: remove dependency on libmount
19692         * lib/mountlist.c (read_file_system_list): Parse /proc/self/mountinfo
19693         directly, rather than depending on libmount, which has many
19694         dependencies due to its dependence on libselinux, as detailed at:
19695         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00063.html
19696         Note we restrict this to __linux__ as that's probably where this
19697         interface will remain.  If ever porting, it would be best
19698         to first pull the makedev() wrapper from coreutils to a gnulib module.
19699         Note also we don't add a getline dependency to the mountlist module,
19700         as all Linux versions are sufficient.
19702 2015-04-02  Paul Eggert  <eggert@cs.ucla.edu>
19704         stddef: port to pre-C11 GCC on x86
19705         On this platform, max_align_t should have an alignment of 8 even
19706         though the storage alignments of double, long, etc. max out at 4.
19707         Inspired by a comment of Andreas Schwab's here:
19708         https://sourceware.org/ml/libc-alpha/2015-04/msg00017.html
19709         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS) [!HAVE_MAX_ALIGN_T]: New macro.
19710         (max_align_t) [!HAVE_MAX_ALIGN_T]: Use it.
19711         * tests/test-stddef.c: Test __alignof__ too, if available.
19713 2015-03-24  Pádraig Brady  <P@draigBrady.com>
19715         quotearg-simple-tests: add missing gl_FUNC_MMAP_ANON dependency
19716         * modules/quotearg-simple-tests: Reference m4/mmap-anon.m4
19718 2015-03-24  Tobias Stoeckmann  <tobias@stoeckmann.org>
19720         yesno: make EOL optional in ENABLE_NLS case also (trival)
19721         * lib/yesno.c (yesno): Check for EOL before replacing.
19722         * tests/test-yesno.sh: Add a test case (test along with gettext).
19724 2015-03-22  Paul Eggert  <eggert@cs.ucla.edu>
19726         fdopendir-tests: test it does not close its arg
19727         * tests/test-fdopendir.c (main): Test that fdopendir does not
19728         close its argument.  From a suggestion by David Grayson in:
19729         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00039.html
19731 2015-03-20  Paul Eggert  <eggert@cs.ucla.edu>
19733         gitlog-to-changelog: trim trailing white space
19734         * build-aux/gitlog-to-changelog (main):
19735         Trim trailing white space from commit message lines.
19736         This is helpful for processing the GNU Emacs repository,
19737         which dates back to 1985 and contains a lot of such lines.
19739         gitlog-to-changelog: new option --ignore-matching
19740         * build-aux/gitlog-to-changelog (usage, git_dir_option, main):
19741         Support new option --ignore-matching=PAT, which ignores all
19742         commit messages whose first line matches PAT.
19744 2015-03-19  Paul Eggert  <eggert@cs.ucla.edu>
19746         fdopendir: port better to MinGW
19747         * lib/fdopendir.c (fd_clone_opendir) [REPLACE_FCHDIR]:
19748         Use 'dup' if dirfd fails.  Suggested by Eli Zaretskii in:
19749         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00033.html
19750         * modules/fdopendir (Depends-on): Add dirfd.
19752 2015-03-18  Paul Eggert  <eggert@cs.ucla.edu>
19754         fdopendir: fix typo in comment
19755         * lib/fdopendir.c (fdopendir_with_dup): REPLACE_FCHDIR was misspelled.
19757 2015-03-09  Eric Blake  <eblake@redhat.com>
19759         error: document all entry points provided
19760         * doc/glibc-functions/error_print_progname.texi
19761         (error_print_progname): Mention the error module.
19762         * doc/glibc-functions/error_at_line.texi (error_at_line):
19763         Likewise.
19764         * doc/glibc-functions/error_message_count.texi
19765         (error_message_count): Likewise.
19766         * doc/glibc-functions/error_one_per_line.texi
19767         (error_one_per_line): Likewise.
19769 2015-03-03  Paul Eggert  <eggert@cs.ucla.edu>
19771         vasnprintf: pacify clang 3.5.0
19772         Problem reported by Werner Lemberg in:
19773         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00000.html
19774         * lib/vasnprintf.c (VASNPRINTF): Omit casts that clang objects to.
19775         The casts aren't needed, since the characters in question are ASCII.
19777 2015-02-24  Paul Eggert  <eggert@cs.ucla.edu>
19779         glob, etc.: port to MSVC v18 on MS-Windows 8.1
19780         * lib/dirent--.h (GNULIB_defined_opendir):
19781         * lib/dirent.in.h (GNULIB_defined_opendir)
19782         (GNULIB_defined_closedir):
19783         * lib/getcwd.c, lib/glob.c, lib/mountlist.c (opendir, closedir):
19784         #undef only if Gnulib defined it.
19786         poll: port to MSVC v18 on MS-Windows 8.1
19787         Problem reported by Gisle Vanem in:
19788         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00139.html
19789         * lib/poll.c: Always include <sys/select.h> and <sys/socket.h>.
19790         * modules/poll (Depends-on) [!HAVE_POLL || REPLACE_POLL]:
19791         Add sys_socket.
19793 2015-02-24  Pádraig Brady  <P@draigBrady.com>
19795         tests: support stderr verification with returns_()
19796         * tests/init.sh (returns_): Disable tracing for this wrapper
19797         function, so that stderr of the wrapped command is unchanged,
19798         allowing for verification of the contents.
19800 2015-02-24  Pavel Hrdina  <phrdina@redhat.com>
19802         passfd: avoid valgrind uninitalised data warning
19803         * lib/passfd.c (sendfd): Reset the msg_controllen of msghdr,
19804         to include just the fd we've initialized, rather than including
19805         the extra space used for alignment.
19807 2015-02-23  Paul Eggert  <eggert@cs.ucla.edu>
19809         uniwbrk/u32-wordbreaks-tests: fix copyright
19810         * tests/uniwbrk/test-uc-wordbreaks.c: Fix copyright date.
19812         dup2: doc and test for Android bug
19813         Reported by Kevin Cernekee in:
19814         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00125.html
19815         * doc/posix-functions/dup2.texi (dup2): Document the bug.
19816         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the bug.
19818 2015-02-23  Kevin Cernekee  <cernekee@google.com>
19820         Replace dup2() on Android
19821         * m4/dup2.m4 (gl_FUNC_DUP2): Android implements dup2() using dup3().
19822         Since dup3(fd, fd) fails but dup2(fd, fd) should pass, test-dup2
19823         fails.  Using rpl_dup2() fixes this because it has an explicit test
19824         for this condition.
19826 2015-02-22  Paul Eggert  <eggert@cs.ucla.edu>
19828         Android doesn't define RLIM_SAVED_*
19829         Portability problem reported by Kevin Cernekee in:
19830         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00122.html
19831         * doc/posix-headers/sys_resource.texi (sys/resource.h):
19832         Mention the portability problem.
19833         * lib/getdtablesize.c (RLIM_SAVED_CUR, RLIM_SAVED_MAX):
19834         Define if not defined.
19835         * m4/dup2.m4 (gl_FUNC_DUP2):
19836         * m4/fcntl.m4 (gl_FUNC_FCNTL):
19837         Likewise.
19839 2015-02-21  Paul Eggert  <eggert@cs.ucla.edu>
19841         vasnprintf-posix-tests: use consistent test
19842         * tests/test-vasnprintf-posix.c (test_function):
19843         Use "<" in assert instead of "<=", for consistency with other tests.
19845 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
19847         printf, isinf, etc.: noncanonical != NaN
19848         Do not require that isinf, printf, etc. treat noncanonical
19849         values as NaNs.  Instead, require only that they do not crash.
19850         Problem reported by Joseph Myers in:
19851         https://sourceware.org/ml/libc-alpha/2015-02/msg00244.html
19852         * doc/posix-functions/dprintf.texi (dprintf):
19853         * doc/posix-functions/fprintf.texi (fprintf):
19854         * doc/posix-functions/isfinite.texi (isfinite):
19855         * doc/posix-functions/isinf.texi (isinf):
19856         * doc/posix-functions/isnan.texi (isnan):
19857         * doc/posix-functions/printf.texi (printf):
19858         * doc/posix-functions/snprintf.texi (snprintf):
19859         * doc/posix-functions/sprintf.texi (sprintf):
19860         * doc/posix-functions/vdprintf.texi (vdprintf):
19861         * doc/posix-functions/vfprintf.texi (vfprintf):
19862         * doc/posix-functions/vprintf.texi (vprintf):
19863         * doc/posix-functions/vsnprintf.texi (vsnprintf):
19864         * doc/posix-functions/vsprintf.texi (vsprintf):
19865         Document this.
19866         * m4/isfinite.m4 (gl_ISFINITEL_WORKS):
19867         * m4/isinf.m4 (gl_ISINFL_WORKS):
19868         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS):
19869         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE):
19870         * tests/test-isfinite.c (test_isfinitel):
19871         * tests/test-isinf.c (test_isinfl):
19872         * tests/test-isnan.c (test_long_double):
19873         * tests/test-isnanl.h (main):
19874         * tests/test-snprintf-posix.h (test_function):
19875         * tests/test-sprintf-posix.h (test_function):
19876         * tests/test-vasnprintf-posix.c (test_function):
19877         * tests/test-vasprintf-posix.c (test_function):
19878         Test only that noncanonical values do not cause crashes, not that
19879         they are treated as NaNs.  In some cases this means a larger
19880         output buffer is needed.
19882 2015-02-20  Jaroslav Skarvada  <jskarvad@redhat.com>
19884         fts: remove redundant close() (trivial)
19885         * lib/fts.c (fts_read): Remove redundant call to close().
19886         Spotted by coverity.
19888 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
19890         getdtablesize: port better for Android
19891         Problem reported by Kevin Cernekee in:
19892         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00112.html
19893         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Mention bug.
19894         * lib/getdtablesize.c (getdtablesize): Don't fall back on _SC_OPEN_MAX.
19895         Instead, just use getrlimit, taking care to avoid Cygwin bug.
19897         poll: fixes for large fds
19898         * lib/poll.c (poll): Don't check directly for NFD too large.
19899         Don't rely on undefined behavior in FD_SET when an arg exceeds
19900         FD_SETSIZE.  Always set revents afterwards, even if to zero.
19901         * tests/test-poll.c (poll1): Set revents to -1 instead of 0,
19902         as that makes the test a bit stricter.
19904 2015-02-19  Kevin Cernekee  <cernekee@google.com>
19906         fcntl: Fix cross compiling
19907         * m4/fcntl.m4 (gl_FUNC_FCNTL): Assign the guessed result to the
19908         correct variable name (gl_cv_func_fcntl_f_dupfd_works).
19910 2015-02-18  Paul Eggert  <eggert@cs.ucla.edu>
19912         dup2, fcntl: cross-compile better for Android
19913         Problem reported by Kevin Cernekee in:
19914         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00109.html
19915         * m4/dup2.m4 (gl_FUNC_DUP2): Don't guess no when cross-compiling
19916         for a Linux kernel.  That kernel bug was fixed on 2009-05-11, and
19917         there's little need to cross-compile for older kernels nowadays.
19918         * m4/fcntl.m4 (gl_FUNC_FCNTL): When cross-compiling, guess no only
19919         for systems where the bug is known to occur (AIX, Cygwin, Haiku).
19921 2015-02-18  Pádraig Brady  <P@draigBrady.com>
19923         getopt: don't crash on memory exhaustion
19924         * lib/getopt.c (_getopt_internal_r): Use degraded diagnostics on
19925         memory exhaustion.  In the _LIBC case we use alloca() as is
19926         already done in glibc, so we don't need to consider the separate
19927         error path in that awkward case.  Also fix a memory leak when
19928         ambiguous options are present.
19929         Reported by Tobias Stoeckmann
19931 2015-02-17  Mike Miller  <mtmiller@ieee.org>
19933         tempname: allow compilation with C++ (trivial)
19934         * lib/tempname.h [C++]: Specify extern "C" linkage.
19935         * lib/tempname.h (try_tempname):
19936         * lib/tempname.c (__try_tempname, __gen_tempname):
19937         Rename 'try' to 'tryfunc'.
19939 2015-02-17  Paul Eggert  <eggert@cs.ucla.edu>
19941         dup2, fcntl: port to AIX
19942         * m4/dup2.m4 (gl_FUNC_DUP2):
19943         * m4/fcntl.m4 (gl_FUNC_FCNTL):
19944         Prefer getrusage (RLIM_NOFILE ...)/rlim_cur to sysconf (_SC_OPEN_MAX).
19945         The former works on AIX 7.1 but the latter does not.
19946         Also, this may work better with Android; see:
19947         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00100.html
19949 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
19951         getdtablesize, dup2, fcntl: port to Android
19952         Problem reported by Kevin Cernekee in:
19953         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00092.html
19954         * doc/glibc-functions/getdtablesize.texi (getdtablesize):
19955         Mention that getdtablesize doesn't work on Android.
19956         * lib/getdtablesize.c: Use getrlimit substitute only if
19957         getdtablesize is declared.  This should suffice for Cygwin
19958         while not breaking Android.
19959         * m4/dup2.m4 (gl_FUNC_DUP2):
19960         * m4/fcntl.m4 (gl_FUNC_FCNTL):
19961         Prefer sysconf (_SC_OPEN_MAX) to getdtablesize, as the former is
19962         standardized but the latter is not, and sysconf works on Android.
19963         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE):
19964         Also check that getdtablesize is declared.
19965         This removes the need for a special case for Android.
19967 2015-02-16  Kevin Cernekee  <cernekee@google.com>
19969         localename: Implement gl_locale_name_thread_unsafe for Android
19970         * lib/localename.c: Android API level >= 21 supports two hardcoded
19971         locales: C (POSIX) and C.UTF-8.  Distinguish them by checking
19972         the internal __locale_t struct.
19974 2015-02-16  Kamil Dudka  <kdudka@redhat.com>
19976         fts: avoid crash when a cycle is added while traversing
19977         This could be triggered by auto-mounting a recursive bind mount.
19978         Reported by Michael Chapman in: https://bugzilla.redhat.com/1188498
19979         * lib/fts.c (fts_read): Avoid removing the original hash table item
19980         when leaving a directory that caused a cycle, and preserve the FTS_DC
19981         flag.
19983 2015-02-16  Daiki Ueno  <ueno@gnu.org>
19985         uniname/uniname: support character alias
19986         * lib/uniname/gen-uninames.lisp (main): New argument ALIASFILE.
19987         Generate one-way mapping from aliases to codepoints in the
19988         generated tables.  Special case variation selectors to reduce
19989         table size.
19990         * lib/uniname/uniname.c (unicode_character_name): Special case
19991         variation selectors.
19992         (unicode_name_character): Special case variation selectors and
19993         their aliases.
19994         * lib/uniname/uninames.h: Regenerate.
19995         * tests/uniname/NameAliases.txt: New file, taken from UCD 7.0.0.
19996         * modules/uniname/uniname-tests (Files): Add
19997         tests/uniname/NameAliases.txt.
19998         * tests/uniname/test-uninames.c: Mark as static.
19999         (ALIASLEN): Define.
20000         (struct unicode_alias): New struct.
20001         (unicode_aliases): New variable.
20002         (fill_aliases): New function.
20003         (test_alias_lookup): New test function.
20004         (main): Run the 'test_alias_lookup' test if the second argument is
20005         given.
20006         * tests/uniname/test-uninames.sh: Supply NameAliases.txt as the
20007         second argument.
20009 2015-02-11  Kevin Cernekee  <cernekee@google.com>
20011         Fix FILE struct compatibility with Android API level >= 21
20012         * lib/stdio-impl.h: Test explicitly for __ANDROID__ instead of
20013         __sferror.  Recent versions of Bionic's stdio.h no longer define
20014         __sferror.
20015         * lib/fbufmode.c: Likewise.
20016         * lib/fflush.c: Likewise.
20017         * lib/fpurge.c: Likewise.
20018         * lib/freadable.c: Likewise.
20019         * lib/freadahead.c: Likewise.
20020         * lib/freading.c: Likewise.
20021         * lib/freadptr.c: Likewise.
20022         * lib/freadseek.c: Likewise.
20023         * lib/fseeko.c: Likewise.
20024         * lib/fseterr.c: Likewise.
20025         * lib/fwritable.c: Likewise.
20027         Assume unbroken ungetc() on Android
20028         * m4/ungetc.m4: Add Android case to host OS check.  The ungetc()
20029         test case passed when running on an Android host, and the code
20030         hasn't really changed since 2009.
20032         getdtablesize: Fix Android build
20033         * m4/getdtablesize.m4: Add Android case to host OS check.  Recent NDK
20034         versions have this symbol in the .so library (at least 32-bit
20035         platforms) but are missing the declaration in the header file,
20036         causing the m4 logic to guess incorrectly.
20038         localename: Fix Android build
20039         * modules/localename (Depends-on): Add langinfo.
20041         getugroups: Fix Android build
20042         * lib/getugroups.c: Don't reference unsupported {get,set,end}grent
20043         functions.
20045         euidaccess: Fix Android build
20046         * modules/euidaccess (Depends-on): Add fcntl-h to ensure that
20047         AT_EACCESS gets declared.
20049         linkat_nofollow: Add fallback case for cross compiling
20050         * m4/linkat.m4: Guess no for Darwin, yes otherwise.
20052         net_if: Handle content-free <net/if.h> system headers
20053         * m4/net_if_h.m4: Check to make sure <net/if.h> actually defines
20054         struct if_nameindex.  If not, enable the replacement header.
20056         signal_h: Fix Android build
20057         * lib/signal.in.h: Add Android to the list of platforms that declare
20058         pthread_sigmask() in <pthread.h> instead of <signal.h>.
20060         duplocale: Fix Android build of duplocale-tests
20061         * modules/duplocale-tests (Depends-on): Add langinfo, as the header
20062         is included by test-duplocale.c (but not by duplocale.c).
20063         * modules/duplocale-tests (configure.ac): Check for monetary.h.
20064         * tests/test-duplocale.c: Skip test if monetary.h is absent.
20065         * doc/posix-headers/monetary.texi: Add Android to the list of
20066         platforms missing monetary.h.
20068 2015-02-11  Pádraig Brady  <P@draigBrady.com>
20070         tests: avoid recent -Werror=unused-variable regression in test-locale
20071         * tests/test-locale.c (main): Reference the variable to avoid the
20072         "unused variable" warning.
20074 2015-02-11  Pádraig Brady  <P@draigBrady.com>
20076         maint: various whitespace cleanups in tempname
20077         * lib/tempname.c: Normalize spacing and line length.
20078         * lib/tempname.h: Likewise.
20079         * modules/tempname: Likewise.
20081 2015-02-11  Pádraig Brady  <P@draigBrady.com>
20083         tests: provide returns_() to simplify exit status checking
20084         * tests/init.sh (returns_): A new function for use in tests,
20085         to allow for easier checking of return values, where you expect
20086         a command to exit with failure status.  By checking for a particular
20087         exit code, you don't hide any crashes for example.
20089 2015-02-11  Pádraig Brady  <P@draigBrady.com>
20091         mountlist: only use libmount when specified
20092         There are currently many shared libs dependencies introduced by
20093         libmount with associated runtime and virt mem overhead.
20094         Therefore don't enable by default.
20095         * m4/ls-mntd-fs.m4: Use --with-libmount to enable at build time.
20097 2015-02-08  Daiki Ueno  <ueno@gnu.org>
20099         uniname/unimame-tests: don't link with -lunistring
20100         * modules/uniname/uniname-tests (Makefile.am): Don't link against
20101         $(LIBUNISTRING).  Document the rationale why we need to
20102         conditionalize the test.
20104 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
20106         fstrcmp: don't assume strlen < INT_MAX
20107         * lib/fstrcmp.c: Include stddef.h and stdint.h.
20108         (uintptr_t): Remove, as we're now assuming stdint.
20109         (OFFSET, EXTRA_CONTEXT_FIELDS, fstrcmp_bounded):
20110         Prefer ptrdiff_t to int when the value could exceed INT_MAX
20111         if the input string is long.
20112         (fstrcmp_bounded): Check for size-calculation overflow.  Prefer
20113         uintptr_t to size_t when the underlying value is a pointer casted
20114         to an unsigned integer.  Avoid unnecessary 'buffer != NULL' test.
20115         * modules/fstrcmp (Depends-on): Add stdint.
20117         diffseq: prefer ptrdiff_t to ssize_t
20118         * lib/diffseq.h: In commentary, prefer ptrdiff_t to ssize_t.
20119         ptrdiff_t is the natural type for signed indexes.
20120         On a few older platforms, ssize_t is narrower than size_t.
20122         xalloc: fix typo that suppressed warnings
20123         * lib/xalloc.h: Add missing _GL_INLINE_HEADER_END.
20124         This typo, introduced a couple of years ago, mistakenly suppressed
20125         some -Wsuggest-attribute=const, -Wmissing-prototypes, and
20126         -Wmissing-declarations warnings.
20128         full-read: fix license notice typo
20129         * lib/full-read.h: Remove a stray line in the license notice.
20130         Reported by Sam Ellis in: http://bugs.gnu.org/19808
20132         crypto/gc: fix a -Wswitch warning
20133         Reported by Bruce Korb in:
20134         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00046.html
20135         * lib/gc-gnulib.c (gc_hash_open): Fail faster if MODE is nonzero.
20137 2015-02-03  Pádraig Brady  <P@draigBrady.com>
20139         gnulib-tool: fix handling of patch(1) diagnostics
20140         * gnulib-tool: Send diagnostics from patch(1) to stderr,
20141         as otherwise gnulib-tool will reparse that output and attempt
20142         to lookup modules.
20144 2015-02-03  Pádraig Brady  <P@draigBrady.com>
20146         bootstrap: exit immediately upon gnulib-tool failure
20147         * build-aux/bootstrap: Exit immediately if gnulib-tool fails.
20148         This was noticed when gnulib-tool exited early due to failure
20149         to apply a patch in coreutils at http://hydra.nixos.org/eval/1172233,
20150         but various confusing errors were then given as the build proceeded.
20152 2015-02-02  Andreas Gruenbacher  <agruen@gnu.org>
20154         symlinkat: include all required header files
20155         * lib/symlinkat.c (HAVE_SYMLINK_AT): Add <sys/stat.h> for fstatat(),
20156         and string.h for strlen(), required at least on OS X 10.10 (Yosemite).
20157         Reported at https://savannah.gnu.org/bugs/index.php?44151
20158         and by Jack Howarth.
20160 2015-01-29  Pádraig Brady  <P@draigBrady.com>
20162         localename: support Solaris 12 and illumos
20163         * lib/localename.c (gl_locale_name_thread_unsafe): call
20164         getlocalename_l() on newer __sun platforms.
20165         Reported by Alexander Pyhalov.
20166         Fix suggested by Rich Burridge.
20168 2015-01-29  Alexander Pyhalov  <alp@rsu.ru>
20170         locale: fix tests on illumos (trivial)
20171         * tests/test-locale.c: LC_GLOBAL_LOCALE is a function call on illumos,
20172         so move from global scope to main().
20174 2015-01-24  Daiki Ueno  <ueno@gnu.org>
20176         unictype: avoid undefined left-shift behavior
20177         * lib/unictype/bidi_of.c (uc_bidi_class): Building libunistring with
20178         gcc's -fsanitize=shift and running its tests triggered:
20179           unictype/bidi_of.c:43:60: runtime error: left shift of 40167 by 16 \
20180             places cannot be represented in type 'int'
20181         Cast LHS to 'unsigned int' after integer promotion.
20182         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
20183         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
20185 2015-01-20  Daiki Ueno  <ueno@gnu.org>
20187         libunistring: bump version of unitypes dependants
20188         Due to the header file search order, all the headers which depend
20189         on unitypes.h need to be generated, when the preinstalled
20190         libunistring is older.
20191         * modules/unicase/base (configure.ac): Bump minimum version to
20192         0.9.4.
20193         * modules/uniconv/base (configure.ac): Likewise.
20194         * modules/unilbrk/base (configure.ac): Likewise.
20195         * modules/uninorm/base (configure.ac): Likewise.
20196         * modules/unistdio/base (configure.ac): Likewise.
20197         * modules/unistr/base (configure.ac): Likewise.
20198         * modules/uniwbrk/base (configure.ac): Likewise.
20199         * modules/uniwidth/base (configure.ac): Likewise.
20201 2015-01-20  Daiki Ueno  <ueno@gnu.org>
20203         unictype/category-none: fix link with libunistring
20204         Since _UC_CATEGORY_NONE is not a public symbol, it will be
20205         prefixed with "libstring_" when compiled as part of libunistring.
20206         To avoid undefined symbol at link time, increase the minimum
20207         version when the dependant modules are updated.
20208         * modules/unictype/category-none (configure.ac): Bump minimum
20209         version to 0.9.5.
20211 2015-01-20  Daiki Ueno  <ueno@gnu.org>
20213         unitypes: fix build with installed libunistring
20214         The minimum version has not bumped after _UC_ATTRIBUTE_CONST and
20215         _UC_ATTRIBUTE_PURE were added to unitypes.in.h.
20216         * modules/unitypes (configure.ac): Bump minimum version to 0.9.4.
20218 2015-01-15  Paul Eggert  <eggert@cs.ucla.edu>
20220         time: port to MinGW32 3.21
20221         Problem reported by Eli Zaretskii in:
20222         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00042.html
20223         * lib/time.in.h:
20224         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC):
20225         * modules/time (Depends-on):
20226         Fall back on unistd.h if the other include files don't define
20227         struct timespec.
20229         update-copyright: apply to self
20230         * build-aux/update-copyright: Fix copyright date.  How ironic!
20232 2015-01-15  Daiki Ueno  <ueno@gnu.org>
20234         libunistring: update to Unicode 7.0.0
20235         * lib/unictype/joininggroup_byname.gperf: Add Straight Waw and
20236         Manichaean names.
20237         * lib/unictype/joininggroup_name.h: Likewise.
20238         * lib/unictype.in.h (UC_JOINING_GROUP_STRAIGHT_WAW)
20239         (UC_JOINING_GROUP_MANICHAEAN_ALEPH): New enumeration values.
20240         * lib/gen-uni-tables.c (UC_JOINING_GROUP_STRAIGHT_WAW)
20241         (UC_JOINING_GROUP_MANICHAEAN_*): New enumeration values.
20242         (fill_arabicshaping, joining_group_as_c_identifier): Support those
20243         enum values.
20244         (is_property_alphabetic): Accept newly added characters to
20245         cuneiform numeric signs.
20246         (is_property_default_ignorable_code_point): Reject U+0605.
20247         (FIELDLEN): Increase from 120 to 160.
20248         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0605,
20249         U+08FF, U+0C00, U+0C81, U+0D01, U+1AB0..U+1ABE, U+1BAC..U+1BAD,
20250         U+1CF8..U+1CF9, U+1DE7..U+1DF5, U+A9E5, U+AA7C, U+FE27..U+FE2D,
20251         U+102E0, U+10376..U+1037A, U+10AE5..U+10AE6, U+1107F, U+11173,
20252         U+1122F..U+11231, U+11234, U+11236..U+11237, U+112DF,
20253         U+112E3..U+112EA, U+11301, U+1133C, U+11340, U+11366..U+1136C,
20254         U+11370..U+11374, U+114B3..U+114B8, U+114BA, U+114BF..U+114C0,
20255         U+114C2..U+114C3, U+115B2..U+115B5, U+115BC..U+115C0,
20256         U+11633..U+1163A, U+1163D, U+1163F..U+11640, U+16AF0..U+16AF4,
20257         U+16B30..U+16B36, U+1BC9D..U+1BC9E, U+1BCA0..U+1BCA3, and
20258         U+1E8D0..U+1E8D6.
20259         (uc_width): Adjust nonspacing_table_ind boundary from 240 to 248.
20260         * tests/uniwidth/test-uc_width2.sh: Same updates as in
20261         lib/uniwidth/width.c.
20262         * all generated files under lib/uni* and tests/uni*: Regenerate.
20264 2015-01-14  Daiki Ueno  <ueno@gnu.org>
20266         libunistring: update to Unicode 6.3.0
20267         * lib/uniwbrk.in.h (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
20268         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support WB7a, WB7b, and WB7c.
20269         Update WB5, WB6, WB7, WB9, WB11, WB12, WB13a, and WB13b.
20270         * lib/uniwbrk/wbrktable.h (uniwbrk_table): Adjust table size.
20271         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support rule WB7a.
20272         Update WB5, WB9, WB10, WB13a, and WB13b.
20273         * tests/uniwbrk/test-uc-wordbreaks.c
20274         (wordbreakproperty_to_string): Support WBP_DQ, WBP_SQ, and WBP_HL.
20275         * lib/gen-uni-tables.c (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
20276         (UC_BIDI_PDI): New enumeration values.
20277         (bidi_category_byname): Support those enum values.
20278         (is_WBP_MIDNUMLET): Exclude 0x0027 (SINGLE QUOTE), which is now a
20279         dedicated property assigned.
20280         (is_property_case_ignorable): Check 0x0027.
20281         (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
20282         (get_wbp, debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
20283         (output_wbp): Support those enum values.
20284         * lib/unictype.in.h (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
20285         (UC_BIDI_PDI): New enumeration values.
20286         * lib/unictype/bidi_byname.gperf: Add those property names.
20287         * lib/uniwidth/width.c (nonspacing_table_data): Add U+061C,
20288         U+180E, U+1A1B, and U+2066..U+2069.
20289         * tests/uniwidth/test-uc_width2.sh: Same updates as in
20290         lib/uniwidth/width.c.
20291         * all generated files under lib/uni* and tests/uni*: Regenerate.
20293 2015-01-14  Daiki Ueno  <ueno@gnu.org>
20295         libunistring: update to Unicode 6.2.0
20296         * lib/unilbrk/lbrktables.h (LBP_RI): New enumeration value.
20297         (unilbrk_table): Adjust table size.
20298         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
20299         for LBP_RI.
20300         * lib/uniwbrk.in.h (WBP_RI): New enumeration value.
20301         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support rule WB13c.
20302         Normalize table index skipping ignored properties.
20303         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support WBP_RI.  Remove
20304         WBP_EXTEND and WBP_FORMAT, which are now computed without using
20305         the table.
20306         * lib/uniwbrk/wbrktable.h: Adjust table size.
20307         * lib/unigbrk.in.h (GBP_RI): New enumeration value.
20308         * lib/unigbrk/uc-is-grapheme-break.c (UC_IS_GRAPHEME_BREAK):
20309         Support rule GB8a.
20310         (UC_GRAPHEME_BREAKS_FOR, gb_table): Support GBP_RI.
20311         * tests/unigbrk/test-uc-is-grapheme-break.c
20312         (graphemebreakproperty_to_string): Support GBP_RI.
20313         * tests/uniwbrk/test-uc-wordbreaks.c
20314         (wordbreakproperty_to_string): Support WBP_RI.
20315         * lib/gen-uni-tables.c (LBP_RI): New enumeration value.
20316         (get_lbp, debug_output_lbp, fill_org_lbp, debug_output_org_lbp)
20317         (output_lbp): Support LBP_RI.  Adjust some characters changed from
20318         LBP_AL to LBP_ID.
20319         (output_lbp): Support LBP_RI.
20320         (WBP_RI): New enumeration value.
20321         (debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
20322         (output_wbp): Support WBP_RI.
20323         (GBP_RI): New enumeration value.
20324         (output_gbp_test, fill_org_gbp): Support GBP_RI.
20325         * all generated files under lib/uni* and tests/uni*: Regenerate.
20327 2015-01-14  Daiki Ueno  <ueno@gnu.org>
20329         libunistring: update to Unicode 6.1.0
20330         * lib/gen-uni-tables.c (output_joining_group): Switch to
20331         3-level table to accommodate joining groups defined with higher
20332         codepoint value.  Since there are only 88 groups defined in
20333         Unicode 7.0.0, use 7-bit packed format for level3 entries.
20334         (get_lbp): Update for Unicode 6.1.0.
20335         * lib/unictype/joininggroup_of.c (uc_joining_group): Adjust to use
20336         3-level table.
20337         * lib/unictype/joininggroup_byname.gperf: Add Rohingya Yeh
20338         joining group name.
20339         * lib/unictype/joininggroup_name.h: Likewise.
20340         * lib/unilbrk/lbrktables.h (LBP_HL): New enumeration value.
20341         (unilbrk_table): Adjust table size.
20342         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
20343         for LBP_HL.
20344         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0604,
20345         U+08E4..U+08FE, U+1BAB, U+1CF4, U+A674..U+A67B, U+A69F,
20346         U+AAEC..U+AAED, U+AAF6, U+11100..U+11102, U+11127..U+1112B,
20347         U+1112D..U+11134, U+11180..U+11181, U+111B6..U+111BE, U+116AB,
20348         U+116AD, U+116B0..U+116B5, U+116B7, U+16F8F..U+16F92.  Remove
20349         U+302E..U+302F.
20350         * tests/uniwidth/test-uc_width2.sh: Same updates as in
20351         lib/uniwidth/width.c.
20352         * all generated files under lib/uni* and tests/uni*: Regenerate.
20353         * modules/uni*/* (configure.ac): Bump minimum version to 0.9.5.
20355 2015-01-15  Daiki Ueno  <ueno@gnu.org>
20357         uniwbrk/u32-wordbreaks-tests: add conformance test
20358         * modules/uniwbrk/u32-wordbreaks-tests (Files): Add
20359         tests/uniwbrk/test-uc-wordbreaks.c,
20360         tests/uniwbrk/test-uc-wordbreaks.sh, and
20361         tests/uniwbrk/WordBreakTest.txt.
20362         (Makefile.am): Add uniwbrk/test-uc-wordbreaks.sh to $(TESTS), add
20363         test-uc-wordbreaks to $(check_PROGRAMS), and define
20364         test_uc_wordbreaks_SOURCES and test_uc_wordbreaks_LDADD.
20365         * tests/uniwbrk/test-uc-wordbreaks.sh: New file.
20366         * tests/uniwbrk/test-uc-wordbreaks.c: New file.
20368 2015-01-15  Daiki Ueno  <ueno@gnu.org>
20370         uniwbrk: ignore Extended/Format characters at BOL not BOS
20371         * lib/uniwbrk/u-wordbreaks.h (FUNC): Ignore Extend and Format
20372         characters if the previous character property is one of
20373         WBP_NEWLINE, WBP_CR, and WBP_LF.
20375 2015-01-11  Jim Meyering  <meyering@fb.com>
20377         test-strstr.c: avoid a trivial leak
20378         * tests/test-strstr.c (main): Free haystack.
20380         update-copyright: recognize groff's \(co marker
20381         * build-aux/update-copyright (circle_c_re): Also accept
20382         uses of \(co, as found in gzip.1.
20384 2015-01-08  Pádraig Brady  <P@draigBrady.com>
20386         maint.mk: fix compatibility with OS X nm
20387         * top/maint.mk (_gl_tight_scope): Use the -g option to
20388         show exported items rather than the -e option which is
20389         ignored on all platforms except OS X where it gives an error.
20390         Reported by Assaf Gordon.
20392 2015-01-07  KO Myung-Hun  <komh@chollian.net>
20394         localcharset: improve charset detection on OS/2
20395         Use system codepage when appropriate.  Map OS/2 codepages to
20396         GNU canonical charset names if possible.
20397         * lib/config.charset: Don't output aliases if "$os" is os2*.
20398         * lib/localcharset.c (get_charset_aliases) [OS2]: Hardcode the
20399         result for OS/2.
20400         (locale_charset) [OS2]: Use system codepage if codeset is omitted
20401         from the locale name which is neither "C" nor "POSIX".
20403 2015-01-06  Paul Eggert  <eggert@cs.ucla.edu>
20405         count-leading-zeros: use 64-bit intrinsics on 32-bit Windows
20406         This reverts the last patch but one, as it shouldn't be needed now
20407         that the typo is fixed.
20408         * lib/count-leading-zeros.h (count_leading_zeros_ll):
20409         * lib/count-trailing-zeros.h:
20410         * lib/count-one-bits.h:
20411         Go back to using 64-bit intrinsics.
20413         count-leading-zeros: fix pragma typos
20414         * lib/count-leading-zeros.h (_BitScanReverse, _BitScanReverse64):
20415         Fix typos in declaration of intrinsics when _MSC_VER.
20417 2015-01-06  Pádraig Brady  <P@draigBrady.com>
20419         count-leading-zeros: avoid 64-bit intrinsics on 32-bit Windows
20420         * lib/count-leading-zeros.h (count_leading_zeros_ll): Use 32 bit
20421         intrinsics in this case.
20422         * lib/count-trailing-zeros.h: Likewise.
20423         * lib/count-one-bits.h: Likewise.
20425 2015-01-06  Daiki Ueno  <ueno@gnu.org>
20427         uniname/uniname: update to Unicode 7.0.0
20428         To accommodate new characters added since Unicode 5.1.0, this
20429         changes the internal representation of codepoint ranges.
20430         Previously, we grouped codepoint ranges by manually assigned 4-bit
20431         tag, which only allowed 16 groups.  This removes the limitation by
20432         switching to binary search on a table.  For the detail rationale
20433         and the benchmark results, see:
20434         https://lists.gnu.org/r/bug-libunistring/2014-06/msg00001.html
20435         * lib/uniname/gen-uninames.lisp (unicode-char): Rename CODE member
20436         to INDEX, as it no longer represents a codepoint.
20437         (range): New struct.
20438         (main): Switch to intervals list from a bit-pattern based
20439         classification.
20440         * lib/uniname/uninames.h: Regenerate.
20441         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 7.0.0.
20442         * modules/uniname/base (configure.ac): Bump minimum version to
20443         0.9.5.
20444         * modules/uniname/uniname (configure.ac): Bump minimum version to
20445         0.9.5.
20447 2015-01-05  Eric Blake  <eblake@redhat.com>
20449         doc: update INSTALL from autoconf
20450         * doc/install.texi: Resync from autoconf.
20451         * doc/INSTALL: Reflect recent autoconf update.
20452         * doc/INSTALL.ISO: Likewise.
20453         * doc/INSTALL.UTF-8: Likewise.
20455         stdio: fix use of PRIdMAX on modern mingw
20456         * m4/stdio_h.m4 (gl_STDIO_H): Probe for printf flavor via inttypes.
20457         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use result
20458         to work with modern mingw.
20460 2015-01-05  Daniel P. Berrange  <berrange@redhat.com>  (tiny change)
20462         pthread: detect git mingw builds with only partial pollution
20463         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for additional
20464         pollution, as seen temporarily in Fedora 21.
20466 2015-01-04  Paul Eggert  <eggert@cs.ucla.edu>
20468         lib-symbol-versions: cache script check
20469         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT):
20470         Cache the check for linker version scripts.
20471         From a suggestion by Christophe Curis in:
20472         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00011.html
20474 2015-01-04  Benno Schulenberg  <bensberg@justemail.net>
20476         maint: fix grammar nits in propername (trivial change)
20477         * lib/propername.h: Remove a mistaken comma and a duplicate "from",
20478         and use an adequate verb and tense.
20480 2015-01-02  Ludovic Courtès  <ludo@gnu.org>
20482         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
20483         * module/gendocs: Add 'doc/gendocs_template_min'.
20485         * build-aux/gendocs.sh: Change email addresses and upstream URLs
20486         from to Gnulib's.
20487         (scripturl, templateurl): Adjust accordingly.
20489 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
20491         gendocs: copyright date and version fix
20492         Reported by Karl Berry in:
20493         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00002.html
20494         * build-aux/gendocs.sh, doc/gendocs_template, doc/gendocs_template_min:
20495         Fix copyright date.
20496         * build-aux/gendocs.sh (scriptversion): Update.
20498 2015-01-01  Karl Berry  <karl@gnu.org>
20500         * doc/install.texi,
20501         * build-aux/mdate-sh,
20502         * build-aux/depcomp,
20503         * build-aux/config.guess,
20504         * build-aux/config.sub,
20505         * build-aux/ar-lib,
20506         * build-aux/compile: revert copyright updates (some from last
20507         year) in slaved files.
20509 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
20511         version-etc: new year
20512         * doc/gnulib.texi:
20513         * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date.
20514         * all files: Run 'make update-copyright'.
20516 2014-12-30  Pádraig Brady  <P@draigBrady.com>
20518         xstrtol: ensure errno is reset
20519         Since commit 3bf75404, on 26-09-1998, errno may not have been reset.
20520         Noticed with a spurious coreutils test failure on Darwin 14.0.0.
20522         * lib/xstrtol.c (__xstrtol): Always reset errno before returning.
20524 2014-12-28  Paul Eggert  <eggert@cs.ucla.edu>
20526         utimens: fix dependency typo
20527         * modules/utimens (Depends-on): Remove 'assure'.
20528         This bug was introduced in the recent 'assure' patch.
20530 2014-12-22  Eric Blake  <eblake@redhat.com>
20532         docs: mention why libgen.h is bad
20533         * doc/posix-headers/libgen.texi (libgen.h): Refer to dirname module.
20535 2014-12-20  Paul Eggert  <eggert@cs.ucla.edu>
20537         assure: new module
20538         This works better than 'assert' when compiling with -DNDEBUG,
20539         as it avoids some compiler diagnostics in that case.
20540         Reported by Norihiro Tanaka in:
20541         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00215.html
20542         * MODULES.html.sh (func_all_modules): Add 'assure'.
20543         * lib/assure.h, modules/assure: New files.
20544         * lib/chdir-long.c, lib/cycle-check.c, lib/fchdir.c, lib/fts.c:
20545         * lib/poll.c, lib/savewd.c, lib/xstrtol.c:
20546         Prefer 'assure' to 'assert'.
20547         * lib/utimens.c: Stop using 'assert'; it wasn't helpful.
20548         * modules/chdir-long, modules/cycle-check, modules/fchdir:
20549         * modules/poll, modules/savewd, modules/utimens, modules/xstrtol:
20550         Depend on 'assure'.
20552 2014-12-16  Paul Eggert  <eggert@cs.ucla.edu>
20554         stdalign: port better to HP compilers
20555         * m4/stdalign.m4 (gl_STDALIGN_H): Try the test if __HP_cc or
20556         __HP_aCC are nonzero, to be consistent with the 2014-01-20 patch.
20558         stdalign: work around Apple GCC 4.0 bug
20559         Reported by David Fang in:
20560         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00194.html
20561         * lib/stdalign.in.h (_Alignas):
20562         * m4/stdalign.m4 (gl_STDALIGN_H):
20563         Do not use aligned attribute with GCC 4.0 on Apple.
20565 2014-12-16  Pádraig Brady  <P@draigBrady.com>
20567         getcwd: fix test failure on OS X 10.9
20568         * m4/getcwd-path-max.m4: Avoid the replacement if it
20569         won't be effective due to the PATH_MAX limitation of lstat().
20570         (gl_cv_func_getcwd_path_max): Adjust to indicate this case.
20571         * m4/getcwd.m4 (gl_FUNC_GETCWD): Define HAVE_GETCWD_SHORTER
20572         for this case for use in tests, and also exclude this
20573         case when setting REPLACE_GETCWD.
20574         * tests/test-getcwd.c (test_long_name): Restrict the
20575         tested path length so that lstat() will not be passed
20576         a path greater than PATH_MAX.
20577         Also key a test condition on HAVE_OPENAT_SUPPORT rather
20578         than AT_FDCWD, since the latter is set unconditionally
20579         since Sep 2009 in commit 52c658e9.
20581 2014-12-14  Tim Rühsen  <tim.ruehsen@gmx.de>
20583         parse-datetime: avoid a compiler warning with byacc (trivial)
20584         * lib/parse-datetime.y (yylex): Use the same prototype in the
20585         function definition as the declaration, to avoid a -Wstrict-prototypes
20586         warning seen when using byacc.
20588 2014-12-12  Daiki Ueno  <ueno@gnu.org>
20590         unicase/locale-language-tests: fix LOCALE_FR test
20591         * tests/unicase/test-locale-language.sh: Really use $LOCALE_FR for
20592         a French locale with traditional encoding.
20593         Reported by umerqayam in:
20594         http://lists.gnu.org/r/bug-libunistring/2014-12/msg00000.html
20596 2014-12-12  Paul Eggert  <eggert@cs.ucla.edu>
20598         stddef: support C11's max_align_t
20599         * doc/posix-headers/stddef.texi (stddef.h): Document max_align_t.
20600         * lib/stddef.in.h (_@GUARD_PREFIX@_STDDEF_H) [__need_wint_t]:
20601         Do not undef, as that might cause max_align_t to be defined twice.
20602         Instead, change use to check for _GL_STDDEF_WINT_T too.
20603         (max_align_t) [!HAVE_MAX_ALIGN_T]: New decl.
20604         * m4/stddef_h.m4 (gl_STDDEF_H, gl_STDDEF_H_DEFAULTS):
20605         Check for max_align_t.
20606         * modules/stddef (stddef.h): Substitute HAVE_MAX_ALIGN_T.
20607         * modules/stddef-tests (Depends-on): Add stdalign.
20608         * tests/test-stddef.c: Test max_align_t.
20610 2014-12-11  Daiki Ueno  <ueno@gnu.org>
20612         unistd: fix iOS check conditional
20613         On Mac OS X 10.8, the TARGET_* macros are unconditonally defined
20614         as 0 or 1 in <TargetConditionals.h>, and the previous check always
20615         yielded true on non-iOS environment.
20616         * lib/unistd.in.h (environ) [__APPLE__]: Check the values of
20617         TARGET_OS_IPHONE and TARGET_IPHONE_SIMULATOR, instead of whether
20618         they are defined.
20620 2014-12-09  Paul Eggert  <eggert@cs.ucla.edu>
20622         posixtm: avoid compiler warning in a better way
20623         * lib/posixtm.c (IF_LINT): Remove.
20624         (year, posix_time_parse):
20625         Return true (not 0) if successful.  All callers changed.
20626         (posix_time_parse): Simplify to pacify GCC without need for IF_LINT.
20628 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
20630         * lib/relocatable.c (relocate): Prepend $UNIXROOT to pathname if it is
20631         started with '/' on EMX.
20633 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
20635         freopen: workaround freopen() on OS/2 kLIBC
20636         * lib/freopen.c (rpl_freopen): Workaround.
20637         * m4/freopen.m4: Add os2* case.
20639         get_shared_library_fullname: port to EMX
20640         * lib/relocatable.c: Define strcmp and strncmp to stricmp and strnicmp
20641         on EMX, respectively.
20642         (_DLL_InitTerm): New on EMX.
20643         (get_shared_library_fullname): Implement on EMX.
20645         find_executable: port to EMX
20646         * lib/progreloc.c (find_executable): Implement on EMX.
20648         sched: check struct sched_param in spawn.h as well
20649         * lib/sched.in.h: Include spawn.h on kLIBC.
20650         * lib/sched_h.m4: Check struct sched_param in spawn.h as well.
20652 2014-12-08  Martin Kletzander  <mkletzan@redhat.com>  (tiny change)
20654         bootstrap: Allow perl modules in $buildreq
20655         * build-aux/bootstrap: Add case for perl modules.
20657 2014-12-08  Pádraig Brady  <P@draigBrady.com>
20659         apply _GL_ATTRIBUTE_PURE to some inline functions
20660         clang 3.4.2 flagged these inline functions as pure
20661         * lib/savewd.h (savewd_errno): Set _GL_ATTRIBUTE_PURE.
20662         * lib/sig-handler.h (get_handler): Likewise.
20663         * lib/stat-time.h (get_stat_{a,c,m,birth}time{,_ns}): Likewise.
20664         * lib/timespec.h (timespec_cmp, timespec_sign): Likewise.
20666 2014-12-06  Pádraig Brady  <P@draigBrady.com>
20668         vasnprintf: fix potential use after free
20669         * lib/vasnprintf.c (VASNPRINTF): Fix free-memory read,
20670         flagged by clang-analyzer 3.4.2.
20672 2014-12-05  Pádraig Brady  <P@draigBrady.com>
20674         filevercmp, posixtm: avoid compiler warnings with -O3
20675         * lib/filevercmp.h (filevercmp): Tag with _GL_ATTRIBUTE_PURE
20676         * lib/posixtm.c: (IF_LINT): Define.
20677         (posix_time_parse): Use it to void a "may be used uninitialized"
20678         warning, seen only with -O3.
20680 2014-12-05  Bruno Haible  <bruno@clisp.org>
20682         Fix LDBL80_WORDS macro on big endian platforms.
20683         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Add missing parenthesis in
20684         LDBL80_WORDS macro.
20685         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
20686         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
20687         * tests/test-isfinite.c (test_isfinitel): Likewise.
20688         * tests/test-isinf.c (test_isinfl): Likewise.
20689         * tests/test-isnan.c (test_long_double): Likewise.
20690         * tests/test-isnanl.h (main): Likewise.
20691         * tests/test-snprintf-posix.h (LDBL80_WORDS): Add missing parenthesis.
20692         * tests/test-sprintf-posix.h (LDBL80_WORDS): Likewise.
20693         * tests/test-vasnprintf-posix.c (LDBL80_WORDS): Likewise.
20694         * tests/test-vasprintf-posix.c (LDBL80_WORDS): Likewise.
20695         Reported by Pádraig Brady.
20697 2014-12-02  KO Myung-Hun  <komh78@gmail.com>
20699         git-version-gen: do not print new line characters
20700         * build-aux/git-version-gen: Use printf instead of echo and tr.
20702         gnulib-tool: recognize x:* as an absolute path
20703         * gnulib-tool (func_gnulib_dir): Add ?:* case.
20704         (func_relconcat): Likewise.
20706 2014-12-02  Andrei Borzenkov  <arvidjaar@gmail.com>
20708         argp: avoid extraneous translation and mem leak with empty pre doc
20709         * lib/argp-help.c (argp_doc): Never translate the empty string,
20710         when "\v" is the first or last character of the string, as that
20711         has a reserved meaning to return the header info from a po file.
20712         This also fixes a small memory leak in the !post case.
20713         The issue can be seen with this command for example:
20714         LC_MESSAGES=en_US grub2-mknetdir --help
20716 2014-11-27  Daiki Ueno  <ueno@gnu.org>
20718         uniname/uniname-tests: skip if system's libunistring is used
20719         * modules/uniname/uniname-tests (Makefile.am): Skip test if
20720         uniname/uniname module is not compiled.
20722 2014-11-27  Pádraig Brady  <P@draigBrady.com>
20724         printf: fix configure check on big endian systems
20725         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Add missing bracket.
20727 2014-11-22  Daiki Ueno  <ueno@gnu.org>
20729         pipe-filter-gi, pipe-filter-ii: port to AIX
20730         On AIX 7.1, 'select' is defined as static and cannot be referred
20731         to from inline function.
20732         * lib/pipe-filter-aux.h (nointr_select): Remove, manually expand
20733         the definition...
20734         * lib/pipe-filter-gi.c (filter_loop): ...here, and...
20735         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): ...here.
20737 2014-11-20  Paul Eggert  <eggert@cs.ucla.edu>
20739         gitlog-to-changelog: add --until
20740         * build-aux/gitlog-to-changelog: Support new --until option.
20741         Need described by Eli Zaretskii in: http://bugs.gnu.org/19113
20743 2014-11-14  Paul Eggert  <eggert@cs.ucla.edu>
20745         extern-inline: update commentary about GCC bugs
20746         * m4/extern-inline.m4: Add another GCC bug number to comments.
20748 2014-11-13  Daiki Ueno  <ueno@gnu.org>
20750         gen-uni-tables: untabify
20751         * lib/gen-uni-tables.c: Untabify.
20753 2014-11-13  Daiki Ueno  <ueno@gnu.org>
20755         gen-uni-tables: check out-of-range values added to 3-level tables
20756         * lib/gen-uni-tables.c (output_category, output_bidi_category)
20757         (output_joining_type, output_ident_category): Check out-of-range
20758         values added to 3-level tables.
20760 2014-11-13  Daiki Ueno  <ueno@gnu.org>
20762         gen-uni-tables: utilize 'assert'
20763         * lib/gen-uni-tables.c: Include <assert.h>.
20764         (output_category, output_combclass, output_decimal_digit_test)
20765         (output_decimal_digit, output_digit_test, output_digit)
20766         (output_numeric, get_mirror_value, fill_properties)
20767         (fill_property30, is_property_alphabetic)
20768         (is_property_default_ignorable_code_point)
20769         (is_property_uppercase, is_property_lowercase)
20770         (is_property_cased, is_property_case_ignorable)
20771         (is_property_changes_when_lowercased, is_property_iso_control)
20772         (is_property_math, fill_arabicshaping, output_joining_group)
20773         (fill_scripts, fill_blocks, output_lbp, fill_org_wbp)
20774         (output_wbp, fill_org_gbp, get_decomposition)
20775         (output_decomposition, fill_composition_exclusions)
20776         (debug_output_composition_tables, output_composition_tables)
20777         (redistribute_casefolding_rules, output_casing_rules): Use
20778         'assert (EXPR);' instead of 'if (!EXPR) abort ();' for better error
20779         reporting.
20781 2014-11-13  Daiki Ueno  <ueno@gnu.org>
20783         gen-uni-tables: cosmetic improvements
20784         * lib/gen-uni-tables.c: Escape newlines in the Emacs file local
20785         variables specification.
20786         (is_outdigit): Remove unused function.
20788 2014-11-12  Jeroen Roovers  <jer@gentoo.org>  (tiny change)
20790         fcntl-h-tests: port to PA-RISC GNU/Linux
20791         * tests/test-fcntl-h.c (main): Check O_SYNC is different from O_DSYNC.
20793 2014-11-10  Paul Eggert  <eggert@cs.ucla.edu>
20795         fts: port to C89
20796         Problem reported for MSVC 16 by Gisle Vanem in:
20797         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00027.html
20798         * lib/fts.c (fts_build): Avoid declaration before statement.
20800 2014-11-06  Paul Eggert  <eggert@cs.ucla.edu>
20802         unistd: port to iOS
20803         Problem reported by André Klitzing in:
20804         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00013.html
20805         * lib/unistd.in.h (environ): Do not include crt_externs.h on iOS.
20807 2014-11-05  Paul Eggert  <eggert@cs.ucla.edu>
20809         obstack: do not reject malloc-style obstack_chunkfun, obstack_freefun
20810         Problem reported by Alan Modra in:
20811         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00007.html
20812         * lib/obstack.h (obstack_chunkfun, obstack_freefun):
20813         Always cast the function arg, reverting this part of the previous
20814         change.
20816 2014-11-04  Paul Eggert  <eggert@cs.ucla.edu>
20818         obstack: avoid potentially-nonportable function casts
20819         * lib/obstack.c (CALL_CHUNKFUN, CALL_FREEFUN):
20820         Remove, replacing with ...
20821         (call_chunkfun, call_freefun): New static functions.
20822         All uses changed.  Avoid potentially-nonportable casts.
20823         (chunkfun_type, freefun_type): Remove typedefs; no longer used.
20824         (_obstack_begin_worker): Omit last two args, since they
20825         rely on potentially-nonportable casts.  All callers changed.
20826         * lib/obstack.h (_OBSTACK_CAST): New macro.
20827         Use it everywhere the old API used a potentially-nonportable cast.
20828         The new API doesn't cast.
20829         (struct obstack): Use unions rather than requiring
20830         potentially-nonportable casts.
20831         (obstack_chunkfun, obstack_freefun): Return void.
20833 2014-11-03  Alan Modra  <amodra@gmail.com>
20835         obstack: fix macro return values
20836         * lib/obstack.h (obstack_next_free): Return void *.
20837         (obstack_1grow_fast, obstack_blank_fast): Return void.
20838         For __GNUC__ macros:
20839         (obstack_1grow, obstack_blank): Remove now unnecessary (void) 0.
20840         For !__GNUC__ macros:
20841         (obstack_make_room, obstack_grow, obstack_grow0)
20842         (obstack_ptr_grow_fast, obstack_int_grow_fast): Return void.
20844 2014-11-03  Paul Eggert  <eggert@cs.ucla.edu>
20846         obstack: do not assume system-supplied obstack is size_t safe
20847         * m4/obstack.m4: New file.
20848         * modules/obstack (Files): Add it.
20850         obstack: port to platforms that #define __alignof__
20851         * lib/obstack.c: Include <alignof.h> if !defined __alignof__,
20852         not if !_LIBC.  We don't know of any platforms that #define
20853         __alignof__, but it might be useful in tests.  Conversely,
20854         glibc assumes GCC.
20856 2014-11-03  Pádraig Brady  <P@draigBrady.com>
20858         linkat: don't unconditionally replace on GNU/Linux
20859         * m4/linkat.m4 (gl_FUNC_LINKAT): The compile check for AT_SYMLINK_FOLLOW
20860         was redundant for a few reasons.  It was present to support compiling
20861         on new systems but running on the old narrow window of Linux 2.6.1[67].
20862         It setup and cleaned up test files which weren't actually used.
20863         On non __linux__ it compile tested AT_SYMLINK_FOLLOW, but that is
20864         implicit in the following check.
20866 2014-11-03  Pádraig Brady  <P@draigBrady.com>
20868         linkat: wrap to handle symlinks on OS X 10.10
20869         * m4/linkat.m4 (gl_FUNC_LINKAT): linkat() is available on Yosemite
20870         but not usable because it doesn't support creating hardlinks
20871         to symlinks.  Therefore add a generic test for this capability
20872         and fallback to our emulation if linkat() fails with ENOTSUP.
20874 2014-11-02  Paul Eggert  <eggert@cs.ucla.edu>
20876         open, openat: document nonstandard FreeBSD, NetBSD O_NOFOLLOW errno
20877         * doc/posix-functions/open.texi (open):
20878         * doc/posix-functions/openat.texi (openat):
20879         Document that these functions do not set errno to ELOOP when
20880         a symlink is opened with O_NOFOLLOW.
20882 2014-10-31  Paul Eggert  <eggert@cs.ucla.edu>
20884         obstack: add NEWS entry for recent incompatible changes
20885         * NEWS: Describe recent changes.
20887 2014-10-30  Pádraig Brady  <P@draigBrady.com>
20889         mountlist: don't use libmount to decide on dummy/remote
20890         * lib/mountlist.c (read_file_system_list): Don't use the libmount
20891         routines to determine whether a file system is dummy or remote,
20892         as they're not currently compatible.  For example the remoteness
20893         is determined on file system type (for which the list seems incomplete),
20894         rather than simply checking for a ':' in the device name.
20895         Also libmount currently determines that 'tmpfs' is a dummy file system
20896         even though it has associated storage.
20898 2014-10-29  Paul Eggert  <eggert@cs.ucla.edu>
20900         obstack: prefer __alignof__ to alignof
20901         This is for portability to pre-4.7 GCC when compiling glibc.
20902         See Joseph S. Myers in:
20903         http://sourceware.org/ml/libc-alpha/2014-10/msg00703.html
20904         * lib/obstack.c (__alignof__) [!_LIBC && !__GNUC__]:
20905         New macro, defined by including and using <alignof.h>.
20906         (MAX): New macro.
20907         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Redefine in terms of these.
20908         Do not use enums as they are not portable to some broken compilers.
20909         * modules/obstack (Depends-on): Depend on alignof, not stdalign.
20911         obstack: prefer alignof to calculating alignments by hand
20912         * lib/obstack.c: Include <stdalign.h>.
20913         (struct fooalign): Remove.
20914         (DEFAULT_ALIGNMENT): Use alignof rather than the old offsetof hack.
20915         * modules/obstack (Depends-on): Add stdalign.
20917 2014-10-28  Paul Eggert  <eggert@cs.ucla.edu>
20919         obstack: use size_t alignments and check for overflow
20920         * lib/obstack.c, lib/obstack.h (_obstack_begin, _obstack_begin_1):
20921         * lib/obstack.c (_obstack_begin_worker, _obstack_newchunk):
20922         * lib/obstack.h (struct obstack.alignment_mask):
20923         Use _OBSTACK_SIZE_T, not int, for alignments.
20924         * lib/obstack.c (_obstack_newchunk): Fail if the size calculation
20925         overflows, e.g., when adding the alignment.
20927 2014-10-29  Alan Modra  <amodra@gmail.com>
20929         obstack: 64-bit obstack support, part 3
20930         This finally enables full 64-bit obstack support.  The glibc
20931         shared library specific code is removed from obstack.c too, and
20932         the error handling code conditionally compiled under control of
20933         another macro, _OBSTACK_NO_ERROR_HANDLER.
20934         * lib/obstack.h: Include string.h earlier.
20935         (_OBSTACK_INTERFACE_VERSION): Define.
20936         (_OBSTACK_SIZE_T, _CHUNK_SIZE_T): Define as size_t for version 2.
20937         * lib/obstack.c: Don't include shlib-compat.h.
20938         (OBSTACK_INTERFACE_VERSION): Delete.
20939         (_OBSTACK_ELIDE_CODE): Rename from ELIDE_CODE.  Define when version 1
20940         glibc code is compatible with version 2.  Don't include stdio.h for
20941         __GNU_LIBRARY.
20942         (obstack_exit_failure, print_and_abort, obstack_alloc_failed_handler):
20943         Omit when _OBSTACK_NO_ERROR_HANDLER defined.  Include stdio.h here.
20944         (_obstack_compat, _obstack, _obstack_newchunk, obstack_free): Delete
20945         glibc shared library specific source.
20947         obstack: 64-bit obstack support, part 2
20948         This gets us 4G obstack support, without changing ABI
20949         compatibility, apart from possibly introducing some
20950         signed/unsigned comparison warnings in code that uses obstack.h.
20951         a) Replace "int" size parameters, return values, and macro local vars
20952            with _OBSTACK_SIZE_T, an "unsigned int" for now.
20953         b) Make obstack.chunk_size a _CHUNK_SIZE_T, an "unsigned long" for now.
20954         c) Make all obstack macros checking available room use obstack_room.
20955            "next_free + desired > chunk_limit" may wrap the lhs for chunks
20956            allocated near the top of memory.
20957         d) Use unsigned comparisons, and macro locals to support >2G on 32-bit.
20958         * lib/obstack.h (_OBSTACK_SIZE_T): Define.  Use throughout
20959         in place of "int" size parameters, return values and local vars.
20960         (_CHUNK_SIZE_T): Define.
20961         (struct obstack): Make chunk_size a _CHUNK_SIZE_T.  Make temp
20962         union use an _OBSTACK_SIZE_T integer type.
20963         For __GNUC__ versions of the following macros...
20964         (obstack_room): Rename local var.
20965         (obstack_make_room): Use obstack_room.
20966         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
20967         obstack_int_grow, obstack_blank): Likewise.
20968         (obstack_finish): Use unsigned comparison when comparing aligned
20969         next_free against chunk_limit.
20970         (obstack_free): Cast OBJ to remove possible const qualifier.
20971         For !__GNUC__ versions of the following macros...
20972         (obstack_make_room): Use obstack_room.
20973         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
20974         obstack_int_grow, obstack_blank): Likewise.
20975         (obstack_finish): Use unsigned comparision when comparing aligned
20976         next_free against chunk_limit.
20977         (obstack_free): Use temp.p and same comparisons as __GNUC__ version.
20978         * lib/obstack.c (_obstack_begin_worker): Make "size" parameter
20979         _OBSTACK_SIZE_T.
20980         (_obstack_begin, _obstack_begin_1): Likewise.
20981         (_obstack_newchunk): Likewise for length parameter.  Use size_t locals.
20982         (_obstack_memory_used): Return and use _OBSTACK_SIZE_T local.
20984         obstack: 64-bit obstack support, part 1
20985         a) Correct calls to alloc function, to use a size_t arg.  "long" is
20986            just wrong on targets like x86_64-mingw64 where "long" is 32 bits
20987            and "size_t" 64 bits.
20988         b) Consolidate _obstack_begin and _obstack_begin1 code.
20989         * lib/obstack.h (struct obstack <chunkfun>): Correct prototype to
20990         use "size_t" rather than "long".
20991         (_obstack_begin, _obstack_begin1): Likewise.
20992         (obstack_init, obstack_begin, obstack_specify_allocation_with_arg,
20993         obstack_chunkfun): Update alloc function casts.
20994         * lib/obstack.c (CALL_CHUNKFUN): Update chunkfun cast.
20995         (chunkfun_type, freefun_type): New typdefs.
20996         (_obstack_begin_worker): Split out from ..
20997         (_obstack_begin, _obstack_begin_1): ..here.
20999         obstack: tidy part 2
21000         a) Don't be concerned about "not polluting the namespace with stddef.h
21001            symbols" in obstack.h, since gnulib string.h includes stddef.h
21002            anyway, and it seems unlikely that anyone would care.
21003         b) Don't roll our own slow memcpy in _obstack_newchunk.
21004         c) Rename obstack_free to _obstack_free.  This makes the naming
21005            consistent with other obstack functions and obviates the need for
21006            __obstack_free.  Ancient obstack.c defined both obstack_free and
21007            _obstack_free.  We continue to do that for _LIBC via an alias.
21008         d) Miscellaneous macro fixes.  The expression used to test for gcc-2.8
21009            is clever, but nowadays gcc warns on undefined macros.  You'll get
21010            an undefined macro warning if simulating an old gcc with -U__GNUC__
21011            -U__GNUC_MINOR__ -D__GNUC__=1.
21012         * lib/obstack.h: Include stddef.h unconditionally.  Formatting fixes.
21013         (PTR_INT_TYPE): Delete, replace with ptrdiff_t.
21014         (__obstack_free): Delete, update refs.
21015         (_obstack_free): Rename from obstack_free.
21016         (__extension__): Avoid undefined macro warning for __GNUC_MINOR__.
21017         (obstack_object_size, obstack_room): Parenthesise !__GNUC__ versions.
21018         * lib/obstack.c: Don't include stddef.h.
21019         (COPYING_UNIT): Delete.
21020         (_obstack_begin): Formatting fix.
21021         (_obstack_newchunk): Use memcpy to move existing object to new chunk.
21022         (_obstack_free): Rename from __obstack_free, update alias.  Move
21023         undef of obstack_free to where it is needed.
21025         obstack: tidy part 1
21026         a) Rename temp fields.  temp.tempint and temp.tempptr just looks ugly
21027            to me, and result in overlong lines after later patches.
21028         b) Move error handling code, to avoid a forward declaration and to
21029            simplify later patches in this series.
21030         * lib/obstack.h (struct obstack <temp>): Rename fields of union
21031         and update all uses.
21032         * lib/obstack.c: Include stdlib.h earlier.
21033         (obstack_exit_failure, obstack_alloc_failed_handler): Move later
21034         in file.
21035         (print_and_abort): Remove now redundant forward declaration.
21037 2014-10-24  Paul Eggert  <eggert@cs.ucla.edu>
21039         socketlib, sockets, sys_socket: Use AC_REQUIRE to pacify autoconf.
21040         Without this change, in bleeding-edge fileutils Autoconf complains
21041         that gl_SOCKETLIB etc. are AC_REQUIREd after being invoked.
21042         * modules/socketlib (configure.ac): AC_REQUIRE gl_SOCKETLIB.
21043         * modules/sockets (configure.ac): AC_REQUIRE gl_SOCKETS.
21044         * modules/sys_socket (configure.ac): AC_REQUIRE gl_HEADER_SYS_SOCKET.
21046 2014-10-24  Daiki Ueno  <ueno@gnu.org>
21048         iconv: avoid false detection of non-working iconv
21049         The INBUF arguments of iconv can be either 'const char **'
21050         or 'char **'.  If CC is g++, the difference causes a compile error
21051         and thus leads to a false detection of non-working iconv.
21052         Reported by Eli Zaretskii and Werner LEMBERG in:
21053         <https://lists.gnu.org/r/bug-gnulib/2014-10/msg00023.html>.
21054         * m4/iconv.m4 (AM_ICONV_LINK): Try all possible argument types of
21055         iconv.  Bump serial number.
21057 2014-10-23  Pádraig Brady  <P@draigBrady.com>
21059         bootstrap: print more diagnostics for missing programs
21060         * build-aux/bootstrap: only suppress stderr when checking for
21061         alternative program names.  This supports programs issuing non
21062         standard error messages.
21064 2014-10-23  Pádraig Brady  <P@draigBrady.com>
21066         bootstrap: only update the gnulib submodule
21067         * build-aux/bootstrap: Restrict the "submodule update" command
21068         to the gnulib path.
21070 2014-10-18  Paul Eggert  <eggert@cs.ucla.edu>
21072         symlinkat: port to AIX 7.1
21073         * doc/posix-functions/symlinkat.texi (symlinkat):
21074         Mention AIX porting problem.
21075         * lib/symlinkat.c: Always include errno.h.
21076         (rpl_symlinkat) [HAVE_SYMLINKAT]: New function.
21077         * lib/unistd.in.h (symlinkat): Add replacement machinery.
21078         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Check symlinkat behavior.
21079         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_SYMLINKAT.
21080         * modules/symlinkat (Depends-on): Add fstatat if REPLACE_SYMLINKAT.
21081         (configure.ac): Also compile replacement if REPLACE_SYMLINKAT.
21082         * modules/unistd (unistd.h): Substitute REPLACE_SYMLINKAT.
21084         readlinkat: port to AIX 7.1
21085         * doc/posix-functions/readlink.texi (readlink):
21086         * doc/posix-functions/readlinkat.texi (readlinkat):
21087         Mention AIX porting problem.
21088         * lib/readlinkat.c (rpl_readlinkat) [HAVE_READLINKAT]:
21089         New function.
21090         * lib/unistd.in.h (readlinkat): Add replacement machinery.
21091         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check readlinkat signature.
21092         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_READLINKAT.
21093         * modules/readlinkat (configure.ac): Also compile replacement
21094         if REPLACE_READLINKAT.
21095         * modules/unistd (unistd.h): Substitute REPLACE_READLINKAT.
21097 2014-10-12  Karl Berry  <karl@gnu.org>
21099         * doc/posix-functions/dirname.texi: remove spurious {.
21101 2014-09-28  Ben Pfaff  <blp@cs.stanford.edu>
21103         basename, dirname: Improve documentation.
21104         * doc/posix-functions/basename.texi: Mention dirname module and
21105         base_name() function.
21106         * doc/posix-functions/dirname.texi: Mention dir_name() and
21107         mdir_name() functions.
21108         Suggested by Werner LEMBERG <wl@gnu.org>.
21110 2014-09-24  Jim Meyering  <meyering@fb.com>
21112         exclude: declare exclude_patopts static
21113         * lib/exclude.c (exclude_patopts): Declare static,
21114         to avoid triggering a -Wmissing-prototypes warning.
21115         The alternative (declaring it in the .h file) would
21116         require publicizing the private "struct patopts".
21118 2014-09-21  Werner Lemberg  <wl@gnu.org>
21120         dirname: support compilation with C++
21121         * lib/dirname.h: Add necessary C linkage declarations.
21123 2014-09-16  Paul Eggert  <eggert@cs.ucla.edu>
21125         qsort_r: include <config.h>
21126         Problem reported by Tom G. Christensen in:
21127         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00071.html
21128         * lib/qsort.c [!_LIBC]: Include <config.h> first.
21130 2014-09-16  Dylan Cali  <calid1984@gmail.com>
21132         avltree-list: avoid compiler warnings (trivial)
21133         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
21134         -Werror=suggest-attribute=pure.
21135         * lib/gl_array_list.c: Likewise.
21136         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Add extern
21137         declaration to avoid -Werror=missing-prototypes.  This is not added
21138         to a header as only exported for tests.  Add (void) to the
21139         check_invariants() call to indicate we're discarding the result
21140         in this context which avoids -Werror=unused-value.  Note we don't
21141         use ignore_value here to avoid a dependency as we know we'll not
21142         be adding __attribute__((warn_unused_result)) to check_invariants().
21143         Add _GL_ATTRIBUTE_CONST to avoid -Werror=suggest-attribute=const.
21145 2014-09-15  Paul Eggert  <eggert@cs.ucla.edu>
21147         qsort_r: new module, for GNU-style qsort_r
21148         * m4/qsort_r.m4: New file.  Forgot to add this earlier.
21150 2014-09-15  Werner LEMBERG  <wl@gnu.org>
21152         strerror_r-posix: support compilation with C++
21153         * lib/strerror_r.c: Add necessary C linkage declarations.
21155 2014-09-11  Johannes Zarl  <johannes.zarl@jku.at>
21157         fcntl-h: fix compilation with Intel C++ compiler (trivial)
21158         * lib/fcntl.in.h: ICC has the same issue as GCC <= 4.2.
21160 2014-09-09  Fridolin Pokorny  <fpokorny@redhat.com>
21162         mountlist: use /proc/self/mountinfo when available
21163         Use libmount to propagate device IDs provided by Linux in
21164         /proc/self/mountinfo.  This will give more accurate output when
21165         using df in chroot'ed environments as the device IDs are not
21166         determined by stat() which may be inaccurate within the chroot.
21167         * lib/mountlist.c (read_file_system_list): Use the libmount routines
21168         from util-linux to parse "/proc/self/mountinfo" or fall back to
21169         standard getmntent() processing.
21170         * m4/ls-mntd-fs.m4: Check for libmount only when 1-argument
21171         getmntent() is used, as is the case on GNU/Linux.
21173 2014-09-07  Eric Wong  <normalperson@yhbt.net>
21175         users.txt: add cmogstored
21176         cmogstored has used gnulib since the beginning in 2012 to support
21177         GNU/Linux, FreeBSD, and GNU/kFreeBSD.
21179 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
21181         Trivial change.
21182         * gnulib-tool: Use same options as build-aux/bootstrap to download
21183         PO files.
21185 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
21187         Trivial change.
21188         * gnulib-tool: Fallback to wget when rsync of PO files fails.
21190 2014-09-04  Eric Blake  <eblake@redhat.com>
21192         maintainer-makefile: add syntax check for useless ';;'
21193         * top/maint.mk (sc_prohibit_double_semicolon): New rule.
21195 2014-09-04  Paul Eggert  <eggert@cs.ucla.edu>
21197         pthread, pthread_sigmask, threadlib: port to Ubuntu 14.04
21198         Problem reported by Assaf Gordon in:
21199         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
21200         Apparently Ubuntu is doing some fancy link-time optimization
21201         that doesn't work with -lpthread but does work with -pthread.
21202         Work around the bug by preferring -pthread to -lpthread.
21203         * m4/pthread.m4 (gl_PTHREAD_CHECK):
21204         * m4/threadlib.m4 (gl_THREADLIB_BODY): Prefer -pthread to -lpthread.
21205         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
21206         Treat -pthread like -lpthread.
21208 2014-09-04  Eric Blake  <eblake@redhat.com>
21210         error: drop spurious semicolon
21211         * lib/error.c (__error_at_line): Fix ';;'.
21213 2014-09-02  Paul Eggert  <eggert@cs.ucla.edu>
21215         gnulib-common.m4: port to GCC 4.2.1 and Sun Studio 12 C++
21216         * m4/gnulib-common.m4 (AC_C_RESTRICT):
21217         Override AC_C_RESTRICT unconditionally.
21218         Update from autoconf, incorporating:
21219         2014-09-02 autoconf: port 'restrict' to GCC 4.2.1
21220         2009-01-28 Fix AC_C_RESTRICT for Sun Studio 12 C++.
21222 2014-09-01  Paul Eggert  <eggert@cs.ucla.edu>
21224         manywarnings: add GCC 4.9 warnings
21225         Also, make it easier to maintain this in the future.
21226         * build-aux/gcc-warning.spec: Add -Wabi-tag,
21227         -Wconditionally-supported, -Wdelete-incomplete,
21228         -Winherited-variadic-ctor, -Wvirtual-move-assign, -Wzerotrip.
21229         Remove duplicates.  Use tabs uniformly, as that's what 'cut' wants.
21230         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wdate-time,
21231         -Wopenmp-simd.  Use -fdiagnostics-show-option and -funit-at-a-time
21232         only for older GCC versions that need them.  Handle
21233         -Wnormalized=nfc specially, so that the 'comm' command used
21234         for maintenance doesn't get confused.
21236 2014-08-31  Paul Eggert  <eggert@cs.ucla.edu>
21238         vasnprintf: fix bugs in width computation
21239         * lib/vasnprintf.c (VASNPRINTF):
21240         Rework previous change, which introduced a bug,
21241         to avoid the warning in a different way.
21242         Avoid undefined behavior if the width arg is less than -INT_MAX.
21243         Avoid unnecessary use of HAS_WIDTH local.
21245 2014-08-31  Thien-Thi Nguyen  <ttn@gnu.org>  (tiny change)
21247         vasnprintf: Avoid signed/unsigned comparison warning.
21248         * lib/vasnprintf.c (VASNPRINTF): To calculate padding,
21249         compare end addr of generated string w/ maximum end addr.
21251 2013-08-30  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
21253         parse-datetime: Avoid pointer difference.
21254         * lib/parse-datetime.y (yylex): Compare pointer to end of buffer,
21255         instead of calculating difference of pointers.  This removes an
21256         annoying warning, devoid of any use.
21258 2014-08-29  Paul Eggert  <eggert@cs.ucla.edu>
21260         qsort_r: new module, for GNU-style qsort_r
21261         This works even on FreeBSD, which has an incompatible qsort_r API.
21262         * MODULES.html.sh: Add it.
21263         * doc/glibc-functions/qsort_r.texi: It's now supported.
21264         * lib/qsort.c: New file, taken from glibc with minor changes
21265         inside "#ifndef _LIBC" and with an unnecessary "#include <alloca.h>"
21266         removed.
21267         * lib/qsort_r.c: New file, compiled only on FreeBSD.
21268         * lib/stdlib.in.h (qsort_r): Declare in the usual way.
21269         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS):
21270         * modules/qsort_r, modules/qsort_r-tests: New files.
21271         * modules/stdlib (Makefile): Set up its defaults.
21272         * tests/test-qsort_r.c: New file.
21274 2014-08-08  Paul Eggert  <eggert@cs.ucla.edu>
21276         vla: new module
21277         GNU RCS can use this, mostly for documentation I expect.  See:
21278         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00025.html
21279         * MODULES.html.sh: Add vla.
21280         * lib/vla.h, modules/vla: New files.
21282 2014-08-07  Daiki Ueno  <ueno@gnu.org>
21284         localename: make gl_locale_name_thread really thread-safe on Windows
21285         * lib/localename.c [WINDOWS_NATIVE && !IN_LIBINTL]: Include
21286         "glthread/lock.h".
21287         (get_lcid_lock) [WINDOWS_NATIVE]: New variable.
21288         (get_lcid) [WINDOWS_NATIVE]: Lock while looking for an LCID.
21290 2014-08-07  Paul Eggert  <eggert@cs.ucla.edu>
21292         getpass: don't assume struct termios
21293         Problem report and trivial fix by Jonas 'Sortie' Termansen in:
21294         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00015.html
21295         * lib/getpass.c (getpass): Port to systems lacking struct termios.
21297         getdtablesize: fall back on sysconf (_SC_OPEN_MAX)
21298         Problem reported by Jonas 'Sortie' Termansen in:
21299         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00023.html
21300         * lib/getdtablesize.c (getdtablesize) [_SC_OPEN_MAX]:
21301         Implement via sysconf for platforms that lack getdtablesize.
21303         vararrays: modernize AC_C_VARARRAYS for C11
21304         This backports a change I recently made to Autoconf.
21305         * m4/vararrays.m4 (AC_C_VARARRAYS): Define __STDC_NO_VLA__ if
21306         VLAs are not supported, as this is what C11 does.  The old macro
21307         HAVE_C_VARARRAYS is still defined if they are supported, but is
21308         now obsolescent.  Also, check for VLA bug in GCC 3.4.3.
21310 2014-08-07  Alessandro Degano  <degano@cern.ch>  (tiny change)
21312         relocatable-prog-wrapper: port gettext to OS X 10.8 + GCC 4.8.1
21313         * build-aux/install-reloc (func_create_wrapper): Also wrap
21314         strerror-override, stat, stat.
21316 2014-08-05  Paul Eggert  <eggert@cs.ucla.edu>
21318         sys_select: fix FD_ZERO problem on Solaris 10
21319         * lib/sys_select.in.h: Fix Solaris 10 bug where "#include
21320         <sys/time.h>" followed by "#include <sys/select.h>" caused FD_ZERO
21321         to expand to an expression that invoked memset without necessarily
21322         including <string.h>.  The problem was that the first include
21323         defined _SYS_TIME_H, causing the second include to short-circuit.
21324         Fix a similar problem with <sys/types.h> followed by <sys/select.h>.
21325         Also, fix what appears to be a cut-and-paste typo, by replacing
21326         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H with
21327         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TYPES_H.
21329         accept: document Solaris 10 type glitch
21330         * doc/posix-functions/accept.texi (accept): Mention that
21331         Solaris 10 'accept' takes void * last arg, not socklen_t *.
21333 2014-08-04  Paul Eggert  <eggert@cs.ucla.edu>
21335         extern-inline: port to FreeBSD, DragonFly
21336         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Also assume the bug
21337         is present if either __DragonFly__ or __FreeBSD__ is defined.
21338         FreeBSD problem reported by Andrey Borzenkov in:
21339         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00104.html
21340         Also, worry about __APPLE__ only if __MACH__ is also defined,
21341         as this is more consistent with the rest of gnulib.
21342         (_GL_EXTERN_INLINE_STDHEADER_BUG): Rename this internal macro from
21343         _GL_EXTERN_INLINE_APPLE_BUG, since the bug is not limited to Apple.
21345 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
21347         regex: Make #if/#ifdef usage consistent for DEBUG
21348         * lib/regex_internal.c: Use "#if defined DEBUG && DEBUG" instead
21349         of the inconsistent usage of #if and #ifdef as that works with
21350         both Glibc and Gnulib's style.
21352 2014-07-31  Eric Blake  <eblake@redhat.com>
21354         openat-die: use _Noreturn markup
21355         * modules/openat-die (Depends-on): Add snippet/_Noreturn.
21356         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Mark
21357         _Noreturn.
21359 2014-07-30  Eric Blake  <eblake@redhat.com>
21361         test-open: port to cygwin, which lacks Fortify
21362         * tests/test-open.h (ALWAYS_INLINE): New macro.
21363         (__always_inline): Don't abuse internal symbol on non-glibc.
21365 2014-07-19  Eli Zaretskii  <eliz@gnu.org>
21367         localename: Enforce declarations before statements.
21368         * localename.c (gl_locale_name_thread): Declare 'lcid' before the
21369         first statement.
21371 2014-07-18  Jim Meyering  <meyering@fb.com>
21373         test-userspec: don't look up numeric user names
21374         * tests/test-userspec.c: I found a system for which getpwnam("0")
21375         returned a pointer to a non-root user's entry, and that made the
21376         test fail.
21377         (T): Prefix each numeric input with "+", to inhibit lookup.
21379 2014-07-15  Eli Zaretskii  <eliz@gnu.org>
21381         localcharset, localename: MS-Windows support for non-default locales
21382         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Before
21383         falling back on the default system codepage, try extracting
21384         the codepage from what 'setlocale' returns.  This allows to
21385         take into account changes of the codeset due to non-default
21386         locale set by a previous call to 'setlocale'.
21387         * lib/localename.c (LOCALE_NAME_MAX_LENGTH) [WINDOWS_NATIVE]:
21388         Define if not already defined.
21389         (enum_locales_fn, get_lcid) [WINDOWS_NATIVE]: New functions.
21390         (gl_locale_name_thread) [WINDOWS_NATIVE]: Produce the
21391         current locale by calling 'setlocale', then converting the
21392         locale name into LCID by calling 'get_lcid'.  This allows to
21393         take into account changes in the current locale from the
21394         default one, in contrast to GetThreadLocale.
21396 2014-07-14  Daiki Ueno  <ueno@gnu.org>
21398         announce-gen: avoid failure when Digest::SHA is installed
21399         When Digest::SHA is available, Digest::SHA1 is not loaded and thus
21400         Digest::SHA1->new in print_checksums fails.
21401         * build-aux/announce-gen (digest_classes): New associative array
21402         for available message digest implementations.
21403         (print_locations): Use it.
21405 2014-07-13  Pádraig Brady  <P@draigBrady.com>
21407         gettext: revert "update macros to version 0.19"
21408         This reverts commit 9b9370ca, as it currently requires that
21409         developers of any project that explicitly uses the gettext module
21410         or implicitly uses it through the utimens-tests or
21411         futimens-tests modules, use gettext >= 0.19.
21412         However there are some stability and availablity issues with
21413         that version at present.  We can reinstate this soon, when stability
21414         is addressed and packages are more readily available.
21416 2014-07-12  Jim Meyering  <meyering@fb.com>
21418         regex: don't deref NULL upon heap allocation failure
21419         * lib/regcomp.c (parse_dup_op): Handle duplicate_tree
21420         failure in one more place.
21421         To trigger the segfault, configure grep -with-included-regex,
21422         build it, and run these commands:
21423         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
21424         I discovered this while replying to a private report from
21425         Jens Schleusener about excessive memory consumption by grep
21426         when using a regular expression like the one above.
21428 2014-07-11  Paul Eggert  <eggert@cs.ucla.edu>
21430         regex: fix memory leak in compiler
21431         Fix by Andreas Schwab in:
21432         https://sourceware.org/ml/libc-alpha/2014-06/msg00503.html
21433         * lib/regcomp.c (parse_reg_exp): Deallocate partially
21434         constructed tree before returning error.
21436 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
21438         announce-gen: avoid perl warnings
21439         * build-aux/announce-gen: add two minor checks to avoid
21440         "use of uninitialized value" warnings when command-line parameters are
21441         missing.
21443 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
21445         localename: avoid -Wsuggest-attribute={const,pure} warnings
21446         * lib/localename.c (string_has): Tag internal function as pure.
21447         * lib/localename.h (gl_locale_name_default): Tag extern declaration
21448         as const when appropriate.
21450 2014-07-10  Eli Zaretskii  <eliz@gnu.org>
21452         nl_langinfo: Fix last change.
21453         * lib/nl_langinfo.c (includes): Drop redundant include.
21455 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
21457         error: Fix -Wundef warnings in glibc
21458         * lib/error.c [_LIBC]: Define default macros for
21459         glibc.
21460         (print_errno_message) [defined HAVE_STRERROR_R || _LIBC]:
21461         Check _LIBC before STRERROR_R_CHAR_P.
21463         error: Sync from glibc master
21464         * lib/error.c [_LIBC]: Remove INTUSE usage.
21465         (error_tail): Remove unused macro ALLOCA_LIMIT.
21466         Fix potential buffer overflow.  Fix potential NULL dereference
21467         in strcmp.
21469 2014-07-09  Pavel Hrdina  <phrdina@redhat.com> (tiny change)
21471         nl_langinfo: fix build under mingw
21472         * lib/nl_langinfo.c (includes): Pick up <windows.h> for GetACP().
21474 2014-07-09  Andrew D Warshall  <warshall@99main.com>
21476         mountlist: do not classify a bind-mounted dir entry as "dummy"
21477         * m4/ls-mntd-fs.m4: Check for hasmntopt() on platforms with
21478         1-argument getmntent() (instead of assuming absence).
21480 2014-07-08  Eric Blake  <eblake@redhat.com>
21482         maint.mk: less syntax-check noise when SIGPIPE is ignored
21483         * top/maint.mk (_sc_header_without_use)
21484         (sc_require_config_h_first): Parse full list.
21486 2014-07-07  Eli Zaretskii  <eliz@gnu.org>
21487             Paul Eggert  <eggert@cs.ucla.edu>
21489         nl_langinfo: CODESET on MS-Windows and more items from localeconv
21490         * lib/langinfo.in.h (DECIMAL_POINT, THOUSANDS_SEP, GROUPING)
21491         (CURRENCY_SYMBOL, INT_CURR_SYMBOL, MON_DECIMAL_POINT)
21492         (MON_THOUSANDS_SEP, MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN)
21493         (FRAC_DIGITS, INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES)
21494         (P_SEP_BY_SPACE, N_SEP_BY_SPACE, P_SIGN_POSN, N_SIGN_POSN): Define.
21495         * lib/nl_langinfo.c: Include <locale.h> and <string.h> early.
21496         Include <stdio.h> if Microsoft Windows.
21497         Include <time.h> if !REPLACE_NL_LANGINFO.
21498         (ctype_codeset): New function, taken from rpl_nl_langinfo,
21499         and with improvements for Microsoft Windows.
21500         (rpl_nl_langinfo): Use it.
21501         (nl_langinfo) [!REPLACE_NL_LANGINFO]: Likewise.
21502         Compute the values of RADIXCHAR, THOUSEP, GROUPING, CRNCYSTR,
21503         INT_CURR_SYMBOL, MON_DECIMAL_POINT, MON_THOUSANDS_SEP,
21504         MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN, FRAC_DIGITS,
21505         INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES, P_SEP_BY_SPACE,
21506         N_SEP_BY_SPACE, P_SIGN_POSN, and N_SIGN_POSN from the
21507         corresponding values returned by 'localeconv'.  Compute the values
21508         of AM_STR, PM_STR, DAY_n, ABDAY_n, MON_n, and ABMON_n by calling
21509         'strftime' with a suitable struct tm value.
21511 2014-07-05  Paul Eggert  <eggert@cs.ucla.edu>
21513         Bruno Haible has stepped down as maintainer.
21514         See Karl Berry in:
21515         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00004.html
21516         Daiki Ueno has volunteered to maintain libunistring; see:
21517         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00005.html
21518         * modules/gen-uni-tables, modules/libunistring:
21519         * modules/libunistring-optional, modules/ucs4-utf16, modules/ucs4-utf8:
21520         * modules/unicase/base, modules/unicase/cased:
21521         * modules/unicase/empty-prefix-context:
21522         * modules/unicase/empty-suffix-context, modules/unicase/ignorable:
21523         * modules/unicase/locale-language, modules/unicase/special-casing:
21524         * modules/unicase/tocasefold, modules/unicase/tolower:
21525         * modules/unicase/totitle, modules/unicase/toupper:
21526         * modules/unicase/u16-casecmp, modules/unicase/u16-casecoll:
21527         * modules/unicase/u16-casefold, modules/unicase/u16-casemap:
21528         * modules/unicase/u16-casexfrm, modules/unicase/u16-ct-casefold:
21529         * modules/unicase/u16-ct-tolower, modules/unicase/u16-ct-totitle:
21530         * modules/unicase/u16-ct-toupper, modules/unicase/u16-is-cased:
21531         * modules/unicase/u16-is-casefolded, modules/unicase/u16-is-invariant:
21532         * modules/unicase/u16-is-lowercase, modules/unicase/u16-is-titlecase:
21533         * modules/unicase/u16-is-uppercase, modules/unicase/u16-prefix-context:
21534         * modules/unicase/u16-suffix-context, modules/unicase/u16-tolower:
21535         * modules/unicase/u16-totitle, modules/unicase/u16-toupper:
21536         * modules/unicase/u32-casecmp, modules/unicase/u32-casecoll:
21537         * modules/unicase/u32-casefold, modules/unicase/u32-casemap:
21538         * modules/unicase/u32-casexfrm, modules/unicase/u32-ct-casefold:
21539         * modules/unicase/u32-ct-tolower, modules/unicase/u32-ct-totitle:
21540         * modules/unicase/u32-ct-toupper, modules/unicase/u32-is-cased:
21541         * modules/unicase/u32-is-casefolded, modules/unicase/u32-is-invariant:
21542         * modules/unicase/u32-is-lowercase, modules/unicase/u32-is-titlecase:
21543         * modules/unicase/u32-is-uppercase, modules/unicase/u32-prefix-context:
21544         * modules/unicase/u32-suffix-context, modules/unicase/u32-tolower:
21545         * modules/unicase/u32-totitle, modules/unicase/u32-toupper:
21546         * modules/unicase/u8-casecmp, modules/unicase/u8-casecoll:
21547         * modules/unicase/u8-casefold, modules/unicase/u8-casemap:
21548         * modules/unicase/u8-casexfrm, modules/unicase/u8-ct-casefold:
21549         * modules/unicase/u8-ct-tolower, modules/unicase/u8-ct-totitle:
21550         * modules/unicase/u8-ct-toupper, modules/unicase/u8-is-cased:
21551         * modules/unicase/u8-is-casefolded, modules/unicase/u8-is-invariant:
21552         * modules/unicase/u8-is-lowercase, modules/unicase/u8-is-titlecase:
21553         * modules/unicase/u8-is-uppercase, modules/unicase/u8-prefix-context:
21554         * modules/unicase/u8-suffix-context, modules/unicase/u8-tolower:
21555         * modules/unicase/u8-totitle, modules/unicase/u8-toupper:
21556         * modules/unicase/ulc-casecmp, modules/unicase/ulc-casecoll:
21557         * modules/unicase/ulc-casexfrm, modules/unicodeio:
21558         * modules/uniconv/base, modules/uniconv/u16-conv-from-enc:
21559         * modules/uniconv/u16-conv-to-enc:
21560         * modules/uniconv/u16-strconv-from-enc:
21561         * modules/uniconv/u16-strconv-from-locale:
21562         * modules/uniconv/u16-strconv-to-enc:
21563         * modules/uniconv/u16-strconv-to-locale:
21564         * modules/uniconv/u32-conv-from-enc, modules/uniconv/u32-conv-to-enc:
21565         * modules/uniconv/u32-strconv-from-enc:
21566         * modules/uniconv/u32-strconv-from-locale:
21567         * modules/uniconv/u32-strconv-to-enc:
21568         * modules/uniconv/u32-strconv-to-locale:
21569         * modules/uniconv/u8-conv-from-enc, modules/uniconv/u8-conv-to-enc:
21570         * modules/uniconv/u8-strconv-from-enc:
21571         * modules/uniconv/u8-strconv-from-locale:
21572         * modules/uniconv/u8-strconv-to-enc:
21573         * modules/uniconv/u8-strconv-to-locale, modules/unictype/base:
21574         * modules/unictype/bidicategory-all:
21575         * modules/unictype/bidicategory-byname:
21576         * modules/unictype/bidicategory-name, modules/unictype/bidicategory-of:
21577         * modules/unictype/bidicategory-test, modules/unictype/bidiclass-all:
21578         * modules/unictype/bidiclass-byname:
21579         * modules/unictype/bidiclass-longname, modules/unictype/bidiclass-name:
21580         * modules/unictype/bidiclass-of, modules/unictype/bidiclass-test:
21581         * modules/unictype/block-all, modules/unictype/block-list:
21582         * modules/unictype/block-of, modules/unictype/block-test:
21583         * modules/unictype/category-C, modules/unictype/category-Cc:
21584         * modules/unictype/category-Cf, modules/unictype/category-Cn:
21585         * modules/unictype/category-Co, modules/unictype/category-Cs:
21586         * modules/unictype/category-L, modules/unictype/category-LC:
21587         * modules/unictype/category-Ll, modules/unictype/category-Lm:
21588         * modules/unictype/category-Lo, modules/unictype/category-Lt:
21589         * modules/unictype/category-Lu, modules/unictype/category-M:
21590         * modules/unictype/category-Mc, modules/unictype/category-Me:
21591         * modules/unictype/category-Mn, modules/unictype/category-N:
21592         * modules/unictype/category-Nd, modules/unictype/category-Nl:
21593         * modules/unictype/category-No, modules/unictype/category-P:
21594         * modules/unictype/category-Pc, modules/unictype/category-Pd:
21595         * modules/unictype/category-Pe, modules/unictype/category-Pf:
21596         * modules/unictype/category-Pi, modules/unictype/category-Po:
21597         * modules/unictype/category-Ps, modules/unictype/category-S:
21598         * modules/unictype/category-Sc, modules/unictype/category-Sk:
21599         * modules/unictype/category-Sm, modules/unictype/category-So:
21600         * modules/unictype/category-Z, modules/unictype/category-Zl:
21601         * modules/unictype/category-Zp, modules/unictype/category-Zs:
21602         * modules/unictype/category-all, modules/unictype/category-and:
21603         * modules/unictype/category-and-not, modules/unictype/category-byname:
21604         * modules/unictype/category-longname, modules/unictype/category-name:
21605         * modules/unictype/category-none, modules/unictype/category-of:
21606         * modules/unictype/category-or, modules/unictype/category-test:
21607         * modules/unictype/category-test-withtable:
21608         * modules/unictype/combining-class:
21609         * modules/unictype/combining-class-all:
21610         * modules/unictype/combining-class-byname:
21611         * modules/unictype/combining-class-longname:
21612         * modules/unictype/combining-class-name, modules/unictype/ctype-alnum:
21613         * modules/unictype/ctype-alpha, modules/unictype/ctype-blank:
21614         * modules/unictype/ctype-cntrl, modules/unictype/ctype-digit:
21615         * modules/unictype/ctype-graph, modules/unictype/ctype-lower:
21616         * modules/unictype/ctype-print, modules/unictype/ctype-punct:
21617         * modules/unictype/ctype-space, modules/unictype/ctype-upper:
21618         * modules/unictype/ctype-xdigit, modules/unictype/decimal-digit:
21619         * modules/unictype/digit, modules/unictype/joininggroup-all:
21620         * modules/unictype/joininggroup-byname:
21621         * modules/unictype/joininggroup-name, modules/unictype/joininggroup-of:
21622         * modules/unictype/joiningtype-all:
21623         * modules/unictype/joiningtype-byname:
21624         * modules/unictype/joiningtype-longname:
21625         * modules/unictype/joiningtype-name, modules/unictype/joiningtype-of:
21626         * modules/unictype/mirror, modules/unictype/numeric:
21627         * modules/unictype/property-all, modules/unictype/property-alphabetic:
21628         * modules/unictype/property-ascii-hex-digit:
21629         * modules/unictype/property-bidi-arabic-digit:
21630         * modules/unictype/property-bidi-arabic-right-to-left:
21631         * modules/unictype/property-bidi-block-separator:
21632         * modules/unictype/property-bidi-boundary-neutral:
21633         * modules/unictype/property-bidi-common-separator:
21634         * modules/unictype/property-bidi-control:
21635         * modules/unictype/property-bidi-embedding-or-override:
21636         * modules/unictype/property-bidi-eur-num-separator:
21637         * modules/unictype/property-bidi-eur-num-terminator:
21638         * modules/unictype/property-bidi-european-digit:
21639         * modules/unictype/property-bidi-hebrew-right-to-left:
21640         * modules/unictype/property-bidi-left-to-right:
21641         * modules/unictype/property-bidi-non-spacing-mark:
21642         * modules/unictype/property-bidi-other-neutral:
21643         * modules/unictype/property-bidi-pdf:
21644         * modules/unictype/property-bidi-segment-separator:
21645         * modules/unictype/property-bidi-whitespace:
21646         * modules/unictype/property-byname:
21647         * modules/unictype/property-case-ignorable:
21648         * modules/unictype/property-cased:
21649         * modules/unictype/property-changes-when-casefolded:
21650         * modules/unictype/property-changes-when-casemapped:
21651         * modules/unictype/property-changes-when-lowercased:
21652         * modules/unictype/property-changes-when-titlecased:
21653         * modules/unictype/property-changes-when-uppercased:
21654         * modules/unictype/property-combining:
21655         * modules/unictype/property-composite:
21656         * modules/unictype/property-currency-symbol:
21657         * modules/unictype/property-dash:
21658         * modules/unictype/property-decimal-digit:
21659         * modules/unictype/property-default-ignorable-code-point:
21660         * modules/unictype/property-deprecated:
21661         * modules/unictype/property-diacritic:
21662         * modules/unictype/property-extender:
21663         * modules/unictype/property-format-control:
21664         * modules/unictype/property-grapheme-base:
21665         * modules/unictype/property-grapheme-extend:
21666         * modules/unictype/property-grapheme-link:
21667         * modules/unictype/property-hex-digit:
21668         * modules/unictype/property-hyphen:
21669         * modules/unictype/property-id-continue:
21670         * modules/unictype/property-id-start:
21671         * modules/unictype/property-ideographic:
21672         * modules/unictype/property-ids-binary-operator:
21673         * modules/unictype/property-ids-trinary-operator:
21674         * modules/unictype/property-ignorable-control:
21675         * modules/unictype/property-iso-control:
21676         * modules/unictype/property-join-control:
21677         * modules/unictype/property-left-of-pair:
21678         * modules/unictype/property-line-separator:
21679         * modules/unictype/property-logical-order-exception:
21680         * modules/unictype/property-lowercase, modules/unictype/property-math:
21681         * modules/unictype/property-non-break:
21682         * modules/unictype/property-not-a-character:
21683         * modules/unictype/property-numeric:
21684         * modules/unictype/property-other-alphabetic:
21685         * modules/unictype/property-other-default-ignorable-code-point:
21686         * modules/unictype/property-other-grapheme-extend:
21687         * modules/unictype/property-other-id-continue:
21688         * modules/unictype/property-other-id-start:
21689         * modules/unictype/property-other-lowercase:
21690         * modules/unictype/property-other-math:
21691         * modules/unictype/property-other-uppercase:
21692         * modules/unictype/property-paired-punctuation:
21693         * modules/unictype/property-paragraph-separator:
21694         * modules/unictype/property-pattern-syntax:
21695         * modules/unictype/property-pattern-white-space:
21696         * modules/unictype/property-private-use:
21697         * modules/unictype/property-punctuation:
21698         * modules/unictype/property-quotation-mark:
21699         * modules/unictype/property-radical:
21700         * modules/unictype/property-sentence-terminal:
21701         * modules/unictype/property-soft-dotted:
21702         * modules/unictype/property-space:
21703         * modules/unictype/property-terminal-punctuation:
21704         * modules/unictype/property-test, modules/unictype/property-titlecase:
21705         * modules/unictype/property-unassigned-code-value:
21706         * modules/unictype/property-unified-ideograph:
21707         * modules/unictype/property-uppercase:
21708         * modules/unictype/property-variation-selector:
21709         * modules/unictype/property-white-space:
21710         * modules/unictype/property-xid-continue:
21711         * modules/unictype/property-xid-start:
21712         * modules/unictype/property-zero-width, modules/unictype/scripts:
21713         * modules/unictype/scripts-all, modules/unictype/syntax-c-ident:
21714         * modules/unictype/syntax-c-whitespace:
21715         * modules/unictype/syntax-java-ident:
21716         * modules/unictype/syntax-java-whitespace, modules/unigbrk/base:
21717         * modules/unigbrk/u16-grapheme-breaks:
21718         * modules/unigbrk/u16-grapheme-next, modules/unigbrk/u16-grapheme-prev:
21719         * modules/unigbrk/u32-grapheme-breaks:
21720         * modules/unigbrk/u32-grapheme-next, modules/unigbrk/u32-grapheme-prev:
21721         * modules/unigbrk/u8-grapheme-breaks, modules/unigbrk/u8-grapheme-next:
21722         * modules/unigbrk/u8-grapheme-prev, modules/unigbrk/uc-gbrk-prop:
21723         * modules/unigbrk/uc-is-grapheme-break:
21724         * modules/unigbrk/ulc-grapheme-breaks, modules/unilbrk/base:
21725         * modules/unilbrk/tables, modules/unilbrk/u16-possible-linebreaks:
21726         * modules/unilbrk/u16-width-linebreaks:
21727         * modules/unilbrk/u32-possible-linebreaks:
21728         * modules/unilbrk/u32-width-linebreaks:
21729         * modules/unilbrk/u8-possible-linebreaks:
21730         * modules/unilbrk/u8-width-linebreaks, modules/unilbrk/ulc-common:
21731         * modules/unilbrk/ulc-possible-linebreaks:
21732         * modules/unilbrk/ulc-width-linebreaks, modules/uniname/base:
21733         * modules/uniname/uniname, modules/uninorm/base:
21734         * modules/uninorm/canonical-decomposition:
21735         * modules/uninorm/compat-decomposition, modules/uninorm/composition:
21736         * modules/uninorm/decompose-internal, modules/uninorm/decomposing-form:
21737         * modules/uninorm/decomposition, modules/uninorm/decomposition-table:
21738         * modules/uninorm/filter, modules/uninorm/nfc, modules/uninorm/nfd:
21739         * modules/uninorm/nfkc, modules/uninorm/nfkd:
21740         * modules/uninorm/u16-normalize, modules/uninorm/u16-normcmp:
21741         * modules/uninorm/u16-normcoll, modules/uninorm/u16-normxfrm:
21742         * modules/uninorm/u32-normalize, modules/uninorm/u32-normcmp:
21743         * modules/uninorm/u32-normcoll, modules/uninorm/u32-normxfrm:
21744         * modules/uninorm/u8-normalize, modules/uninorm/u8-normcmp:
21745         * modules/uninorm/u8-normcoll, modules/uninorm/u8-normxfrm:
21746         * modules/unistdio/base, modules/unistdio/u-printf-args:
21747         * modules/unistdio/u16-asnprintf, modules/unistdio/u16-asprintf:
21748         * modules/unistdio/u16-printf-parse, modules/unistdio/u16-snprintf:
21749         * modules/unistdio/u16-sprintf, modules/unistdio/u16-u16-asnprintf:
21750         * modules/unistdio/u16-u16-asprintf, modules/unistdio/u16-u16-snprintf:
21751         * modules/unistdio/u16-u16-sprintf:
21752         * modules/unistdio/u16-u16-vasnprintf:
21753         * modules/unistdio/u16-u16-vasprintf:
21754         * modules/unistdio/u16-u16-vsnprintf:
21755         * modules/unistdio/u16-u16-vsprintf, modules/unistdio/u16-vasnprintf:
21756         * modules/unistdio/u16-vasprintf, modules/unistdio/u16-vsnprintf:
21757         * modules/unistdio/u16-vsprintf, modules/unistdio/u32-asnprintf:
21758         * modules/unistdio/u32-asprintf, modules/unistdio/u32-printf-parse:
21759         * modules/unistdio/u32-snprintf, modules/unistdio/u32-sprintf:
21760         * modules/unistdio/u32-u32-asnprintf:
21761         * modules/unistdio/u32-u32-asprintf, modules/unistdio/u32-u32-snprintf:
21762         * modules/unistdio/u32-u32-sprintf:
21763         * modules/unistdio/u32-u32-vasnprintf:
21764         * modules/unistdio/u32-u32-vasprintf:
21765         * modules/unistdio/u32-u32-vsnprintf:
21766         * modules/unistdio/u32-u32-vsprintf, modules/unistdio/u32-vasnprintf:
21767         * modules/unistdio/u32-vasprintf, modules/unistdio/u32-vsnprintf:
21768         * modules/unistdio/u32-vsprintf, modules/unistdio/u8-asnprintf:
21769         * modules/unistdio/u8-asprintf, modules/unistdio/u8-printf-parse:
21770         * modules/unistdio/u8-snprintf, modules/unistdio/u8-sprintf:
21771         * modules/unistdio/u8-u8-asnprintf, modules/unistdio/u8-u8-asprintf:
21772         * modules/unistdio/u8-u8-snprintf, modules/unistdio/u8-u8-sprintf:
21773         * modules/unistdio/u8-u8-vasnprintf, modules/unistdio/u8-u8-vasprintf:
21774         * modules/unistdio/u8-u8-vsnprintf, modules/unistdio/u8-u8-vsprintf:
21775         * modules/unistdio/u8-vasnprintf, modules/unistdio/u8-vasprintf:
21776         * modules/unistdio/u8-vsnprintf, modules/unistdio/u8-vsprintf:
21777         * modules/unistdio/ulc-asnprintf, modules/unistdio/ulc-asprintf:
21778         * modules/unistdio/ulc-fprintf, modules/unistdio/ulc-printf-parse:
21779         * modules/unistdio/ulc-snprintf, modules/unistdio/ulc-sprintf:
21780         * modules/unistdio/ulc-vasnprintf, modules/unistdio/ulc-vasprintf:
21781         * modules/unistdio/ulc-vfprintf, modules/unistdio/ulc-vsnprintf:
21782         * modules/unistdio/ulc-vsprintf, modules/unistr/base:
21783         * modules/unistr/u16-check, modules/unistr/u16-chr:
21784         * modules/unistr/u16-cmp, modules/unistr/u16-cmp2:
21785         * modules/unistr/u16-cpy, modules/unistr/u16-cpy-alloc:
21786         * modules/unistr/u16-endswith, modules/unistr/u16-mblen:
21787         * modules/unistr/u16-mbsnlen, modules/unistr/u16-mbtouc:
21788         * modules/unistr/u16-mbtouc-unsafe, modules/unistr/u16-mbtoucr:
21789         * modules/unistr/u16-move, modules/unistr/u16-next:
21790         * modules/unistr/u16-prev, modules/unistr/u16-set:
21791         * modules/unistr/u16-startswith, modules/unistr/u16-stpcpy:
21792         * modules/unistr/u16-stpncpy, modules/unistr/u16-strcat:
21793         * modules/unistr/u16-strchr, modules/unistr/u16-strcmp:
21794         * modules/unistr/u16-strcoll, modules/unistr/u16-strcpy:
21795         * modules/unistr/u16-strcspn, modules/unistr/u16-strdup:
21796         * modules/unistr/u16-strlen, modules/unistr/u16-strmblen:
21797         * modules/unistr/u16-strmbtouc, modules/unistr/u16-strncat:
21798         * modules/unistr/u16-strncmp, modules/unistr/u16-strncpy:
21799         * modules/unistr/u16-strnlen, modules/unistr/u16-strpbrk:
21800         * modules/unistr/u16-strrchr, modules/unistr/u16-strspn:
21801         * modules/unistr/u16-strstr, modules/unistr/u16-strtok:
21802         * modules/unistr/u16-to-u32, modules/unistr/u16-to-u8:
21803         * modules/unistr/u16-uctomb, modules/unistr/u32-check:
21804         * modules/unistr/u32-chr, modules/unistr/u32-cmp:
21805         * modules/unistr/u32-cmp2, modules/unistr/u32-cpy:
21806         * modules/unistr/u32-cpy-alloc, modules/unistr/u32-endswith:
21807         * modules/unistr/u32-mblen, modules/unistr/u32-mbsnlen:
21808         * modules/unistr/u32-mbtouc, modules/unistr/u32-mbtouc-unsafe:
21809         * modules/unistr/u32-mbtoucr, modules/unistr/u32-move:
21810         * modules/unistr/u32-next, modules/unistr/u32-prev:
21811         * modules/unistr/u32-set, modules/unistr/u32-startswith:
21812         * modules/unistr/u32-stpcpy, modules/unistr/u32-stpncpy:
21813         * modules/unistr/u32-strcat, modules/unistr/u32-strchr:
21814         * modules/unistr/u32-strcmp, modules/unistr/u32-strcoll:
21815         * modules/unistr/u32-strcpy, modules/unistr/u32-strcspn:
21816         * modules/unistr/u32-strdup, modules/unistr/u32-strlen:
21817         * modules/unistr/u32-strmblen, modules/unistr/u32-strmbtouc:
21818         * modules/unistr/u32-strncat, modules/unistr/u32-strncmp:
21819         * modules/unistr/u32-strncpy, modules/unistr/u32-strnlen:
21820         * modules/unistr/u32-strpbrk, modules/unistr/u32-strrchr:
21821         * modules/unistr/u32-strspn, modules/unistr/u32-strstr:
21822         * modules/unistr/u32-strtok, modules/unistr/u32-to-u16:
21823         * modules/unistr/u32-to-u8, modules/unistr/u32-uctomb:
21824         * modules/unistr/u8-check, modules/unistr/u8-chr:
21825         * modules/unistr/u8-cmp, modules/unistr/u8-cmp2, modules/unistr/u8-cpy:
21826         * modules/unistr/u8-cpy-alloc, modules/unistr/u8-endswith:
21827         * modules/unistr/u8-mblen, modules/unistr/u8-mbsnlen:
21828         * modules/unistr/u8-mbtouc, modules/unistr/u8-mbtouc-unsafe:
21829         * modules/unistr/u8-mbtoucr, modules/unistr/u8-move:
21830         * modules/unistr/u8-next, modules/unistr/u8-prev:
21831         * modules/unistr/u8-set, modules/unistr/u8-startswith:
21832         * modules/unistr/u8-stpcpy, modules/unistr/u8-stpncpy:
21833         * modules/unistr/u8-strcat, modules/unistr/u8-strchr:
21834         * modules/unistr/u8-strcmp, modules/unistr/u8-strcoll:
21835         * modules/unistr/u8-strcpy, modules/unistr/u8-strcspn:
21836         * modules/unistr/u8-strdup, modules/unistr/u8-strlen:
21837         * modules/unistr/u8-strmblen, modules/unistr/u8-strmbtouc:
21838         * modules/unistr/u8-strncat, modules/unistr/u8-strncmp:
21839         * modules/unistr/u8-strncpy, modules/unistr/u8-strnlen:
21840         * modules/unistr/u8-strpbrk, modules/unistr/u8-strrchr:
21841         * modules/unistr/u8-strspn, modules/unistr/u8-strstr:
21842         * modules/unistr/u8-strtok, modules/unistr/u8-to-u16:
21843         * modules/unistr/u8-to-u32, modules/unistr/u8-uctomb, modules/unitypes:
21844         * modules/uniwbrk/base, modules/uniwbrk/table:
21845         * modules/uniwbrk/u16-wordbreaks, modules/uniwbrk/u32-wordbreaks:
21846         * modules/uniwbrk/u8-wordbreaks, modules/uniwbrk/ulc-wordbreaks:
21847         * modules/uniwbrk/wordbreak-property, modules/uniwidth/base:
21848         * modules/uniwidth/u16-strwidth, modules/uniwidth/u16-width:
21849         * modules/uniwidth/u32-strwidth, modules/uniwidth/u32-width:
21850         * modules/uniwidth/u8-strwidth, modules/uniwidth/u8-width:
21851         * modules/uniwidth/width, modules/utf16-ucs4:
21852         * modules/utf16-ucs4-unsafe, modules/utf8-ucs4:
21853         * modules/utf8-ucs4-unsafe:
21854         Change maintainer from Bruno Haible to Daiki Ueno.
21855         This is my guess at the libunistring modules; please feel free
21856         to fix if I guessed incorrectly.
21857         * modules/accept4, modules/acl, modules/acos, modules/acosf:
21858         * modules/alignof, modules/amemxfrm, modules/ansi-c++-opt:
21859         * modules/areadlink, modules/array-list, modules/array-mergesort:
21860         * modules/array-oset, modules/asin, modules/asinf, modules/astrxfrm:
21861         * modules/atan, modules/atan2, modules/atan2f, modules/atanf:
21862         * modules/avltree-list, modules/avltree-oset, modules/avltreehash-list:
21863         * modules/binary-io, modules/bison-i18n, modules/btowc:
21864         * modules/c-ctype, modules/c-strcase, modules/c-strcaseeq:
21865         * modules/c-strcasestr, modules/c-strstr, modules/calloc-posix:
21866         * modules/canonicalize-lgpl, modules/careadlinkat, modules/carray-list:
21867         * modules/cbrt, modules/cbrt-ieee, modules/cbrtf, modules/cbrtf-ieee:
21868         * modules/cbrtl, modules/cbrtl-ieee, modules/ceil, modules/ceil-ieee:
21869         * modules/ceilf, modules/ceilf-ieee, modules/ceill, modules/ceill-ieee:
21870         * modules/chdir, modules/classpath, modules/clean-temp, modules/close:
21871         * modules/closedir, modules/concat-filename, modules/copy-file:
21872         * modules/copysign, modules/copysignf, modules/copysignl, modules/cos:
21873         * modules/cosf, modules/cosh, modules/coshf, modules/csharpcomp:
21874         * modules/csharpcomp-script, modules/csharpexec:
21875         * modules/csharpexec-script, modules/ctype, modules/diffseq:
21876         * modules/dprintf, modules/dprintf-posix, modules/dup:
21877         * modules/dup2-obsolete, modules/dup3, modules/duplocale:
21878         * modules/eealloc, modules/environ, modules/erf, modules/erfc:
21879         * modules/errno, modules/execute, modules/exp, modules/exp-ieee:
21880         * modules/exp2, modules/exp2-ieee, modules/exp2f, modules/exp2f-ieee:
21881         * modules/exp2l, modules/exp2l-ieee, modules/expf, modules/expf-ieee:
21882         * modules/expl, modules/expl-ieee, modules/expm1, modules/expm1-ieee:
21883         * modules/expm1f, modules/expm1f-ieee, modules/expm1l:
21884         * modules/expm1l-ieee, modules/fabs, modules/fabs-ieee, modules/fabsf:
21885         * modules/fabsf-ieee, modules/fabsl, modules/fabsl-ieee:
21886         * modules/fatal-signal, modules/fbufmode, modules/fchdir:
21887         * modules/fclose, modules/fd-hook, modules/fdopen, modules/filename:
21888         * modules/findprog, modules/findprog-lgpl, modules/floor:
21889         * modules/floor-ieee, modules/floorf, modules/floorf-ieee:
21890         * modules/floorl, modules/floorl-ieee, modules/fma, modules/fma-ieee:
21891         * modules/fmaf, modules/fmaf-ieee, modules/fmal, modules/fmal-ieee:
21892         * modules/fmod, modules/fmod-ieee, modules/fmodf, modules/fmodf-ieee:
21893         * modules/fmodl, modules/fmodl-ieee, modules/fopen, modules/fpieee:
21894         * modules/fprintf-posix, modules/fpucw, modules/fpurge:
21895         * modules/freadable, modules/freadahead, modules/freadptr:
21896         * modules/freadseek, modules/freopen, modules/frexp:
21897         * modules/frexp-ieee, modules/frexp-nolibm, modules/frexpf:
21898         * modules/frexpf-ieee, modules/frexpl, modules/frexpl-ieee:
21899         * modules/frexpl-nolibm, modules/fseek, modules/fseeko:
21900         * modules/fseterr, modules/fstat, modules/fstrcmp, modules/ftell:
21901         * modules/ftello, modules/full-read, modules/full-write:
21902         * modules/fwritable, modules/fwriteerror, modules/gcd:
21903         * modules/get-rusage-as, modules/get-rusage-data:
21904         * modules/getdtablesize, modules/getrusage, modules/gettext:
21905         * modules/gettext-h, modules/git-merge-changelog, modules/gperf:
21906         * modules/grantpt, modules/havelib, modules/host-cpu-c-abi:
21907         * modules/hostent, modules/hypot, modules/hypot-ieee, modules/hypotf:
21908         * modules/hypotf-ieee, modules/hypotl, modules/hypotl-ieee:
21909         * modules/iconv, modules/iconv-h, modules/iconv_open:
21910         * modules/iconv_open-utf, modules/idpriv-drop, modules/idpriv-droptemp:
21911         * modules/ilogb, modules/ilogbf, modules/ilogbl, modules/imaxabs:
21912         * modules/imaxdiv, modules/integer_length, modules/integer_length_l:
21913         * modules/integer_length_ll, modules/ioctl, modules/isatty:
21914         * modules/isblank, modules/isnand, modules/isnand-nolibm:
21915         * modules/isnanf, modules/isnanf-nolibm, modules/isnanl:
21916         * modules/isnanl-nolibm, modules/iswblank, modules/iswctype:
21917         * modules/j0, modules/j1, modules/javacomp, modules/javacomp-script:
21918         * modules/javaexec, modules/javaexec-script, modules/javaversion:
21919         * modules/jn, modules/langinfo, modules/ldd, modules/ldexp:
21920         * modules/ldexp-ieee, modules/ldexpf, modules/ldexpf-ieee:
21921         * modules/ldexpl, modules/ldexpl-ieee, modules/lgamma:
21922         * modules/lib-symbol-visibility, modules/libsigsegv:
21923         * modules/linked-list, modules/linkedhash-list, modules/list:
21924         * modules/localcharset, modules/locale, modules/localeconv:
21925         * modules/localename, modules/lock, modules/log, modules/log-ieee:
21926         * modules/log10, modules/log10-ieee, modules/log10f:
21927         * modules/log10f-ieee, modules/log10l, modules/log10l-ieee:
21928         * modules/log1p, modules/log1p-ieee, modules/log1pf:
21929         * modules/log1pf-ieee, modules/log1pl, modules/log1pl-ieee:
21930         * modules/log2, modules/log2-ieee, modules/log2f, modules/log2f-ieee:
21931         * modules/log2l, modules/log2l-ieee, modules/logb, modules/logb-ieee:
21932         * modules/logbf, modules/logbf-ieee, modules/logbl, modules/logbl-ieee:
21933         * modules/logf, modules/logf-ieee, modules/login_tty:
21934         * modules/logl-ieee, modules/malloc-posix, modules/malloca:
21935         * modules/mbchar, modules/mbfile, modules/mbiter, modules/mbmemcasecmp:
21936         * modules/mbmemcasecoll, modules/mbrlen, modules/mbrtowc:
21937         * modules/mbscasecmp, modules/mbscasestr, modules/mbschr:
21938         * modules/mbscspn, modules/mbsinit, modules/mbslen:
21939         * modules/mbsncasecmp, modules/mbsnlen, modules/mbsnrtowcs:
21940         * modules/mbspbrk, modules/mbspcasecmp, modules/mbsrchr:
21941         * modules/mbsrtowcs, modules/mbssep, modules/mbsspn, modules/mbsstr:
21942         * modules/mbstok_r, modules/mbswidth, modules/mbtowc, modules/mbuiter:
21943         * modules/memchr-obsolete, modules/memcmp2, modules/minmax:
21944         * modules/mkdtemp, modules/mkostemp, modules/mktime-internal:
21945         * modules/modf, modules/modf-ieee, modules/modff, modules/modff-ieee:
21946         * modules/modfl, modules/modfl-ieee, modules/msvc-inval:
21947         * modules/msvc-nothrow, modules/multiarch, modules/nextafter:
21948         * modules/nl_langinfo, modules/no-c++, modules/nocrash:
21949         * modules/nonblocking, modules/open, modules/opendir, modules/openmp:
21950         * modules/oset, modules/pclose, modules/pipe, modules/pipe-filter-gi:
21951         * modules/pipe-filter-ii, modules/pipe2, modules/poll-h:
21952         * modules/posix_spawn, modules/posix_spawn-internal:
21953         * modules/posix_spawn_file_actions_addclose:
21954         * modules/posix_spawn_file_actions_adddup2:
21955         * modules/posix_spawn_file_actions_addopen:
21956         * modules/posix_spawn_file_actions_destroy:
21957         * modules/posix_spawn_file_actions_init:
21958         * modules/posix_spawnattr_destroy, modules/posix_spawnattr_getflags:
21959         * modules/posix_spawnattr_getpgroup:
21960         * modules/posix_spawnattr_getschedparam:
21961         * modules/posix_spawnattr_getschedpolicy:
21962         * modules/posix_spawnattr_getsigdefault:
21963         * modules/posix_spawnattr_getsigmask, modules/posix_spawnattr_init:
21964         * modules/posix_spawnattr_setflags, modules/posix_spawnattr_setpgroup:
21965         * modules/posix_spawnattr_setschedparam:
21966         * modules/posix_spawnattr_setschedpolicy:
21967         * modules/posix_spawnattr_setsigdefault:
21968         * modules/posix_spawnattr_setsigmask, modules/posix_spawnp:
21969         * modules/pow, modules/powf, modules/printf-frexp:
21970         * modules/printf-frexpl, modules/printf-posix, modules/printf-safe:
21971         * modules/progname, modules/propername, modules/pselect:
21972         * modules/pthread_sigmask, modules/ptsname, modules/ptsname_r:
21973         * modules/qacl, modules/quotearg-simple, modules/raise, modules/random:
21974         * modules/rbtree-list, modules/rbtree-oset, modules/rbtreehash-list:
21975         * modules/read, modules/readdir, modules/readlink:
21976         * modules/realloc-posix, modules/regex-quote, modules/relocatable-lib:
21977         * modules/relocatable-lib-lgpl, modules/relocatable-perl:
21978         * modules/relocatable-prog, modules/relocatable-prog-wrapper:
21979         * modules/relocatable-script, modules/remainder:
21980         * modules/remainder-ieee, modules/remainderf, modules/remainderf-ieee:
21981         * modules/remainderl, modules/remainderl-ieee, modules/rewinddir:
21982         * modules/rint, modules/rint-ieee, modules/rintf, modules/rintf-ieee:
21983         * modules/rintl, modules/rintl-ieee, modules/round-ieee:
21984         * modules/roundf-ieee, modules/roundl-ieee, modules/safe-read:
21985         * modules/safe-write, modules/sched, modules/servent, modules/setenv:
21986         * modules/setlocale, modules/sh-quote, modules/shutdown:
21987         * modules/signal, modules/signbit, modules/sigpipe:
21988         * modules/sigpipe-die, modules/sigprocmask, modules/sin, modules/sinf:
21989         * modules/sinh, modules/sinhf, modules/size_max, modules/sleep:
21990         * modules/snippet/arg-nonnull, modules/snippet/c++defs:
21991         * modules/snippet/link-warning, modules/snippet/unused-parameter:
21992         * modules/snprintf, modules/snprintf-posix, modules/spawn:
21993         * modules/spawn-pipe, modules/sprintf-posix, modules/sqrt:
21994         * modules/sqrt-ieee, modules/sqrtf, modules/sqrtf-ieee:
21995         * modules/sqrtl-ieee, modules/stdalign, modules/stdarg:
21996         * modules/stdbool, modules/stpcpy, modules/stpncpy, modules/strcase:
21997         * modules/strcasestr, modules/strcasestr-simple, modules/strcspn:
21998         * modules/streq, modules/strerror_r-posix, modules/striconv:
21999         * modules/striconveh, modules/striconveha, modules/strncat:
22000         * modules/strnlen1, modules/strpbrk, modules/strtod-obsolete:
22001         * modules/sublist, modules/sys_resource, modules/sys_utsname:
22002         * modules/sys_wait, modules/system-posix, modules/system-quote:
22003         * modules/tan, modules/tanf, modules/tanh, modules/tanhf:
22004         * modules/tcgetsid, modules/termios, modules/threadlib, modules/tls:
22005         * modules/tmpdir, modules/towctrans, modules/trunc, modules/trunc-ieee:
22006         * modules/truncf, modules/truncf-ieee, modules/truncl:
22007         * modules/truncl-ieee, modules/ttyname_r, modules/uname:
22008         * modules/unlockpt, modules/unsetenv, modules/vasnprintf:
22009         * modules/vasnprintf-posix, modules/vasprintf, modules/vasprintf-posix:
22010         * modules/vdprintf, modules/vdprintf-posix, modules/vfprintf-posix:
22011         * modules/vfscanf, modules/vma-iter, modules/vprintf-posix:
22012         * modules/vscanf, modules/vsnprintf-posix, modules/vsprintf-posix:
22013         * modules/wait-process, modules/waitpid, modules/wcpcpy:
22014         * modules/wcpncpy, modules/wcrtomb, modules/wcscasecmp, modules/wcscat:
22015         * modules/wcschr, modules/wcscmp, modules/wcscoll, modules/wcscpy:
22016         * modules/wcscspn, modules/wcsdup, modules/wcslen, modules/wcsncasecmp:
22017         * modules/wcsncat, modules/wcsncmp, modules/wcsncpy, modules/wcsnlen:
22018         * modules/wcsnrtombs, modules/wcspbrk, modules/wcsrchr:
22019         * modules/wcsrtombs, modules/wcsspn, modules/wcsstr, modules/wcstok:
22020         * modules/wcswidth, modules/wcsxfrm, modules/wctob, modules/wctomb:
22021         * modules/wctrans, modules/wctype, modules/wcwidth, modules/wmemchr:
22022         * modules/wmemcmp, modules/wmemcpy, modules/wmemmove, modules/wmemset:
22023         * modules/write, modules/xconcat-filename, modules/xlist:
22024         * modules/xmalloca, modules/xoset, modules/xprintf-posix:
22025         * modules/xreadlink, modules/xsetenv, modules/xsize, modules/xstriconv:
22026         * modules/xstriconveh, modules/xsublist, modules/xvasprintf-posix:
22027         * modules/y0, modules/y1, modules/yn:
22028         Remove Bruno Haible as maintainer; if he's the sole maintainer,
22029         change the maintainer to 'all'.  Let's hope someone volunteers.
22031 2014-06-27  Paul Eggert  <eggert@cs.ucla.edu>
22033         mktime: merge #if/#ifdef usage from glibc
22034         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
22035         as that works with both Glibc's and Gnulib's style.
22036         See thread starting at Siddhesh Poyarekar's bug report at:
22037         http://lists.gnu.org/r/bug-gnulib/2014-06/msg00102.html
22039 2014-06-20  Alfred M. Szmidt  <ams@gnu.org>
22041         git-version-gen: improve option descriptions
22042         * build-aux/git-version-gen: Mention that --prefix and --fallback
22043         have a mandatory argument.
22045 2014-06-19  Paul Eggert  <eggert@penguin.cs.ucla.edu>
22047         regex: fix memory leak in compiler
22048         Fix by Andreas Schwab in:
22049         https://sourceware.org/ml/libc-alpha/2014-06/msg00462.html
22050         * lib/regcomp.c (parse_expression): Deallocate partially
22051         constructed tree before returning error.
22053         regex: merge patch from libc
22054         2014-02-12  Joseph Myers  <joseph@codesourcery.com>
22055         Combine __USE_BSD and __USE_SVID into __USE_MISC.
22056         * lib/regex.h [__USE_BSD]: Change condition to [__USE_MISC].
22058 2014-06-17  Paul Eggert  <eggert@cs.ucla.edu>
22060         acl: port to gcc -Wredundant-decls
22061         From a request by Dmitry Antipov in:
22062         http://lists.gnu.org/r/emacs-devel/2014-06/msg00263.html
22063         * lib/acl.h (_GL_ACL_H): New macro.  Protect entire contents with
22064         "#ifndef _GL_ACL_H".
22066 2014-06-11  Bruce Korb  <bkorb@gnu.org>
22067         Jim Meyering  <meyering@fb.com>
22069         parse-duration: eliminate 68-year duration limit
22070         * lib/parse-duration.c: Include "intprops.h".
22071         (TIME_MAX): Rename to MAX_DURATION and define to
22072         TYPE_MAXIMUM(time_t).
22073         * modules/parse-duration (Depends-on): Add intprops.
22074         Reported by Jonas 'Sortie' Termansen.
22076 2014-06-14  Paul Eggert  <eggert@cs.ucla.edu>
22078         pthread: don't assume AC_CANONICAL_HOST, port better to Solaris, etc.
22079         * modules/pthread (Depends-on): Add 'extensions', as it defines
22080         _POSIX_PTHREAD_SEMANTICS, which is needed on Solaris.
22081         (configure.ac-early): New section.
22082         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, as
22083         it is no longer needed.
22085 2014-06-14  Pádraig Brady  <P@draigBrady.com>
22087         pthread: define thread-safe macros on some platforms
22088         * m4/pthread.m4 (gl_PTHREAD_CHECK): Define macros needed
22089         for thread-safe operation on some platforms.
22091 2014-06-13  Paul Eggert  <eggert@cs.ucla.edu>
22093         regex: don't be multithreaded if USE_UNLOCKED_IO.
22094         Problem reported by Michael Felt in: http://bugs.gnu.org/17773
22095         * lib/regex_internal.h: Do not use multithreaded version if
22096         USE_UNLOCKED_IO is defined.  This is a hack, but it works
22097         around a porting bug with coreutils 8.22 on AIX 7.1.
22099 2014-06-11  Daiki Ueno  <ueno@gnu.org>
22101         gettext: update macros to version 0.19
22102         * m4/intl.m4, m4/po.m4: Update from gettext-0.19.  In particular,
22103         depend on gl_EXTERN_INLINE and drop support for older Bison
22104         versions.
22106 2014-06-10  Pádraig Brady  <P@draigBrady.com>
22108         select,poll: fix console handle check on windows 8
22109         lib/poll.c (IsConsoleHandle): Change from testing the lower
22110         2 bits of the handle to the more expensive but accurate syscall.
22111         lib/select.c: Likewise.
22113 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
22115         select: fix waiting on anonymous pipes on MS-Windows
22116         * lib/select.c (rpl_select): Fall back to polling when select()
22117         indicates there is nothing to check, while due to the timeout not
22118         expiring, activity is indicated on one of the handles.
22119         Also clear the TIMEOUT argument if the timer does expire.
22121 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
22123         times: fix to return non constant value on MS-Windows
22124         * lib/times.c (times): Don't use the process creation time,
22125         rather clock() which on windows returns the number of
22126         clock ticks since the process started.
22128 2014-06-09  Michael Goffioul  <michael.goffioul@gmail.com>
22130         isatty: fix to work on windows 8
22131         * lib/isatty.c (IsConsoleHandle): Change from testing the lower
22132         2 bits of the handle to the more expensive but accurate syscall.
22134 2014-06-07  Paul Eggert  <eggert@cs.ucla.edu>
22136         maint: fix typo in fdl.texi
22137         * doc/fdl.texi: Fix typo (missing '@').
22138         Somehow this was in fdl.texi but not fdl-1.3.texi.
22140 2014-06-06  Ben Walton  <bdwalton@gmail.com>
22142         mountlist: avoid hasmntopt const type warning on solaris
22143         * lib/mountlist.c: Solaris defines the OPT param of hasmntopt()
22144         with char * instead of const char *.  Passing the constant string
22145         "ignore" generates a compiler warning.  For Solaris cast MNT_IGNORE
22146         to avoid the warning.
22148 2014-06-04  Eric Blake  <eblake@redhat.com>
22150         maintainer-makefile: delete obsolete code
22151         * top/maint.mk (build_aux): Drop old code, as threatened.
22153         maintainer-makefile: avoid spurious error messages
22154         * top/maint.mk (syntax-check): Guard definition and use of
22155         $(shell) by whether Makefile is present.
22157 2014-06-03  Ben Walton  <bdwalton@gmail.com>
22159         rename: avoid unused-but-set-variable compiler warning
22160         * lib/rename.c (rpl_rename):  In the non-Win32 variant of rpl_rename,
22161         it is possible that dst_exists may be set but not used.  Mark it with
22162         the unused attribute to avoid compiler warnings.
22164 2014-06-02  Ben Walton  <bdwalton@gmail.com>
22166         rename: mark a label as potentially unused
22167         * lib/rename.c (rpl_rename): Avoid compiler warnings seen on Solaris,
22168         by marking the out label as potentially unused.
22169         * m4/gnulib-common.m4: Mention the need for the trailing ; for C++.
22171 2014-06-01  Paul Eggert  <eggert@cs.ucla.edu>
22173         gnulib-common.m4: Fix typo in _GL_UNUSED_LABEL.
22174         * m4/gnulib-common.m4 (_GL_UNUSED_LABEL): Omit trailing semicolon.
22176 2014-06-02  Ben Walton  <bdwalton@gmail.com>
22178         acl: apply pure attribute to two functions
22179         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial):
22180         Mark as "pure" as flagged by gcc 4.9 on Solaris 10.
22182 2014-06-01  Pádraig Brady  <P@draigBrady.com>
22184         gnulib-common.m4: add _GL_UNUSED_LABEL
22185         * m4/gnulib-common.m4: Add _GL_UNUSED_LABEL which is similar to
22186         _GL_UNUSED, but handles g++ < 4.5 not supporting this syntax.
22188 2014-05-31  Paul Eggert  <eggert@cs.ucla.edu>
22190         dup2, fcntl, fcntl-h: port to AIX 7.1
22191         This fixes some porting problems discovered when testing the latest
22192         grep snapshot on AIX 7.1.  I don't think if fixes any bugs
22193         in grep but it could be important for other applications.
22194         * doc/posix-functions/dup2.texi:
22195         * doc/posix-functions/fcntl.texi:
22196         * doc/posix-headers/fcntl.texi:
22197         Document AIX bugs.
22198         * lib/fcntl.in.h (O_CLOEXEC, O_NOFOLLOW, O_TTY_INIT) [_AIX]:
22199         Define to 0 if outside 'int' range.
22200         * m4/dup2.m4 (gl_FUNC_DUP2):
22201         * m4/fcntl.m4 (gl_FUNC_FCNTL):
22202         Check for getdtablesize.  If it's available, test a value just
22203         outside its range instead of testing 1000000.  When cross-compiling,
22204         guess that AIX will fail this improved test.
22206 2014-05-30  Paul Eggert  <eggert@cs.ucla.edu>
22208         printf, config.rpath: Port to FreeBSD 10.
22209         Problem reported by Tijl Coosemans in:
22210         http://lists.gnu.org/r/bug-gnulib/2014-05/msg00078.html
22211         * build-aux/config.rpath (hardcode_libdir_flag_spec)
22212         (hardcode_direct): Simplify FreeBSD configuration.
22213         (library_names_spec): Don't mishandle FreeBSD 10+.
22214         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE)
22215         (gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_F)
22216         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99)
22217         (gl_SNPRINTF_DIRECTIVE_N, gl_VSNPRINTF_ZEROSIZE_C99):
22218         Don't mishandle FreeBSD 10+ when cross-compiling.
22220         ftoastr: work around compiler bug in IBM xlc 12.1
22221         * lib/ftoastr.h (_GL_FLT_PREC_BOUND, _GL_DBL_PREC_BOUND)
22222         (_GL_LDBL_PREC_BOUND): Make these macros, not enums, to work
22223         around a compiler bug in IBM xlc 12.1.0.0: it complains
22224         '"ftoastr.c", line 80.37: 1506-045 (S) Undeclared identifier
22225         _GL_FLT_PREC_BOUND.'
22227 2014-05-30  Kieran Colford  <colfordk@gmail.com>
22229         valgrind-tests: fixed misleading help message
22230         * m4/valgrind-tests.m4: The help message generated by configure
22231         implied that valgrind was disabled by default, which it wasn't.
22232         Adjusted the help message using s/enable/disable/ to clarify.
22234 2014-05-30  Ulrich Weigand  <uweigand@de.ibm.com>
22236         isfinite, isinf, isnan tests: fix for little-endian PowerPC
22237         * tests/test-isfinite.c (test_isfinitel): Only manipulate the
22238         first double of a PowerPC "double double" pair.
22239         * tests/test-isinf.c (test_isinfl): Likewise.
22240         * tests/test-isnan.c (test_long_double): Likewise.
22241         * tests/test-isnanl.h (main): Likewise.
22242         * tests/test-signbit.c (test_signbitl): Likewise.
22244 2014-05-29  Paul Eggert  <eggert@cs.ucla.edu>
22246         exclude-tests: port to AIX 7.1
22247         * modules/exclude-tests (test_exclude_LDADD): Add $(LIBTHREAD).
22248         Needed on AIX 7.1 with xlc V12.1, otherwise it won't link because
22249         the regex code uses locks.
22251 2014-05-28  Paul Eggert  <eggert@cs.ucla.edu>
22253         pthread_sigmask, timer-time: use gl_THREADLIB only if needed
22254         Without this fix, Emacs would sometimes call sigprocmask instead
22255         of pthread_sigmask, which is a no-no in multithreaded applications.
22256         Problem reported by Jorgen Schaefer in <http://bugs.gnu.org/17561>.
22257         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
22258         Suppress check for pthread_sigmask working without -lpthread if
22259         the application always links with -lpthread.  Do not link with
22260         $LIBMULTITHREAD if gl_THREADLIB is not defined.
22261         * m4/timer_time.m4 (gl_TIMER_TIME):
22262         Require gl_THREADLIB only if it is defined.  Do not append
22263         $LIBMULTITHREAD to LIB_TIMER_TIME if gl_THREADLIB is not defined.
22265 2014-05-27  Sylvain Beucler  <beuc@beuc.net>.
22267         gnulib-tool: wget translations using --no-verbose rather than --quiet
22268         This allows the user to see error messages if any (--quiet hides them)
22269         * gnulib-tool: Invoke wget with --no-verbose, rather than --quiet.
22271 2014-05-27  Sylvain Beucler  <beuc@beuc.net>
22273         gnulib-tool: adjust translation wget to avoid a https redirection
22274         Context: http://translationproject.org/latest/gnulib redirects to
22275            https://translationproject.org/latest/gnulib/
22276         Rationale: if the user falls back to wget, she doesn't have rsync and
22277         is probably in a minimal build environment, where packages such as
22278         'ca-certificates' are missing as well, resulting in a failed (and
22279         difficult to detect since ignored) translation initial fetch.
22280         Consequently let's avoid https if possible, and add the missing
22281         trailing slash.  This also avoids an unnecessary 302 redirection.
22282         * gnulib-tool: Add trailing slash to gnulib URL.
22284 2014-05-22  Pádraig Brady  <P@draigBrady.com>
22286         getlogin_r-tests: check return value rather than errno
22287         * tests/test-getlogin_r.c (main): As per POSIX we should be
22288         verifying the return value from getlogin_r() rather than errno.
22290 2014-05-22  Pádraig Brady  <P@draigBrady.com>
22292         getlogin_r-tests: fix various issues in recent change
22293         * tests/test-getlogin_r.c: Include required headers that were
22294         missed in recent commit eec20b4e.
22295         Also consistently check the errno rather than the return value from
22296         getlogin_r as POSIX only specifies that non zero is returned on error.
22297         * modules/getlogin_r-tests (configure.ac): Add the check for ttyname().
22299 2014-05-21  Paul Eggert  <eggert@cs.ucla.edu>
22301         fchdir: port 'open' and 'close' redefinitions to AIX 7.1
22302         * lib/chown.c, lib/clean-temp.c, lib/copy-file.c, lib/execute.c:
22303         * lib/fsusage.c, lib/gc-gnulib.c, lib/javacomp.c, lib/mountlist.c:
22304         * lib/openat-proc.c, lib/pagealign_alloc.c, lib/progreloc.c:
22305         * lib/spawn-pipe.c:
22306         Do not #undef 'open' and 'close'.  AIX 7 does '#define open open64'
22307         and then 'int open64(const char *, int, ...);', which means the
22308         declaration for 'open' gets lost if we later '#undef open'.
22309         Discovered while building grep pretest 2.18.151-1c770 on AIX 7.1,
22310         where the compilation reported the non-fatal error "In function
22311         'openat_proc_name' ... warning: implicit declaration of function
22312         'open'".  In this case the error is relatively harmless, but in
22313         other cases it might not be so minor.
22315 2014-05-20  Paul Eggert  <eggert@cs.ucla.edu>
22317         xalloc: don't potentially generate invalid code for xmemdup calls
22318         * lib/xalloc.h (xmemdup): Do not mark with _GL_ATTRIBUTE_ALLOC, as
22319         this function can initialize the newly-allocated storage with new
22320         pointers, which means this function is not malloc-like.  See:
22321         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56955
22323 2014-05-19  Pádraig Brady  <P@draigBrady.com>
22325         getlogin_r-tests: avoid false failure under sudo/ssh etc.
22326         * tests/test-getlogin_r.c (main): Sync up with test-getlogin.c
22327         changes from commit 97249cf29 to not depend on environment variables.
22329 2014-05-18  Pádraig Brady  <P@draigBrady.com>
22331         getlogin-tests: avoid false failure under cron
22332         * tests/test-getlogin.c (main): Avoid verifying errnos from ttyname()
22333         since that's not what's under test.  Centos 6 was seen to return
22334         EINVAL for ttyname() when run from cron.
22336 2014-05-16  Jim Meyering  <meyering@fb.com>
22338         mbrtowc.m4: fix a comment typo
22339         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Fix typo s/2/-2/ in
22340         emitted documentation string.
22342 2014-05-16  Paul Eggert  <eggert@cs.ucla.edu>
22344         mbrlen, mbrtowc: fix bug with empty input
22345         * lib/mbrtowc.c (rpl_mbrtowc) [MBRTOWC_EMPTY_INPUT_BUG]: Fix the bug.
22346         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): New macro.  It's not used,
22347         so this is mainly for documentation.
22348         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): New macro.
22349         (gl_FUNC_MBRTOWC): Use it.
22350         * tests/test-mbrtowc.c (main): Test for the bug.
22352 2014-05-15  Paul Eggert  <eggert@cs.ucla.edu>
22354         doc: document mbrtowc and mbrlen problem with empty input
22355         * doc/posix-functions/mbrlen.texi (mbrlen):
22356         * doc/posix-functions/mbrtowc.texi (mbrtowc):
22357         Document portability problem when the input string is empty.  See:
22358         https://sourceware.org/bugzilla/show_bug.cgi?id=16950
22360         doc: document exec* = spawn+exit bug with non-Cygwin Windows platforms
22361         Problem reported by Eli Zaretskii in:
22362         http://lists.gnu.org/r/bug-grep/2014-05/msg00118.html
22363         * doc/posix-functions/execl.texi (execl):
22364         * doc/posix-functions/execle.texi (execle):
22365         * doc/posix-functions/execlp.texi (execlp):
22366         * doc/posix-functions/execv.texi (execv):
22367         * doc/posix-functions/execve.texi (execve):
22368         * doc/posix-functions/execvp.texi (execvp):
22369         Mention spawn+exit problem on non-Cygwin Windows platforms.
22371 2014-05-14  Guilherme de Almeida Suckevicz  <guito.linux@gmail.com>
22373         getlogin-tests: avoid false failure under sudo/ssh etc.
22374         * modules/getlogin-tests (configure.ac): Check for ttyname().
22375         * tests/test-getlogin.c (main): Don't depend on environment variables
22376         to correlate with getlogin(), since sudo and ssh etc. can tamper
22377         with the LOGNAME and USER env vars.  Instead lookup the name from
22378         the uid associated with the stdin tty.
22380 2014-05-11  Paul Eggert  <eggert@cs.ucla.edu>
22382         mbsstr, quotearg, xstrtol: pacify IRIX 6.5 cc
22383         These were found when building the latest grep snapshot on IRIX 6.5.
22384         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Break "a=b=c;" into
22385         "b=c; a=b;", since IRIX 6.5 cc complains about the former if b is
22386         never used later.
22387         * lib/quotearg.c (quoting_options_from_style):
22388         * lib/xstrtol.c (__xstrtol):
22389         Use enum instead of 0, to pacify IRIX 6.5 cc.
22391 2014-04-18  Pádraig Brady  <P@draigBrady.com>
22393         gitlog-to-changelog: revert inclusion of git-log-fix file
22394         * build-aux/git-log-fix: Delete dummy file.
22395         * modules/gitlog-to-changelog: Don't reference (overwrite)
22396         the project specific git-log-fix file.
22398 2014-04-18  Assaf Gordon  <agordon@wi.mit.edu>
22400         maint.mk: Relax the copyright check to cater for non FSF projects
22401         * top/maint.mk (sc_copyright_check): Relax the check for $PACKAGE.texi
22402         to not require the "Free" suffix after the copyright years.
22404 2014-04-18  Natanael Copa  <ncopa@alpinelinux.org>
22406         physmem: use sysinfo on linux-gnu if _SC_PHYS_PAGES unavailable
22407         * lib/physmem.c (physmem_total): Some systems like musl libc don't yet
22408         support _SC_PHYS_PAGES.  Use the linux syscall sysinfo as fallback
22409         if _SC_PHYS_PAGES or _SC_PAGESIZE fails.
22410         (physmem_available): Likewise for _SC_AVPHYS_PAGES.
22412 2014-04-18  Paul Eggert  <eggert@cs.ucla.edu>
22414         exclude: port to strict C99
22415         Strict C does not allow converting a function pointer to void *
22416         and vice versa.  Pass a pointer to a function pointer instead.
22417         * lib/exclude.c (add_exclude_file):
22418         Pass the address of the function pointer.
22419         (call_addfn): And deference the address here, to match.
22421 2014-04-17  Paul Eggert  <eggert@cs.ucla.edu>
22423         regex: do not depend on malloc-gnu
22424         * modules/regex (Depends-on): Remove malloc-gnu.
22425         It's no longer needed, because of the 2012-12-29 patch
22426         "regex: port to hosts where malloc (0) == NULL".
22427         Reported by Nathan Kennedy in:
22428         http://lists.gnu.org/r/bug-gnulib/2014-04/msg00026.html
22430 2014-04-16  Assaf Gordon  <agordon@wi.mit.edu>
22432         expl: avoid incorrect expl(small_value) on OpenBSD 5.4
22433         * m4/expl.m4 (gl_FUNC_EXPL): Add a check for this condition.
22434         * doc/posix-functions/expl.texi: Mention the workaround.
22436 2014-04-12  Paul Eggert  <eggert@cs.ucla.edu>
22438         xalloc: allow x2nrealloc (P, PN, S) where P && !*PN
22439         * lib/xalloc.h (x2nrealloc): Extend slightly, to allow the current
22440         size to be zero even when the pointer is nonnull.  This
22441         accommodates the use case where P is malloc (0) and *PN is 0 on a
22442         host where malloc (0) yields nonnull.
22444 2014-04-09  Eric Blake  <eblake@redhat.com>
22446         fts: avoid unnecessary strlen calls
22447         * lib/fts.c (_D_EXACT_NAMLEN): Restore definition when needed.
22449 2014-04-09  Paul Eggert  <eggert@cs.ucla.edu>
22451         fts: avoid unnecessary strlen calls
22452         * lib/fts.c (fts_build): Go back to using _D_EXECT_NAMLEN
22453         when that can be faster than strlen.
22455 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
22457         fts: avoid unnecessary strlen calls
22458         * lib/fts.c (_D_EXACT_NAMLEN): Remove macro.
22459         (fts_build): Store the length of the dp->d_name entry in a local variable
22460         instead of calling strlen() several times via the above, removed macro.
22461         For 'rm -rf some-dir' with e.g. 1M directory entries, this speeds up the
22462         run by ~4%, yet this reduces the execution time by about a third if run
22463         via "ltrace -c rm -rf some-dir".
22465 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
22467         obstack: Remove ancient NeXTSTEP gcc support conditional
22468         This change will ease merging with glibc.  The "#if ... __NEXT__"
22469         causes a warning with -Wundef which glibc now enables by default.
22470         Problem reported by Will Newton in
22471         <http://lists.gnu.org/r/bug-gnulib/2014-03/msg00032.html>.
22472         glibc <sys/cdefs.h> now uses __extension__ for GCC 2.8 or later,
22473         so go with that.
22474         * lib/obstack.h (__extension__):
22476 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
22478         obstack: merge with glibc changes
22479         * lib/obstack.c, lib/obstack.h: Merge from glibc.
22480         This is mostly indenting and commentary changes.
22481         Instances of 'register' have been removed.
22483 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
22485         strftime: wrap macros in "do {...} while(0)"
22486         * lib/strftime.c (DO_NUMBER): Wrap multi-statement code block of
22487         this macro in "do {...} while(0)" to prevent false use as a
22488         single statement, e.g., in an un-braced "{}" else-block.
22489         (DO_SIGNED_NUMBER, DO_TZ_OFFSET, DO_NUMBER_SPACEPAD): Likewise.
22490         (strftime_case_): Remove 'else' after 'goto' - which was the
22491         only non-fatal, un-braced use of one of the above macros.
22492         Spotted by coverity (NESTING_INDENT_MISMATCH).
22494 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
22496         modechange: avoid memory leaks for invalid octal modes
22497         * lib/modechange.c (mode_compile): During the parsing of
22498         notations like +40, free the 'mc' buffer for invalid mode
22499         strings like +17777 (greater than the maximum octal mode),
22500         =18 (bad octal mode characters) or u=1 ('affected' with
22501         octal modes).
22502         Reproducer, e.g.:
22503             $ valgrind --leak-check=full chmod +17777 file
22504         Introduced via the 2012-03-09 commit, 4730c3e3, "modechange:
22505         add notations +40, 00440, etc.".
22506         Spotted by coverity (RESOURCE_LEAK).
22508 2014-03-24  Paul Eggert  <eggert@cs.ucla.edu>
22510         gitlog-to-changelog: include a dummy git-log-fix file
22511         Problem reported by Nathan Stratton Treadway in:
22512         http://lists.gnu.org/r/bug-tar/2014-03/msg00082.html
22513         * build-aux/git-log-fix: New file.
22515 2014-03-13  Jim Meyering  <meyering@fb.com>
22517         gitlog-to-changelog: also include the file, git-log-fix
22518         * modules/gitlog-to-changelog (Files): Add git-log-fix.
22519         Reported by Assaf Gordon.
22521 2014-03-06  Paul Eggert  <eggert@cs.ucla.edu>
22523         regex: port to OS X 10.8.5 en_US.UTF-8 locale
22524         This fixes a bug when ignoring case and when comparing the
22525         titlecase letter 'Lj' (U+01C8 LATIN CAPITAL LETTER L WITH SMALL
22526         LETTER J) to the corresponding uppercase letter 'LJ' (U+01C7 LATIN
22527         CAPITAL LETTER LJ).  In the OS X 10.8.5 en_US.UTF-8 locale, the
22528         titlecase letter is neither lowercase nor uppercase, but
22529         uppercasing the titlecase letter (via towupper) yields the
22530         uppercase letter, so the two letters should match when ignoring case.
22531         Problem reported by Jim Meyering in <http://debbugs.gnu.org/16911#16>.
22532         * lib/regex_internal.c (build_wcs_upper_buffer, build_upper_buffer):
22533         Don't test whether a character is lowercase before uppercasing it.
22535 2014-03-04  Kevin Cernekee  <cernekee@gmail.com>
22537         stdint, read-file: fix missing SIZE_MAX on Android (tiny change)
22538         This is basically one of the options Bruno Haible proposed in:
22539         http://lists.gnu.org/r/bug-gnulib/2012-01/msg00282.html
22540         * lib/sys_types.in.h (_GL_INCLUDING_UNISTD_H): New macro.
22541         * lib/stdint.in.h: Use it.
22542         * modules/stdint (Depends-on): Add sys_types.
22544 2014-02-26  Pádraig Brady  <P@draigBrady.com>
22546         parse-datetime: fix crash or infloop in TZ="" parsing
22547         * lib/parse-datetime.y (parse_datetime): Break out of the
22548         TZ="" parsing loop once the second significant " is found.
22549         Also skip over any subsequent whitespace to be consistent
22550         with the non TZ= case.
22551         * tests/test-parse-datetime.c: Add test cases for TZ="" parsing.
22553 2014-02-26  Paul Eggert  <eggert@cs.ucla.edu>
22555         savedir: new symbol for fast-read version
22556         * lib/savedir.h (SAVEDIR_SORT_FASTREAD): New symbol, for programs
22557         like GNU cp that want to use SAVEDIR_SORT_INODE if available,
22558         SAVEDIR_SORT_NONE otherwise.  Problem reported by Bernhard Voelker in:
22559         http://lists.gnu.org/r/coreutils/2014-02/msg00037.html
22561 2014-02-25  Paul Eggert  <eggert@penguin.cs.ucla.edu>
22563         unistd: port readlink to Mac OS X 10.3.9
22564         * lib/unistd.in.h (_GL_INCLUDING_UNISTD_H): New macro, to work
22565         around self-include problem in Mac OS X 10.3.9 when combined with
22566         readlink module.  Problem reported by Klaus Zietler in
22567         <http://bugs.gnu.org/16825>.
22569 2014-02-23  Paul Eggert  <eggert@cs.ucla.edu>
22571         diffseq: remove TOO_EXPENSIVE heuristic
22572         Problem with diffutils reported by Vincent Lefevre in
22573         <http://bugs.gnu.org/16848>.  The simplest solution is to remove
22574         the TOO_EXPENSIVE heuristic that I added to GNU diff in 1993.
22575         Although appropriate for circa-1993 hardware, these days the heuristic
22576         seems to be more trouble than it's worth.
22577         * lib/diffseq.h: Modernize citations.
22578         (struct context): Remove member too_expensive.
22579         All uses changed.
22580         (struct partition): Remove members lo_minimal, hi_minimal.
22581         All uses changed.
22582         (diag, compareseq): Remove arg find_minimal.  All uses changed.
22583         (diag): Remove the TOO_EXPENSIVE heuristic that I added back in
22584         1993 to make 'diff' run faster (but not as well) on large inputs.
22585         These days, computers are fast enough that it's typically better
22586         to run slower but more accurately.
22587         * lib/fstrcmp.c: Remove duplicate comment.
22588         * lib/fstrcmp.c (strcmp_bounded):
22589         * lib/git-merge-changelog.c (compute_differences):
22590         Adjust to diffseq.h changes.
22591         * NEWS: Document the change.
22593         savedir: simplify by using stpcpy
22594         * lib/savedir.c (direntry_t): Remove size member.  All uses removed.
22595         (streamsavedir): Use stpcpy instead.
22596         * modules/savedir (Depends-on): Add stpcpy.
22598 2014-02-21  Pádraig Brady  <P@draigBrady.com>
22600         spawn: fix link error on uclibc
22601         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): use AC_SEARCH_LIBS,
22602         to incorporate -lrt if needed (on uclibc for example).
22603         * modules/posix_spawn: Reference the substituted LIB.
22605 2014-02-21  Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>  (tiny change)
22606         timer: fix uClibc detection of threading
22607         * m4/time_time.m4 (gl_TIMER_TIME): Detect whether threads are
22608         enabled in uClibc.
22610 2014-02-21  Eric Blake  <eblake@redhat.com>
22612         maintainer-makefiles: provide AC_PROG_SED for older autoconf
22613         * m4/gnulib-common.m4 (AC_PROG_SED): Copy from newer autoconf.
22615 2014-02-21  Sergey Poznyakoff  <gray@gnu.org.ua>
22617         exclude: add support for posix regexps
22619         This commit adds support for POSIX extended regular expressions
22620         and fixes a long-standing memory leak (pattern buffer was never
22621         freed).  It also implements a new interface function to read
22622         exclude patterns from a FILE, which passes an additional parameter
22623         to its callback function, thereby allowing to preserve its state
22624         between invocations.
22626         * lib/exclude.c (struct patopts): Pack regex and pattern into union.
22627         (pattern_buffer): New struct.
22628         (exclude): New member patbuf.
22629         (exclude_add_pattern_buffer): New function.
22630         (free_exclude_segment): Free regexps.
22631         (free_exclude): Free allocated pattern buffers.
22632         (exclude_patopts): New function.
22633         (file_pattern_matches): Use exclude_patopts.
22634         (add_exclude): support regexps.
22635         (add_exclude_fp): New function.
22636         (add_exclude_file): Rewrite using add_exclude_fp.
22637         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
22638         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
22639         (add_exclude_fp)
22640         (add_exclude_file): Rewrite using add_exclude_fp.
22641         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
22642         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
22643         (add_exclude_fp)
22644         (exclude_add_pattern_buffer): New prototypes.
22645         * modules/exclude: Depends on regex and filename.
22647 2014-02-20  Eric Blake  <eblake@redhat.com>
22649         maintainer-makefiles: use $(SED) for syntax check
22650         * modules/maintainer-makefile (configure.ac): Check for sane sed.
22651         * top/maint.mk: Change sed to $(SED).
22653 2014-02-11  Sergey Poznyakoff  <gray@gnu.org.ua>
22654             Paul Eggert  <eggert@cs.ucla.edu>
22656         savedir: add sorting arg to savedir, streamsavedir; remove fdsavedir
22657         Patch based on an idea by Dick Streefland in
22658         <https://savannah.gnu.org/patch/?7892>.
22659         * NEWS: Document this.
22660         * lib/savedir.c (NAME_SIZE_DEFAULT): Remove.
22661         (direntry_t, comparison_function): New types.
22662         (direntry_cmp_name): New function.
22663         (direntry_cmp_inode) [D_INO_IN_DIRENT]: New function.
22664         (streamsavedir, savedir): New arg OPTION.
22665         (streamsavedir): Simplify memory allocation.
22666         (fdsavedir): Remove.
22667         * lib/savedir.h (enum savedir_option): New type.
22668         (streamsavedir, savedir): New arg OPTION.
22669         (fdsavedir): Remove.
22671 2014-02-05  Paul Eggert  <eggert@cs.ucla.edu>
22673         file-type: add support for doors and other less-common file types
22674         Problem with S_ISDOOR reported by Rich Burridge.
22675         * lib/file-type.c (file_type): Do S_ISLNK early too.  Do S_TYPEIS*
22676         macros before the rest.  Add S_ISCTG, S_ISDOOR, S_ISMPB, S_ISMPC,
22677         S_ISMPX, S_ISNAM, S_ISNWK, S_ISOFD, S_ISOFL, S_ISPORT, S_ISWHT.
22679 2014-01-23  Eric Blake  <eblake@redhat.com>
22681         pthread: work around winpthread header pollution on mingw
22682         * lib/time.in.h: Move pthread workarounds...
22683         * lib/pthread.in.h: ...here.
22684         * m4/pthread.m4 (gl_PTHREAD_CHECK): Also build pthread.h when we
22685         detect macro pollution on mingw.
22686         * doc/posix-headers/pthread.texi (pthread.h): Document the problems.
22688 2014-01-22  Paul Eggert  <eggert@cs.ucla.edu>
22690         qacl: check for fchmod
22691         * m4/acl.m4 (gl_FUNC_ACL): Check for fchmod, since acl-internal.h
22692         and qset-acl.c both use HAVE_FCHMOD.
22694 2014-01-20  Paul Eggert  <eggert@cs.ucla.edu>
22696         fdopen-tests: port to Tru64
22697         * tests/test-fdopen.c (main): Don't invoke fdopen on a file
22698         descriptor that is not open, as POSIX doesn't specify the
22699         resulting behavior and the test does not work on Tru64.
22700         Problem reported by Steven M. Schweda in:
22701         http://lists.gnu.org/r/bug-gnulib/2014-01/msg00079.html
22703         stdalign: port to HP-UX compilers
22704         * lib/stdalign.in.h (_Alignas): Use __attribute__ (__aligned__ (x))
22705         if __HP_cc or __HP_aCC are nonzero.
22707 2014-01-16  Paul Eggert  <eggert@cs.ucla.edu>
22709         strtoimax: port to platforms lacking 'long long'
22710         VMS's pre-C99 compiler lacks 'long long', so 'configure' doesn't
22711         check whether strtoll is declared, which causes the C file to
22712         wrongly report an error.  Problem reported by Steven M. Schweda in:
22713         http://lists.gnu.org/r/bug-diffutils/2014-01/msg00003.html
22714         * lib/strtoimax.c (strtoull):
22715         Declare only if HAVE_UNSIGNED_LONG_LONG_INT.
22716         (strtoll): Declare only if HAVE_LONG_LONG_INT.
22718 2014-01-16  Daniel Albers  <daniel@lbe.rs>  (tiny change)
22720         relocatable-perl: fix texi syntax
22721         * doc/relocatable-maint.texi: Escape braces.
22723 2014-01-09  Reuben Thomas  <rrt@sc3d.org>
22725         relocatable-perl: like relocatable-script, but for Perl scripts
22726         * build-aux/relocatable.pl.in: Add.
22727         * doc/relocatable-maint.texi: Add documentation.
22728         * modules/relocatable-perl: Add.
22730 2014-01-07  Paul Eggert  <eggert@cs.ucla.edu>
22732         tests: fix export bug in previous patch
22733         Problem reported by Jim Meyering.
22734         * tests/init.sh (re_shell): New var, which is exported instead of
22735         re_shell_.
22737         tests: simplify porting to Solaris 10 /bin/sh
22738         Some test cases in 'grep' need a shell that groks '$(';
22739         export re_shell_ for their benefit.  Problem reported for 'grep'
22740         by Dagobert Michelsen in <http://bugs.gnu.org/16380>.
22741         * tests/init.sh (re_shell_): Export if it's used.
22743 2014-01-06  Eric Blake  <eblake@redhat.com>
22745         md5, sha1, sha256, sha512: support older autoconf
22746         * m4/00gnulib.m4 (m4_divert_push): Wrap diversion stack
22747         for autoconf < 2.63b.
22749         include_next: port to autoconf 2.63
22750         * m4/gnulib-common.m4 (AS_VAR_COPY): Define if missing.
22752 2014-01-04  Jim Meyering  <meyering@fb.com>
22754         maint: add a gnulib-local rule to keep non-ascii out of .texi files
22755         * cfg.mk (sc_keep_gnulib_texi_files_mostly_ascii): New rule,
22756         so that "make sc_maint" will ding anyone who puts non-ascii
22757         in any of gnulib's .texi files.
22759 2014-01-03  Jim Meyering  <meyering@fb.com>
22761         freadable, fwritable, fwriting: declare with the "pure" attribute
22762         * lib/freadable.h (freadable): Declare with the "pure" attribute.
22763         * lib/fwritable.h (fwritable): Likewise.
22764         * lib/fwriting.h (fwriting): Likewise.
22765         Suggested by Bruno Haible.
22767         maint.mk: adapt openat.h-include-without-use test
22768         * top/maint.mk (sc_prohibit_openat_without_use): Also check for
22769         FCHMODAT_INLINE, FCHOWNAT_INLINE and STATAT_INLINE, to avoid
22770         failing on gnulib's own lib/{chmod,chown,stat}at.c files.
22771         With this change, running "make sc_maint" in gnulib's top-level
22772         directory now passes for me.
22774 2014-01-03  Paul Eggert  <eggert@cs.ucla.edu>
22776         doc: use ASCII in .texi files where UTF-8 isn't needed
22777         * doc/posix-functions/crypt.texi, doc/posix-functions/encrypt.texi:
22778         * doc/posix-functions/setkey.texi, doc/regex.texi:
22779         Use ASCII input, not UTF-8.
22781 2014-01-02  Jim Meyering  <meyering@fb.com>
22783         freading: declare with the "pure" attribute
22784         * lib/freading.h (freading): Declare with the "pure" attribute.
22786         manywarnings: remove -Wmudflap
22787         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove -Wmudflap, since
22788         it is no longer supported in gcc-4.9-to-be.
22790 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
22792         relocatable-script: remove unused code
22793         Problem reported by Reuben Thomas in:
22794         http://lists.gnu.org/r/bug-gnulib/2013-12/msg00117.html
22795         * build-aux/relocatable.sh.in (func_tmpdir): Remove unused function.
22797 2014-01-01  Jim Meyering  <meyering@fb.com>
22799         maint: fix public-submodule-commit to work with newer git
22800         * top/maint.mk (public-submodule-commit): Remove excess quoting.
22801         We were over-quoting the test arguments, and somewhere prior to
22802         version 1.8.5.2.229, git stopped removing those excess quotes,
22803         which made the test fail, since the unexpanded strings would
22804         always differ; using GIT_TRACE=1 confirmed that the git merge-base
22805         command wasn't even being run.
22807 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
22809         doc: update main copyright year
22810         * doc/gnulib.texi: Update copyright date.
22812 2014-01-01  Eric Blake  <eblake@redhat.com>
22814         version-etc: new year
22815         * lib/version-etc.c (COPYRIGHT_YEAR): Bump to 2014.
22816         * all files: run 'make update-copyright'
22818 2013-12-24  Eric Blake  <eblake@redhat.com>
22820         passfd: give nicer error for recvfd at eof
22821         * lib/passfd.c (recvfd): Fake ENOTCONN if other end closes early.
22822         * tests/test-passfd.c (main): Enhance test to cover this.
22824 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
22826         gettimeofday: port recent C++ fix to Emacs
22827         Without this further patch, Emacs won't build due to
22828         the portcheck failing.  Also, this simplifies the patch a bit.
22829         * lib/time.in.h (localtime, gmtime): Don't replace unless
22830         GNULIB_GETTIMEOFDAY.  Treat them more like mktime.
22831         * lib/time.in.h (localtime, gmtime):
22832         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME):
22833         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
22834         * modules/time (time.h):
22835         Don't worry about the possibility of localtime and gmtime
22836         being absent; they're present in all C libraries we know about.
22837         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
22838         Don't assume sys_time is present and has been initialized.
22839         Instead, use a hack that should work even if it hasn't been.
22840         Don't use a portcheck for gmtime or localtime; this supports
22841         the hack.
22842         * modules/time (time.h): Substitute GNULIB_GETTIMEOFDAY.
22844 2013-12-17  John W. Eaton  <jwe@gnu.org>
22846         gettimeofday: fix C++ crosscompilation
22848         Never replace gmtime and localtime by macros when compiling with
22849         C++, this prevents <ctime> from being included.
22851         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Do not
22852         define gmtime and localtime as preprocessor macros.  Instead
22853         define some HAVE_GMTIME, HAVE_LOCALTIME, REPLACE_GMTIME, and
22854         REPLACE_LOCALTIME substitutions.
22855         * lib/time.in.h: Declare gmtime and localtime when needed.
22856         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): AC_SUBST HAVE_GMTIME,
22857         HAVE_LOCALTIME, REPLACE_GMTIME, and REPLACE_LOCALTIME.
22858         * modules/time: Depend on gettimeofday, and substitute the above
22859         variables in time.h.
22861 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
22863         qacl: port to Windows better
22864         See Eli Zaretskii in
22865         <http://lists.gnu.org/r/emacs-devel/2013-12/msg00593.html>.
22866         * lib/file-has-acl.c (acl_access_nontrivial):
22867         Return -1 and set errno if !HAVE_ACL_FIRST_ENTRY &&
22868         !HAVE_ACL_TO_SHORT_TEXT && !HAVE_ACL_FREE_TEXT.
22870 2013-12-12  Alexander V. Lukyanov  <lav@netis.ru>
22872         md5, sha1, sha256, sha512: fix (trivial) compile error in c++ mode.
22873         * lib/gl_openssl.h: Cast void pointers to a specific type.
22875 2013-12-07  Pádraig Brady  <P@draigBrady.com>
22877         open-tests: fix build failure with -Werror=old-style-declaration
22878         * tests/test-open.h: Reorder the inline to avoid the issue.
22880 2013-12-07  Pádraig Brady  <P@draigBrady.com>
22882         md5, sha1, sha256, sha512: fix link error with partial libcrypto
22883         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Only clear LIB_CRYPTO at
22884         init time, so that if early checks find crypto routines,
22885         while the last does not, then @LIB_CRYPTO@ is replaced correctly,
22886         avoiding link failures.
22888 2013-12-07  Paul Eggert  <eggert@cs.ucla.edu>
22890         md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
22891         This provides a new way to specify the default for
22892         gl_CRYPTO_CHECK, one that is reflected in the --help message.
22893         Emacs uses this, as well as the old way.
22894         This attempts to implement a suggestion by Pádraig Brady in
22895         <http://lists.gnu.org/r/coreutils/2013-12/msg00080.html>.
22896         * m4/gl-openssl.m4(gl_SET_CRYPTO_CHECK_DEFAULT): New macro.
22897         (gl_CRYPTO_CHECK): Use it.  Mention the default in --help output.
22899         md5, sha1, sha256, sha512: add 'auto', and a way to specify default
22900         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK):
22901         Add support for a new option, --with-openssl=auto, which causes
22902         the library to be used if available and silently ignored if not.
22903         Add support to allow configure.ac to specify its own
22904         default, by setting with_openssl_default before invoking gl_INIT.
22906 2013-12-05  Paul Eggert  <eggert@cs.ucla.edu>
22908         open-tests: port to glibc with _FORTIFY_SOURCE and -O1
22909         Problem reported by Daiki Ueno in:
22910         http://lists.gnu.org/r/bug-gnulib/2013-06/msg00052.html
22911         * tests/test-open.h (__always_inline):
22912         New macro, if not already defined.
22913         (test_open): Use it.
22915 2013-12-04  Eric Blake  <eblake@redhat.com>
22917         include_next: minimize code duplication
22918         * modules/include_next (Depends-on): Add absolute-header.
22919         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Reuse
22920         gl_ABSOLUTE_HEADER_ONE instead of open-coding it.
22922 2013-12-04  Pádraig Brady  <P@draigBrady.com>
22924         getcwd: fix compile error in configure check
22925         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Include errno.h
22927 2013-12-04  Pádraig Brady  <P@draigBrady.com>
22929         regex: suppress core dumps from detection code
22930         * m4/regex.m4 (gl_REGEX): Catch the SIGABRT and convert to SIGTERM
22931         to suppress core dumps that may well occur on glibc systems.
22932         These core dumps might not be cleaned up automatically, or could
22933         trigger some system core dump handling logic.
22935 2013-12-03  Pádraig Brady  <P@draigBrady.com>
22937         md5, sha1, sha256, sha512: support mandating use of openssl
22938         * m4/gl-openssl.m4 (gl_crypto_check): Adjust the --with-openssl
22939         description, to list the now 3 separate options.  also don't
22940         mention the default=no, since this is implicit given the option
22941         is described as --with-openssl rather than --without-openssl.
22942         If projects change the default they're free to document that.
22943         with --with-openssl[=yes] we now error out when the specified
22944         hash algorithm is not available in libcrypto.
22946 2013-12-03  Ivailo  <xakepa10@gmail.com>
22948         test-xvasprintf: (trivial) fix to disable some -Wformat-security diags
22949         * tests/test-xvasprintf.c: Disable -Wformat-zero-length and
22950         -Wformat-nonliteral checks, as these edge cases are part of the test.
22952 2013-12-03  Eric Blake  <eblake@redhat.com>
22954         regex: avoid glibc deadlock during configure
22955         * m4/regex.m4 (gl_REGEX): Avoid recursive malloc deadlock when
22956         glibc bug 15078 in turn triggers bug 16159.
22957         Reported by Michal Privoznik.
22959 2013-12-02  Pádraig Brady  <P@draigBrady.com>
22961         md5, sha1, sha256, sha512: use openssl routines if available.
22962         --with-openssl the libcrypto md5, sha1, sha224, sha256, sha384, sha256
22963         routines will be used if available, requiring apps to link @LIB_CRYPTO@
22964         * lib/gl_openssl.h: Provide wrappers for specified openssl hash.
22965         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): New function to lookup libcrypto
22966         in the standard system location.
22967         * m4/sha1.m4: Call gl_CRYPTO_CHECK() for SHA1.
22968         * m4/sha256.m4: Likewise with SHA256.
22969         * m4/sha512.m4: Likewise with SHA512.
22970         * m4/md5.m4: Likewise with MD5.
22971         * m4/gc.m4: Ensure @LIB_CRYPTO@ set for tests.
22972         * lib/sha1.h: Include wrappers if HAVE_OPENSSL_SHA1.
22973         * lib/sha256.h: Likewise with SHA256.
22974         * lib/sha512.h: Likewise with SHA512.
22975         * lib/md5.h: Likewise with MD5.
22976         * lib/sha1.c: Exlude functionality if HAVE_OPENSSL_SHA1.
22977         * lib/sha256.c: Likewise with SHA256.
22978         * lib/sha512.c: Likewise with SHA512.
22979         * lib/md5.c: Likewise with MD5.
22980         * modules/crypto/sha1 (Link:): Add the new optional lib.
22981         (Depends-on:): Add dependency on extern-inline.
22982         * modules/crypto/sha256: Likewise.
22983         * modules/crypto/sha512: Likewise.
22984         * modules/crypto/md5: Likewise.
22985         * modules/crypto/sha1-tests: Reference the lib here too.
22986         * modules/crypto/md5-tests: Likewise.
22987         * modules/crypto/gc-des-tests: Likewise.
22988         * modules/crypto/gc-hmac-md5-tests: Likewise.
22989         * modules/crypto/gc-hmac-sha1-tests: Likewise.
22990         * modules/crypto/gc-hmac-sha256-tests: Likewise.
22991         * modules/crypto/gc-hmac-sha512-tests: Likewise.
22992         * modules/crypto/gc-md5-tests: Likewise.
22993         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
22994         * modules/crypto/gc-sha1-tests: Likewise.
22995         * modules/crypto/gc-tests: Likewise.
22996         * modules/crypto/hmac-md5-tests: Likewise.
22997         * modules/crypto/hmac-sha1-tests: Likewise.
22998         * modules/crypto/hmac-sha256-tests: Likewise.
22999         * modules/crypto/hmac-sha512-tests: Likewise.
23001 2013-11-29  RV1971  <rv1971@web.de>
23003         base64: (trivial) fix compilation regression on some compilers
23004         * lib/base64.c: Don't return the void function,
23005         instead split to a separate return statement.
23007 2013-11-28  Paul Eggert  <eggert@cs.ucla.edu>
23009         ignore-value: revert previous code change
23010         * lib/ignore-value.h (ignore_value): Use __extension__ and
23011         __typeof__ only for GCC 3.4 and later.  Reported by Eric Blake in
23012         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00102.html>.
23013         Change the comment to try to explain this better.
23015 2013-11-27  Pádraig Brady  <P@draigBrady.com>
23017         selinux-h: improve stub types and add more stub functions
23019         * lib/se-selinux.in.h: Change security_context_t to a typedef
23020         rather than a define, as it's a pointer type and so is better
23021         as a typedef to avoid issues declaring multiple variables
23022         with the comma operator.  Also add stub for string_to_security_class().
23023         * lib/se-context.in.h: Add stub functions for
23024         context_{type,range,role,user}_get().
23026 2013-11-27  Paul Eggert  <eggert@cs.ucla.edu>
23028         ignore-value: prefer GCC version back through 2.0
23029         The code didn't match the comments, so I did a bit of software
23030         archaeology.  GCC 2.0 seems to support __extension__ and
23031         __typeof__, so fix both code and comments to use 2.0.
23032         * lib/ignore-value.h (ignore_value): Use __extension__ and
23033         __typeof__ for GCC 2.0 through 3.3, too.
23035 2013-11-25  Mats Erik Andersson  <gnu@gisladisker.se>
23037         pty: Activate the signature wrapper of forkpty.
23038         The intended preprocessor macro HAVE_FORKPTY is
23039         never defined, yet `lib/forkpty.c' depends on it.
23041         * m4/pty.m4 (gl_FUNC_FORKPTY): At completed analysis,
23042         apply AC_DEFINE_UNQUOTED to HAVE_FORKPTY with value
23043         $HAVE_FORKPTY for access to wrapper in `lib/forkpty.c'.
23045 2013-11-18  Jim Meyering  <meyering@fb.com>
23046         and Paul Eggert  <eggert@cs.ucla.edu>
23048         quotearg: don't attempt to store 1 << 31 into an "int"
23049         * lib/quotearg.c (quotearg_buffer_restyled): Building coreutils with
23050         gcc's new -fsanitize=undefined and running its tests triggered some
23051         new test failures due to undefined behavior, all with this diagnostic:
23052           lib/quotearg.c:629:62: runtime error: left shift of 1 by 31 places \
23053             cannot be represented in type int
23054         Rather than shifting "1" left to form a mask, shift the bits right and
23055         simply use "1" as the mask.
23057 2013-11-21  Paul Eggert  <eggert@cs.ucla.edu>
23059         error: depend on stdio
23060         Problem reported by Nikos Mavrogiannopoulos in
23061         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00084.html>
23062         * modules/error (Depends-on): Add stdio.
23064 2013-11-18  Ben Pfaff  <blp@cs.stanford.edu>
23066         * doc/relocatable-maint.texi (Supporting Relocation): Improve
23067         wording.
23068         Reported by Reuben Thomas <rrt@sc3d.org>.
23070 2013-11-13  Paul Eggert  <eggert@cs.ucla.edu>
23072         * lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]:
23073         New function and macro, to work around _DARWIN_C_SOURCE problem.
23074         Reported by Jack Howarth in <http://bugs.gnu.org/14463>.
23076 2013-11-11  Pádraig Brady  <P@draigBrady.com>
23078         base64: provide a fast path for encoding well sized buffers
23079         Avoid conditionals in the base64 encoding loop,
23080         which was seen to give 60% better throughput.
23081         * lib/base64.c (base64_encode_fast): A new function to be called
23082         when we don't want to NUL terminate, and we have enough space
23083         in the output to encode the given input.
23084         (base64_encode): Call the _fast() version when appropriate.
23085         Also remove a redundant mask with 0x3F on the first encoded byte.
23087 2013-11-08  Paul Eggert  <eggert@cs.ucla.edu>
23089         extern-inline: port better to OS X 10.9
23090         * m4/extern-inline.m4: Omit serial number; this file doesn't use them.
23091         (gl_EXTERN_INLINE): Do not suppress the use of extern inline on
23092         OS X 10.9, except for g++ where the bug is still present.
23093         See <http://trac.macports.org/ticket/41033>.
23095 2013-11-08  Eric Blake  <eblake@redhat.com>
23097         fpending: fix regression on DragonFly BSD
23098         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for declaration.
23099         * lib/fpending.h (__fpending): Don't declare twice.
23100         Reported by GW in
23101         <https://lists.gnu.org/r/bug-m4/2013-11/msg00000.html>
23103 2013-11-05  Jim Meyering  <meyering@fb.com>
23105         hash: relax license to LGPLv2+, for libguestfs
23106         * modules/hash (License): Change from GPL to LGPLv2+.
23108 2013-11-03  Paul Eggert  <eggert@cs.ucla.edu>
23110         intprops: port to Oracle Studio c99
23111         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__SUNPRO_C && __STDC__]:
23112         Define to 0, to avoid diagnostics when Oracle Studio is pedantic.
23114 2013-10-31  Paul Eggert  <eggert@cs.ucla.edu>
23116         obstack: pacify HP C
23117         * lib/obstack.h (obstack_free) [!__GNUC__]: Rewrite to avoid
23118         warning "conversion from pointer to smaller integer" from HP
23119         C-ANSI-C - cc version B9007AA/B3910B A.06.26.  It's safe to assume
23120         C89 or later nowadays, so cast to void instead of int.  Privately
23121         reported by H.Merijn Brand.  Also, change header to match glibc's,
23122         to make checking against glibc easier.
23124 2013-10-29  Jim Meyering  <meyering@fb.com>
23126         maint.mk: prefer gpgv2 over gpgv
23127         * top/maint.mk (gpgv): Use gpgv2 if present, else gpgv.
23128         (gpg_key_ID): Use $(gpgv), rather than hard-coding "gpgv".
23129         Reported by Gary Vaughan.
23131 2013-10-30  Paul Eggert  <eggert@cs.ucla.edu>
23133         isnan: port to VAX
23134         Reported by John Klos for NetBSD-5/VAX in
23135         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00133.html>.
23136         * lib/isnan.c (IEEE_FLOATING_POINT): New macro, stolen from Emacs.
23137         (FUNC): Use it.
23139 2013-10-28  Jim Meyering  <meyering@fb.com>
23141         gnulib-tool: protect against CDPATH
23142         * gnulib-tool: Many "cd" built-in functions print a directory name
23143         to stdout when CDPATH is set, e.g.,
23144           $ bash -c 'CDPATH=/; cd tmp'
23145           /tmp
23146         Unset it, when possible.  Prompted by a comment from Bruce Korb.
23148         maint.mk: restore functionality removed by recent change...
23149         Sunday's change, v0.0-8062-g6b24f60, may have appeared correct from
23150         the context of a shallow-cloned gnulib repository: "git describe"
23151         would fail in such a directory.  However, that change made it so
23152         the reported gnulib revision no longer includes the version number
23153         or a commit count, even when run from a full clone.
23154         * top/maint.mk (gnulib-version): Use the full "git describe"
23155         output when possible, e.g., the form above, rather than the
23156         abbreviated, no-tag, no-commit-count string, and fall back to
23157         using a 10-byte hash, rather than the default minimal-length
23158         hash prefix, since while the minimal-length one may be fine today,
23159         it is likely not to be unique for very long.
23161 2013-10-26  Jim Meyering  <meyering@fb.com>
23163         maint.mk: fix "release" target to build _version
23164         This fixes a bug in README-release whereby following the outlined
23165         steps, one would publish a tarball whose programs would report
23166         --version output not consistent with the package version number.
23167         This bug caused grep-2.15 to produce a grep program whose
23168         --version option made it print 2.14.56-1e3d rather than 2.15.
23169         * top/maint.mk (release): Making this target build "_version"
23170         ensures that the new version number is reflected in configure.
23172 2013-10-21  Ben Pfaff  <blp@cs.stanford.edu>
23174         install-reloc: Support multi-binary installation.
23175         * build-aux/install-reloc: Support installing multiple programs in
23176         one invocation, as done by Automake starting with commit
23177         4295fe33eb23f (Multi-file install for PROGRAMS.).  From Bruno
23178         Haible <bruno@clisp.org>, archived at
23179         http://lists.debian.org/debian-bsd/2012/05/msg00032.html.
23180         Reported by Sylvain <beuc@gnu.org>.
23182 2013-10-21  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
23184         selinux-h: Really build without selinux when library is missing.
23185         * m4/selinux-selinux-h.m4: When the selinux library is missing, really
23186         continue without selinux, as already told in the warning message.
23188 2013-10-21  Jim Meyering  <meyering@fb.com>
23190         regex: also remove dependency on HAVE_WCSCOLL
23191         * lib/regex_internal.h: Remove final vestige of the wcscoll dependency.
23193 2013-10-21  Reuben Thomas  <rrt@sc3d.org>
23195         xfreopen: Fix typo. s/frepoen/freopen/
23196         * lib/xfreopen.c: Fix description.
23197         * modules/xfreopen: Likewise.
23199 2013-10-21  Jim Meyering  <meyering@fb.com>
23201         regex: don't depend on wcscoll
23202         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wcscoll.
23203         It is no longer used.
23205 2013-10-20  Jim Meyering  <meyering@fb.com>
23207         error: add the printf attribute to a static function
23208         * lib/error.c (error_tail): Add the printf attribute, to placate
23209         gcc's -Werror=suggest-attribute=format option.
23211 2013-09-30  Jim Meyering  <meyering@fb.com>
23213         fpending, obstack, strerror-override: use pure+const function attrs
23214         * lib/fpending.h (__fpending): Declare with the "pure" attribute.
23215         * lib/obstack.c (_obstack_allocated_p): Likewise.
23216         * lib/obstack.h (_obstack_memory_used): Likewise.
23217         (_obstack_memory_used): Likewise.
23218         * lib/strerror-override.h (strerror_override): Declare with
23219         the "const" attribute.
23221 2013-10-18  Eric Blake  <eblake@redhat.com>
23223         extern-inline: make safe for -Wundef usage
23224         Reported by Vladimir 'phcoder' Serbinenko in
23225         https://lists.gnu.org/r/bug-gnulib/2013-10/msg00078.html
23226         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc.
23228 2013-10-16  Paul Eggert  <eggert@cs.ucla.edu>
23230         mkfifo-tests, etc.: allow HP-UX 11.11 bug
23231         Problem reported by Daniel Richard G. in
23232         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00068.html>.
23233         * doc/posix-functions/mkfifo.texi (mkfifo):
23234         * doc/posix-functions/mkfifoat.texi (mkfifoat):
23235         * doc/posix-functions/mknod.texi (mknod):
23236         * doc/posix-functions/mknodat.texi (mknodat):
23237         Document the HP-UX 11.11 bug.
23238         * tests/test-mkfifo.h (test_mkfifo):
23239         Allow the HP-UX 11.11 bug.
23241 2013-10-14  Paul Eggert  <eggert@cs.ucla.edu>
23243         acl: allow cross-compilation to Gentoo
23244         Problem reported by Gabriel Marcano in
23245         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00058.html>.
23246         * m4/acl.m4 (gl_ACL_GET_FILE): When cross-compiling,
23247         test only whether it links.
23249 2013-10-13  Paul Eggert  <eggert@cs.ucla.edu>
23251         mgetgroups: remove dependency on realloc-gnu
23252         The dependency violates the comment in realloc-gnu, which
23253         says that tests can't depend on realloc-gnu; some tests depend
23254         on mgetgroups, so mgetgroups can't depend on realloc-gnu.
23255         Problem reported by Daniel Richard G. in
23256         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00056.html>.
23257         * lib/mgetgroups.c (mgetgroups): Don't call realloc (NULL, 0).
23258         * modules/mgetgroups (Depends-on): Depend on realloc-posix,
23259         not realloc-gnu.
23261 2013-10-12  Paul Eggert  <eggert@cs.ucla.edu>
23263         regex-tests: port to HP-UX 11.11
23264         Problem reported by Daniel Richard G. in
23265         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00052.html>.
23266         * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD.
23268 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
23270         verify: document some 'assume' pitfalls
23271         * doc/verify.texi (Compile-time Assertions):
23272         Mention that 'assume (E)' can sometimes slow things down.
23273         Use CHAR_MAX + 1, not UCHAR_MAX + 1.
23275 2013-10-10  Eric Blake  <eblake@redhat.com>
23277         strtoumax: fix typo in previous commit.
23278         * modules/strtoumax (Depends-on): Fix typo.
23279         * modules/strtoimax (Depends-on): Likewise.
23281 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
23283         strtoumax: port to Solaris 8
23284         This problem was introduced in the recent HP-UX patch.
23285         Reported by Tom G. Christensen in
23286         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00037.html>.
23287         * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
23288         and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
23290 2013-10-09  Paul Eggert  <eggert@cs.ucla.edu>
23292         strtoimax, strtoumax: port to HP-UX 11.11
23293         Problem reported by Daniel Richard G. in
23294         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00023.html>.
23295         * lib/inttypes.in.h (strtoumax): Replace strtoumax if
23296         REPLACE_STRTOUMAX, thus treating it consistently with strtoimax.
23297         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for
23298         REPLACE_STRTOUMAX.
23299         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX):
23300         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX):
23301         Replace the function if defined as a macro but not as a function.
23302         * modules/inttypes-incomplete (inttypes.h): Substitute
23303         REPLACE_STRTOUMAX.
23304         * modules/strtoumax (configure.ac): Replace strtoumax if
23305         REPLACE_STRTOUMAX.
23307 2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
23309         strtoimax: port to HP-UX 11.11
23310         Problem reported by Daniel Richard G.
23311         * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
23312         (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
23313         they might clash with inttypes.h.
23315 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
23317         New module 'count-trailing-zeros'.
23318         * MODULES.html.sh: Mention it.
23319         * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
23320         * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
23321         * modules/count-trailing-zeros-tests:
23322         * tests/test-count-trailing-zeros.c:
23323         New files.
23325         count-leading-zeros: port to MSC; support types wider than 64 bits
23326         The ideas behind the MSC port are stolen from Emacs.
23327         * lib/count-leading-zeros.h:
23328         Don't include verify.h: it's no longer needed, as types wider than
23329         64 bits are now supported.
23330         (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
23331         performance with MSC.  All uses changed.  Do not assume that TYPE
23332         has at most 64 bits.
23333         (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
23334         All uses changed.  Fold the subtraction from 31 into the table.
23336         count-one-bits: port to MSC; support types wider than 64 bits
23337         The ideas behind the MSC port are stolen from Emacs.
23338         * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
23339         * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
23340         Don't include verify.h: it's no longer needed, as types wider than
23341         64 bits are now supported.
23342         (COUNT_ONE_BITS_GENERIC): New macro.
23343         (popcount_supported) [_MSC_VER]: New inline function.
23344         (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
23345         performance with MSC.  All uses changed.  Do not assume that TYPE
23346         has at most 64 bits.
23347         * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
23349 2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
23351         mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
23352         * lib/mountlist.c (read_file_system_list): fix leak of directory
23353         streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
23355 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
23357         tests: improve diagnostic when an assertion fails
23358         * tests/macros.h (ASSERT): Report the assertion that failed.
23360 2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
23362         verify: new macro 'assume'
23363         This is taken from Emacs, and should be generally useful.
23364         * doc/verify.texi (assume): Document it.
23365         * lib/verify.h (assume): New macro.
23366         (__has_builtin): Expand to 0 if not defined.
23368 2013-09-26  Eric Blake  <eblake@redhat.com>
23370         dup2, dup3: work around another cygwin crasher
23371         * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
23372         * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
23373         * tests/test-dup2.c (main): Likewise.
23374         * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
23375         * lib/dup3.c (dup3): Likewise.
23376         * doc/posix-functions/dup2.texi (dup2): Document it.
23377         * doc/glibc-functions/dup3.texi (dup3): Likewise.
23379         getdtablesize: work around cygwin issue
23380         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
23381         * modules/getdtablesize (configure.ac): Build replacement.
23382         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
23383         * modules/unistd (Makefile.am): Expose the witness.
23384         * lib/unistd.in.h (getdtablesize): Declare replacement.
23385         * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
23386         * tests/test-getdtablesize.c (main): Test it.
23387         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
23389 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
23391         pmccabe2html: escaping of special characters
23392         Escape all '<', '>', and '&' in HTML output.
23393         * build-aux/pmccabe2html (html_fnc): Call gsub()
23394         instead of sub() to capture all '<', '>', and '&'.
23395         Neither of '<' and '>' is special in a regexp,
23396         so first arguments to gsub() are corrected. Also,
23397         in replacement strings, ampersand must be escaped.
23398         Finally, '&' must be handled first, then '<' and '>'.
23400 2013-09-24  Eric Blake  <eblake@redhat.com>
23402         manywarnings: enable nicer gcc warning messages
23403         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
23404         some -f options for optimal warnings.
23406 2013-09-21  Jim Meyering  <meyering@fb.com>
23408         timespec: use the new TIMESPEC_RESOLUTION in a few more places
23409         * lib/timespec-add.c (timespec_add): Also replace 999999999
23410         with TIMESPEC_RESOLUTION - 1.
23411         * lib/timespec-sub.c (timespec_sub): Likewise.
23413 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
23415         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
23416         Problem reported by Dagobert Michelsen via Eric Blake in
23417         <http://lists.gnu.org/r/bug-gnulib/2013-09/msg00052.html>.
23418         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
23419         not AC_COMPILE_IFELSE.
23421 2013-09-23  Eric Blake  <eblake@redhat.com>
23423         configmake: support new --runstatedir option
23424         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
23425         even if autoconf was too old to provide the command line option.
23426         * modules/configmake (Makefile.am): Propagate it to .h file.
23428 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
23430         ctype, string: depend on extern-inline
23431         This is needed to complete the recent OS X fixes.
23432         Also, fix related documentation as suggested by Eric Blake.
23433         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
23434         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
23435         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
23436         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
23437         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
23438         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
23439         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
23440         * doc/posix-functions/toupper.texi:
23441         List the 'ctype' gnulib module.
23442         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
23443         * doc/posix-functions/strncpy.texi:
23444         List the 'string' gnulib module.
23445         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
23446         Add string.
23447         * modules/ctype, modules/string (Depends-on): Add extern-inline.
23449 2013-09-19  Pádraig Brady  <P@draigBrady.com>
23451         userspec: support optional parameters to parse_user_spec()
23452         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
23453         then avoid group processing and treat the full spec as a user.
23454         (parse_with_separator): Allow the USERNAME and GROUPNAME to
23455         be optional params (NULL), in which case they're ignored.
23457 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
23459         timespec: new function make_timespec, and new constants
23460         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
23461         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
23462         (make_timespec): New function.
23463         * lib/dtotimespec.c (dtotimespec):
23464         * lib/timespec-add.c (timespec_add):
23465         * lib/timespec-sub.c (timespec_sub):
23466         * lib/utimens.c (validate_timespec):
23467         * lib/utimensat.c (rpl_utimensat):
23468         Use these new constants and functions.
23470         stdio: OS X port of putc_unlocked + extern inline
23471         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
23472         * doc/posix-functions/putc_unlocked.texi:
23473         * doc/posix-functions/putchar_unlocked.texi:
23474         Document this portability problem.
23476         signal: OS X port of sigaddset etc. + extern inline
23477         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
23478         (sigismember): #undef on problematic Apple platforms.
23479         * doc/posix-functions/sigaddset.texi:
23480         * doc/posix-functions/sigdelset.texi:
23481         * doc/posix-functions/sigemptyset.texi:
23482         * doc/posix-functions/sigfillset.texi:
23483         * doc/posix-functions/sigismember.texi:
23484         Document this portability problem.
23486         extern-inline: do not always suppress extern inline on OS X
23487         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
23488         extern inline on Apple only if the particular compile-time
23489         configuration is known to have the problem.
23490         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
23491         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
23492         other Gnulib modules.
23494         extern-inline: document fixes for ctype and wctype macros
23495         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
23496         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
23497         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
23498         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
23499         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
23500         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
23501         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
23502         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
23503         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
23504         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
23505         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
23506         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
23507         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
23508         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
23509         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
23510         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
23511         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
23512         * doc/posix-functions/strncpy.texi:
23513         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
23514         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
23515         Document that Gnulib fixes portability problems with these
23516         functions on OS X 10.8 and earlier when called from plain inline
23517         or extern inline functions.
23519 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
23521         fflush, freadahead, fseeko: Fix for Android
23522         Suggested by Bruno Haible in:
23523         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00306.html>
23524         * lib/stdio-impl.h: Use local __sfileext definition.
23526 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
23528         pmccabe2html: Portability to other awk versions.
23529         The functions systime() and strftime() are available
23530         in Gawk only.  Properly close two HTML-tags 'style'
23531         and 'span'.
23532         * build-aux/pmccabe2html (BEGIN): Store timing
23533         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
23534         systime() in HTML_COMMENT.
23535         (html_header): Correctly close tag 'style'.
23536         (END): Replace strftime() by CHRONOS_TIME.  Close
23537         tag 'span' correctly, not as 'div'.
23539 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
23541         getgroups: statement without effect
23542         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
23543         Change equality conditional to expected assignment.
23545 2013-09-09  Eric Blake  <eblake@redhat.com>
23547         glob: fix compilation
23548         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
23550 2013-09-07  Eric Blake  <eblake@redhat.com>
23552         glob: fix build for platforms without __THROW
23553         * lib/glob.in.h (__THROW): Add definition again.
23555 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
23557         regex-quote: fix buffer access out of bounds
23558         http://lists.gnu.org/r/bug-gnulib/2013-09/msg00001.html
23559         * lib/regex-quote.c (regex_quote_spec_pcre):
23560         Fix typo that resulted in an out-of-bounds read.
23562 2013-09-04  Eric Blake  <eblake@redhat.com>
23564         glob: avoid -Wattribute warnings on glibc
23565         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
23566         __THROWNL, not __THROW, on static functions.
23567         * lib/glob.in.h (__THROW): Adjust...
23568         (__THROWNL): ...accordingly.
23570 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
23572         headers: check that _GL_INLINE_HEADER_BEGIN is defined
23573         Suggested by Bruce Korb in:
23574         http://lists.gnu.org/r/bug-gnulib/2013-08/msg00070.html
23575         * doc/extern-inline.texi (extern inline):
23576         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
23577         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
23578         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
23579         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
23580         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
23581         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
23582         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
23583         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
23584         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
23585         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
23586         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
23587         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
23588         * lib/xtime.h:
23589         Check that _GL_INLINE_HEADER_BEGIN is defined.
23591 2013-08-29  Pádraig Brady  <P@draigBrady.com>
23593         bootstrap: remove the --version requirement from ancillary tools
23594         * build-aux/bootstrap (check_exists): A new refactored function to
23595         determine if a command exists.
23596         (find_tool): Use the new function which does not require the
23597         --version option to be supported.
23598         (check_versions): Use the new function.
23600 2013-08-26  Simon Josefsson  <simon@josefsson.org>
23602         gc: support HMAC-SHA256 and HMAC-SHA512.
23603         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
23604         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
23605         functions.
23606         (gc_hmac_md5): Use symbolic constant.
23607         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
23608         (gc_hmac_sha256, gc_hmac_sha512): New functions.
23609         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
23610         * m4/sha256.m4: Protect against empty expansion.
23611         * m4/sha512.m4: Likewise.
23612         * lib/hmac-sha256.c: New file.
23613         * lib/hmac-sha512.c: Likewise.
23614         * m4/gc-hmac-sha256.m4: Likewise.
23615         * m4/gc-hmac-sha512.m4: Likewise.
23616         * m4/gc-sha256.m4: Likewise.
23617         * m4/gc-sha512.m4: Likewise.
23618         * modules/crypto/gc-hmac-sha256: Likewise.
23619         * modules/crypto/gc-hmac-sha256-tests: Likewise.
23620         * modules/crypto/gc-hmac-sha512: Likewise.
23621         * modules/crypto/gc-hmac-sha512-tests: Likewise.
23622         * modules/crypto/hmac-sha256: Likewise.
23623         * modules/crypto/hmac-sha256-tests: Likewise.
23624         * modules/crypto/hmac-sha512: Likewise.
23625         * modules/crypto/hmac-sha512-tests: Likewise.
23626         * tests/test-gc-hmac-sha256.c: Likewise.
23627         * tests/test-gc-hmac-sha512.c: Likewise
23628         * tests/test-hmac-sha256.c: Likewise.
23629         * tests/test-hmac-sha512.c: Likewise
23631 2013-08-24  Daiki Ueno  <ueno@gnu.org>
23633         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
23634         of AC_CHECK_DECLS.
23636 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
23638         selinux-at: omit unnecessary include
23639         * lib/selinux-at.c: Don't include dosname.h; not needed, since
23640         this source file doesn't use its macros, and subsidiary files that
23641         use the macros already include it.
23643 2013-08-21  Eric Blake  <eblake@redhat.com>
23645         d-ino: avoid false negative on symlink
23646         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
23647         Reported by Stephane Chazelas.
23649 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
23651         bootstrap: port to OpenBSD sed
23652         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
23653         does not interpret `-' as a file argument to mean stdin.
23655 2013-08-15  Eric Blake  <eblake@redhat.com>
23657         warnings: minor optimization
23658         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
23660         warnings: check -Wfoo rather than -Wno-foo
23661         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
23662         -Wno-, test if the compiler recognizes the positive form instead.
23664 2013-08-15  Karl Berry  <karl@gnu.org>
23666         * config/srclist-update: add option "doclicense" to placate
23667         pulling *.texi files from Emacs.  Write terse usage
23668         documentation at the top.
23670 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
23672         xvasprintf-tests: port to GCC with hardening flags
23673         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
23674         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
23675         http://lists.gnu.org/r/bug-diffutils/2013-08/msg00002.html
23677 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
23679         fpending: port to recent Cygwin change to stdio_ext.h
23680         Reported by LRN in
23681         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00028.html>.
23682         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
23683         just declare __fpending unless it's a macro.
23684         A duplicate decl shouldn't hurt.
23685         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
23686         call compiles and links, instead of separately checking for
23687         decl and lib function.
23688         * modules/fpending (configure-ac):
23689         Adjust to fpending.m4's renaming of shell variable.
23691 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
23693         sys_time: port to OpenBSD
23694         * lib/sys_time.in.h: Simply delegate to the system's header
23695         in the BSDish cases as well.  Problem reported by Mike Miller in
23696         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00016.html>.
23697         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
23698         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
23699         wider than time_t.
23701 2013-08-09  Pádraig Brady  <P@draigBrady.com>
23703         bootstrap: support checksum utils having -c but not --status
23704         * build-aux/bootstrap: Only look for sha1sum if updating po files.
23705         Add sha1 to the list of supported checksum utils since it's now
23706         supported through adjustments below.
23707         (update_po_files): Remove the use of --status
23708         in a way that will suppress all error messages, but since this is
23709         only used to minimize updates, it shouldn't cause an issue.
23710         Exit early if there is a problem updating the po file checksums.
23711         (find_tool): Remove the check for --version support as this
23712         is optional as per commit 86186b17.  Don't even check for the
23713         presence of the command as if that is needed, it's supported
23714         through configuring prerequisites in bootstrap.conf.
23715         Prompt that when a tool isn't found, one can define an environment
23716         variable to add to the hardcoded search list.
23718 2013-08-05  Jim Meyering  <meyering@fb.com>
23720         regex: port to non-glibc/lock-using systems
23721         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
23722         system with GNULIB_LOCK would fail due to absence of the
23723         included "glthread/lock.h".  This would affect any package
23724         for which the "lock" module is used only by the regex module,
23725         and not explicitly used.
23726         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
23727         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
23728         Add a dependency on the "lock" module.
23730 2013-07-20  Daiki Ueno  <ueno@gnu.org>
23732         localecharset: make locale_charset thread-safe on Mac OS X
23733         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
23734         instead of MB_CUR_MAX.
23736 2013-07-20  Daiki Ueno  <ueno@gnu.org>
23738         gettext: update to version 0.18.3
23739         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
23740         require AC_PROG_SED to allow user to specify custom sed command when
23741         generating en@quot PO file.
23743 2013-07-18  Werner Lemberg  <wl@gnu.org>  (tiny change)
23745         bootstrap: use correct source when copying build-aux files
23746         * build-aux/bootstrap (gnulib_extra_files): This variable is
23747         relative to upstream gnulib layout, not downstream.
23749 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
23751         tmpdir: fix bug in VMS port
23752         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
23753         See Steven M. Schweda in
23754         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00026.html>.
23756 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
23758         tmpdir: port to VMS, to // != /, and to long dirs
23759         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
23760         __secure_getenv, so that we're more like the glibc version.
23761         All uses changed.
23762         (path_search): Don't put slash after directory if __VMS.
23763         Problem reported by Steven M. Schweda in
23764         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00019.html>.
23765         Simplify code to add slash; no need for a loop.
23766         Do not remove trailing slash from "//".
23767         Do not assume dlen <= INT_MAX.
23769 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
23771         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
23772         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
23773         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
23774         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00015.html>.
23776         accept4, dup3, pipe2: port to Cygwin
23777         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
23778         * lib/accept4.c (accept4) [O_BINARY]:
23779         * lib/dup3.c (dup3) [O_BINARY]:
23780         * lib/pipe2.c (pipe2) [O_BINARY]:
23781         Use set_binary_mode, not setmode.
23782         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
23783         * modules/binary-io (Depends-on): Remove module indicator.
23784         These last two bits undo the previous change to pipe2 and binary-io.
23786 2013-07-09  Pádraig Brady  <P@draigBrady.com>
23788         mountlist: add support for deallocating returned list entries
23789         * lib/mountlist.c (free_mount_entry): A new exported function
23790         to deallocate a mount list entry.
23791         (read_file_system_list): Refactor to use the new deallocation function.
23792         Suggested by Anton Ovchinnikov.
23794 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
23796         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
23797         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
23798         * lib/stdalign.in.h (_Alignas, _Alignof):
23799         Port to FreeBSD 9.1, and to C11 and C++11.
23800         (_Alignas): Also support ICC.
23801         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
23802         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
23804 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
23806         fnmatch: don't goto over declaration
23807         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
23808         undefined behavior for goto over a declaration.
23809         Problem reported by Charlie Brown in
23810         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00009.html>.
23812         pipe2: decouple from binary-io a bit
23813         This is for Emacs, which needs pipe2 but not binary-io.
23814         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
23815         * modules/binary-io (Depends-on): Add module indicator.
23817 2013-07-03  Eric Blake  <eblake@redhat.com>
23819         mgetgroups: relax license to LGPLv2+
23820         * modules/getugroups (License): Change from GPLv3+.
23821         * modules/mgetgroups (License): Likewise.
23822         * modules/getgroups (License): Change from LGPLv3+.
23824         xalloc-oversized: relax license to LGPLv2+
23825         * modules/xalloc-oversized (License): Change from GPLv3+.
23827         nproc: relax license to LGPLv2+
23828         * modules/nproc (License): Change from LGPLv3+.
23830         bootstrap: honor --no-git
23831         * build-aux/bootstrap: Don't even try to use git when user is
23832         pointing to a static checkout.
23834 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
23836         ignore-value: port to gcc -pedantic
23837         * lib/ignore-value.h (ignore_value):
23838         Port to gcc -pedantic, by using __extension__.
23839         Reindent as per usual gnulib style nowadays.
23840         Simplify GCC version check.
23842 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
23844         extern-inline: port to gcc -std=c89
23845         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
23846         Do not use __gnu_inline__ if pedantic and pre-C99.
23848 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
23850         doc: document extern-inline
23851         * doc/extern-inline.texi: New file.
23852         * doc/gnulib.texi (alloca-opt): Include it.
23853         * m4/extern-inline.m4: Move some comments to documentation,
23854         and others closer to what they describe.
23856         doc: chatter less
23857         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
23858         (updated-stamp): Use it.  This causes 'make' to output just
23859         one file name rather than zillions.
23861         fflush, fseeko: port to musl cross-compiles
23862         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
23863         on some implementation that (1) is not known to be buggy,
23864         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
23865         cross-compiled to so we can't easily check for lack of
23866         conformance.  This is for cross-compiling to musl.
23867         Reported by Rich Felker in
23868         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00043.html>.
23869         * m4/fclose.m4 (gl_FUNC_FCLOSE):
23870         * m4/fflush.m4 (gl_FUNC_FFLUSH):
23871         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
23872         Adjust to above change.
23873         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
23874         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
23875         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
23876         known not to work, or unknown.
23878 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
23880         msvc-inval: port to mingw-w64
23881         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
23882         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
23883         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00039.html>.
23885 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
23887         getcwd-lgpl: port to Tru64
23888         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
23889         Problem reported by Steven M. Schweda in
23890         <http://lists.gnu.org/r/bug-gzip/2013-06/msg00010.html>.
23892         tests: port large-fd POSIX spawn tests to OS X
23893         Problem reported by Daiki Ueno in
23894         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00031.html>.
23895         * tests/test-posix_spawn_file_actions_addclose.c:
23896         * tests/test-posix_spawn_file_actions_adddup2.c:
23897         * tests/test-posix_spawn_file_actions_addopen.c:
23898         Include <limits.h>, for OPEN_MAX, if available.
23899         (big_fd): New static function.
23900         (main): Use it.
23902 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
23904         tests/nap.h: use an adaptive delay to avoid ctime update issues
23905         The recent change in nap.h (5191133e) decreased the probability of lost
23906         races to about a third, however such problems could still be observed
23907         in virtual machines and openSUSE's OBS.
23908         Before, nap() detected the needed time once empirically and then used
23909         that delay (together with a small correction multiplier) in further
23910         calls.  This problem has been reported and discussed several times,
23911         including guesses about possible kernel issues:
23912         https://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html
23913         http://lists.gnu.org/r/coreutils/2012-03/msg00088.html
23914         https://lists.gnu.org/r/bug-gnulib/2011-11/msg00226.html
23915         http://bugs.gnu.org/12820
23916         https://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html
23917         https://lists.gnu.org/r/bug-gnulib/2009-11/msg00007.html
23918         Now, nap() avoids the race alltogether by verifying on a reference
23919         file whether a timestamp difference has happened.
23920         * tests/nap.h (nap_fd): Define file descriptor variable for the
23921         witness file.
23922         (nap_works): Change return value to bool.  Change passing
23923         the old file's status by value instead of by reference as this function
23924         does no longer update that timestamp; rename the function argument from
23925         st to old_st.  Remove the local variables cdiff and mdiff because that
23926         function now returns true/false instead of the precise delay.
23927         (guess_delay): Remove function.
23928         (clear_tmp_file): Add new function to close and unlink the witness file.
23929         (nap): Instead of re-using the delay which has been calculated during
23930         the first call, avoid the race by actually verifying that a timestamp
23931         difference can be observed on the current file system.  Use an adaptive
23932         approach for the delay to minimize execution time.  Assert that the
23933         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
23934         = 2^31 - 1 = 2.1s.
23935         Use atexit to call clear_tmp_file when the process terminates.
23937 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
23939         sig2str: port to C++
23940         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
23941         Reported by Daniel J Sebald in
23942         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00000.html>.
23944 2013-05-30  Eric Blake  <eblake@redhat.com>
23946         docs: mention cygwin shortcoming in <sys/un.h>
23947         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
23949         vasnprintf: silence mingw compiler warning
23950         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
23952 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
23954         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
23955         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
23956         This fixes a porting bug I recently reintroduced in regex, and
23957         some other instances that I discovered while testing the fix.
23958         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
23959         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
23960         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
23961         with an empty argument if this is a pedantic pre-C99 GCC.
23962         * lib/verify.h: Do not use _Static_assert if this is a pedantic
23963         pre-C11 GCC.
23965         regex: adapt to locking regime instead of depending on pthread
23966         Instead of depending on pthread, adapt to whatever thread
23967         modules are in use.  Problem reported by Ludovic Courtès in
23968         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00082.html>
23969         and by Mats Erik Andersson in
23970         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00100.html>.
23971         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
23972         Support either the 'lock' module, or the 'pthread' module, or
23973         no module.
23974         (lock_lock, lock_unlock): New macros.
23975         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
23976         * modules/lock, modules/pthread (configure.ac): Add module indicator.
23977         * modules/regex (Depends-on): Remove pthread.
23979 2013-05-22  Eric Blake  <eblake@redhat.com>
23981         getgroups: document portability issues
23982         * doc/glibc-functions/initgroups.texi (initgroups): Mention
23983         multithread safety.
23984         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
23985         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
23986         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
23987         getugroups.
23988         * doc/posix-functions/getgroups.texi (getgroups): Mention
23989         multithread safety and mgetgroups.
23991 2013-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
23993         test-lchown, test-chown: also skip test if chown fails with EPERM
23994         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
23995         skip this test, to handle FAT file systems.
23996         * tests/test-chown.h (test_chown): Likewise.
23998 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
24000         regex: fix dfa race in multithreaded uses
24001         Problem reported by Ludovic Courtès in
24002         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00058.html>.
24003         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
24004         New macros.  All uses of __libc_lock_define, __libc_lock_init
24005         changed to use the first two of these.
24006         (__libc_lock_lock, __libc_lock_unlock): New macros, for
24007         non-glibc platforms.
24008         (struct re_dfa_t): Define the lock unconditionally.
24009         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
24010         '#ifdef _LIBC"s.
24011         * modules/regex (Depends-on): Add pthread, if we use the
24012         included regex.
24014         * lib/regcomp.c: Do actions that are not needed for glibc,
24015         but may be needed elsewhere.
24016         (regfree, re_compile_internal): Destroy the lock.
24017         (re_compile_internal): Check for lock-initialization failure.
24019         malloca: port to compilers that reject size-zero arrays
24020         This fixes a bug introduced in my previous patch.
24021         * lib/malloca.c (struct preliminary_header): Use an int
24022         rather than a character array of size int; that's simpler.
24023         (struct header): Remove, replacing with ...
24024         (union header): New type.  This avoids the need for declaring a
24025         character array of size zero, which is not allowed on some platforms.
24026         All uses changed.
24028 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
24030         parse-datetime, tests: don't use "string" + int
24031         Recent versions of 'clang' complain about C source code that
24032         uses expressions of the form '"string literal" + integer',
24033         I guess on the theory that it's confusing for readers who are
24034         used to C++.  On those grounds I suppose it's OK to make this
24035         minor style change.
24036         * lib/parse-datetime.y (parse_datetime):
24037         * tests/test-fchdir.c (main):
24038         * tests/test-snprintf-posix.h (test_function):
24039         * tests/test-snprintf.c (main):
24040         * tests/test-vasnprintf-posix.c (test_function):
24041         * tests/test-vasnprintf.c (test_function):
24042         * tests/test-vsnprintf.c (main):
24043         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
24044         Rewrite '"str" + E' to '&"str"[E]'.
24046 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
24048         argmatch: port to C++
24049         * lib/argmatch.h [__cplusplus]: Add extern "C".
24051         argp: typo fix
24052         * lib/argp-help.c: Typo in comment.
24054 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
24056         manywarnings: update for GCC 4.8.0
24057         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
24058         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
24059         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
24060         -Wmissing-noreturn, as they are duplicates of other warnings.
24061         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
24062         was documented to be flaky in earlier versions of GCC.
24064         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
24065         * tests/test-spawn.c (main):
24066         * tests/test-sys_socket.c (main):
24067         * tests/test-sys_wait.c (main):
24068         Don't have a switch value that isn't covered by a case.
24070         getaddrinfo-tests: port --enable-gcc-warnings to clang
24071         * tests/test-getaddrinfo.c (simple):
24072         Avoid casts from looser to stricter-aligned pointers.
24074         thread: port --enable-gcc-warnings to clang
24075         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
24076         Include <signal.h>, to pacify a warning about pthread_sigmask.
24078         stdio: use __REDIRECT for fwrite, fwrite_unlocked
24079         * lib/stdio.in.h (fwrite):
24080         When working around bug 11959, use __REDIRECT rather than '#define
24081         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
24082         fix the -Wunused-value issue with clang, and it works with GCC too.
24083         Problem with targeting reported by Eric Blake in
24084         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00067.html>.
24085         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
24086         debugging the fwrite issue.
24088         stdio: port --enable-gcc-warnings to clang
24089         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
24090         since the GCC workaround for fwrite does not pacify clang.
24092         sig2str: port --enable-gcc-warnings to clang
24093         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
24095         obstack: port --enable-gcc-warnings to clang
24096         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
24097         Avoid casts from looser to stricter-aligned pointers.
24099         memchr2: port --enable-gcc-warnings to clang
24100         * lib/memchr2.c (memchr2):
24101         Avoid casts from looser to stricter-aligned pointers.
24103         mbsstr: port --enable-gcc-warnings to clang
24104         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
24105         Avoid casts from looser to stricter-aligned pointers.
24107         malloca: port --enable-gcc-warnings to clang
24108         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
24109         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
24111         inttostr: port --enable-gcc-warnings to clang
24112         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
24114         warnings: port to clang
24115         Problem reported by Daniel P. Berrange via Eric Blake in
24116         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00055.html>.
24117         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
24118         (gl_WARN_ADD): Use it.
24120 2013-05-11  Jim Meyering  <meyering@fb.com>
24122         quotearg: do not read beyond end of buffer
24123         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
24124         end of an ARG for which no length was specified.  With an N-byte
24125         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
24126         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
24127         via coreutils' misc/sort-debug-keys.sh test and detected by running
24128         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
24129         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
24130         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
24131         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
24132         characters correctly."
24134 2013-05-11  Daiki Ueno  <ueno@gnu.org>
24136         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
24137         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
24138         compilation target is Mac OS X 10.6.
24139         Problem reported by parafin and Andoni Morales in
24140         <http://savannah.gnu.org/bugs/?37844> and
24141         <http://lists.gnu.org/r/bug-gettext/2013-05/msg00007.html>.
24143 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
24145         mkdir-p: remove assumptions about umask and mode
24146         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
24147         umask is 0, or that MODE is a subset of MODE_BITS.
24149 2013-05-10  Eric Blake  <eblake@redhat.com>
24151         maint.mk: catch more abuse of HAVE_DECL in syntax-check
24152         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
24154 2013-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
24156         deps: require Automake >= 1.9.6 in generated Makefile fragments
24158         That is the same minimal version required in the DEPENDENCIES file.
24159         Moreover, the old code generated a requirement of Automake >= 1.5,
24160         and that is an insanely outdated version.
24162         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
24163         * tests/havelib/rpathlx/Makefile.am: Likewise.
24164         * tests/havelib/rpathly/Makefile.am: Likewise.
24165         * tests/havelib/rpathlyx/Makefile.am: Likewise.
24166         * tests/havelib/rpathlz/Makefile.am: Likewise.
24167         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
24168         * tests/havelib/rpathx/Makefile.am: Likewise.
24169         * tests/havelib/rpathy/Makefile.am: Likewise.
24170         * tests/havelib/rpathz/Makefile.am: Likewise.
24172 2013-05-08  Eric Blake  <eblake@redhat.com>
24174         bootstrap: AC_INIT may have more than four parameters
24175         * build-aux/bootstrap (extract_package_name): Correctly extract
24176         non-empty tarname field.  Avoid range in regex.
24177         Based on a report by Sami Kerola <kerolasa@iki.fi>.
24179 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
24181         qacl: port to MS-Windows port of GNU Emacs
24182         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
24183         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
24184         port of GNU Emacs.  Problem reported by Eli Zaretskii in
24185         <http://bugs.gnu.org/14295#14>.
24187 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
24189         acl: include quote.h
24190         * lib/copy-acl.c: Include quote.h.
24191         * lib/set-acl.c: Likewise.
24193 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
24195         fchownat, renameat, unlinkat: update statat dependencies
24196         These modules use statat and lstatat, not fstatat; so depend on
24197         the statat module, which was split out recently from fstatat.
24198         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
24199         * modules/renameat: Likewise.  Also delete fstat.
24200         URL: http://bugs.gentoo.org/468790
24202 2013-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
24204         Assume gnulib is checked out from Git, not CVS
24206         In fact, access to the gnulib repository through CVS has been
24207         disabled, or more precisely, got broken and was never restored; see:
24208         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00008.html>
24210         Note that support for CVS is not removed completely and unthinkingly
24211         by this change: only support for CVS checkouts of gnulib itself is
24212         removed.  For example, the 'bootstrap' script still cater to .cvsingore
24213         files and CVS directories, for the benefit of those poor gnulib clients
24214         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
24216         * gnulib-tool: Simplify accordingly.
24217         * posix-modules: Likewise.
24218         * MODULES.html.sh: Likewise.
24219         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
24220         repository.
24221         * doc/gnulib-intro.texi: Likewise.
24222         * doc/gnulib-readme.texi: Likewise.
24223         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
24224         sample '.gitignore' file rather than a sample '.cvsignore'.
24225         * NEWS: Update.
24226         * m4/extensions.m4: While at it, remove a comment mistakenly referring
24227         to "CVS Autoconf" rather than "git Autoconf".
24229 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
24231         utimensat-tests, etc.: try to fix some races
24232         Problem reported by Bernhard Voelker in
24233         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html>.
24234         I don't know whether this patch fixes that race condition, but it
24235         fixes *some* race conditions, so it should be a win.
24236         * modules/chown-tests (Depends-on):
24237         * modules/fchownat-tests (Depends-on):
24238         * modules/fdutimensat-tests (Depends-on):
24239         * modules/futimens-tests (Depends-on):
24240         * modules/lchown-tests (Depends-on):
24241         * modules/stat-time-tests (Depends-on):
24242         * modules/utimens-tests (Depends-on):
24243         * modules/utimensat-tests (Depends-on):
24244         Depend on nanosleep, not usleep.
24245         * modules/chown-tests (test_chown_LDADD):
24246         * modules/lchown-tests (test_lchown_LDADD):
24247         * modules/stat-time-tests (test_stat_time_LDADD):
24248         New macro.
24249         * modules/fchownat-tests (test_fchownat_LDADD):
24250         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
24251         * modules/futimens-tests (test_futimens_LDADD):
24252         * modules/utimens-tests (test_utimens_LDADD):
24253         * modules/utimensat-tests (test_utimensat_LDADD):
24254         Add $(LIB_NANOSLEEP).
24255         * modules/stat-time-tests (Files): Add tests/nap.h.
24256         * tests/nap.h: Include <limits.h>, for INT_MAX.
24257         (lt_mtime): Remove.
24258         (diff_timespec): New function.
24259         (get_stat): Rename from get_mtime.  All callers changed.
24260         (nap_works): Determine the needed delay by inspecting the
24261         file system's timestamp jumps; this should be more reliable.
24262         Look at both mtime and ctime, and take the maximum of the two jumps.
24263         (nap_works, guess_delay):
24264         Return a nanosecond count, not a microsecond count.
24265         All callers changed.
24266         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
24267         failure.
24268         (nap): Multiply the guess by 1.125, to accommodate the case where
24269         the file system's clock is a bit slower than nanosleep's clock.
24270         * tests/test-stat-time.c (BASE): New macro.
24271         Include nap.h.
24272         (nap): Remove; nap.h now defines this.  This removes a duplicate
24273         implementation of 'nap'.
24275         utimens, utimensat: work around Solaris UTIME_OMIT bug
24276         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
24277         Linux kernel 2.6.32 does.  Work around it in the same way.
24278         * doc/posix-functions/futimens.texi (futimens):
24279         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
24280         * lib/utimens.c (fdutimens, lutimens):
24281         * lib/utimensat.c (rpl_utimensat): Work around the bug.
24283         gettext: now it's your responsibility to add -I$(top_builddir)/intl
24284         Formerly, it was your responsibility to do this for all Makefile.ams
24285         other than Gnulib's.  Now it's your responsibility to do it for
24286         Gnulib's Makefile.am, too.
24287         * NEWS: Document this.
24288         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
24290         acl: include errno.h to get errno
24291         Reported by Daiki Ueno in
24292         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00073.html>.
24293         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
24295 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
24297         tests: don't assume getdtablesize () <= 10000000
24298         * modules/cloexec-tests:
24299         * modules/dup2-tests:
24300         * modules/dup3-tests:
24301         * modules/nonblocking-tests:
24302         * modules/posix_spawn_file_actions_addclose-tests:
24303         * modules/posix_spawn_file_actions_adddup2-tests:
24304         * modules/posix_spawn_file_actions_addopen-tests:
24305         * modules/unistd-safer-tests:
24306         Depend on the getdtablesize module.
24307         * tests/test-cloexec.c:
24308         * tests/test-dup-safer.c:
24309         * tests/test-dup2.c:
24310         * tests/test-dup3.c:
24311         * tests/test-fcntl.c:
24312         * tests/test-nonblocking.c:
24313         * tests/test-posix_spawn_file_actions_addclose.c:
24314         * tests/test-posix_spawn_file_actions_adddup2.c:
24315         * tests/test-posix_spawn_file_actions_addopen.c:
24316         Don't assume getdtablesize () <= 10000000.
24318 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
24320         extern-inline: work around bug in Sun c99
24321         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
24322         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
24324 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
24326         qacl: new module, broken out from the acl module
24327         This is for GNU Emacs, which wants the acl functions but does
24328         not want 'error' invoked when they fail.
24329         * lib/acl-internal.h: Do not include error.h, quote.h.
24330         (ENOSYS, ENOTSUP): Remove; no longer needed.
24331         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
24332         * lib/acl.h: Include <stdbool.h>.
24333         (acl_errno_valid): New function.
24334         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
24335         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
24336         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
24337         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
24338         (ACL_INTERNAL_INLINE): Remove; no longer needed.
24339         * lib/file-has-acl.c (file_has_acl):
24340         * lib/qcopy-acl.c (qcopy_acl):
24341         * lib/qset-acl.c (qset_acl):
24342         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
24343         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
24344         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
24345         lib/file-has-acl.c, m4/acl.m4 to qacl module.
24346         Add lib/set-acl.c.
24347         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
24348         Add qacl.
24349         (configure.ac): Move gl_FUNC_ACL to qacl module.
24350         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
24351         Rename set-mode-acl.c to set-acl.c.
24352         * lib/acl-errno-valid.c: New file.
24353         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
24354         copy_acl function remains in copy-acl.c.
24355         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
24356         (_): Remove; not needed.
24357         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
24358         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
24359         * modules/qacl: New file, moved from the old modules/acl.
24360         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
24361         Remove set-mode-acl.c, copy-acl.c.
24362         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
24364         alignof, intprops, malloca: port better to IBM's C compiler
24365         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
24366         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
24367         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
24369 2013-04-25  Daiki Ueno  <ueno@gnu.org>
24371         wctype-h: fix gettext link error on mingw
24372         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
24373         <https://lists.gnu.org/r/bug-gettext/2013-03/msg00086.html>.
24374         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
24375         rpl_towupper and rpl_towupper.
24377 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
24379         regex-tests, regex: allow glibc re_search behavior
24380         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
24381         re_search input data to make the multi-character collating element
24382         in it clearly visible, and treat re_search return code 0 as valid.
24383         * m4/regex.m4 (gl_REGEX): Likewise.
24385 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
24387         stdalign: doc fix
24388         * doc/posix-headers/stdalign.texi (stdalign.h):
24389         Gnulib doesn't support '_Alignof expr'.
24391 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
24393         stdalign: port to stricter ISO C11
24394         ISO C11 says that _Alignof's operand must be a parenthesized type.
24395         Problem reported by Eli Zaretskii in
24396         <http://lists.gnu.org/r/emacs-devel/2013-03/msg00960.html>.
24397         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
24398         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
24400 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
24402         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
24403         Problem reported by Marco Atzeri in
24404         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00000.html>.
24405         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
24406         Simply delegate to the system <sys/select.h> in this case too.
24407         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
24408         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
24409         be needed on Solaris either.
24410         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
24411         Simply delegate to the system <sys/time.h> in this case.
24413 2013-03-19  Karl Berry  <karl@gnu.org>
24415         * build-aux/gnupload: check for erroneous (with gnupload) use of
24416         ftp-upload.gnu.org, tweak help.
24418 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
24420         copy-file, rpmatch: fix problems found by cppcheck
24421         Reported by Arno Onken in
24422         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00069.html>.
24423         * lib/rpmatch.c (try): Fix memory leak.
24424         * lib/copy-file.c: Include "ignore-value.h".
24425         (qcopy_file_preserving): Ignore chown value.
24426         * modules/copy-file (Depends-on): Add ignore-value.
24428 2013-01-27  Jim Meyering  <jim@meyering.net>
24430         prefix-gnulib-mk: give better diagnostics
24431         * build-aux/prefix-gnulib-mk: Don't just "die".
24432         Give better diagnostics upon failure.
24434 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
24436         putenv: port to Solaris 10
24437         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
24438         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
24439         is not what is wanted here.
24440         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
24441         declaration, not for its existence.
24443 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
24445         mktime: fix configure typo
24446         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
24448 2013-03-12  Eric Blake  <eblake@redhat.com>
24450         regex-tests: skip UTF-8 test on mingw
24451         * modules/regex-tests (Depends-on): Add localcharset.
24452         * tests/test-regex.c (main): Use it to skip test on mingw.
24454 2013-03-11  Eric Blake  <eblake@redhat.com>
24456         tests: make it easier to bypass alarm time in debugger
24457         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
24458         * tests/test-memmem.c (main): Likewise.
24459         * tests/test-passfd.c (main): Likewise.
24460         * tests/test-ptsname.c (main): Likewise.
24461         * tests/test-ptsname_r.c (main): Likewise.
24462         * tests/test-strcasestr.c (main): Likewise.
24463         * tests/test-strstr.c (main): Likewise.
24465         regex: port to mingw's recent addition of undeclared alarm
24466         * doc/posix-functions/alarm.texi (alarm): Document that alarm
24467         exists but still doesn't work in newer mingw.
24468         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
24469         not existence.  Ensure SIGALRM is not trapped.
24470         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
24471         * m4/regex.m4 (gl_REGEX): Likewise.
24472         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
24473         * tests/test-regex.c (main): Use correct probe for alarm.
24475         putenv: avoid compilation warning on mingw
24476         * lib/putenv.c (_unsetenv): Protect variable declaration.
24477         (putenv): Fix indentation.
24479 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
24481         unistd: don't prevent Tru64 Unix from using gnulib strtod.
24482         * lib/unistd.in.h: be careful not to include un-needed system
24483         stdlib.h from here, because that prevents gnulib stdlib.h from
24484         defining rpl_strtod correctly.
24486 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
24488         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
24489         changesets, but for the 'precision 0' test.
24490         * tests/test-vasprintf-posix.c (test_function): Don't insist on
24491         round-to-even, since POSIX says rounding is implementation-defined
24492         and OS X 10.8.2 rounds 1.51 to 1 here.
24494         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
24495         changeset.
24496         * tests/test-vasprintf-posix.c (test_function): Don't insist on
24497         round-to-even, since POSIX says rounding is implementation-defined
24498         and OS X 10.8.2 rounds 1.5 to 1 here.
24500 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
24502         vasnprintf-posix-tests: allow rounding 1.5 to 1
24503         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
24504         round-to-even, since POSIX says rounding is implementation-defined
24505         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
24506         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00019.html>.
24508         bootstrap: port to FreeBSD
24509         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
24510         that treat '--' differently.  Reported by Mats Erik Andersson in
24511         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00012.html>.
24513 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
24515         regex: rename remaining __attribute calls to __attribute__.
24516         2012-02-25 changed definition of __attribute, but left some uses
24517         unchanged, preventing compilation of regex module on most non-gcc
24518         environments.
24519         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
24520         (lookup_collation_sequence_value, build_range_exp)
24521         (build_collating_symbol): Set attributes with newly renamed
24522         __attribute__ decorator.
24523         * lib/regex_internal.c (re_string_peek_byte_case)
24524         (re_node_set_compare, re_node_set_contains): Likewise.
24525         * lib/regexec.c (acquire_init_state_context): Likewise.
24527 2013-03-06  Bruno Haible  <bruno@clisp.org>
24529         execute: Revert last change, but use a different condition.
24530         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
24531         on Windows.
24533 2013-03-05  Eric Blake  <eblake@redhat.com>
24535         execute: drop dead code
24536         * lib/execute.c (nonintr_close, nonintr_open): Delete.
24538 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
24540         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
24541         * m4/non-recursive-gnulib-prefix-hack.m4
24542         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
24543         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
24544         <http://bugs.gnu.org/10305#237>.
24546 2013-03-04  Eric Blake  <eblake@redhat.com>
24548         test-getsockopt: avoid compiler warning
24549         * tests/test-getsockopt.c (includes): Ensure close is declared.
24551 2013-03-02  Bruno Haible  <bruno@clisp.org>
24553         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
24554         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
24556 2013-03-02  Bruno Haible  <bruno@clisp.org>
24558         gettext: Update to version 0.18.2.
24559         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
24560         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
24561                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
24563 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
24565         regex: merge patches from libc
24567         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
24568         * lib/regex_internal.h (__attribute__): Rename from __attribute.
24569         All uses changed.
24570         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
24571         (re_string_wchar_at, re_string_elem_size_at):
24572         Mark function as possibly unused.
24574         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
24575         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
24576         elements compare against the byte sequence of it, not its name.
24578 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
24580         putenv: port better to native Windows
24581         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
24582         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
24583         (_unsetenv): Use _putenv if available.
24584         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
24585         a bit less likely to cause damage.
24586         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
24587         Fix the wrong value with SetEnvironmentVariable.
24588         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
24589         code better.
24591 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
24593         regex: ignore old-style-definition warnings
24594         * lib/regex.c: Add pragma to ignore these warnings.
24595         Problem reported for GNU tar by Pavel Raiskup.
24597 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
24599         getcwd: support coreutils better
24600         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
24601         but this might not be correct in coreutils, which disables
24602         the raw decl checks.  Problem reported by Nagendra in
24603         <http://bugs.gnu.org/10305#192>.
24604         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
24605         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
24606         Test the getcwd function, not any macro, since getcwd.c wants the
24607         function.
24608         * m4/getcwd.m4 (gl_FUNC_GETCWD):
24609         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
24610         compile, as might happen if there's a macro but no function.
24612         strtod: support coreutils better
24613         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
24614         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
24615         disables the raw decl checks.  This assumes there is an underlying
24616         strtod, but that's a safe assumption these days.
24617         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
24619         mountlist: port to HP NonStop
24620         Reported by Joachim Schmitz in
24621         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00084.html>.
24622         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
24623         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
24625 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
24627         extern-inline: avoid compilation error with HP-UX cc
24628         Reported by Richard Lloyd in
24629         <http://lists.gnu.org/r/bug-texinfo/2013-02/msg00030.html>.
24630         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
24631         Suppress extern inline with HP-UX cc.  This should be safe,
24632         though it may hurt performance.  Perhaps someone with some HP-UX
24633         experience can come up with a higher-performance fix.
24635 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
24637         putenv: fix heap corruption with mixed putenv/_putenv
24638         Problem reported by Michael Goffioul in
24639         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00061.html>.
24640         * lib/putenv.c (putenv) [HAVE__PUTENV]:
24641         Rely on _putenv to allocate the new environment.
24642         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
24643         * modules/putenv (configure.ac): Use it.
24645 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
24647         unsetenv etc.: port to Solaris 11 + GNU Emacs
24648         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
24649         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
24650         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
24651         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
24652         idea but is too painful to fix right now), and without this gnulib
24653         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
24654         compiling unsetenv.c on Solaris 11.  Fix the problem for
24655         unsetenv.c, and fix other similar occurrences.
24657 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
24659         secure_getenv: fix C++ declaration typo
24660         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
24661         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
24662         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00057.html>.
24664 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
24666         careadlinkat: stop exporting careadlinkatcwd
24667         Only Emacs used it directly, and Emacs no longer needs it.
24668         * NEWS: Document this simplification.
24669         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
24670         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
24671         for readlink.
24672         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
24673         Don't include stdlib.h; no longer needed.
24674         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
24675         * lib/relocwrapper.c: Adjust comment to match new dependencies.
24676         * modules/areadlink (Depends-on): Add readlink.
24677         (Maintainer): Add self.
24678         * modules/careadlinkat (Depends-on): Remove readlink.
24680         extensions: port better to HP-UX
24681         This is merged from git Autoconf.
24682         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
24683         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
24684         so that it's compatible with the value used when compiling.
24686         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
24687         Problem reported by Mats Erik Andersson in
24688         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00051.html>.
24689         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
24690         openpty function exists, not merely when we intend to replace it.
24691         This corrects the 2013-01-31 patch, which mistakenly defined
24692         HAVE_OPENPTY even on hosts that lacked it.
24694 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
24696         secure_getenv: fix include typo
24697         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
24699         secure_getenv: port better to FreeBSD and Solaris
24700         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
24701         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
24702         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
24703         This works better on BSDish platforms.
24704         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
24705         Test for issetugid if __secure_getenv is missing.
24707 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
24709         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
24710         Some of these changes are merged in from git Autoconf.
24711         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
24712         When deciding whether to define _XOPEN_SOURCE, inspect the
24713         preprocessor macro __hpux instead of the more-heavyweight
24714         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
24715         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
24716         as the key for __EXTENSIONS__.
24718         unistd: avoid namespace pollution on non-glibc systems
24719         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
24720         This avoids namespace pollution on non-glibc systems, by causing
24721         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
24722         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
24723         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00027.html>.
24725 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
24727         tmpdir: use secure_getenv
24728         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
24729         Define to secure_getenv, not getenv.
24730         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
24731         as that's now secure_getenv's job.
24732         * modules/tmpdir (Depends-on): Add secure_getenv.
24734         tempname: use secure_getenv
24735         * lib/tempname.c (__secure_getenv) [!_LIBC]:
24736         Define to secure_getenv, not getenv.
24737         * modules/tempname (Depends-on):
24738         Add secure_getenv.
24740         secure_getenv: new module
24741         * MODULES.html.sh (Extra functions based on ANSI C 89):
24742         Add secure_getenv.
24743         * doc/glibc-functions/secure_getenv.texi: New file.
24744         * doc/gnulib.texi: Include it.
24745         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
24746         New files.
24747         * lib/stdlib.in.h (secure_getenv): New decl.
24748         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
24749         * modules/stdlib (stdlib.h):
24750         Add secure_getenv checks.
24752 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
24754         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
24755         Reported for OS X 10.8.2 by Assaf Gordon in
24756         <http://bugs.gnu.org/13516>.
24757         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
24758         !HAVE_OPENAT && !HAVE_FDOPENDIR.
24759         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
24760         so that they can be kept in sync more easily.  Avoid PATH_MAX
24761         test on the Hurd.  Sync from test-getcwd.c for errno tests after
24762         mkdir or chdir failure.
24763         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
24764         lib/getcwd.c.
24765         (test_abort_bug): Do not test for the deep directory bug unless we
24766         have openat support.  Avoid PATH_MAX test on the Hurd.
24768         regex-tests, regex: fix bug: memset undeclared
24769         * tests/test-regex.c: Don't include regex.h twice.  Include
24770         string.h, to declare memset.  Christensen's report also mentioned
24771         this issue.
24772         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
24773         test-regex.c, to avoid future problems like this.  Remove
24774         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
24775         twice.
24777         regex-tests: fix link errors on older Solaris
24778         These need to link with @LIBINTL@ to get libintl_gettext.
24779         Problem reported by Tom G. Christensen in
24780         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00003.html>.
24781         * modules/regex-tests (test_regex_LDADD): New macro.
24783 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
24785         regex-tests: new module
24786         * modules/regex-tests, tests/test-regex.c: New files.
24788         regex: fix off-by-one error in configure test
24789         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
24791 2013-01-31  Eric Blake  <eblake@redhat.com>
24793         regex: avoid infinite configure test
24794         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
24796 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
24798         openpty: fix bug where HAVE_OPENPTY wasn't defined
24799         See the thread starting at:
24800         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00185.html
24801         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
24802         openpty function exists, not merely when we intend to replace it.
24804 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
24806         sys_time: port to Solaris 2.6
24807         There is a circularity problem on Solaris 2.6, where <time.h> includes
24808         <sys/time.h> for struct timespec.  The include nesting is gnulib
24809         <time.h>, system <time.h>, gnulib <sys/time.h>, system
24810         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
24811         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
24812         <sys/siginfo.h>; the last, innermost file needs struct
24813         timestruc_t, which is defined in <sys/time.h>, which has not been
24814         fully parsed.  Problem reported by Tom G. Christensen in
24815         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00113.html>.
24816         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
24817         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
24818         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
24819         uses split double-inclusion guards.
24821 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
24823         regex: test for buffer overrun
24824         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
24825         for the just-fixed regex bug.
24827 2013-01-29  Andreas Schwab  <schwab@suse.de>
24829         regex: fix buffer overrun in regexp matcher [BZ #15078]
24830         * lib/regexec.c (extend_buffers): Add parameter min_len.
24831         (check_matching): Pass minimum needed length.
24832         (clean_state_log_if_needed): Likewise.
24833         (get_subexp): Likewise.
24835 2013-01-28  Pádraig Brady  <P@draigBrady.com>
24837         mountlist: don't consider "devtmpfs" as dummy
24838         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
24839         as there is storage associcated with it.
24841 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
24843         futimens-tests, utimens-tests: Depend on gettext.
24844         This works around a problem introduced in my 2013-01-12 patch,
24845         which added @LIBINTL@ to these modules.
24846         * modules/futimens-tests (Depends-on):
24847         * modules/utimens-tests (Depends-on): Add gettext.
24849 2013-01-26  Eric Blake  <eblake@redhat.com>
24851         test-getpeername: fix typo
24852         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
24854 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
24856         bootstrap: remove the need for a sorted .gitignore file
24857         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
24858         rename to insert_if_absent(), so that we don't need or generate
24859         a sorted .gitignore file.  We do require a .gitignore with no
24860         existing duplicate entries and enforce that.
24861         (sort_patterns): Remove this function as we now use the simpler
24862         technigue of inserting blacklist entries at the top of the file,
24863         assuming gnulib won't be inserting !whitelist entries.
24865 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
24867         readlinkat: don't depend on gl_FUNC_OPENAT
24868         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
24869         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
24870         renameat.m4, symlinkat.m4; but one thing at a time.
24872         statat: new module, split out from fstatat
24873         GNU Emacs needs the POSIX-specified fstatat, but not the
24874         gnulib-specified statat and lstat.  Split the latter two into a
24875         new module 'statat'.
24876         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
24877         * lib/openat.h, lib/statat.c (STATAT_INLINE):
24878         Rename from FSTATAT_INLINE. All uses changed.
24879         * modules/fstatat (Files): Remove lib/statat.c.
24880         (gl_MODULE_INDICATOR([fstatat])): Remove.
24881         (lib_SOURCES): Remove.
24882         (Maintainer): Add self.
24883         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
24884         * tests/test-fstatat.c (BASE): Don't define if already defined.
24885         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
24887 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
24889         tests: don't assume fd 99 is closed
24890         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
24891         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
24892         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
24893         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
24894         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
24895         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
24896         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
24897         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
24898         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
24899         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
24900         * tests/test-fwrite.c, tests/test-getpeername.c:
24901         * tests/test-getsockname.c, tests/test-getsockopt.c:
24902         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
24903         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
24904         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
24905         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
24906         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
24907         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
24908         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
24909         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
24910         * tests/test-unlinkat.c, tests/test-unlockpt.c:
24911         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
24912         Close file descriptor 99, instead of assuming it's already closed.
24914 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
24916         stpncpy: port to OS X 10.8
24917         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
24918         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
24920 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
24922         unistd: port to recent mingw
24923         * lib/unistd.in.h: Remove special invocation convention for mingw,
24924         which breaks for the latest mingw version.  See John W. Eaton in
24925         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00100.html>.
24927         largefile: port better to Mac OS X 10.5
24928         This patch is backported from Autoconf git.
24929         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
24930         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
24931         with ino_t size being different for configuration time versus
24932         build/run time.  Problem reported by PHO in
24933         <http://lists.gnu.org/r/bug-autoconf/2013-01/msg00040.html>.
24935 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
24937         doc: clarify -Werror
24938         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
24939         clarify that it's intended for developers, not for ordinary builds,
24940         and mention --enable-gcc-warnings as one possible use.
24942 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
24944         stdint: fix build with Android's Bionic fox x86
24945         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
24946         was already included as _SSIZE_T_DEFINED_ might also be defined
24947         in include/machine/_types.h, which is included by stdio.h
24949 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
24951         net_if-tests: port to Solaris 7 + GCC 3.4.6
24952         Problem reported by Tom G. Christensen in
24953         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00091.html>.
24954         * tests/test-net_if.c (ni): Move to next the code that uses it,
24955         so that it's declared only if needed.
24957 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
24959         net_if-tests: port to older Solaris
24960         Problem reported by Tom G. Christensen in
24961         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
24962         * modules/net_if-tests (NET_IF_LIB): New substitution.
24963         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
24964         (HAVE_IF_NAMEINDEX): New C macro.
24965         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
24967         system-quote-tests: port to older Solaris
24968         Problem reported by Tom G. Christensen in
24969         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
24970         * tests/test-system-quote-child.c (fopen, fread): Undef.
24972         c-xvasprintf etc.: fix link errors on older Solaris
24973         These need to link with @LIBINTL@ to get libintl_gettext.
24974         Problem reported by Tom G. Christensen in
24975         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
24976         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
24977         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
24978         * modules/futimens-tests (test_futimens_LDADD):
24979         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
24981 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
24983         locale: port to Solaris 2.6 and 7 + GNU gettext
24984         * lib/locale.in.h: Just include_next <locale.h> when
24985         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
24986         when combining the localename module with GNU gettext 0.18.2.
24987         Problem reported by Tom G. Christensen in
24988         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00084.html>.
24990 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
24992         stdlib: port to Solaris 2.6
24993         Also, the code worked on Solaris 7 through 9 only by accident.
24994         Problem reported by Tom G. Christensen in
24995         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00059.html>.
24996         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
24997         simply include the system stdlib.h.
24998         * lib/getopt.in.h (__need_system_stdlib_h):
24999         * lib/pthread.in.h (__need_system_stdlib_h):
25000         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
25001         Define when including <stdlib.h>, to avoid problems at least for
25002         the pthread case on Solaris 2.6 and 7.  These .h files can get by
25003         with the system stdlib.h.
25005 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
25007         doc: update main copyright year
25008         * doc/gnulib.texi: Update copyright date.
25010         doc: improve ISO 8601 discussion
25011         * doc/parse-datetime.texi (Combined date and time of day items):
25012         Specify more carefully what formats are supported and what is
25013         done with excess precision.
25015 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
25017         doc: avoid small caps
25018         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
25019         they're more trouble than they're worth.  Suggested by Karl Berry
25020         in <http://bugs.gnu.org/13360>.
25022         regex: conform to strict C
25023         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
25024         From Aharon Robbins.
25026         gnulib-tool: fix incompatibility with autopoint 0.18.2
25027         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
25028         Problem reported by Tom G. Christensen in
25029         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00053.html>.
25031 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
25033         fprintftime: bring back and reword fwrite comment
25034         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
25036         stdio: remove now-unnecessary stdio.c
25037         Since stdio.in.h no longer uses inline functions, we no longer
25038         need to compile the extern versions.
25039         * lib/stdio.c: Remove.
25040         * modules/stdio (Files): Remove lib/stdio.c.
25041         (lib_SOURCES): Remove.
25043         unicodeio: depend on stdio, not ignore-value
25044         * lib/unicodeio.c: Do not include ignore-value.h.
25045         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
25046         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
25048         fprintftime: depend on stdio, not ignore-value
25049         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
25050         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
25051         since the stdio module arranges to silence that warning now.
25052         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
25054 2012-10-04  Simon Josefsson  <simon@josefsson.org>
25056         stdint-tests: Fix expanded-before-required-warning.
25057         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
25059 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
25061         fwrite: silence __wur only for older glibc versions
25062         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
25063         This will help us remove this workaround some time in the far future.
25065 2013-01-03  Eric Blake  <eblake@redhat.com>
25067         fwrite: silence __wur without using inline
25068         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
25069         just gcc, and in a way that avoids inline issues.
25070         * modules/stdio (Depends-on): Drop extern-inline.
25072 2013-01-03  Jim Meyering  <jim@meyering.net>
25074         update-copyright: avoid copyright notice date corruption
25075         Given a sequence of copyright year numbers in which the final
25076         one was a two-digit number that happened to be a substring of
25077         a preceding four-digit year number, we would mistakenly update
25078         the substring (from two- to four-digit) rather than the two-digit
25079         number at the end, which, combined with the addition of the current
25080         4-digit year number would yield two 5-digit year numbers, e.g.,
25081         here, it would convert the first "99" to "1999, 2013" rather than
25082         the final one:
25083           1991, 99
25084           11999, 20131, 1999
25085         * build-aux/update-copyright: Tighten a regexp.
25086         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
25087         Reported by Joseph Myers in
25088         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
25090 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
25092         regex: omit needless signed-pointer casts
25093         * lib/regcomp.c (build_charclass, build_charclass_op):
25094         Use char *, not unsigned char *, for class name and extra.
25095         The char values are always nonnegative so there's no need to
25096         insist on unsigned char * here, and using char * removes the need
25097         for casts.  Reported by Aharon Robbins in
25098         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
25100         regex: support Gawk, which never uses alloca
25101         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
25102         Do not include in this case.  Gawk doesn't supply a substitute
25103         alloca.h and doesn't need one.
25105         regex: port __libc_lock_define usage to C89
25106         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
25107         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
25108         does not conform to C89, as it has an empty macro argument.
25109         Reported by Aharon Robbins in
25110         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
25112 2013-01-01  Eric Blake  <eblake@redhat.com>
25114         maint: update all copyright year number ranges
25115         Run "make update-copyright".
25117         version-etc: bump copyright year reported in --version
25118         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
25120 2012-12-31  Eric Blake  <eblake@redhat.com>
25122         sigprocmask-tests: skip test if pid is unexpectedly large
25123         * tests/test-sigprocmask.c (main): Add range check.
25125         git-version-gen: avoid test -z portability glitch
25126         * build-aux/git-version-gen: Prefer portable test spelling, since
25127         git-version-gen is run on more than just developer machines.
25129 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
25131         git-version-gen: add --fallback option to use if git is not present
25132         * build-aux/git-version-gen: Add support for the new option --fallback,
25133         which comes into play when there is no $tarball_version_file and
25134         git is not working.
25135         (scriptversion): Update.
25137         maint.mk: handle missing git with more grace
25138         * top/maint.mk (no-submodule-changes, public-submodule-commit):
25139         Quietly proceed if git is not present.
25141 2012-12-31  Eric Blake  <eblake@redhat.com>
25143         dup2: work around cygwin bug
25144         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
25145         * lib/dup2.c (rpl_dup2): Work around it.
25146         * doc/posix-functions/dup2.texi (dup2): Document it.
25148 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
25150         regex: remove unnecessary dependency on localcharset.h
25151         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
25152         hasn't been needed for years.
25153         * modules/regex (Depends-on): Remove localcharset.
25155         regex: revert single-byte change
25156         * lib/regexec.c (check_node_accept_bytes): Revert previous change
25157         to this function.  This was alredy fixed in a different way, at
25158         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
25159         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
25160         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
25162         regex: simplify based on Gawk version
25163         * lib/regex_internal.c (re_dfa_add_node): Simplify.
25164         Reported by Aharon Robbins in
25165         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
25167 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
25169         regex: check that pattern char is single-byte
25170         Reported by Aharon Robbins in
25171         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
25172         * lib/regexec.c (check_node_accept_bytes):
25173         Return 0 if the pattern string has a multibyte character here.
25175         regex: implement rational ranges
25176         Reported by Aharon Robbins in
25177         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
25178         * lib/regcomp.c (build_range_exp) [!_LIBC]:
25179         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
25180         Implement rational ranges.
25182         regex: avoid redefining __wctype
25183         Reported by Aharon Robbins in
25184         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
25185         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
25186         #undef before defining.
25188         regex: port to hosts where malloc (0) == NULL
25189         Reported by Aharon Robbins in
25190         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
25191         * lib/regex_internal.c (re_node_set_alloc):
25192         Don't assume that malloc (0) yields nonnull.
25193         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
25194         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
25195         * modules/regex (Files): Add m4/eealloc.m4.
25197         regex: port to C89
25198         Reported by Aharon Robbins in
25199         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
25200         * lib/regcomp.c (init_word_char): Declaration before statement.
25202         regex: merge glibc changes
25203         Also, copy the license wording from glibc.  This simplifies
25204         merging changes.  gnulib-tool will change the wording to GPL as
25205         appropriate, when importing it to other packages.  The only
25206         glibc change made since the last merge, which needs merging, is:
25207         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
25208         * lib/regex_internal.h (gettext): Remove use of INTUSE.
25210         * users.txt: Add Emacs.
25212         doc: omit mention of version when not needed
25213         * doc/gnulib-intro.texi (Portability and Application Code):
25214         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
25215         Don't mention particular dates or versions when not necessary, so
25216         that the documentation won't go out of date so quickly.
25218         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
25220 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
25222         bootstrap: pass --force to autoreconf.
25223         * build-aux/bootstrap (AUTORECONFFLAGS): New.
25224         Add "--force" so that Automake's ylwrap and other such tools
25225         be updated at each bootstrap invocation.
25226         Use it.
25228 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
25230         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
25231         The earlier patch forgot to update one of the #if conditions, causing
25232         a problem on Debian testing i386 reported by Mats Erik Andersson
25233         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00124.html>.
25234         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
25235         (__argp_fmtstream_puts, argp_fmtstream_puts)
25236         (__argp_fmtstream_write, argp_fmtstream_write)
25237         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
25239         * doc/gnulib-readme.texi: Minor fixups.
25240         (Portability guidelines): Modernize URLs.  Remove some repetition.
25241         (Indent with spaces not TABs): Reword to avoid too-long lines.
25242         Remove some '@ifset standalone' stuff that isn't used.
25244         * doc/gnulib-readme.texi (Portability guidelines):
25245         ctype.h, not ctime.h.
25247         Correct name of POSIX.1-2001.
25248         * doc/posix-functions/fgetc.texi (fgetc):
25249         * doc/posix-functions/fgets.texi (fgets):
25250         * doc/posix-functions/fread.texi (fread):
25251         * doc/posix-functions/fscanf.texi (fscanf):
25252         * doc/posix-functions/getc.texi (getc):
25253         * doc/posix-functions/getchar.texi (getchar):
25254         * doc/posix-functions/scanf.texi (scanf):
25255         POSIX.1-2001, not POSIX-2001.
25257         doc: move README into manual
25258         * README: Move contents to new file doc/gnulib-readme.texi.
25259         Replace with a one-line summary.
25260         * doc/gnulib.texi (Brief Overview): New section,
25261         with old intro preface.  Include gnulib-readme.texi for contents.
25262         (Philosophy): Rename from "Introduction", since this
25263         section no longer introduces the rest.  Write a new preface.
25264         * doc/gnulib-readme.texi: New file, with the old contents of
25265         README texinfo-ized.  This way, the README info appears
25266         in the online and printed manual.
25268 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
25270         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
25271         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
25272         c_vasprintf() prototype.
25274 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
25276         c-vasprintf: Fix "empty declaration" warning reported by GCC.
25277         * lib/c-vasprintf.h: Remove stray semicolon.
25279 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
25281         gettext: avoid obsolete macro AM_PROG_MKDIR_P
25282         It is obsolete and is planned to be removed from Automake 1.14; see
25283         <http://lists.gnu.org/r/automake/2012-12/msg00029.html>.
25284         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
25285         (installdirs-data, installdirs-data-yes):
25286         Use $(MKDIR_P), not $(mkdir_p).
25287         * m4/intl.m4 (AM_INTL_SUBDIR):
25288         * m4/po.m4 (AM_PO_SUBDIRS):
25289         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
25291 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
25293         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
25294         On this platform, we are not optimizing but we are using
25295         the substitute for extern inlines, so compile as if
25296         C99-style extern inline, or a substitute, is available.
25297         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
25298         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
25299         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
25300         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
25301         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
25302         Declare as ARGP_FS_EI, not as extern.
25303         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
25304         (__option_is_short, _option_is_end, __option_is_end)
25305         [!_LIBC && __USE_EXTERN_INLINES]:
25306         Declare as ARGP_EI, not as extern.
25308 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
25310         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
25311         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
25312         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
25313         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
25314         ...), as the latter is fatal with older Autoconfs.
25315         Problem reported and fix suggested by Eric Blake in thread starting at
25316         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00097.html>.
25318 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
25320         AC_PROG_MKDIR_P: don't workaround if not buggy
25321         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
25322         Define only for Autoconf versions before 2.62.
25323         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
25324         undocumented m4_PACKAGE_VERSION, for consistency with the
25325         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
25326         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
25327         was introduced in 2.62.
25329 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
25331         New 'c-*printf' modules for formatted output in C locale.
25333         New module 'c-vasnprintf'.
25334         * modules/c-vasnprintf: New file.
25335         * lib/c-vasnprintf.c: New file.
25336         * lib/c-vasnprintf.h: New file.
25338         New module 'c-snprintf'.
25339         * modules/c-snprintf: New file.
25340         * modules/c-snprintf-tests: New file.
25341         * lib/c-snprintf.c: New file.
25342         * lib/c-snprintf.h: New file.
25343         * tests/test-c-snprintf.c: New file.
25344         * tests/test-c-snprintf.sh: New file.
25346         New module 'c-vsnprintf'.
25347         * modules/c-vsnprintf: New file.
25348         * modules/c-vsnprintf-tests: New file.
25349         * lib/c-vsnprintf.c: New file.
25350         * lib/c-vsnprintf.h: New file.
25351         * tests/test-c-vsnprintf.c: New file.
25352         * tests/test-c-vsnprintf.sh: New file.
25354         New module 'c-vasprintf'.
25355         * modules/c-vasprintf: New file.
25356         * modules/c-vasprintf-tests: New file.
25357         * lib/c-asprintf.c: New file.
25358         * lib/c-vasprintf.c: New file.
25359         * lib/c-vasprintf.h: New file.
25360         * tests/test-c-vasprintf.c  +: New file.
25361         * tests/test-c-vasprintf.sh: New file.
25363         New module 'c-xvasprintf'.
25364         * modules/c-xvasprintf: New file.
25365         * modules/c-xvasprintf-tests: New file.
25366         * lib/c-xasprintf.c: New file.
25367         * lib/c-xvasprintf.c: New file.
25368         * lib/c-xvasprintf.h: New file.
25369         * tests/test-c-xvasprintf.c: New file.
25370         * tests/test-c-xvasprintf.sh: New file.
25372 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
25374         argp: better 'inline'
25375         Use extern-inline module to declare extern inline functions.
25376         This avoids some bogus warning diagnostics.  Problem discovered
25377         when modifying GNU tar to use the manywarnings module.
25378         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
25379         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
25380         Define based on extern-inline.
25381         * modules/argp (Depends-on): Add extern-inline.
25383 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
25385         filemode, sys_stat: Handle MPX files a la AIX.
25386         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
25387         * lib/sys_stat.in.h (S_ISMPX): New macro.
25388         * tests/test-sys_stat.c: Add tests for MPX files.
25390 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
25392         x-to-1: honor $PERL
25393         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
25394         a chance to use his preferred version of Perl.  This is typically
25395         required by Darwin users whose default /usr/bin/perl does not have all
25396         the libraries required by help2man, and who need to use their MacPorts
25397         installation of Perl instead.
25399 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
25401         gnu-web-doc-update: add all the new files, even in new directories
25402         See http://lists.gnu.org/r/bug-gnulib/2012-12/msg00057.html
25403         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
25404         Use it.
25405         (main): Don't use cvsutils to get the list of unknown files,
25406         just add all the existing files and directories.
25408 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
25410         gnu-web-doc-update: improve --help
25411         * build-aux/gnu-web-doc-update: Move comments into --help.
25413 2012-12-07  Eric Wong  <normalperson@yhbt.net>
25415         mountlist: recognize more "dummy" file systems
25416         * lib/mountlist.c (ME_DUMMY_0):
25417         Add these dummy FS names to the list:
25418         - "debugfs" virtual filesystem for kernel debugging
25419         - "devpts" PTY slave filesystem
25420         - "devtmpfs" device filesystem on top of tmpfs/ramfs
25421         - "fusectl" control filesystem for FUSE
25422         - "mqueue" enumerates POSIX message queues
25423         - "rpc_pipefs" kernel <-> userspace bridge for NFS
25424         - "sysfs" is for exporting kernel objects
25425         - "devfs" device filesystem for Linux 2.4 and FreeBSD
25427 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
25429         extern-inline: avoid incompatibility with Darwin Libc
25430         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
25431         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
25432         Problem reported by Akim Demaille in
25433         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00023.html>.
25435 2012-12-11  Simon Josefsson  <simon@josefsson.org>
25437         gnupload: Work with GnuPG using gpg-agent (for smartcards).
25438         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
25439         let it handle password prompting.
25441 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
25443         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
25444         * lib/canonicalize.c (canonicalize_filename_mode):
25445         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
25446         fetching the current directory.  Don't overrun the beginning of
25447         rpath if there's no slashes after the MS-Windows drive letter.
25449 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
25451         maint.mk: avoid extra forks
25452         * top/maint.mk (_cfg_mk): The GNU make manual documents that
25453         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
25454         So use that instead of "$(shell test -f FILE && echo FILE)".
25456 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
25458         vasnprintf: fix ASCII_ONLY typo
25459         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
25460         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
25461         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
25462         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
25463         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00021.html>.
25465 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
25467         list, oset, xlist, xoset: fix extern inline issue with C99
25468         This was introduced by my recent changes for 'inline'.
25469         Problem reported for gettext by Daiki Ueno in
25470         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00000.html>.
25471         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
25472         (gl_list_nx_create, gl_list_size, gl_list_node_value)
25473         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
25474         (gl_list_previous_node, gl_list_get_at)
25475         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
25476         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
25477         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
25478         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
25479         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
25480         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
25481         (gl_list_iterator_free, gl_sortedlist_search)
25482         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
25483         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
25484         (gl_sortedlist_remove):
25485         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
25486         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
25487         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
25488         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
25489         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
25490         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
25491         (gl_list_add_at, gl_sortedlist_add):
25492         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
25493         Wrap these extern decls inside "#if 0", because they are implemented
25494         as inline functions, and extern inline is not what's wanted here.
25495         It would simplify these .h files to remove the extern decls entirely,
25496         although a downside would be less-clear separation between
25497         specification and implementation.
25499 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
25501         sys_stat: no 'static inline'
25502         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
25503         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
25505         extern-inline: no 'static inline'
25506         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
25507         Do not require AC_C_INLINE.
25508         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
25509         'static inline', for older compilers.
25511         snippet/warn-on-use: no 'static inline'
25512         * build-aux/snippet/warn-on-use.h:
25513         Remove unnecessary 'inline' in comment.
25515         rbtree-list, rbtreehash-list: no 'static inline'
25516         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
25517         * lib/gl_anytree_list2.h (node_at):
25518         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
25519         (gl_oset_first, add_nodes_to_buckets):
25520         Now static, not static inline.
25522         regex: no 'static inline'
25523         * lib/regex_internal.c (calc_state_hash):
25524         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
25525         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
25526         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
25527         Now static, not static inline.
25528         (inline) [__GNUC__ < 3 && _LIBC]:
25529         Remove macro; no longer needed.
25531         xvasprintf: no 'static inline'
25532         * lib/xvasprintf.c (xstrcat):
25533         Now static, not static inline.
25534         * m4/xvasprintf.m4 (gl_XVASPRINTF):
25535         Do not require AC_C_INLINE.
25537         parse-datetime, parse-duration: no 'static inline'
25538         * lib/parse-datetime.y (to_uchar):
25539         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
25540         (scale_n_add):
25541         Now static, not static inline.
25542         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
25543         * modules/parse-duration (configure.ac):
25544         Do not require AC_C_INLINE.
25546         getaddrinfo: no 'static inline'
25547         * lib/getaddrinfo.c (validate_family):
25548         Now static, not static inline.
25549         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
25550         Do not require AC_C_INLINE.
25552         ftruncate, fts, lstat, openat, raise: no 'static inline'
25553         * lib/ftruncate.c (chsize_nothrow):
25554         * lib/fts.c (opendirat, diropen):
25555         * lib/lstat.c (orig_lstat):
25556         * lib/openat.c (orig_openat):
25557         * lib/raise.c (raise_nothrow):
25558         Now static, not static inline.
25559         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
25560         * m4/fts.m4 (gl_FUNC_FTS_CORE):
25561         * m4/lstat.m4 (gl_PREREQ_LSTAT):
25562         * m4/openat.m4 (gl_PREREQ_OPENAT):
25563         * m4/raise.m4 (gl_PREREQ_RAISE):
25564         Do not require AC_C_INLINE.
25566         fflush, stat: no 'static inline'
25567         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
25568         (clear_ungetc_buffer, disable_seek_optimization)
25569         (restore_seek_optimization, update_fpos_cache):
25570         * lib/stat.c (orig_stat):
25571         Now static, not static inline.
25572         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
25573         (update_fpos_cache):
25574         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
25575         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
25576         * m4/stat.m4 (gl_PREREQ_STAT):
25577         Do not require AC_C_INLINE.
25579         error, filevercmp: no 'static inline'
25580         * lib/error.c (is_open, flush_stdout):
25581         * lib/filevercmp.c (order):
25582         Now static, not static inline.
25583         * m4/error.m4 (gl_PREREQ_ERROR):
25584         * modules/filevercmp (configure.ac):
25585         Do not require AC_C_INLINE.
25587         dup, execute, fatal-signal, etc.: no 'static inline'
25588         * lib/dup.c (dup_nothrow):
25589         * lib/execute.c (nonintr_close, nonintr_open):
25590         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
25591         * lib/fopen.c (orig_fopen):
25592         * lib/freadseek.c (freadptrinc):
25593         * lib/freopen.c (orig_freopen):
25594         * lib/fstat.c (orig_fstat, fstat_nothrow):
25595         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
25596         (get_rusage_as_via_iterator):
25597         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
25598         * lib/getdtablesize.c (_setmaxstdio_nothrow):
25599         * lib/isatty.c (_isatty_nothrow):
25600         * lib/open.c (orig_open):
25601         * lib/read.c (read_nothrow):
25602         * lib/sigprocmask.c (signal_nothrow):
25603         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
25604         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
25605         * lib/wait-process.c (unregister_slave_subprocess):
25606         * lib/write.c (write_nothrow):
25607         Now static, not static inline.
25608         * lib/spawn-pipe.c (nonintr_open): Define only if
25609         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
25610         * m4/dup.m4 (gl_PREREQ_DUP):
25611         * m4/execute.m4 (gl_EXECUTE):
25612         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
25613         * m4/fopen.m4 (gl_PREREQ_FOPEN):
25614         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
25615         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
25616         * m4/fstat.m4 (gl_PREREQ_FSTAT):
25617         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
25618         * m4/isatty.m4 (gl_PREREQ_ISATTY):
25619         * m4/open.m4 (gl_PREREQ_OPEN):
25620         * m4/read.m4 (gl_PREREQ_READ):
25621         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
25622         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
25623         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
25624         * m4/wait-process.m4 (gl_WAIT_PROCESS):
25625         * m4/write.m4 (gl_PREREQ_WRITE):
25626         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
25627         Do not require AC_C_INLINE.
25629         c-strtod, memcoll, readutmp: no 'static inline'
25630         * lib/c-strtod.c (c_locale):
25631         * lib/memcoll.c (strcoll_loop):
25632         * lib/readutmp.c (desirable_utmp_entry):
25633         Now static, not static inline.
25634         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
25635         * m4/memcoll.m4 (gl_MEMCOLL):
25636         * m4/readutmp.m4 (gl_READUTMP):
25637         Do not require AC_C_INLINE.
25639         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
25640         * lib/arctwo.c (to_uchar):
25641         * lib/md4.c (set_uint32):
25642         * lib/md5.c (set_uint32):
25643         * lib/sha1.c (set_uint32):
25644         * lib/sha256.c (set_uint32):
25645         * lib/sha512.c (set_uint64):
25646         Now static, not static inline.  This is a bit simpler, and doesn't
25647         affect performance with GCC and default optimization.
25648         * m4/arctwo.m4 (gl_ARCTWO):
25649         * m4/md4.m4 (gl_MD4):
25650         * m4/md5.m4 (gl_MD5):
25651         * m4/sha1.m4 (gl_SHA1):
25652         * m4/sha256.m4 (gl_SHA256):
25653         * m4/sha512.m4 (gl_SHA512):
25654         Do not require AC_C_INLINE.
25656         cond, lock, thread: better 'inline'
25657         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
25658         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
25659         New macros.  Use them instead of static inline, for header functions.
25660         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
25661         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
25662         * lib/glthread/lock.c (gl_waitqueue_init)
25663         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
25664         * lib/glthread/thread.c (get_current_thread_handle):
25665         Change 'static inline' to 'inline'.
25666         * lib/glthread/cond.h, lib/glthread/thread.h:
25667         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
25668         * m4/cond.m4 (gl_COND):
25669         * m4/lock.m4 (gl_PREREQ_LOCK):
25670         * m4/thread.m4 (gl_THREAD):
25671         Do not require AC_C_INLINE.
25672         * modules/cond, modules/thread (Depends-on): Add extern-inline.
25674         chdir-long, cycle-check, savewd: better 'inline'
25675         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
25676         (find_non_slash):
25677         * lib/cycle-check.c (is_zero_or_power_of_two):
25678         * lib/savewd.c (savewd_delegating):
25679         Change 'static inline' to 'inline'.
25680         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
25681         Replace all remaining uses of 'static inline' with it.
25682         * lib/savewd.h:
25683         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
25684         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
25685         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
25686         * m4/savewd.m4 (gl_SAVEWD):
25687         Do not require AC_C_INLINE.
25688         * modules/savewd (Depends-on): Add extern-inline.
25690         base32, base64: no need for 'inline'
25691         * lib/base32.c (to_uchar, get_8, decode_8):
25692         * lib/base64.c (to_uchar, get_4, decode_4):
25693         Change 'static inline' to 'inline'.
25694         * m4/base32.m4 (gl_PREREQ_BASE32):
25695         * m4/base64.m4 (gl_PREREQ_BASE64):
25696         Do not require AC_C_INLINE.
25698         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
25699         * lib/gl_array_oset.c (gl_array_nx_add_at):
25700         (gl_array_remove_at):
25701         * lib/gl_linkedhash_list.c (hash_resize_after_add)
25702         (add_to_bucket, remove_from_bucket):
25703         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
25704         Change 'static inline' to 'static', as it's simpler to omit
25705         'inline' unless there's a significant performance advantage.
25707         list, oset, xlist, xoset, xsublist: simplify via extern inline
25708         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
25709         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
25710         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
25711         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
25712         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
25713         New macro.  Replace all uses of 'static inline' with it.
25714         [HAVE_INLINE]: Implement functions as *_INLINE functions,
25715         instead of as macros FOO that are defined to static inline
25716         functions FOO_inline.
25717         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
25718         * lib/gl_xsublist.c:
25719         Reimplement from scratch, by defining the corresponding *_INLINE
25720         macro and including the corresponding .h file.  This is simpler.
25721         * modules/list, modules/oset, modules/xlist, modules/xoset:
25722         (Files): Remove m4/gl_list.m4.
25723         (configure.ac): Remove gl_LIST.
25724         * m4/gl_list.m4: Remove.
25725         * modules/list, modules/oset, modules/xlist, modules/xoset:
25726         * modules/xsublist:
25727         (Depends-on): Depend on extern-inline, not inline.
25729         xalloc: better 'inline'
25730         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
25731         New macro.  Replace all uses of 'static inline' with it.
25732         (static_inline): Remove.
25733         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
25734         Let 'extern inline' do the work automatically, instead of doing
25735         it by hand.
25736         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
25737         Remove.  All uses removed.
25738         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
25740         gethrxtime: better 'inline'
25741         * lib/xtime.c: New file.
25742         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
25743         * lib/xtime.h (XTIME_INCLUDE):
25744         New macros.  Replace all uses of 'static inline' with them.
25745         * lib/gethrxtime.c (gethrxtime): Define only if
25746         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
25747         this source file is now always compiled, because of the extern inline.
25748         * lib/gethrxtime.h, lib/xtime.h:
25749         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
25750         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
25751         if gethrtime works, as they're not needed in that case.
25752         (gl_XTIME): Do not require AC_C_INLINE.
25753         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
25754         compiled now.  Move the check into gl_GETHRXTIME.
25755         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
25756         (Depends-on): Add extern-inline.
25757         (configure.ac): gethrxtime is always compiled now.
25758         (lib_SOURCES): Add gethrxtime.c.
25760         wctype-h: better 'inline'
25761         * lib/wctype-h.c: New file.
25762         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
25763         New macro.  Replace all uses of 'static inline' with it.
25764         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
25765         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
25766         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
25767         (Depends-on): Add extern-inline.
25769         unistd: better 'inline'
25770         * lib/unistd.c: New file.
25771         * lib/unistd.in.h (_GL_UNISTD_INLINE):
25772         New macro.  Replace all uses of 'static inline' with it.
25773         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
25774         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
25775         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
25776         (Depends-on): Add extern-inline.
25778         sys_socket: better 'inline'
25779         * lib/sys_socket.c: New file.
25780         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
25781         New macro.  Replace all uses of 'static inline' with it.
25782         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
25783         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
25784         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
25785         (Depends-on): Add extern-inline.
25787         stdio: better 'inline'
25788         * lib/stdio.c: New file.
25789         * lib/stdio.in.h (_GL_STDIO_INLINE):
25790         New macro.  Replace all uses of 'static inline' with it.
25791         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
25792         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
25793         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
25794         (Depends-on): Add extern-inline.
25796         sigaction: better 'inline'
25797         * lib/sig-handler.c: New file.
25798         * lib/sig-handler.h (SIG_HANDLER_INLINE):
25799         New macro.  Replace all uses of 'static inline' with it.
25800         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
25801         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
25802         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
25803         (Depends-on): Add extern-inline.
25805         selinux-h: better 'inline'
25806         * lib/se-context.c, lib/se-selinux.c: New files.
25807         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
25808         * lib/se-context.in.h (SE_CONTEXT_INLINE):
25809         New macro.  Replace all uses of 'static inline' with it.
25810         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
25811         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
25812         New macro.  Replace all uses of 'static inline' with it.
25813         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
25814         * modules/selinux-h (Files, lib_SOURCES):
25815         Add lib/se-context.c, lib/se-selinux.c.
25816         (Depends-on): Add extern-inline.
25817         (configure.ac): Do not require AC_C_INLINE.
25819         pthread: better 'inline'
25820         * lib/pthread.c: New file.
25821         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
25822         New macro.  Replace all uses of 'static inline' with it.
25823         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
25824         * m4/pthread.m4 (gl_PTHREAD_CHECK):
25825         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
25826         * modules/pthread (Files): Add lib/pthread.c.
25827         (Depends-on): Add extern-inline.
25829         math: better 'inline'
25830         * lib/math.c: New file.
25831         * lib/math.in.h (_GL_MATH_INLINE):
25832         New macro.  Replace all uses of 'static inline' with it.
25833         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
25834         * m4/math_h.m4 (gl_MATH_H):
25835         Do not require AC_C_INLINE.
25836         * modules/math (Files, lib_SOURCES):
25837         Add lib/math.c.
25838         (Depends-on): Add extern-inline.
25840         count-one-bits: better 'inline'
25841         * lib/count-one-bits.c: New file.
25842         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
25843         New macro.  Replace all uses of 'static inline' with it.
25844         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
25845         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
25846         Do not require AC_C_INLINE.
25847         * modules/count-one-bits (Files, lib_SOURCES):
25848         Add lib/count-one-bits.c.
25849         (Depends-on): Add extern-inline.
25851         count-leading-zeros: better 'inline'
25852         * lib/count-leading-zeros.c: New file.
25853         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
25854         New macro.  Replace all uses of 'static inline' with it.
25855         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
25856         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
25857         Do not require AC_C_INLINE.
25858         * modules/count-leading-zeros (Files, lib_SOURCES):
25859         Add lib/count-leading-zeros.c.
25860         (Depends-on): Add extern-inline.
25862         bitrotate: better 'inline'
25863         * lib/bitrotate.c: New file.
25864         * lib/bitrotate.h (BITROTATE_INLINE):
25865         New macros.
25866         Replace all uses of 'static inline' with them.
25867         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
25868         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
25869         (Depends-on): Add extern-inline.
25870         (configure.ac): Do not require AC_C_INLINE.
25872 2012-11-20  Theophile Ranquet  <ranquet@lrde.epita.fr>
25874         maint.mk: avoid gratuitous failure
25875         Reported by Stefano Lattarini in
25876         <http://lists.gnu.org/r/bug-bison/2012-11/msg00022.html>
25877         * top/maint.mk (public-submodule-commit): Quote more safely.
25879 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
25881         canonicalize, canonicalize-lgpl: support MS-Windows file names
25882         See <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00074.html>
25883         for test cases, which it'd be nice to add at some point.
25884         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
25885         * lib/canonicalize.c (canonicalize_filename_mode):
25886         * lib/canonicalize-lgpl.c (__realpath):
25887         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
25888         slash is at the beginning of the file name.  Use ISSLASH, instead
25889         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
25890         the first character with '/'.  Test for
25891         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
25892         with a drive letter.
25893         * lib/canonicalize.c (SLASHES): New macro.
25894         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
25896 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
25898         fts: introduce FTS_VERBATIM
25899         * lib/fts_.h (FTS_VERBATIM): New bit flag.
25900         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
25901         * lib/fts.c (fts_open): Honor it.
25903 2012-11-09  Pádraig Brady  <P@draigBrady.com>
25905         getlogin-tests: allow errno == ENXIO
25906         * tests/test-getlogin.c (main): Skip tests if getlogin fails
25907         with errno == ENXIO (No controlling tty).
25908         getlogin_r-tests: Likewise. Also allow errno == ENOENT
25909         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
25910         with errno == ENOENT.  This was reported to happen in various
25911         situations on GNU/Linux.
25913 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
25915         getlogin-tests: allow errno == ENOENT
25916         * tests/test-getlogin.c (main): Skip tests if getlogin fails
25917         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
25918         when running a test in an Emacs shell buffer.
25920 2012-11-08  Jim Meyering  <jim@meyering.net>
25922         tests/nap.h: avoid warning about unused variable
25923         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
25925         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
25926         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
25927         white space before each of the special-cased file names, to avoid
25928         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
25929         in http://bugs.gnu.org/12830.
25931 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
25933         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
25934         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
25935         fails with errno == EBADF when fd is opened with O_PATH.
25936         Reported by Jim Meyering in
25937         <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00026.html>.
25938         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
25939         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
25941 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
25943         test-utimens: speed up by taking shorter naps
25944         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
25945         New functions.
25946         (nap): Use them, to do a better job of guessing the delay.
25947         On Fedora 17 with ext4 atop md atop hard disks, this made
25948         test-utimens run 10x faster, because the test napped for
25949         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
25950         <http://bugs.gnu.org/12820#11>.
25952 2012-11-07  Jim Meyering  <jim@meyering.net>
25954         mountlist.c: fix a compilation failure
25955         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
25956         I introduced while transforming commit v0.0-7683-g613bcb6
25958 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
25960         errno: port to LynxOS 178 2.2.2
25961         Problem reported by Joel Brobecker in
25962         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00088.html>.
25963         * doc/posix-headers/errno.texi (errno.h): Document this.
25964         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
25965         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
25966         Supply a string for EILSEQ.
25967         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
25969 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
25971         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
25972         Linux kernel 2.6.39 introduced O_PATH (see
25973         <http://lwn.net/Articles/433854/>) and this is a better fallback
25974         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
25975         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
25976         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
25977         * lib/fcntl.in.h (O_ACCMODE):
25978         * tests/test-fcntl-h.c (main):
25979         Do not reject O_ACCMODE merely because it has more than the
25980         minimal number of bits, as POSIX allows extensions here.
25982 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
25984         mountlist: do not classify a bind-mounted dir entry as "dummy"
25985         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
25986         the "none"-testing clause.
25987         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
25988         exception for bind-mounted directories.
25990 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
25992         quote: provide a means to escape strings with nul characters
25993         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
25994         (quote, quote_n): Rename formal arguments for consistency with
25995         quotearg.
25997 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
25999         test-raise: don't assume 199 is an invalid signal
26000         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
26002         sh-quote-tests: port to Solaris 9
26003         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
26004         Problem reported by Dagobert Michelsen in
26005         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00114.html>.
26007 2012-10-28  Jim Meyering  <jim@meyering.net>
26009         maint.mk: rename a new configurable variable
26010         * top/maint.mk (_gl_translatable_string_re): Rename from
26011         translation-markers: _gl_ prefix to insulate from user Makefile code,
26012         and the _re suffix to inform that it's a regular expression.
26014 2012-10-26  Eric Blake  <eblake@redhat.com>
26016         maint.mk: let packages tweak sc_po_check pattern
26017         * top/maint.mk (sc_po_check): Add translation-markers, to allow
26018         finding files with other translation markers.
26020 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
26022         euidaccess: speed up 'configure' on GNU hosts
26023         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
26024         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
26025         it's needed only in this case.  Use AC_CHECK_DECLS, not
26026         AC_CHECK_DECLS_ONCE.
26027         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
26028         or AC_REQUIRE for AC_FUNC_GETGROUPS.
26030         * lib/regexec.c (re_search_internal): Fix grammar in comment.
26032 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
26034         fchmodat, fchownat, fstatat: port to non-inlining compilers
26035         Problem reported for FreeBSD 9 by Jim Meyering in
26036         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00070.html>.
26037         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
26038         New files, which define FCHMODAT_INLINE etc.
26039         * lib/fchmodat.c (FCHMODAT_INLINE):
26040         * lib/fchownat.c (FCHOWNAT_INLINE):
26041         * lib/fstatat.c (FSTATAT_INLINE):
26042         Remove, as chmodat.c etc. now do this.
26043         * modules/fchmodat (Files): Add lib/chmodat.c.
26044         * modules/fchownat (Files): Add lib/chownat.c.
26045         * modules/fstatat (Files): Add lib/statat.c.
26047 2012-10-15  Jim Meyering  <jim@meyering.net>
26049         fchmodat.c, fchownat.c: compile-impeding typos
26050         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
26051         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
26052         Introduced in commit v0.0-7636-gd202279.
26054 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
26056         fcntl-h: support GNU flags like O_IGNORE_CTTY
26057         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
26058         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
26059         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
26060         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
26061         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
26062         Define to 0 if not already defined.
26063         * tests/test-fcntl-h.c: Test these new flags.
26065 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
26067         faccessat, etc.: support AT_FDCWD-only use
26068         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
26069         this function only if its first argument is AT_FDCWD.
26070         Emacs wants faccessat for AT_EACCESS but not for any first-arg
26071         values other than AT_FDCWD, so it doesn't want all the openat
26072         machinery with fchdir etc.
26073         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
26074         * modules/fstatat, modules/mkdirat, modules/openat (Files):
26075         * modules/unlinkat (Files):
26076         Remove lib/openat-priv.h, as at-internal supplies this file.
26077         Removing this file here allows us to support programs like Emacs
26078         that avoid at-internal.
26080         faccessat: speed up 'configure' on mainstream hosts
26081         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
26082         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
26083         since it's only on unusual platforms that we need to check for
26084         'access', and it's better not to slow 'configure' down on all
26085         platforms.
26087         faccessat: port to Solaris 10
26088         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
26089         Needed on Solaris 10, which doesn't have AT_EACCESS,
26090         so we need the Gnulib fcntl.h, which defines it.
26092 2012-10-14  Pádraig Brady  <P@draigBrady.com>
26093         canonicalize: fix C89 compilation
26094         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
26095         declarations so C89 is supported.  Also remove the comment
26096         referencing memorty allocation as the suggested feature could
26097         not be implemented as suggested.
26098         Reported by Michael Goffioul.
26100 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
26102         group-member: omit unnecessary dependencies
26103         This is for Emacs, which has its own allocator and where we
26104         don't want to use xalloc.
26105         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
26106         since we no longer use xmalloc.  Do not include stdbool.h, since
26107         the changes below happen to remove the only use of bool.
26108         (GROUPBUF_SIZE): New constant.
26109         (struct group_info): Remove n_groups member.  Add groupbuf member.
26110         This lets us get the groups without using malloc, usually.
26111         (free_group_info, get_group_info): Adjust to this.
26112         (get_group_info): Return the number of groups found, or -1 on error.
26113         Use plain malloc not xmalloc, and treat its failure as if there
26114         are no groups, as the user already loses in case of error.
26115         (group_member): Simplify, based on changes to get_group_info.
26116         * modules/group-member (Depends-on): Remove dependencies on
26117         xalloc and stdbool.  Add dependency on xalloc-oversized.
26119 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
26121         gethrxtime: port to C++
26122         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
26124 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
26126         ptsname: fix macro-name typo
26127         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
26129 2012-10-03  Simon Josefsson  <simon@josefsson.org>
26131         inttostr: Relax license.
26132         * modules/inttostr (License): Change from LGPL to LGPLv2+.
26134 2012-10-03  Eric Blake  <eblake@redhat.com>
26136         ptsname_r: support ptys returned by FreeBSD posix_openpt
26137         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
26138         lives in /dev/pts/.
26140 2012-10-02  Eric Blake  <eblake@redhat.com>
26142         pselect: reject invalid file descriptors
26143         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
26144         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
26145         * modules/pselect (Depends-on): Add dup2.
26146         * doc/posix-functions/pselect.texi (pselect): Document this.
26148         select: reject invalid file descriptors
26149         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
26150         * lib/select.c (rpl_select) [!win32]: Work around it.
26151         * modules/select (Depends-on): Add dup2.
26152         * doc/posix-functions/select.texi (select): Document this.
26154         select: enhance test
26155         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
26156         New functions.
26157         (test_function): Enhance test.
26158         (do_select_bad_fd): Avoid any stale errno values.
26160         ptsname: reject invalid file descriptors
26161         http://www.austingroupbugs.net/view.php?id=503
26162         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
26163         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
26164         * modules/stdlib (Makefile.am): Replace witness.
26165         * lib/stdlib.in.h (ptsname): Allow for replacement.
26166         * modules/ptsname (configure.ac): Trigger replacement.
26167         * doc/posix-functions/ptsname.texi (ptsname): Document this.
26169 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
26171         hash-pjw-bare: new module
26172         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
26173         * lib/hash-pjw-bare.h: Likewise.
26174         * modules/hash-pjw-bare: New file.
26175         * MODULES.html.sh (Misc): Add it.
26177 2012-10-02  Eric Blake  <eblake@redhat.com>
26179         manywarnings: cater to more gcc infelicities
26180         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
26181         -Wuninitialized without -O.
26183 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
26185         select, poll tests: Make setsockopt invocation effective.
26186         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
26187         the bind() call.
26188         * tests/test-select.h (open_server_socket): Likewise.
26190 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
26192         sockets, sys_stat: restore AC_C_INLINE
26193         This undoes the 2012-09-22 patch.
26194         * m4/sockets.m4 (gl_SOCKETS):
26195         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
26196         Restore AC_C_INLINE, since MSVC requires __inline or _inline
26197         and does not support plain 'inline'.  Reported by Bruno Haible in
26198         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00183.html>.
26200 2012-09-30  Bruno Haible  <bruno@clisp.org>
26202         localeconv tests: Avoid test failure on OpenIndiana.
26203         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
26204         skip the 'grouping' and 'mon_grouping' tests.
26205         Reported by Jim Meyering.
26207 2012-09-30  Bruno Haible  <bruno@clisp.org>
26209         havelib: Follow libtool developments.
26210         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
26211         Suggested by Simon Josefsson.
26213 2012-09-29  Jim Meyering  <meyering@redhat.com>
26215         fstatat.c: fix a compile-impeding typo
26216         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
26217         Introduced in commit v0.0-7636-gd202279.
26218         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
26220 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
26222         extern-inline: provide a -Wundef safe config.h
26223         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
26224         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
26225         to produce a -Wundef warning free config.h.
26227 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
26229         hash-pjw: relax license to LGPLv2+
26230         * modules/hash-pjw (License): Relax, with consent of author.
26232 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
26234         maint.mk: fix strict vs. lazy variable issues with RELEASE
26235         * top/maint.mk (_equal): New function.
26236         (member_check): Strip the result to avoid spurious spaces.
26237         (url_dir_list): Do not use ifeq, which is strict, as it will
26238         require RELEASE_TYPE to be defined.
26239         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
26240         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
26241         (announcement_Cc_alpha,announcement_mail_headers_alpha)
26242         (announcement_Cc_beta,announcement_mail_headers_beta)
26243         (announcement_Cc_stable,announcement_mail_headers_stable): these.
26244         (release): Do not depend on $(release-type), as it forces its
26245         evaluation.  Bounce to it.
26247 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
26249         maint.mk: formatting changes
26250         * top/maint.mk: Indent bodies of if's.
26252 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
26254         maint.mk: factor the validation of RELEASE_TYPE
26255         With help from Jim Meyering.
26256         http://lists.gnu.org/r/bug-gnulib/2012-09/msg00132.html
26257         * top/maint.mk (_empty, _sp): Move their definition earlier.
26258         (member-check, release-type): New.
26259         Use the latter instead of $(RELEASE_TYPE).
26260         Remove now useless local checks.
26262 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
26264         maint.mk: provide "make upload" to ease uploading
26265         See
26266         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00028.html>.
26267         Do not depend simply on the current $(VERSION), as there may have been
26268         new commits since the tarball generation.  Rather, rely on $(RELEASE),
26269         as "make release-commit" already does.
26271         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
26272         "make TYPE".
26274         * top/maint.mk (upload_command, upload, release): New.
26275         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
26276         (VERSION): first word of $(RELEASE) is always right.
26277         (emit_upload_commands): Adjust.
26278         * top/README-release: Update.
26280 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
26282         maint.mk: silent rules
26283         With help from Stefano Lattarini.
26284         * top/maint.mk (writable-files): Use $(AM_V_GEN).
26285         (announcement): Use $(AM_V_at).
26287 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
26289         localename: port gl_locale_name_thread_unsafe to FreeBSD
26290         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
26291         and use the simpler FreeBSD implementation on Mac OS X as well.
26292         Original idea suggested by Ed Maste in
26293         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00094.html>.
26295 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
26297         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
26298         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
26299         * lib/mbuiter.c, lib/xsize.c: New files.
26300         * lib/binary-io.h (BINARY_IO_INLINE):
26301         * lib/eealloc.h (EEALLOC_INLINE):
26302         * lib/mbfile.h (MBFILE_INLINE):
26303         * lib/mbiter.h (MBITER_INLINE):
26304         * lib/mbuiter.h (MBUITER_INLINE):
26305         * lib/xsize.h (XSIZE_INLINE):
26306         New macros.
26307         Replace all uses of 'static inline' with them.
26308         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
26309         * m4/eealloc.m4 (gl_EEALLOC):
26310         * m4/mbfile.m4 (gl_MBFILE):
26311         * m4/mbiter.m4 (gl_MBITER):
26312         * m4/xsize.m4 (gl_XSIZE):
26313         Do not require AC_C_INLINE.
26314         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
26315         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
26316         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
26317         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
26318         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
26319         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
26320         * modules/binary-io, modules/eealloc, modules/mbfile:
26321         * modules/mbiter, modules/mbuiter:
26322         (Depends-on): Add extern-inline.
26324         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
26325         * lib/pipe-filter-aux.c: New file.
26326         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
26327         Replace all uses of 'static inline' with it.
26328         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
26329         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
26330         (filter_retcode): No real need for inline here.
26331         * modules/pipe-filter-gi, modules/pipe-filter-ii:
26332         (Files): Add lib/pipe-filter-aux.c.
26333         (Depends-on): Add extern-inline.
26334         (configure.ac): Do not require AC_C_INLINE.
26335         (lib_SOURCES): Add pipe-filter-aux.c.
26337         fdutimensat: omit unnecessary AC_C_INLINE
26338         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
26340         fchmodat, fchownat, fstatat: use extern-inline
26341         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
26342         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
26343         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
26344         New macros.
26345         * lib/openat.h:
26346         Replace all uses of 'static inline' with them.
26347         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
26348         * modules/fchmodat, modules/fchownat, modules/fstatat:
26349         * modules/openat-h:
26350         (Depends-on):
26351         Add extern-inline.
26352         (configure.ac): Remove AC_C_INLINE.
26354         acl, mbchar, priv-set: use extern-inline
26355         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
26356         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
26357         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
26358         New macros.
26359         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
26360         Replace all uses of 'static inline' with it.
26361         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
26362         * m4/acl.m4 (gl_FUNC_ACL):
26363         * m4/mbchar.m4 (gl_MBCHAR):
26364         * m4/priv-set.m4 (gl_PRIV_SET):
26365         Remove AC_C_INLINE, since 'inline' is no longer used directly.
26366         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
26367         Add extern-inline.
26369         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
26370         * m4/sockets.m4 (gl_SOCKETS):
26371         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
26372         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
26373         environments where it's already guaranteed to work, so we needn't
26374         check for it at 'configure'-time.
26376         tls-tests: omit unnecessary 'inline'
26377         * tests/test-tls.c (perhaps_yield): No longer inline.
26378         Simplicity and portability trump efficiency in test cases.
26380         utimens-tests: avoid unnecessary 'inline'
26381         * modules/fdutimensat-tests (configure.ac):
26382         * modules/futimens-tests (configure.ac):
26383         * modules/utimens-tests (configure.ac):
26384         * modules/utimensat-tests (configure.ac):
26385         Remove AC_C_INLINE.
26386         * tests/test-utimens-common.h (ctime_compare):
26387         No longer inline.  Simplicity and portability trump efficiency here.
26389         misc: don't limit commentary to inline functions
26390         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
26391         * lib/xalloc-oversized.h, lib/xsize.h:
26392         Contrast macros to functions in general, not just to inline functions,
26393         when the commentary does not apply only to inline functions.
26395 2012-09-20  Jim Meyering  <meyering@redhat.com>
26397         non-recursive-gnulib-prefix-hack: new module
26398         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
26399         the file that originated in Bison.
26400         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
26401         largely copied from a snippet that resided in bison's configure.ac.
26402         * modules/non-recursive-gnulib-prefix-hack: New file.
26403         * MODULES.html.sh (Support for maintaining and releasing projects):
26404         Add it.
26406 2012-09-18  Jim Meyering  <meyering@redhat.com>
26408         maint.mk: generalize _gl_tight_scope for non-recursive make
26409         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
26410         that *.h would describe additional .h files in the directory
26411         specified by $(_gl_TS_dir).  I.e., add this...
26412         (_gl_TS_other_headers): New variable.
26414         maint.mk: exempt trailing blanks found in "binary" files
26415         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
26416         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
26417         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
26419 2012-09-17  Jim Meyering  <meyering@redhat.com>
26421         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
26422         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
26423         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
26424         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
26426 2012-09-17  Jim Meyering  <meyering@redhat.com>
26428         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
26429         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
26430         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
26431         It is not in the same category as "exit (0)" or "exit (1)", and
26432         besides, I know of no symbolic name for that 77.  Reported by
26433         Richard W.M. Jones in
26434         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
26436 2012-09-17  Jim Meyering  <meyering@redhat.com>
26438         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
26439         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
26440         all uses of #define, not just those that start in column 1.
26441         Richard W.M. Jones reported a false positive in
26442         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
26444 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
26446         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
26447         * lib/localcharset.c (locale_charset) [DARWIN7]:
26448         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
26449         as these two values are incompatible.  Problem reported by Max Horn.
26450         For more discussion, please see
26451         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00061.html>.
26453         doc: document sticky-EOF issue
26454         * doc/posix-functions/fgetc.texi (fgetc):
26455         * doc/posix-functions/fgets.texi (fgets):
26456         * doc/posix-functions/fread.texi (fread):
26457         * doc/posix-functions/fscanf.texi (fscanf):
26458         * doc/posix-functions/getc.texi (getc):
26459         * doc/posix-functions/getchar.texi (getchar):
26460         * doc/posix-functions/scanf.texi (scanf):
26461         Mention that glibc and default Solaris do not conform to
26462         C99 and POSIX-2001 or later, with respect to how getchar
26463         etc. behave when feof reports nonzero.
26465 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
26467         poll: fix poll(0, NULL, msec)
26468         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
26469         but nfd is 0.  In that case poll should behave like select.
26471 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
26472             Paolo Bonzini  <bonzini@gnu.org>
26474         poll: fix for systems that can't recv() on a non-socket
26475         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
26476         is readable.  In this case POLLHUP will not be supported.
26477         * doc/posix-functions/poll.texi: Document this.
26479 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
26481         poll/select: document portability problems not fixed by Gnulib.
26482         * doc/posix-functions/poll.texi: poll does not work well on
26483         pipes under Windows.  It has the same limitations as select on
26484         BeOS.
26485         * doc/posix-functions/select.texi: select does not work well
26486         on pipes under Windows.
26488 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
26490         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
26491         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
26492         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
26493         <http://lists.gnu.org/r/bug-tar/2012-07/msg00018.html>.
26495 2012-09-06  Eric Blake  <eblake@redhat.com>
26497         net_if: give more details about the bug being fixed
26498         * doc/posix-headers/net_if.texi: Add clarification.
26500 2012-09-05  Eric Blake  <eblake@redhat.com>
26502         net_if: new module
26503         * modules/net_if: New module, borrowing ideas from netinet_in.
26504         * m4/net_if_h.m4: New file.
26505         * lib/net_if.in.h: Likewise.
26506         * doc/posix-headers/net_if.texi (net/if.h): Document it.
26507         * MODULES.html.sh (lacking POSIX:2008): Likewise.
26508         * tests/test-net_if.c: Make function checks conditional.
26509         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
26511 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
26513         readutmp: fix non-portable UT_PID use
26514         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
26515         Use `UT_PID (u) > 0' as absolute condition.
26517 2012-09-04  Jim Meyering  <meyering@redhat.com>
26519         fts: reduce two or more trailing spaces to just one, usually
26520         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
26521         or more slashes, trim all but the final one.  But if a name consists
26522         solely of two slashes, don't modify it.  If it consists solely of
26523         three or more slashes, strip all but one.
26525         This is part of the solution to a minor problem with rm:
26526         it would print a bogus ELOOP diagnostic when failing to remove
26527         the slash-decorated name of a symlink-to-directory:
26529             $ mkdir d && ln -s d s && env rm -r s/
26530             rm: cannot remove 's': Too many levels of symbolic links
26532         With the change below and a trivial don't-trim-trailing-slashes
26533         adjustment to remove.c, it does this:
26535             $ env rm -r s/
26536             rm: cannot remove 's/': Not a directory
26538         Improved by: Eric Blake
26540         fts: when there is no risk of overlap, use memcpy, not memmove
26541         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
26543 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
26545         stdbool: be more compatible with mixed C/C++ compiles
26546         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
26547         Define to bool, true, false, respectively, as GCC's builtin
26548         stdbool.h does.  Problem reported by Michael Goffioul in
26549         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00143.html>.
26551 2012-08-28  Jim Meyering  <meyering@redhat.com>
26553         revert last change: it was not needed
26554         * tests/test-vc-list-files-git.sh: There's already a test for
26555         a working git, just below.
26557 2012-08-28  Jim Meyering  <meyering@redhat.com>
26559         tests: test-vc-list-files-git.sh: skip if git is not available
26560         * tests/test-vc-list-files-git.sh: Skip this test when git is
26561         not available.
26563 2012-08-26  Bruno Haible  <bruno@clisp.org>
26565         gnulib-tool: Remove no-op option --no-changelog.
26566         * gnulib-tool (func_usage): Don't mention --no-changelog.
26567         (do_changelog): Remove variable.
26568         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
26570 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
26572         doc: remove fdl-1.2.texi
26573         It is no longer used or maintained, and its use of @acronym
26574         is problematic.  See the thread containing
26575         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00134.html>.
26576         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
26577         * doc/old-licenses/fdl-1.2.texi: Remove.
26579         execinfo: port to FreeBSD
26580         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
26581         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
26582         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00113.html>.
26583         * modules/execinfo (Link): Add $(LIB_EXECINFO).
26585 2012-08-23  Jim Meyering  <meyering@redhat.com>
26587         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
26588         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
26589         to placate gcc's -Wold-style-declaration.
26591 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
26593         doc: do not use @acronym
26594         * doc/inet_ntoa.texi (inet_ntoa):
26595         * doc/parse-datetime.texi (Seconds since the Epoch)
26596         (Specifying time zone rules):
26597         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
26598         Don't use @acronym.  Problem reported by John Darlington in
26599         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00124.html>.
26601 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
26603         stdnoreturn: port to newer GCCs
26604         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
26605         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
26606         Problem reported by Jim Meyering in
26607         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00121.html>.
26608         Also, rename the 'test' function to a void a clash with the
26609         already-supplied 'main' function; this fixes a bug that incorrectly
26610         rejected GCC 4.7.1's <stdnoreturn.h>.
26611         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
26612         Document GCC problem.
26614 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
26616         pipe-filter: fix comment typo
26617         * lib/pipe-filter.h: Mention correct function.
26619 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
26621         execinfo: new module
26622         This is for Emacs.  Currently, it provides a no-effect stub
26623         on all platforms where it does not already work.
26624         It already works on glibc-based systems, and on Solaris 11.
26625         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
26626         New files.
26627         * doc/glibc-headers/execinfo.texi (execinfo.h):
26628         * MODULES.html.sh (Misc): Document it.
26630 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
26632         extern-inline: support old GCC 'inline'
26633         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
26634         if available.  This applies to GCC versions 2.7 through 4.2, or
26635         when newer GCC is using -fgnu89-inline.  The goal is to address
26636         some of the performance issues mentioned by Bruno Haible in
26637         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00097.html>.
26639 2012-08-20  Eric Blake  <eblake@redhat.com>
26641         maint.mk: avoid redundant file name in message
26642         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
26643         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
26644         (sc_makefile_path_separator_check): Remove bogus $(ME).
26646 2012-08-20  Mike Frysinger  <vapier@gentoo.org>
26648         timer-time: fix link order when static linking on glibc
26649         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
26650         _after_ -lrt so that it's significant.
26652 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
26654         timespec: omit unnecessary AC_C_INLINE
26655         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
26657         stat-time: omit unnecessary AC_C_INLINE
26658         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
26659         Do not require AC_C_INLINE.
26661         ignore-value: omit unnecessary AC_C_INLINE
26662         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
26664         sys_select: avoid 'static inline'
26665         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
26667         mktime: avoid 'static inline'
26668         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
26669         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
26671 2012-08-19  Bruno Haible  <bruno@clisp.org>
26673         gnulib-tool: Improve coding style.
26674         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
26675         func_emit_lib_Makefile_am.
26676         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
26678 2012-08-19  Bruno Haible  <bruno@clisp.org>
26680         gnulib-tool: Fix indentation.
26681         * gnulib-tool (func_import): Fix indentation.
26683 2012-08-19  Bruno Haible  <bruno@clisp.org>
26685         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
26686         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
26687         on the list of removed files.
26689 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
26691         test-parse-datetime: avoid glibc leap-second glitch
26692         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
26693         with the 2012 rules.  Problem reported by Bruce Dubbs in
26694         <http://bugs.gnu.org/12206>.
26696 2012-08-14  Bruno Haible  <bruno@clisp.org>
26698         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
26699         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
26700         from argument.
26701         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
26703 2012-08-14  Eric Blake  <eblake@redhat.com>
26705         ldexp: relax license
26706         * modules/ldexp (License): Trivial relax, since the module only
26707         provides a permissively licensed m4 file.
26709 2012-08-13  Bruno Haible  <bruno@clisp.org>
26711         gnulib-tool: Fix persistence of --witness-c-macro option.
26712         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
26713         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
26715 2012-08-11  Eric Blake  <eblake@redhat.com>
26717         count-leading-zeros: use a lookup table on non-gcc compilers
26718         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
26719         alternate implementation, suggested by Jim Meyering.
26721 2012-08-10  Eric Blake  <eblake@redhat.com>
26723         count-leading-zeros: new module
26724         * modules/count-leading-zeros: New module.
26725         * m4/count-leading-zeros.m4: New file.
26726         * lib/count-leading-zeros.h: Likewise.
26727         * modules/count-leading-zeros-tests: New test.
26728         * tests/test-count-leading-zeros.c: New file.
26729         * MODULES.html.sh (Integer arithmetic functions): Document it.
26731 2012-08-07  Simon Josefsson  <simon@josefsson.org>
26732             Jim Meyering  <meyering@redhat.com>
26734         maintainer-makefile: Fix syntax error with dash.
26735         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
26736         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
26738 2012-08-05  Jim Meyering  <meyering@redhat.com>
26740         extern-inline: also ignore -Wmissing-declarations
26741         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
26742         required with gcc-4.8.0-to-be.
26744         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
26745         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
26746         for /error ?([^,]*)/.  This avoids false-positives for strings like
26747         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
26749 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
26751         gnumakefile: better interaction with Automake-NG
26752         * modules/gnumakefile [Makefile.am]: The makefiles generated by
26753         Automake-NG always contain a definition of VPATH, even in non-VPATH
26754         builds (its value being simply '.' in that case).  So, in the
26755         'clean-GNUmakefile' rule, to determine whether running under a
26756         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
26757         '$(VPATH)' expands to the empty string.
26759 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
26761         base64: Use extern C scope in header file, for C++.
26762         * lib/base64.h: Add C++ namespace protection.
26764 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
26766         stat-time, timespec, u64: support naive out-of-dir builds
26767         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
26768         Use '#include "foo.h"', not '#include <foo.h>', when including
26769         one's own interface.  This works better when configuring with
26770         out-of-directory builds, since packages need not add an
26771         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
26773 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
26775         utimens: use extern-inline
26776         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
26777         * lib/utimens.h: Add copyright notice, since this is now large enough
26778         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
26779         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
26780         * modules/utimens (Depends-on): Add extern-inline.
26782         u64: use extern-inline
26783         * lib/u64.c: New file.
26784         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
26785         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
26786         * modules/u64 (Files): Add lib/u64.c.
26787         (Depends-on): Add extern-inline.
26788         (configure.ac): No need to require AC_C_INLINE, since extern-inline
26789         does that now.
26790         (lib_SOURCES): Add u64.c.
26792         timespec: use extern-inline
26793         * lib/timespec.c: New file.
26794         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
26795         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
26796         * modules/timespec (Files): Add lib/timespec.c.
26797         (Depends-on): Add extern-inline.
26798         (lib_SOURCES): Add timespec.c.
26800         stat-time: use extern-inline
26801         * lib/stat-time.c: New file.
26802         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
26803         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
26804         * modules/stat-time (Files): Add lib/stat-time.c.
26805         (Depends-on): Add extern-inline.
26806         (lib_SOURCES): Add stat-time.c.
26808         extern-inline: new module
26809         * modules/extern-inline, m4/extern-inline.m4: New files.
26810         This is for better support of 'extern inline' a la ISO C99,
26811         with a portable alternative on compilers that do not support
26812         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
26813         of the Emacs executable, when compiled with debugging disabled,
26814         which is a typical way that Emacs is built while developing.
26816 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
26818         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
26819         * build-aux/do-release-commit-and-tag: Move variable definitions
26820         together.
26821         ($branch): Instead of defaulting to "master", default to the current
26822         branch (as gnu-web-doc-update does).
26823         (help): Display the current values of the option arguments.
26824         * top/maint.mk (release-commit): New.
26825         * top/README-release: Simplify the corresponding step.
26827 2012-07-30  Eric Blake  <eblake@redhat.com>
26829         passfd: fix comment on recvfd
26830         * lib/passfd.c (recvfd): Fix comment.
26831         Reported by Jann Horn <jannhorn@googlemail.com>.
26833 2012-07-30  Jim Meyering  <meyering@redhat.com>
26835         maint.mk: avoid a sub-shell
26836         * top/maint.mk (release-prep): Remove unneeded sub-shell.
26838 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
26840         maint.mk: use silent-rules support from Automake
26841         * top/maint.mk (news-check, vc-diff-check, announcement)
26842         (no-submodule-changes, alpha beta stable, release-prep)
26843         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
26845 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
26847         maint.mk: provide a web-manual-update target
26848         * top/maint.mk: here.
26849         * top/README-release: Use it to simplify the web manual update step.
26851 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
26853         README-release: shorten the circuit to post a news
26854         * top/README-release: Point directly to the news submission form.
26856 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
26858         gnu-web-doc-update: fix --help
26859         * build-aux/gnu-web-doc-update: The information "top level" was written
26860         twice.
26862 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
26864         maint.mk: absolute VPATH issue
26865         * top/maint.mk (release-prep): Help Git find .git/.
26866         From Jim Meyering.
26868 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
26870         gitlog-to-changelog: fix previous change
26871         * build-aux/gitlog-to-changelog: Fix condition.
26872         Add missing ";".
26874 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
26876         gitlog-to-changelog: don't expect .git to be in $srcdir
26877         Reported by Bruno Haible.
26878         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00265.html>
26879         * build-aux/gitlog-to-changelog (&git_dir_option): New.
26880         Use it.
26882 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
26884         maint.mk: absolute VPATH build fix
26885         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
26886         $(srcdir) is not a parent of $(builddir).
26888 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
26890         clean-temp: Fix memory leak.
26891         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
26892         'files' members of tmpdir.
26894 2012-07-27  Jim Meyering  <meyering@redhat.com>
26896         maint.mk: new rule: refresh-gnulib-patches
26897         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
26898         Use this rule to refresh them.
26899         * top/maint.mk (refresh-gnulib-patches): New rule.
26901 2012-07-24  Bruno Haible  <bruno@clisp.org>
26903         gnulib-tool: Fix handling of inctests variable.
26904         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
26905         Reported by Nick Bowler <nbowler@elliptictech.com>.
26907 2012-07-22  Bruno Haible  <bruno@clisp.org>
26909         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
26910         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
26911         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
26912         Remove exemption for getpass.h.
26913         Suggested by Eric Blake.
26915 2012-07-20  Eric Blake  <eblake@redhat.com>
26917         verify: document conflict with -Wnested-externs
26918         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
26920         maint.mk: forbid exit(-1)
26921         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
26923 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
26925         fsusage: port back to Solaris
26926         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
26927         error (fsd not declared) on Solaris 10.  Reported privately by
26928         Andrew Borodin.
26930 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
26932         gnu-web-doc-update: fix error messages
26933         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
26935         gnu-web-doc-update: check the requirements.
26936         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
26937         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
26938         * build-aux/bootstrap (find_tool): Comment change.
26940 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
26942         maint.mk: minor simplication.
26943         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
26944         for default values.
26946 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
26948         gitlog-to-changelog: VPATH build issues
26949         If builddir is not a subdirectory of srcdir, running git from it will
26950         fail.
26951         * build-aux/gitlog-to-changelog (--srcdir): New option.
26953 2012-07-15  Bruno Haible  <bruno@clisp.org>
26955         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
26956         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
26957         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
26958         Remove exemption for fpending.h.
26959         Suggested by Eric Blake.
26961 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
26963         pthread_sigmask: fix bug on FreeBSD 9
26964         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
26965         Include string.h.
26966         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
26967         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
26968         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
26969         but pthread_sigmask (1729, NULL, NULL) returns zero.
26970         See <http://bugs.gnu.org/11884>.
26971         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
26972         by inspecting whether the main call changed the old mask.
26974 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
26976         README-release: make it more legible
26977         * top/README-release: Improve typography slightly.
26979 2012-07-15  Jim Meyering  <meyering@redhat.com>
26981         maint: require that each sc_... command start with "@"
26982         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
26983         "make sc_maint" helps us avoid this nit.
26985 2012-07-15  Jim Meyering  <meyering@redhat.com>
26987         maint.mk: add leading "@" to quiet new "make syntax-check" rule
26988         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
26990 2012-07-13  Eric Blake  <eblake@redhat.com>
26992         maint.mk: new syntax check for HAVE_DECL checks
26993         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
26994         * cfg.mk
26995         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
26996         Exempt some false positives.
26997         Based on a report by Karel Zak.
26999         argp: make HAVE_DECL usage consistent
27000         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
27001         macros, not whether they are defined.
27002         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
27003         convention with other declaration checks.
27004         Reported by Karel Zak, with suggestions from Paul Eggert.
27006         stat-time: relax license to LGPLv2+
27007         * modules/stat-time (License): Relax, with consent of all authors.
27009         strndup: fix m4 usage error
27010         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
27011         defined, to either 0 or 1.
27012         Reported by Karel Zak.
27014 2012-07-11  Jim Meyering  <meyering@redhat.com>
27016         maint: enable the sc_avoid_if_before_free syntax-check rule
27017         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
27018         (if_before_free_offenders_): Define.
27019         (if_before_free_basename_re_): Define.
27020         Exempt current files with useless if-before-free.
27022 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
27024         gettext: do not assume '#define ... defined ...' behavior
27025         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
27026         Do not use '#define FOO ... defined BAR ...', as the C standard says
27027         it's not portable to expect that this works after macro expansion.
27028         Problem reported for gzip by Steven M. Schweda in
27029         <http://lists.gnu.org/r/bug-gzip/2012-07/msg00000.html>.
27031 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
27033         getloadavg: clean out old Emacs and Autoconf cruft
27034         See Glenn Morris in <http://bugs.gnu.org/11905>.
27035         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
27036         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
27037         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
27038         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
27040 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
27042         bootstrap: let warn be like tests/init.sh's warn_
27043         Reported by Jim Meyering.
27044         * build-aux/bootstrap (warn): Remove, replaced by...
27045         (warnf_, warn_): these.
27046         Adjust callers.
27047         Shorten messages that no longer fit in 80 columns.
27049 2012-07-09  Bruno Haible  <bruno@clisp.org>
27051         getopt: Simplify after Emacs changed.
27052         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
27053         (gl_GETOPT_IFELSE): Remove macro.
27055 2012-07-09  Jim Meyering  <meyering@redhat.com>
27057         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
27058         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
27060         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
27061         Bugs in both of those conspired to make the
27062         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
27063         _sc_search_regexp's handling of non-empty $in_files would filter
27064         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
27065         choice of in_files value meant there would be no match in most
27066         projects, due to the presence of two or more Makefile.in files.
27067         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
27068         Fix a bug in how a non-empty $$in_files was processed:
27069         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
27070         in spite of the name, it's a regexp, not a list of file names.
27072 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
27074         getloadavg, getopt: fix commentary re configure.in
27075         Autoconf is deprecating the name 'configure.in', so change it to
27076         to the new name 'configure.ac' in a couple of places.
27077         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
27078         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
27079         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
27080         Emacs has renamed it to configure.ac, and it no longer refers
27081         to these macros anyway.
27083         timespec: mark functions with const attributes
27084         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
27085         Mark with _GL_ATTRIBUTE_CONST.
27087 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
27089         canonicalize[-lgpl]: handle "guessing" values when cross-building
27090         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
27091         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
27092         matches "*yes" instead of just "yes".  Regression introduced in commit
27093         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
27095 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
27096             Bruno Haible  <bruno@clisp.org>
27098         canonicalize: make the right guess when cross-compiling to GNU
27099         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
27100         determine whether cross-compiling to glibc systems, so as to
27101         include GNU/Hurd.
27103 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
27105         timespec-sub: avoid duplicate include
27106         * lib/timespec-sub.c: Do not include <config.h> twice.
27107         Reported by Juanma Barranquero.
27109 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
27111         bootstrap: use a more consistent error reporting scheme
27112         * build-aux/bootstrap (warn, die): New.
27113         Use them.
27115 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
27117         sys_time: allow too-wide tv_sec
27118         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
27119         timeval even if tv_sec is wider than time_t.  This allows
27120         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
27121         as without this patch gnulib replaces struct timeval
27122         and OpenBSD futimes therefore has a type mismatch.
27123         * doc/posix-headers/sys_time.texi: Mention this.
27125         pthread: check for both pthread_create and pthread_join
27126         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
27127         alter the check so that it tests for both pthread_create and
27128         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
27129         Suggested by Bruno Haible and Richard Yao in
27130         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00048.html>.
27132         parse-datetime: doc tuneup
27133         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
27134         spacing issues.
27136 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
27138         do-release-commit-and-tag: fix the previous commit
27139         * build-aux/do-release-commit-and-tag: Actually the test was right,
27140         but the comment and the error message were misleading.
27141         Fix comment, and improve error message.
27142         Perform check first, so that NEWS is not modified uselessly.
27144         do-release-commit-and-tag: fix typo
27145         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
27146         _not_ start with a stub.
27148 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
27150         pthread: check for pthread_create, not pthread_join
27151         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
27152         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
27153         pthread_join in libc.  I hope this removes the need for all the
27154         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
27155         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00042.html>.
27157 2012-07-04  Jim Meyering  <meyering@redhat.com>
27159         parse-datetime: fix failure to diagnose invalid input
27160         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
27161         rather than diagnosing the invalid input.  Now it reports this:
27162         date: invalid date '\260'
27163         * lib/parse-datetime.y (to_uchar): Define.
27164         (yylex): Don't sign-extend "other" bytes.
27165         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
27166         Thanks to Bruno Haible for the patch to this file.
27167         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
27168         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
27170 2012-07-03  Jim Meyering  <meyering@redhat.com>
27172         bootstrap: do not require now-removed build-aux/missing
27173         Now that build-aux/missing is, er, missing, bootstrap would
27174         silently fail.
27175         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
27176         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
27177         no longer part of gnulib.
27178         Diagnose the failure.
27180 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
27182         alloca: add support for HP NonStop TNS/E native
27183         * lib/alloca.in.h (alloca): Support the new host.
27184         From a suggestion by Joachim Schmitz in
27185         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00355.html>.
27187 2012-07-02  Pádraig Brady  <P@draigBrady.com>
27189         fsusage: remove code not needed on non GNU/Linux systems.
27191         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
27192         Don't include headers no longer needed in this case.
27193         * lib/fsusage.c [STAT_STATVFS &&
27194         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
27195         STAT_STATFS2_FRSIZE to exclude code not used in this case.
27197 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
27199         fsusage: include files needed for glibc 2.6 fallback
27200         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
27201         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
27202         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
27203         Problem reported by Ludovic Courtès in
27204         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00005.html>.
27206         fsusage: avoid needless check on GNU/Linux
27207         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
27208         on GNU/Linux systems, since it can't possibly work.
27210 2012-07-01  Bruno Haible  <bruno@clisp.org>
27212         log: Fix an autoconf >= 2.64 warning.
27213         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
27214         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
27216 2012-06-28  Bruno Haible  <bruno@clisp.org>
27218         log10f: Fix possible configuration problem.
27219         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
27220         $LOGF_LIBM.
27221         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
27223 2012-06-28  Bruno Haible  <bruno@clisp.org>
27225         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
27226         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
27227         not gl_cv_func_unlink_works.
27228         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
27230 2012-06-27  Eric Blake  <eblake@redhat.com>
27232         config: drop scripts that automake says are not independent
27233         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
27234         * build-aux/elisp-comp: Delete.
27235         * build-aux/missing: Likewise.
27236         * build-aux/ylwrap: Likewise.
27237         * modules/elisp-comp: Likewise.
27238         * MODULES.html.sh: Drop mention of elisp-comp.
27239         * NEWS: Mention this.
27241 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
27243         root-uid: new module
27244         This is for portability to Tandem's NonStop Kernel.
27245         * lib/root-uid.h, modules/root-uid: New files.
27246         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
27247         * lib/write-any-file.c, tests/test-sethostname2.c:
27248         Include "root-uid.h".
27249         * lib/euidaccess.c (euidaccess):
27250         * lib/pt_chown.c (main):
27251         * lib/unlinkdir.c (cannot_unlink_dir):
27252         * lib/write-any-file.c (can_write_any_file):
27253         * m4/mknod.m4 (gl_FUNC_MKNOD):
27254         * tests/test-sethostname2.c (geteuid, main):
27255         Don't assume ROOT_UID == 0.
27256         * modules/euidaccess (Depends-on):
27257         * modules/pt_chown (Depends-on):
27258         * modules/sethostname-tests (Depends-on):
27259         * modules/unlinkdir (Depends-on):
27260         * modules/write-any-file (Depends-on):
27261         Add root-uid.
27263         regex: use locale-independent comparison for codeset name
27264         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
27265         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
27266         for codeset name.
27267         * lib/regex_internal.h: Do not include <strings.h>, since we
27268         no longer use strcasecmp.
27269         * modules/regex (Depends-on): Remove strcase.
27271 2012-06-23  Bruno Haible  <bruno@clisp.org>
27273         getopt-posix: No longer guarantee that option processing is resettable.
27274         * doc/posix-functions/getopt.texi: Drop description of problem with
27275         internal state. Fix info about mingw and msvc9.
27276         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
27277         option processing by getopt(). Run three test programs instead of one.
27278         Simplify cross-compilation guess.
27279         * NEWS: Mention the change.
27280         Reported by Rich Felker <dalias@aerifal.cx>.
27282 2012-06-26  Bruno Haible  <bruno@clisp.org>
27284         argp, regex: Ensure strcasecmp gets declared.
27285         * lib/argp-help.c: Include <strings.h>.
27286         * lib/regex_internal.h: Likewise.
27287         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
27289 2012-06-24  Bruno Haible  <bruno@clisp.org>
27291         ptsname_r: Make it consistent with ptsname on AIX.
27292         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
27293         implementation as for OSF/1.
27294         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
27295         a pty master.
27297         ptsname_r: Make it consistent with ptsname on OSF/1.
27298         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
27299         OSF/1.
27301 2012-06-24  Bruno Haible  <bruno@clisp.org>
27303         ttyname_r: Fix result on OSF/1, Solaris.
27304         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
27306 2012-06-24  Bruno Haible  <bruno@clisp.org>
27308         ptsname_r: Add support for Solaris.
27309         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
27310         Solaris.
27312         ptsname_r: Fix test failure on native Windows.
27313         * modules/ptsname_r (Depends-on): Add isatty.
27315         ptsname_r: Fix test failures on IRIX, Solaris.
27316         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
27317         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
27318         accordingly.
27319         * lib/ptsname_r.c: Include <fcntl.h>.
27320         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
27321         set errno if fd is invalid.
27322         * tests/test-isatty.c (main): Update comments.
27324 2012-06-24  Bruno Haible  <bruno@clisp.org>
27326         ptsname test: Extend test.
27327         * tests/test-ptsname.c: Include <errno.h>.
27328         (main): Test behaviour with invalid file descriptor.
27330 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
27332         time: fix obsolete comment
27333         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
27334         reference to HAVE_STRUCT_TIMESPEC in comment.
27336 2012-06-23  Bruno Haible  <bruno@clisp.org>
27338         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
27339         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
27340         does not handle abbreviated long options with equivalent
27341         disambiguations, set gl_replace_getopt to yes.
27342         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
27344 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
27346         time_r: fix typo that always overrode localtime_r decl
27347         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
27348         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
27349         not in a standard include.
27351 2012-06-22  Bruno Haible  <bruno@clisp.org>
27353         Write "Mac OS X" instead of "MacOS X".
27354         * README: Write "Mac OS X" instead of "MacOS X".
27355         * build-aux/bootstrap: Likewise.
27356         * build-aux/install-reloc: Likewise.
27357         * lib/acl-internal.h: Likewise.
27358         * lib/acl_entries.c: Likewise.
27359         * lib/argp-ba.c: Likewise.
27360         * lib/argp-pv.c: Likewise.
27361         * lib/config.charset: Likewise.
27362         * lib/copy-acl.c: Likewise.
27363         * lib/csharpexec.c: Likewise.
27364         * lib/euidaccess.c: Likewise.
27365         * lib/fbufmode.c: Likewise.
27366         * lib/fflush.c: Likewise.
27367         * lib/file-has-acl.c: Likewise.
27368         * lib/filemode.h: Likewise.
27369         * lib/fpurge.c: Likewise.
27370         * lib/freadable.c: Likewise.
27371         * lib/freadahead.c: Likewise.
27372         * lib/freading.c: Likewise.
27373         * lib/freadptr.c: Likewise.
27374         * lib/freadseek.c: Likewise.
27375         * lib/fseeko.c: Likewise.
27376         * lib/fseterr.c: Likewise.
27377         * lib/fsusage.c: Likewise.
27378         * lib/fwritable.c: Likewise.
27379         * lib/fwriting.c: Likewise.
27380         * lib/get-rusage-as.c: Likewise.
27381         * lib/get-rusage-data.c: Likewise.
27382         * lib/getdomainname.c: Likewise.
27383         * lib/idpriv-drop.c: Likewise.
27384         * lib/idpriv-droptemp.c: Likewise.
27385         * lib/localcharset.c: Likewise.
27386         * lib/locale.in.h: Likewise.
27387         * lib/localename.c: Likewise.
27388         * lib/mbsrtowcs-state.c: Likewise.
27389         * lib/nproc.c: Likewise.
27390         * lib/passfd.c: Likewise.
27391         * lib/posix_openpt.c: Likewise.
27392         * lib/printf-parse.c: Likewise.
27393         * lib/progreloc.c: Likewise.
27394         * lib/safe-read.h: Likewise.
27395         * lib/safe-write.h: Likewise.
27396         * lib/sched.in.h: Likewise.
27397         * lib/set-mode-acl.c: Likewise.
27398         * lib/signal.in.h: Likewise.
27399         * lib/stdint.in.h: Likewise.
27400         * lib/stdio-impl.h: Likewise.
27401         * lib/stdlib.in.h: Likewise.
27402         * lib/strtod.c: Likewise.
27403         * lib/sys_select.in.h: Likewise.
27404         * lib/tcgetsid.c: Likewise.
27405         * lib/unistd.in.h: Likewise.
27406         * lib/unlockpt.c: Likewise.
27407         * lib/vasnprintf.c: Likewise.
27408         * lib/vma-iter.c: Likewise.
27409         * lib/wcsrtombs-state.c: Likewise.
27410         * m4/acl.m4: Likewise.
27411         * m4/acosl.m4: Likewise.
27412         * m4/asinl.m4: Likewise.
27413         * m4/atanl.m4: Likewise.
27414         * m4/c-stack.m4: Likewise.
27415         * m4/cosl.m4: Likewise.
27416         * m4/expl.m4: Likewise.
27417         * m4/extensions.m4: Likewise.
27418         * m4/fdatasync.m4: Likewise.
27419         * m4/fmal.m4: Likewise.
27420         * m4/frexp.m4: Likewise.
27421         * m4/frexpf.m4: Likewise.
27422         * m4/frexpl.m4: Likewise.
27423         * m4/fsusage.m4: Likewise.
27424         * m4/getdomainname.m4: Likewise.
27425         * m4/getloadavg.m4: Likewise.
27426         * m4/getopt.m4: Likewise.
27427         * m4/gettext.m4: Likewise.
27428         * m4/gnulib-common.m4: Likewise.
27429         * m4/intdiv0.m4: Likewise.
27430         * m4/intlmacosx.m4: Likewise.
27431         * m4/largefile.m4: Likewise.
27432         * m4/ldexpl.m4: Likewise.
27433         * m4/link-follow.m4: Likewise.
27434         * m4/locale-ar.m4: Likewise.
27435         * m4/locale-fr.m4: Likewise.
27436         * m4/locale-ja.m4: Likewise.
27437         * m4/locale-tr.m4: Likewise.
27438         * m4/locale-zh.m4: Likewise.
27439         * m4/locale_h.m4: Likewise.
27440         * m4/lock.m4: Likewise.
27441         * m4/logl.m4: Likewise.
27442         * m4/mathfunc.m4: Likewise.
27443         * m4/minus-zero.m4: Likewise.
27444         * m4/mktime.m4: Likewise.
27445         * m4/mmap-anon.m4: Likewise.
27446         * m4/multiarch.m4: Likewise.
27447         * m4/nanosleep.m4: Likewise.
27448         * m4/nocrash.m4: Likewise.
27449         * m4/poll.m4: Likewise.
27450         * m4/printf-frexpl.m4: Likewise.
27451         * m4/printf.m4: Likewise.
27452         * m4/signbit.m4: Likewise.
27453         * m4/sinl.m4: Likewise.
27454         * m4/sqrtl.m4: Likewise.
27455         * m4/strerror_r.m4: Likewise.
27456         * m4/tanl.m4: Likewise.
27457         * m4/threadlib.m4: Likewise.
27458         * m4/ttyname_r.m4: Likewise.
27459         * m4/unlink.m4: Likewise.
27460         * m4/visibility.m4: Likewise.
27461         * m4/wcwidth.m4: Likewise.
27462         * tests/minus-zero.h: Likewise.
27463         * tests/test-alloca-opt.c: Likewise.
27464         * tests/test-copy-acl.sh: Likewise.
27465         * tests/test-copy-file.sh: Likewise.
27466         * tests/test-fdatasync.c: Likewise.
27467         * tests/test-file-has-acl.sh: Likewise.
27468         * tests/test-flock.c: Likewise.
27469         * tests/test-fsync.c: Likewise.
27470         * tests/test-localename.c: Likewise.
27471         * tests/test-malloca.c: Likewise.
27472         * tests/test-nonblocking-pipe.h: Likewise.
27473         * tests/test-nonblocking-socket.h: Likewise.
27474         * tests/test-openpty.c: Likewise.
27475         * tests/test-posix_openpt.c: Likewise.
27476         * tests/test-ptsname.c: Likewise.
27477         * tests/test-ptsname_r.c: Likewise.
27478         * tests/test-sameacls.c: Likewise.
27479         * tests/test-select.h: Likewise.
27480         * tests/test-set-mode-acl.sh: Likewise.
27481         * tests/test-snprintf-posix.h: Likewise.
27482         * tests/test-sprintf-posix.h: Likewise.
27483         * tests/test-strtod.c: Likewise.
27484         * tests/test-time.c: Likewise.
27485         * tests/test-vasnprintf-posix.c: Likewise.
27486         * tests/test-vasprintf-posix.c: Likewise.
27487         * doc/acl-resources.txt: Likewise.
27488         * doc/**/*.texi: Likewise.
27489         Reported by Max Horn <max@quendi.de>.
27491 2012-06-22  Bruno Haible  <bruno@clisp.org>
27493         grantpt: Relax requirement regarding invalid file descriptors.
27494         * lib/grantpt.c: Don't include <fcntl.h>.
27495         (grantpt): Don't verify the validity of the file descriptor.
27496         * modules/grantpt (Depends-on): Remove fcntl-h.
27497         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
27498         file descriptors.
27499         * doc/posix-functions/grantpt.texi: Document more platforms on which
27500         grantpt succeeds for invalid file descriptors.
27501         Reported by Rich Felker <dalias@aerifal.cx>.
27503 2012-06-22  Bruno Haible  <bruno@clisp.org>
27505         fbufmode test: Don't test unportable behaviour.
27506         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
27507         (main): Invoke it three times.
27508         Reported by Szabolcs Nagy <nsz@port70.net>
27509         and Rich Felker <dalias@aerifal.cx>.
27511 2012-06-21  Bruno Haible  <bruno@clisp.org>
27513         gnulib-tool: Refactor inctests variable.
27514         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
27515         (func_modules_transitive_closure,
27516         func_modules_transitive_closure_separately,
27517         func_import, func_create_testdir): Update.
27519         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
27520         * gnulib-tool: Accept option --without-tests.
27521         (func_usage): Document --without-tests option. Rearrange.
27522         (inctests): Normalize according to the mode.
27523         * NEWS: Mention the change.
27524         Suggested by Simon Josefsson.
27526 2012-06-21  Bruce Korb  <bkorb@gnu.org>
27528         parse-duration test: Avoid spurious output.
27529         * tests/test-parse-duration.sh: Reindent with leading tabs.
27531 2012-06-21  Jim Meyering  <meyering@redhat.com>
27533         maint: disable the strncpy prohibition
27534         * cfg.mk: Do not prohibit strncpy here.
27536 2012-06-21  Bruno Haible  <bruno@clisp.org>
27538         nonblocking: Avoid compilation error on mingw64.
27539         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
27540         fscanf.
27541         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
27542         * modules/vfscanf (configure.ac): Likewise.
27543         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
27544         definition only if stdio.h has prepared it.
27545         Reported by Daniel P. Berrange <berrange@redhat.com>.
27547 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
27549         gnulib-tool: Use readlink if it is available.
27550         * gnulib-tool (func_readlink): Choose function more appropriately.
27552 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
27554         posixtm-tests: port to buggy compiler
27555         Problem reported by Simon Josefsson in
27556         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00246.html>.
27557         * modules/posixtm-tests (Depends-on): Add stdint.
27558         * tests/test-posixtm.c (struct posixtm_test.t_expected):
27559         Now of type int_least64_t, not int64_t, both because that's
27560         what INT64_C returns and because int_least64_t works even
27561         on 72-bit hosts.
27562         (T): Use INT64_C on constants outside the traditional int range,
27563         to work around compiler bug noted by Simon.
27565         mktime: fix integer overflow in 'configure'-time test
27566         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
27567         after integer overflow.  Problem reported by Rich Felker in
27568         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00257.html>.
27569         Also, don't look for further instances of a bug if we've already
27570         found one instance; this helps 'configure' run faster.
27572 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
27574         tmpfile, clean-temp: Fix invocation of GetVersionEx.
27575         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
27576         GetVersionEx correctly.
27577         * lib/clean-temp.c (supports_delete_on_close): Likewise.
27579 2012-06-20  Bruno Haible  <bruno@clisp.org>
27581         fdopen: Allow implementations that don't reject invalid fd arguments.
27582         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
27583         succeeds.
27584         Reported by Rich Felker <dalias@aerifal.cx>.
27586 2012-06-20  Simon Josefsson  <simon@josefsson.org>
27588         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
27589         bring in LIBINTL.
27591 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
27593         init.sh: do not rely on autoupated PWD
27594         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
27595         <http://lists.gnu.org/r/bug-gzip/2012-06/msg00008.html>.
27596         Although Nelson's bug was not necessarily fixed by this patch,
27597         it seems wise to make the change for safety.
27598         * tests/init.sh (path_prepend_): Do not rely on PWD updating
27599         automagically after 'cd'; this is not reliable on older shells.
27600         (setup_): Fail if we cannot cd to temporary directory.
27602 2012-06-19  Bruno Haible  <bruno@clisp.org>
27604         stat, fstat: Avoid warnings on mingw64.
27605         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
27606         redefining.
27607         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
27608         Reported by Daniel P. Berrange <berrange@redhat.com>.
27610 2012-06-19  Bruno Haible  <bruno@clisp.org>
27612         stdioext: Add support for musl libc.
27614         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
27615         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
27617         * m4/fseterr.m4: New file.
27618         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
27619         function exists.
27620         * modules/fseterr (Files): Add m4/fseterr.m4.
27621         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
27622         __fseterr does not exist.
27623         (Makefile.am): Remove fseterr.c from lib_SOURCES.
27625         * lib/freadable.h: Update comment.
27627         * lib/fwritable.h: Update comment.
27629         * lib/freading.h: Update comment.
27631         * lib/fwriting.h: Update comment.
27633         * m4/freadahead.m4: New file.
27634         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
27635         that function exists.
27636         * modules/freadahead (Files): Add m4/freadahead.m4.
27637         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
27638         __freadahead does not exist.
27639         (Makefile.am): Remove freadahead.c from lib_SOURCES.
27641         * m4/freadptr.m4: New file.
27642         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
27643         function exists.
27644         * modules/freadptr (Files): Add m4/freadptr.m4.
27645         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
27646         __freadptr does not exist.
27647         (Makefile.am): Remove freadptr.c from lib_SOURCES.
27649         * m4/freadseek.m4: New file.
27650         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
27651         exists.
27652         * modules/freadseek (Files): Add m4/freadseek.m4.
27653         (configure.ac): Invoke gl_FUNC_FREADSEEK.
27655         * lib/fpurge.c (fpurge): Update comment.
27657         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
27659 2012-06-19  Bruno Haible  <bruno@clisp.org>
27661         *printf-posix: Put more info into config.log.
27662         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
27663         exit code into config.log.
27665 2012-06-19  Bruno Haible  <bruno@clisp.org>
27667         getopt-gnu: Fix exit code overflow in autoconf test.
27668         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
27669         to keep them below < 128.
27671 2012-06-17  Jim Meyering  <meyering@redhat.com>
27673         maint.mk: fix typo in code to derive GPG key at release time
27674         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
27676 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
27678         regex: avoid warning when pointers are not long
27679         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
27680         and uintptr_t, not long, for portability to hosts where pointers and
27681         long have different sizes.  Issue noted by Daniel P. Berrange in
27682         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00122.html>
27683         and fix suggested by Bruno Haible in
27684         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00128.html>.
27686 2012-06-17  Bruno Haible  <bruno@clisp.org>
27688         dummy: Relicense into the public domain.
27689         * modules/dummy (License): Set to "public domain".
27690         Suggested by Reuben Thomas.
27692 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
27694         announce-gen: VPATH issues
27695         * build-aux/announce-gen (--srcdir): New option, used to trim the
27696         $srcdir part of the path from $builddir to NEWS.
27697         * top/maint.mk (announcement): Adjust.
27699 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
27701         gnu-web-doc-update: VPATH builds
27702         * build-aux/gnu-web-doc-update (--builddir): New option.
27703         Revamp the handling of options.
27704         Prefer $(...) to `...`.
27705         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
27706         the template, and it is GNU mktemp specific.
27707         Prefer set -e to long series of &&.
27708         Restore the initial git branch, not "master".
27709         Properly initialize submodules (don't rely only on bootstrap).
27710         Do not reconfigure blindly, use config.status.
27711         * top/README-release: Update instructions for gnu-web-doc-update.
27713 2012-06-11  Jim Meyering  <meyering@redhat.com>
27715         maint.mk: revert most of the previous change re "all these"
27716         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
27717         For rationale, see the discussion at
27718         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
27720 2012-06-10  Karl Berry  <karl@gnu.org>
27722         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
27724         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
27726 2012-06-10  Bruce Korb  <bkorb@gnu.org>
27728         parse-duration: Relicense under LGPLv2+.
27729         * modules/parse-duration (License): Change to LGPLv2+.
27731 2012-06-10  Jim Meyering  <meyering@redhat.com>
27733         maint.mk: prohibit common grammar error: "all these"
27734         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
27735         the list of prohibited word sequences.  It should be "all of these".
27736         * lib/tempname.c (__gen_tempname): Fix one of them.
27738 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
27740         do-release-commit-and-tag: support VPATH builds
27741         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
27742         (noteworthy): Defined earlier to factor its value.
27743         (noteworthy_stub): New.
27744         Use it to factor.
27745         (help_version): Split into...
27746         (help, version): these.
27747         Adjust the option processing part.
27748         Support "--option=value" in addition to "--option value".
27749         (builddir): New.
27750         (--builddir): New option.
27751         * top/README-release: Document this.
27752         Reword slightly so that the reader cannot understand that he
27753         has to do these steps before calling do-release-commit-and-tag.
27755 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
27757         readme-release: also require announce-gen and maintainer-makefile
27758         * modules/readme-release (Depends-on): here.
27759         * modules/announce-gen, modules/do-release-commit-and-tag,
27760         modules/gnu-web-doc-update, modules/maintainer-makefile
27761         (Description): Point to readme-release.
27763 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
27765         maint.mk: fix VPATH issues.
27766         * top/maint.mk (news-check): GNU Make understand $< very well.
27767         (release-prep): NEWS is in $(srcdir).
27769 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
27771         readme-release: require the promoted modules.
27772         * modules/readme-release (Depends-on): Add
27773         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
27774         in this text.
27776 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
27777             Bruno Haible  <bruno@clisp.org>
27779         error, strerror-override: Support mingw64 from Fedora 17.
27780         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
27781         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
27782         EINPROGRESS.
27783         * lib/strerror-override.h (strerror_override): Test it.
27784         * lib/strerror-override.c (strerror_override): Likewise.
27785         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
27787 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
27788             Bruno Haible  <bruno@clisp.org>
27790         error, strerror-override: Support mingw64 from Fedora 17.
27791         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
27792         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
27793         * lib/strerror-override.h (strerror_override): Test it.
27794         * lib/strerror-override.c (strerror_override): Likewise.
27796 2012-06-03  Bruno Haible  <bruno@clisp.org>
27798         error, strerror-override: Support new errno values from POSIX:2008.
27799         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
27800         ENOTRECOVERABLE.
27801         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
27802         platforms.
27803         * lib/strerror-override.c (strerror_override): Conditionalize the
27804         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
27805         * lib/strerror-override.h (strerror_override): Declare also if
27806         GNULIB_defined_EOWNERDEAD is defined.
27807         * tests/test-errno.c (e130, e131): New variables.
27808         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
27809         ENOTRECOVERABLE.
27810         Reported by Paolo Bonzini.
27812 2012-05-31  Jim Meyering  <meyering@redhat.com>
27814         savewd: add missing dependency on sys_wait module
27815         * modules/savewd (Depends-on): Add sys_wait, needed at least
27816         for MSVC.  Report and suggested change by Michael Goffioul.
27818 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
27820         system-quote-tests: port to CentOS 5
27821         Problem reported by Tom G. Christensen in
27822         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00255.html>.
27823         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
27825 2012-05-29  Jim Meyering  <meyering@redhat.com>
27827         maint: fix typos in comments and ChangeLog
27828         Culprits identified and fixed mostly automatically using these commands:
27829         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
27830         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
27831         using http://github.com/lyda/misspell-check
27832         * ChangeLog: Fix typos.
27833         * doc/solaris-versions: Likewise.
27834         * lib/regexec.c (re_search_stub): Likewise.
27835         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
27837 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
27839         manywarnings: remove duplicate -Wmultichar entry
27840         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
27841         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
27842         so keep the entry marked as documented.
27844 2012-05-27  Karl Berry  <karl@gnu.org>
27846         * config/srclist.txt (mktime.c): remove last libc sync,
27847         perhaps just temporarily.
27849 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
27851         regex: don't assume uint64_t or uint32_t
27852         * lib/regcomp.c (init_word_char): Don't assume that the types
27853         uint64_t and uint32_t exist.  The C standard doesn't guarantee
27854         them, and on some 32-bit compilers there is no uint64_t.
27855         Problem reported by Gianluigi Tiesi in
27856         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00154.html>.
27858 2012-05-25  Jim Meyering  <meyering@redhat.com>
27860         maint.mk: add strncpy-prohibiting syntax-check rule
27861         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
27863 2012-05-24  Jim Meyering  <meyering@redhat.com>
27865         maint.mk: compute $(gpg_key_ID) more portably
27866         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
27867         That use of sed is not portable to some fringe systems.
27868         Reported by Paul Eggert in
27869         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
27871 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
27873         mktime: sync from glibc
27874         * config/srclist.txt: Uncomment mktime.c.
27875         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
27876         First, indent with tabs, since glibc uses tabs and doesn't want to
27877         change and we'd rather be identical to glibc.  Also, two small
27878         coding changes:
27879         (isdst_differ): Use &&, not &, as && is the usual style.
27880         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
27881         for clarity.
27883 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
27885         announce-gen: du -h is more portable than du --human
27886         * build-aux/announce-gen (sizes): Invoke du with -h instead
27887         of --human.  Accept leading white space in its output.
27889 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
27891         announce-gen: Improve diagnostics.
27892         * build-aux/announce-gen: When parsing command line options,
27893         prefer "announce-gen: option --release-type requires an argument"
27894         to "Option release-type requires an argument".
27896 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
27898         maint.mk: gpg_key_ID: use sed more portably
27899         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
27900         the closing brace.
27901         (refresh-po): Fuse two sed invocations into one.
27903 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
27905         gitlog-to-changelog: support the log message format used in Bison.
27906         * build-aux/gitlog-to-changelog: Support --strip-tab and
27907         --strip-cherry-picked.
27909 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
27911         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
27912         the rest of the current time slice to another thread in the current
27913         process. So if the thread that feeds the file decscriptor we're
27914         polling is not in the current process, we get busy-waiting.
27915         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
27916         Patch from Theodore Leblond.
27917         * lib/select.c: Split polling out of the loop that sets the output
27918         fd_sets.  Check for zero result and loop if the wait timeout is
27919         infinite.
27921 2012-05-21  Simon Josefsson  <simon@josefsson.org>
27923         select: Fix build error on IRIX 6.5.
27924         * lib/select.c: Include stddef.h for NULL.
27926 2012-05-21  Simon Josefsson  <simon@josefsson.org>
27928         gc: fix libgcrypt detection on older machines.
27929         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
27930         copyright years because the file has been distributed every year
27931         since it was created.
27933 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
27935         crypto: fix bug in large buffer handling
27936         Problem reported by Serge Belyshev for glibc in
27937         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
27938         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00226.html>.
27939         * lib/md4.c (md4_process_block):
27940         * lib/md5.c (md5_process_block):
27941         * lib/sha1.c (sha1_process_block):
27942         * lib/sha256.c (sha256_process_block):
27943         Don't assume the buffer length is less than 2**32.
27944         * lib/sha512.c (sha512_process_block): Likewise.
27945         Here, the bug is present only in the rare case where the host does
27946         not support uint64_t or where size_t is wider than 64 bits.
27947         Use u64size to work around the problems.
27948         * lib/u64.h (u64size): New macro.
27950 2012-05-15  Pádraig Brady  <P@draigBrady.com>
27952         fsusage: fix block size returned on older Linux 2.6
27954         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
27955         which is available since Linux 2.6.
27956         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
27957         when the member is available so it can be used as a fallback.
27958         * doc/posix-functions/statvfs.texi: Mention the hang issue
27959         on Linux < 2.6.36.
27961 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
27963         bootstrap: suppress stderr chatter
27964         * build-aux/bootstrap (insert_sorted_if_absent, main program):
27965         Omit unnecessary chatter to stderr.  The main program chatter
27966         was there only inadvertantly.
27968         bootstrap: .gitignore files created by autopoint, libtool
27969         I ran into this problem when bootstrapping the latest diffutils.
27970         After './bootstrap', 'git status' reported lots of untracked files
27971         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
27972         autopoint and do not need to be version-controlled.
27973         * build-aux/bootstrap: Put into .gitignore the files that
27974         autopoint and libtool create, by keeping track of files that exist
27975         after but not before these programs are run.
27976         (version_controlled_file): Move up.  2nd arg is now full file
27977         name, not base name; this is more convenient.  Put CVS at the end,
27978         as it's now somewhat deprecated.
27980 2012-05-14  Jim Meyering  <meyering@redhat.com>
27982         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
27983         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
27984         definition.  Reported by Bruno Haible.
27986 2012-05-13  Bruno Haible  <bruno@clisp.org>
27987             Paul Eggert  <eggert@cs.ucla.edu>
27989         binary-io: Define set_binary_mode function.
27990         * lib/binary-io.h (set_binary_mode): New function.
27991         (SET_BINARY): Define in terms of set_binary_mode.
27992         * modules/binary-io (configure.ac): Require AC_C_INLINE.
27993         * tests/test-binary-io.c (main): Accept an argument, and test either
27994         set_binary_mode or SET_BINARY depending on the argument.
27995         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
27996         argument. Clean up also t-bin-out0.tmp.
27998 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
28000         bootstrap: take advantage of POSIX shell features
28002         The 'bootstrap' script offered by Gnulib script already uses POSIX
28003         shell features (like $((...)) arithmetic expansions) that are not
28004         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
28005         means that bootstrap must already be run using a proper POSIX shell,
28006         which will thus provide more features, like ${var#pattern} parameter
28007         expansion or inversion of a command exit status with '!'.  We can
28008         thus use these features to improve the clarity and the performances
28009         of the bootstrap script.
28011         Suggested by Eric Blake.
28013         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
28014         of sed/expr plus command substitutions, to save some forks.  While
28015         we are at it, prefer the POSIX $(...) form of command substitution,
28016         rather than the legacy form `...` (since the former is visually
28017         clearer and interacts better with quoting), and prefer the idiom:
28018           "if ! CMD; then ACTION ..."
28019         over the idiom:
28020           "if CMD; then :; else ACTION ..."
28021         which was required by legacy Bourne shells not supporting '!'.
28023 2012-05-12  Bruno Haible  <bruno@clisp.org>
28025         system-quote: Add more comments.
28026         * lib/system-quote.h: Add more comments about wilcards and limitations.
28027         Suggested by Eli Zaretskii <eliz@gnu.org>.
28029         sh-quote, system-quote: Add comments about wildcards.
28030         * lib/sh-quote.h: Clarify what happens with wildcard characters.
28031         * lib/system-quote.h: Likewise.
28032         Reported by Eli Zaretskii <eliz@gnu.org>.
28034 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
28036         fsusage: check for GNU/Linux statvfs problem dynamically
28037         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
28038         Define STAT_STATFS2_BSIZE too, since in this case the code now
28039         checks dynamically whether statvfs is reliable, falling back on
28040         Linux-style statfs otherwise.
28041         (statvfs_works): New function, for dynamically testing statvfs.
28042         (get_fs_usage) [STAT_STATVFS]: Use it.
28043         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
28044         statvfs on GNU/Linux hosts, since it's now done dynamically.
28046 2012-05-10  Bruno Haible  <bruno@clisp.org>
28048         system-quote, execute, spawn-pipe: Escape '?' on Windows.
28049         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
28050         '?' character.
28051         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
28052         * tests/test-system-quote-main.c (check_all): Check also strings like
28053         "??????????".
28054         Reported by Eli Zaretskii <eliz@gnu.org>.
28056 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
28058         _Noreturn: port config.h to gcc -Wundef
28059         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
28060         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
28061         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00147.html>.
28063 2012-05-10  Bruno Haible  <bruno@clisp.org>
28065         system-quote: Refactor.
28066         * lib/system-quote.h (system_quote_copy): Fix comment.
28067         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
28068         New functions, extracted from system_quote_copy.
28069         (system_quote_length, system_quote_copy): Use these functions.
28070         Reported by Paul Eggert.
28072 2012-05-08  Bruno Haible  <bruno@clisp.org>
28074         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
28075         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
28077 2012-05-08  Bruno Haible  <bruno@clisp.org>
28079         Tests for module 'system-quote'.
28080         * modules/system-quote-tests: New file.
28081         * tests/test-system-quote.sh: New file.
28082         * tests/test-system-quote-main.c: New file.
28083         * tests/test-system-quote-child.c: New file.
28085         New module 'system-quote'.
28086         * lib/system-quote.h: New file.
28087         * lib/system-quote.c: New file.
28088         * modules/system-quote: New file.
28090 2012-05-08  Bruno Haible  <bruno@clisp.org>
28092         sh-quote: Make C++ safe and allow multiple inclusion.
28093         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
28094         declarations in extern "C".
28096 2012-05-08  Bruno Haible  <bruno@clisp.org>
28098         sh-quote tests: Make tests stricter.
28099         * tests/test-sh-quote.c (check_one): Check the return value of
28100         shell_quote_copy.
28101         (main): Check a string with a CR character. Check a string that
28102         contains UCHAR_MAX.
28104 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
28106         warnings.m4: provide a means to specify the program to compile.
28107         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
28108         (gl_WARN_ADD): here.
28109         Use gl_AS_VAR_APPEND.
28110         Support an argument to specify the program to compile.
28111         (gl_WARN_ADD): Accept an argument to specify the program to compile.
28112         AC_SUBST the WARN_CFLAGS when they are used.
28113         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
28114         leave this to gl_WARN_ADD.
28116 2012-05-08  Eric Blake  <eblake@redhat.com>
28118         doc: recommendations on gettext version
28119         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
28120         choice between versions.
28121         * DEPENDENCIES (gettext): Cover both approaches.
28123 2012-05-08  Jim Meyering  <meyering@redhat.com>
28125         init.sh: explain why EXEEXT support uses aliases rather than functions
28126         * tests/init.sh: Add a comment.
28128         init.sh: don't let bash aliases interfere with tests
28129         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
28130         is bash.  This avoids problems for those who alias standard commands to
28131         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
28132         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
28134 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
28136         stdint: be more consistent with glibc, SunOS libc
28137         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
28138         (gl_int_fast16_t, gl_uint_fast16_t)
28139         (gl_int_fast32_t, gl_uint_fast32_t)
28140         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
28141         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
28142         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
28143         Be consistent with glibc by default, and with SunOS 5.10 and later
28144         if __sun is defined.  This lessens the likelihood of clashes if
28145         code compiled for older hosts is combined with code compiled for
28146         newer ones.  Problem reported by Niels Möller in
28147         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00074.html>.
28149 2012-05-07  Eric Blake  <eblake@redhat.com>
28151         isatty: relax license to LGPLv2+
28152         * modules/isatty (License): Relax license.
28154 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
28156         stat-size: comment fix
28157         * lib/stat-size.h: Remove obsolete comment about indenting.
28159 2012-05-06  Bruno Haible  <bruno@clisp.org>
28161         Tests for module 'sh-quote'.
28162         * modules/sh-quote-tests: New file.
28163         * tests/test-sh-quote.c: New file.
28165 2012-05-06  Bruno Haible  <bruno@clisp.org>
28167         sh-quote: Improve shell_quote_argv's signature.
28168         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
28169         * lib/sh-quote.c (shell_quote_argv): Likewise.
28171 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
28173         stdint: document issues with int_fast8_t etc.
28174         * doc/posix-headers/stdint.texi (stdint.h): Say that other
28175         stdint.h substitutes may define these types differently.  See
28176         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00071.html>.
28178 2012-05-05  Bruno Haible  <bruno@clisp.org>
28180         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
28181         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
28182         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
28183         or 'guessing no (mishandles large arguments)'.
28185 2012-05-05  Bruno Haible  <bruno@clisp.org>
28187         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
28188         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
28189         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
28190         set gl_cv_func_link_follows_symlink to "guessing no".
28192 2012-05-05  Bruno Haible  <bruno@clisp.org>
28194         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
28195         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
28196         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
28197         "guessing no".
28198         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
28200 2012-05-05  Bruno Haible  <bruno@clisp.org>
28202         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
28203         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
28204         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
28205         set gl_cv_struct_dirent_d_ino to "guessing yes".
28207 2012-05-05  Bruno Haible  <bruno@clisp.org>
28209         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
28210         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
28211         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
28212         "guessing yes".
28214 2012-05-05  Bruno Haible  <bruno@clisp.org>
28216         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
28217         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
28218         compiling to a glibc system, set gl_cv_func_signbit and
28219         gl_cv_func_signbit_gcc to "guessing yes".
28221 2012-05-05  Bruno Haible  <bruno@clisp.org>
28223         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
28224         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
28225         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
28226         to "guessing yes".
28227         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
28228         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
28230 2012-05-05  Bruno Haible  <bruno@clisp.org>
28232         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
28233         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
28234         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
28235         gl_cv_func_realpath_works to "guessing yes".
28237 2012-05-05  Bruno Haible  <bruno@clisp.org>
28239         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
28240         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
28241         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
28243 2012-05-04  Bruno Haible  <bruno@clisp.org>
28245         Tweak last commit.
28246         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
28247         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
28249 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
28251         unistd_h: make it easier to avoid sys_types_h
28252         This is useful for Emacs, which has its own method of porting to
28253         Windows, and which therefore does not need the sys_types_h module.
28254         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
28255         code moved here from gl_SYS_TYPES_H.
28256         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
28257         using the code directly.
28258         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
28259         gl_SYS_TYPES_H.
28260         * modules/sys_types (Files):
28261         * modules/unistd (Files): Add m4/off_t.m4.
28263 2012-05-03  Bruno Haible  <bruno@clisp.org>
28265         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
28266         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
28267         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
28268         "guessing yes" or "guessing no".
28269         (gl_FUNC_LSTAT): Update.
28270         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
28271         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
28272         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
28274 2012-05-03  Bruno Haible  <bruno@clisp.org>
28276         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
28277         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
28278         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
28279         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
28280         cross-compiling, choose the first alternative on glibc systems.
28281         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
28283 2012-05-03  Bruno Haible  <bruno@clisp.org>
28285         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
28286         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
28287         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
28289 2012-05-03  Bruno Haible  <bruno@clisp.org>
28291         chown: Avoid "guessing no" when cross-compiling to glibc systems.
28292         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
28294 2012-05-03  Bruno Haible  <bruno@clisp.org>
28296         Avoid "guessing no" guesses when cross-compiling to glibc systems.
28297         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
28298         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
28299         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
28300         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
28301         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
28302         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
28303         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
28304         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
28305         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
28306         compiling to glibc systems, set gl_cv_func_chown_slash_works,
28307         gl_cv_func_chown_ctime_works to "guessing yes".
28308         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
28309         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
28310         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
28311         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
28312         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
28313         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
28314         compiling to glibc systems, set gl_cv_func_open_directory_works to
28315         "guessing yes".
28316         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
28317         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
28318         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
28319         "guessing yes".
28320         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
28321         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
28322         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
28323         compiling to glibc systems, set gl_cv_func_floorf_ieee to
28324         "guessing yes".
28325         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
28326         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
28327         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
28328         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
28329         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
28330         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
28331         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
28332         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
28333         "guessing yes".
28334         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
28335         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
28336         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
28337         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
28338         "guessing yes".
28339         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
28340         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
28341         "guessing yes".
28342         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
28343         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
28344         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
28345         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
28346         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
28347         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
28348         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
28349         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
28350         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
28351         compiling to glibc systems, set gl_cv_func_log10f_ieee to
28352         "guessing yes".
28353         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
28354         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
28355         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
28356         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
28357         "guessing yes".
28358         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
28359         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
28360         "guessing yes".
28361         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
28362         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
28363         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
28364         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
28365         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
28366         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
28367         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
28368         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
28369         compiling to glibc systems, set gl_cv_func_mkfifo_works to
28370         "guessing yes".
28371         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
28372         compiling to glibc systems, set gl_cv_func_mknod_works to
28373         "guessing yes".
28374         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
28375         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
28376         "guessing yes".
28377         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
28378         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
28379         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
28380         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
28381         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
28382         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
28383         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
28384         compiling to glibc systems, set gl_cv_func_svid_putenv to
28385         "guessing yes".
28386         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
28387         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
28388         "guessing yes".
28389         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
28390         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
28391         "guessing yes".
28392         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
28393         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
28394         to "guessing yes".
28395         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
28396         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
28397         to "guessing yes".
28398         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
28399         compiling to glibc systems, set gl_cv_func_rmdir_works to
28400         "guessing yes".
28401         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
28402         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
28403         gl_cv_func_unlink_parent_fails to "guessing yes".
28404         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
28405         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
28406         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
28407         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
28408         gl_cv_func_rename_dest_works to "guessing yes".
28409         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
28410         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
28411         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
28412         compiling to glibc systems, set gl_cv_func_roundf_ieee to
28413         "guessing yes".
28414         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
28415         compiling to glibc systems, set gl_cv_func_roundl_ieee to
28416         "guessing yes".
28417         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
28418         compiling to glibc systems, set gl_cv_func_setenv_works to
28419         "guessing yes".
28420         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
28421         compiling to glibc systems, set gl_cv_func_unsetenv_works to
28422         "guessing yes".
28423         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
28424         compiling to glibc systems, set gl_cv_func_sleep_works to
28425         "guessing yes".
28426         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
28427         compiling to glibc systems, set gl_cv_func_stat_file_slash to
28428         "guessing yes".
28429         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
28430         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
28431         "guessing yes".
28432         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
28433         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
28434         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
28435         compiling to glibc systems, set gl_cv_func_truncf_ieee to
28436         "guessing yes".
28437         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
28438         compiling to glibc systems, set gl_cv_func_truncl_ieee to
28439         "guessing yes".
28440         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
28441         compiling to glibc systems, set gl_cv_func_usleep_works to
28442         "guessing yes".
28443         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
28444         compiling to glibc systems, set gl_cv_func_futimesat_works to
28445         "guessing yes".
28447 2012-05-03  Bruno Haible  <bruno@clisp.org>
28449         Say "guessing yes" or "guessing no" when cross-compiling.
28450         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
28451         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
28452         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
28453         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
28454         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
28455         am_cv_func_working_getline to "guessing yes" or "guessing no".
28456         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
28457         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
28458         (gl_FUNC_MEMMEM): When cross-compiling, set
28459         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
28460         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
28461         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
28462         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
28463         set gl_cv_func_strcasestr_works_always to "guessing yes" or
28464         "guessing no".
28465         (gl_FUNC_STRCASESTR): When cross-compiling, set
28466         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
28467         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
28468         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
28469         (gl_FUNC_STRSTR): When cross-compiling, set
28470         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
28471         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
28472         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
28473         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
28474         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
28476 2012-05-01  Bruno Haible  <bruno@clisp.org>
28478         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
28479         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
28480         * build-aux/reloc-ldflags: Likewise.
28481         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
28483 2012-05-01  Bruno Haible  <bruno@clisp.org>
28485         gnulib-tool: Remove transitional code.
28486         * gnulib-tool: Don't warn about --import with 0 arguments any more.
28487         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
28489 2012-05-01  Bruno Haible  <bruno@clisp.org>
28491         getcwd: Fix misindentation.
28492         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
28494 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
28496         exclude: process exclude and include directives in order
28497         This restores the pre-2009 behavior, and is part of a fix of a
28498         grep bug reported by Quentin Arce in
28499         <http://lists.gnu.org/r/bug-grep/2012-04/msg00056.html>.
28500         * lib/exclude.c (struct exclude): Remove 'tail' member.
28501         (new_exclude_segment): Prepend the new segment instead of appending.
28502         Return void, since that's now more convenient.
28503         (file_pattern_matches): Renamed from excluded_file_pattern_p.
28504         (file_name_matches): Renamed from excluded_file_name_p.
28505         (file_pattern_matches, file_name_matches):
28506         Return true if the pattern matches, not if it excludes.
28507         All callers changed.
28508         (excluded_file_name): Process the list in reverse order;
28509         since the list is now reversed this restores the pre-2009 behavior.
28510         (add_exclude): Adjust to new reversed-order list.  Use local var
28511         rather than macro, for clarity.
28512         * tests/test-exclude7.sh: Adjust to corrected behavior.
28514         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
28515         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
28516         it's not possible here.  Handle the case of \ at end of pattern
28517         without dumping core.
28518         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
28520         _Noreturn: future-proof non-GNU and non-MSVC compilers
28521         * build-aux/snippet/_Noreturn.h (_Noreturn):
28522         * m4/gnulib-common.m4 (gl_COMMON_BODY):
28523         Do not define _Noreturn if __STDC_VERSION__ indicates this is
28524         C11 or later.  This is more likely to work with random future C
28525         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
28526         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00195.html>.
28528         exclude: handle wildcards with FNM_EXTMATCH
28529         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
28530         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
28531         comment that "has wildcards" really means "has or may have
28532         wildcards".  Simplify by avoiding the need to call strcspn.
28534 2012-04-29  Bruno Haible  <bruno@clisp.org>
28536         gnulib-tool: Fix list of authors.
28537         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
28539 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
28541         bootstrap: support Automake-NG in $buildreq
28542         * bootstrap (check_versions): Handle automake and aclocal from
28543         Automake-NG specially.  They can be specified as respectively
28544         the "automake-ng" and "aclocal-ng" requirements.
28546 2012-04-25  Eric Blake  <eblake@redhat.com>
28548         bootstrap: only force latest Makefile.in.in for gettext module
28549         * build-aux/bootstrap (with_gettext): Only install latest
28550         Makefile.in.in for projects requesting bleeding edge gettext.
28552 2012-04-22  Bruno Haible  <bruno@clisp.org>
28554         doc: Mention reason for replacement on glibc/Linux systems.
28555         * doc/posix-functions/dprintf.texi: Mention the problem with special
28556         'long double' values.
28557         * doc/posix-functions/fprintf.texi: Likewise.
28558         * doc/posix-functions/printf.texi: Likewise.
28559         * doc/posix-functions/snprintf.texi: Likewise.
28560         * doc/posix-functions/sprintf.texi: Likewise.
28561         * doc/posix-functions/vdprintf.texi: Likewise.
28562         * doc/posix-functions/vfprintf.texi: Likewise.
28563         * doc/posix-functions/vprintf.texi: Likewise.
28564         * doc/posix-functions/vsnprintf.texi: Likewise.
28565         * doc/posix-functions/vsprintf.texi: Likewise.
28566         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
28567         platforms with F_DUPFD_CLOEXEC problems.
28568         * doc/posix-functions/glob.texi: Mention which platforms are affected
28569         by the problem with symbolic links.
28570         * doc/posix-functions/linkat.texi: Mention the problem with
28571         AT_SYMLINK_FOLLOW on Linux.
28573 2012-04-22  Bruno Haible  <bruno@clisp.org>
28575         pwrite: Don't replace on all platforms.
28576         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
28578 2012-04-22  Bruno Haible  <bruno@clisp.org>
28580         rint* tests: Avoid gcc warnings.
28581         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
28582         * tests/test-rintf.c (INFINITY, NAN): Likewise.
28583         * tests/test-rintl.c (INFINITY, NAN): Likewise.
28585 2012-04-21  Bruno Haible  <bruno@clisp.org>
28587         users.txt: Update.
28588         * users.txt: Add freedink, wdiff. Update URLs for projects that have
28589         switched from CVS to git, bzr, or svn.
28591 2012-04-21  Bruno Haible  <bruno@clisp.org>
28593         Large File Support for native Windows platforms.
28595         * m4/largefile.m4 (gl_LARGEFILE): New macro.
28596         * modules/largefile (configure.ac): Require gl_LARGEFILE.
28598         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
28599         type.
28600         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
28601         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
28602         * doc/posix-headers/sys_types.texi: Mention the effect of the
28603         'largefile' module.
28605         * lib/fcntl.in.h: Add comments about off_t.
28606         * modules/fcntl-h (Depends-on): Add sys_types.
28608         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
28609         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
28610         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
28611         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
28612         * modules/unistd (Depends-on): Add sys_types.
28613         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
28615         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
28616         instead of lseek.
28617         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
28618         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
28619         * modules/lseek (Depends-on): Add sys_types.
28621         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
28622         msvc-nothrow.h.
28623         (SetFileSize): New function.
28624         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
28625         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
28626         if Large File Support is requested.
28627         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
28628         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
28630         * lib/stdio.in.h: Add comments about off_t.
28631         * modules/stdio (Depends-on): Add sys_types.
28633         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
28634         instead of ftello.
28635         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
28636         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
28637         (gl_PREREQ_FTELLO): New macro.
28638         * modules/ftello (Depends-on): Add sys_types.
28639         (configure.ac): Incoke gl_PREREQ_FTELLO.
28641         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
28642         instead of fseeko.
28643         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
28644         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
28645         (gl_PREREQ_FSEEKO): New macro.
28646         * modules/fseeko (Depends-on): Add sys_types.
28647         (configure.ac): Invoke gl_PREREQ_FSEEKO.
28649         * lib/sys_stat.in.h: Add comments about off_t.
28650         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
28651         64-bit integer for st_size in 'struct stat'.
28652         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
28653         Define _GL_WINDOWS_64_BIT_ST_SIZE.
28654         * modules/sys_stat (Depends-on): Add sys_types.
28655         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
28657         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
28658         instead of stat or _stat.
28660         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
28661         'struct _stati64' instead of fstat and 'struct stat'.
28662         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
28663         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
28665         Reported by Ray Satiro <raysatiro@yahoo.com>.
28667 2012-04-19  Eric Blake  <eblake@redhat.com>
28669         bootstrap: accommodate older libtool
28670         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
28671         Reported by Daniel P. Berrange.
28673 2012-04-19  Jim Meyering  <meyering@redhat.com>
28675         announce-gen: avoid failure due to lack of Digest::SHA1
28676         Even with the preferred Digest::SHA available, this script
28677         would fail when the backup module, Digest::SHA1, was not installed.
28678         * build-aux/announce-gen: Quote the conditional use of "use".
28679         Reported by Reuben Thomas in:
28680         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
28682         bootstrap: don't let a user's CDPATH setting affect this script
28683         When CDPATH is set, cd will sometimes generate output.
28684         When "cd" is run in a subshell whose output matters, that
28685         surprising-to-some output can cause malfunction.
28686         Unsetting CDPATH turns off this shell "feature."
28687         * build-aux/bootstrap (CDPATH): Unset.
28688         Reported by Reuben Thomas in:
28689         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
28690         and inspired by his patch here:
28691         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
28693 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
28694         and Jim Meyering  <meyering@redhat.com>
28696         maint.mk: catch "see @xref{}" and similar
28697         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
28698         prohibit "See also @xref{", "Also see @pxref{", and similar.
28700 2012-04-16  Jim Meyering  <meyering@redhat.com>
28702         bootstrap: really use gnulib's po/Makefile.in.in
28703         * build-aux/bootstrap: Correct the source file name in previous change.
28704         Reported by Akim Demaille.
28706         configmake: correct minor inconsistency in Makefile rule
28707         * modules/configmake (Makefile.am): All other rules like this one
28708         run the final "mv -f ..." in the same backslash-continued command
28709         as the one that does everything else.  This one put the mv -f ...
28710         command on a separate, non-backslash-continued line.
28711         Make it like the others.
28713         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
28714         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
28715         the one from gettext.  Reported by Akim Demaille.
28717 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
28719         Fix recursion of install-* into po directories.
28720         Bison's install-pdf bug reported by Hans Aberg at
28721         <http://lists.gnu.org/r/bug-bison/2011-05/msg00008.html>.
28722         * build-aux/po/Makefile.in.in (install-dvi, install-html)
28723         (install-info, install-pdf, install-ps): New targets.
28725 2012-04-16  Jim Meyering  <meyering@redhat.com>
28727         maint: avoid spurious "make sc_maint" failure
28728         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
28729         exempt all *.class file names, for lib/javaversion.class.
28731 2012-04-15  Bruno Haible  <bruno@clisp.org>
28733         lseek: Make configure test independent of environment.
28734         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
28735         Windows, we know that lseek() on pipes is broken; skip the runtime
28736         test.
28738 2012-04-14  Bruno Haible  <bruno@clisp.org>
28740         stat: Bypass buggy override in mingw64.
28741         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
28742         * lib/stat.c (stat) [mingw64]: Define to _stat.
28743         * doc/posix-functions/stat.texi: Mention mingw64 bug.
28745 2012-04-14  Bruno Haible  <bruno@clisp.org>
28747         pathmax: Fix compilation error on MSVC 9.
28748         * modules/pathmax (Depends-on): Add unistd.
28750 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
28752         README: document pointer comparison assumption
28753         * README (Portability guidelines): Document assumption about
28754         pointer comparisons, in response to a recent bug-gnulib comment by
28755         Jeffrey Kegler.
28757 2012-04-12  Bruno Haible  <bruno@clisp.org>
28759         Tests for module 'getrusage'.
28760         * modules/getrusage-tests: New file.
28761         * tests/test-getrusage.c: New file.
28763         New module 'getrusage'.
28764         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
28765         warn-on-use.h.
28766         (getrusage): New declaration.
28767         * lib/getrusage.c: New file.
28768         * m4/getrusage.m4: New file.
28769         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
28770         is declared.
28771         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
28772         HAVE_GETRUSAGE.
28773         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
28774         snippet/c++defs, snippet/warn-on-use.
28775         (Makefile.am): Update generation of sys/resource.h. Substitute
28776         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
28777         * modules/getrusage: New file.
28778         * doc/posix-functions/getrusage.texi: Mention the new module.
28780 2012-04-12  Bruno Haible  <bruno@clisp.org>
28782         Tests for module 'sys_resource'.
28783         * modules/sys_resource-tests: New file.
28784         * tests/test-sys_resource.c: New file.
28786         New module 'sys_resource'.
28787         * lib/sys_resource.in.h: New file.
28788         * m4/sys_resource_h.m4: New file.
28789         * modules/sys_resource: New file.
28790         * doc/posix-headers/sys_resource.texi: Mention the new module.
28792 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
28794         ioctl: Fix compilation error on mingw.
28795         * lib/ioctl.c: Include <windows.h>.
28796         Also reported by Ray Satiro <raysatiro@yahoo.com>.
28798 2012-04-04  Jim Meyering  <meyering@redhat.com>
28800         regex: correct #pragma guard expression
28801         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
28802         not 4.3.  Correct its cpp guard expression.
28804 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
28806         regex: remove unnecessary type punning
28807         Problem reported by Vladimir Serbinenko in
28808         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00006.html>.
28809         * lib/regex.h (struct re_pattern_buffer): Change the type of
28810         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
28811         Fix comment to match code.
28812         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
28813         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
28814         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
28815         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
28816         (set_regs):
28817         Omit no-longer-necessary casts.
28819 2012-04-03  Bruno Haible  <bruno@clisp.org>
28821         Tests for module 'ilogbl'.
28822         * modules/ilogbl-tests: New file.
28823         * tests/test-ilogbl.c: New file.
28825         New module 'ilogbl'.
28826         * lib/math.in.h (ilogbl): New declaration.
28827         * lib/ilogbl.c: New file.
28828         * m4/ilogbl.m4: New file.
28829         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
28830         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
28831         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
28832         Split sed invocation, to avoid the limit of 100 substitutions of
28833         HP-UX 'sed'.
28834         * modules/ilogbl: New file.
28835         * tests/test-math-c++.cc: Check the declaration of ilogbl.
28836         * doc/posix-functions/ilogbl.texi: Mention the new module.
28838 2012-04-03  Bruno Haible  <bruno@clisp.org>
28840         Tests for module 'ilogbf'.
28841         * modules/ilogbf-tests: New file.
28842         * tests/test-ilogbf.c: New file.
28844         New module 'ilogbf'.
28845         * lib/math.in.h (ilogbf): New declaration.
28846         * lib/ilogbf.c: New file.
28847         * m4/ilogbf.m4: New file.
28848         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
28849         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
28850         REPLACE_ILOGBF.
28851         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
28852         REPLACE_ILOGBF.
28853         * modules/ilogbf: New file.
28854         * tests/test-math-c++.cc: Check the declaration of ilogbf.
28855         * doc/posix-functions/ilogbf.texi: Mention the new module.
28857 2012-04-03  Bruno Haible  <bruno@clisp.org>
28859         Tests for module 'ilogb'.
28860         * modules/ilogb-tests: New file.
28861         * tests/test-ilogb.c: New file.
28862         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
28863         tests/test-logb-ieee.h.
28865         New module 'ilogb'.
28866         * lib/math.in.h (ilogb): New declaration.
28867         * lib/ilogb.c: New file.
28868         * m4/ilogb.m4: New file.
28869         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
28870         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
28871         REPLACE_ILOGB.
28872         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
28873         REPLACE_ILOGB.
28874         * modules/ilogb: New file.
28875         * tests/test-math-c++.cc: Check the declaration of ilogb.
28876         * doc/posix-functions/ilogb.texi: Mention the new module.
28878 2012-04-03  Bruno Haible  <bruno@clisp.org>
28880         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
28881         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
28882         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
28883         (main): Check their values.
28884         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
28885         problem.
28887 2012-04-03  Bruno Haible  <bruno@clisp.org>
28889         Tests for module 'logbl-ieee'.
28890         * modules/logbl-ieee-tests: New file.
28891         * tests/test-logbl-ieee.c: New file.
28893         New module 'logbl-ieee'.
28894         * modules/logbl-ieee: New file.
28896         Tests for module 'logb-ieee'.
28897         * modules/logb-ieee-tests: New file.
28898         * tests/test-logb-ieee.c: New file.
28900         New module 'logb-ieee'.
28901         * modules/logb-ieee: New file.
28903         Tests for module 'logbf-ieee'.
28904         * modules/logbf-ieee-tests: New file.
28905         * tests/test-logbf-ieee.c: New file.
28906         * tests/test-logb-ieee.h: New file.
28908         New module 'logbf-ieee'.
28909         * modules/logbf-ieee: New file.
28911 2012-04-03  Bruno Haible  <bruno@clisp.org>
28913         Tests for module 'logbl'.
28914         * modules/logbl-tests: New file.
28915         * tests/test-logbl.c: New file.
28917         New module 'logbl'.
28918         * lib/math.in.h (logbl): New declaration.
28919         * lib/logbl.c: New file.
28920         * m4/logbl.m4: New file.
28921         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
28922         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
28923         REPLACE_LOGBL.
28924         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
28925         REPLACE_LOGBL.
28926         * modules/logbl: New file.
28927         * tests/test-math-c++.cc: Check the declaration of logbl.
28928         * doc/posix-functions/logbl.texi: Mention the new module.
28930 2012-04-02  Bruno Haible  <bruno@clisp.org>
28932         Tests for module 'logbf'.
28933         * modules/logbf-tests: New file.
28934         * tests/test-logbf.c: New file.
28936         New module 'logbf'.
28937         * lib/math.in.h (logbf): New declaration.
28938         * lib/logbf.c: New file.
28939         * m4/logbf.m4: New file.
28940         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
28941         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
28942         REPLACE_LOGBF.
28943         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
28944         REPLACE_LOGBF.
28945         * modules/logbf: New file.
28946         * tests/test-math-c++.cc: Check the declaration of logbf.
28947         * doc/posix-functions/logbf.texi: Mention the new module.
28949 2012-04-02  Bruno Haible  <bruno@clisp.org>
28951         logb tests: More tests.
28952         * tests/test-logb.h: New file, based on tests/test-logb.c and
28953         tests/test-frexp.h.
28954         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
28955         (main): Just invoke test_function.
28956         * modules/logb-tests (Files): Add tests/test-logb.h,
28957         tests/minus-zero.h, tests/randomd.c.
28958         (Makefile.am): Add randomd.c to test_logb_SOURCES.
28960         logb: Provide replacement and workarounds.
28961         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
28962         is 1.
28963         * lib/logb.c: New file.
28964         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
28965         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
28966         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
28967         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
28968         * modules/logb (Files): Add lib/logb.c.
28969         (Depends-on): Add isfinite, frexp, isnand.
28970         (configure.ac): Compile the replacement code logb.c if needed.
28971         * tests/test-math-c++.cc: Check the declaration of logb.
28972         * doc/posix-functions/logb.texi: Mention the replacement and the bug
28973         with subnormal numbers.
28975 2012-04-02  Bruno Haible  <bruno@clisp.org>
28977         log10* tests: Speed up.
28978         * tests/test-log10.h (test_function): Reduce amount of random numbers
28979         to test.
28981 2012-04-01  Bruno Haible  <bruno@clisp.org>
28983         logf-ieee: Fix test whether logf works.
28984         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
28986 2012-04-01  Bruno Haible  <bruno@clisp.org>
28988         log10l: Work around log10l-ieee test failure on IRIX 6.5.
28989         * lib/log10l.c: Include <float.h>
28990         (log10l): On IRIX, normalize the +Infinity value.
28991         * modules/log10l (Depends-on): Add 'float'.
28992         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
28993         +Infinity.
28995         log10f-ieee: Work around test failure on NetBSD 5.1.
28996         * m4/log10f-ieee.m4: New file.
28997         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
28998         test whether log10f works with a negative argument. Replace it if not.
28999         * lib/log10f.c (log10f): For negative arguments, return NaN.
29000         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
29001         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
29002         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
29004         log10f-ieee: Work around test failure on Solaris 9.
29005         * modules/log10f-ieee (Depends-on): Add log10-ieee.
29006         (configure.ac): Require gl_FUNC_LOG10F.
29008         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
29009         * m4/log10-ieee.m4: New file.
29010         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
29011         whether log10 works with a negative argument. Replace it if not.
29012         * lib/log10.c (log10): For negative arguments, return NaN.
29013         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
29014         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
29015         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
29017         Tests for module 'log10l-ieee'.
29018         * modules/log10l-ieee-tests: New file.
29019         * tests/test-log10l-ieee.c: New file.
29021         New module 'log10l-ieee'.
29022         * modules/log10l-ieee: New file.
29024         Tests for module 'log10-ieee'.
29025         * modules/log10-ieee-tests: New file.
29026         * tests/test-log10-ieee.c: New file.
29028         New module 'log10-ieee'.
29029         * modules/log10-ieee: New file.
29031         Tests for module 'log10f-ieee'.
29032         * modules/log10f-ieee-tests: New file.
29033         * tests/test-log10f-ieee.c: New file.
29034         * tests/test-log10-ieee.h: New file.
29036         New module 'log10f-ieee'.
29037         * modules/log10f-ieee: New file.
29039 2012-04-01  Bruno Haible  <bruno@clisp.org>
29041         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
29042         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
29043         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
29044         workaround.
29045         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
29046         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
29047         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
29048         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
29049         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
29050         (Depends-on): Update conditions.
29051         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
29052         IRIX 6.5, OSF/1 5.1 problems.
29054 2012-04-01  Bruno Haible  <bruno@clisp.org>
29056         log10f: Work around OSF/1 5.1 bug.
29057         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
29058         * lib/log10f.c (log10f): If logf exists, use it and provide just the
29059         workaround.
29060         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
29061         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
29062         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
29063         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
29064         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
29065         (Depends-on): Update conditions.
29066         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
29068 2012-04-01  Bruno Haible  <bruno@clisp.org>
29070         log10: Work around OSF/1 5.1 bug.
29071         * lib/math.in.h (log10): New declaration.
29072         * lib/log10.c: New file.
29073         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
29074         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
29075         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
29076         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
29077         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
29078         * modules/log10 (Files): Add lib/log10.c.
29079         (Depends-on): Add math.
29080         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
29081         * tests/test-math-c++.cc: Check the declaration of log10.
29082         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
29084 2012-03-31  Bruno Haible  <bruno@clisp.org>
29086         log10l tests: More tests.
29087         * modules/log10l-tests (Files): Add tests/test-log10l.h,
29088         tests/minus-zero.h, tests/randoml.c.
29089         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
29090         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
29091         (main): Invoke test_function.
29093         log10f tests: More tests.
29094         * modules/log10f-tests (Files): Add tests/test-log10.h,
29095         tests/minus-zero.h, tests/randomf.c.
29096         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
29097         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
29098         (main): Invoke test_function.
29100         log10 tests: More tests.
29101         * tests/test-log10.h: New file.
29102         * modules/log10-tests (Files): Add tests/test-log10.h,
29103         tests/minus-zero.h, tests/randomd.c.
29104         (Makefile.am): Add randomd.c to test_log10_SOURCES.
29105         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
29106         (main): Invoke test_function.
29108 2012-03-31  Simon Josefsson  <simon@josefsson.org>
29110         fflush: Fix syntax error.
29111         * lib/fflush.c: Include unused-parameter.h, needed for
29112         _GL_UNUSED_PARAMETER.
29113         * modules/fflush (Depends-on): Add snippet/unused-parameter.
29115 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
29117         regex: pacify GCC when compiling GRUB
29118         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
29119         a diagnostic.  Reported by Vladimir Serbinenko in
29120         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00163.html>.
29122 2012-03-29  Eric Blake  <eblake@redhat.com>
29124         stdio: don't assume gets any more
29125         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
29126         support.
29127         * modules/stdio (Makefile.am): Likewise.
29128         * lib/stdio-read.c (gets): Likewise.
29129         * tests/test-stdio-c++.cc: Likewise.
29130         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
29131         * lib/stdio.in.h (gets): Make warning occur in more places.
29132         * doc/posix-functions/gets.texi (gets): Update documentation.
29133         Reported by Christer Solskogen.
29135         maint.mk: fix syntax checks without exclusions
29136         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
29137         Reported by Daniel P. Berrange.
29139         strerror_r: avoid compiler warning
29140         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
29141         level.
29143         fflush: avoid compiler warning
29144         * lib/fflush.c (update_fpos_cache): Mark variables that are
29145         potentially unused.
29147 2012-03-25  Bruno Haible  <bruno@clisp.org>
29149         Tests for module 'localeconv'.
29150         * modules/localeconv-tests: New file.
29151         * tests/test-localeconv.c: New file.
29153         New module 'localeconv'.
29154         * lib/locale.in.h (localeconv): New declaration.
29155         * lib/localeconv.c: New file.
29156         * m4/localeconv.m4: New file.
29157         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
29158         REPLACE_LOCALECONV.
29159         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
29160         REPLACE_LOCALECONV.
29161         * modules/localeconv: New file.
29162         * modules/nl_langinfo (Depends-on): Add localeconv.
29163         * modules/human (Depends-on): Likewise.
29164         * doc/posix-functions/localeconv.texi: Mention the new module.
29166 2012-03-25  Bruno Haible  <bruno@clisp.org>
29168         locale: Provide a complete 'struct lconv'.
29169         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
29170         'struct lconv' does not contain int_p_cs_precedes.
29171         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
29172         * doc/posix-headers/locale.texi: Update.
29174         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
29175         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
29176         * doc/posix-headers/locale.texi: Update.
29178         locale: Provide a working 'struct lconv'.
29179         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
29180         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
29181         'struct lconv' does not even contain decimal_point.
29182         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
29183         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
29184         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
29185         * doc/posix-headers/locale.texi: Mention the problems with
29186         'struct lconv'.
29187         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
29189 2012-03-24  Bruno Haible  <bruno@clisp.org>
29191         Enable common subexpression optimization in GCC.
29192         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
29193         macros.
29194         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
29195         GCC attribute 'const'.
29196         (uc_locale_language): Declare with GCC attribute 'pure'.
29197         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
29198         with GCC attribute 'const'.
29199         * lib/unictype.in.h (uc_is_general_category_withtable,
29200         uc_combining_class, uc_combining_class_name,
29201         uc_combining_class_long_name, uc_bidi_class_name,
29202         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
29203         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
29204         uc_decimal_value, uc_digit_value, uc_numeric_value,
29205         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
29206         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
29207         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
29208         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
29209         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
29210         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
29211         Declare with GCC attribute 'const'.
29212         (uc_general_category_name, uc_general_category_long_name,
29213         uc_general_category_byname, uc_general_category,
29214         uc_is_general_category, uc_combining_class_byname,
29215         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
29216         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
29217         Declare with GCC attribute 'pure'.
29218         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
29219         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
29220         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
29221         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
29222         with GCC attribute 'pure'.
29223         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
29224         'const'.
29225         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
29226         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
29227         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
29228         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
29229         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
29230         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
29231         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
29232         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
29233         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
29234         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
29235         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
29236         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
29237         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
29238         GCC attribute 'pure'.
29239         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
29240         'const'.
29241         * lib/uniwidth.in.h (uc_width): Simplify declaration.
29242         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
29243         u32_strwidth): Declare with GCC attribute 'pure'.
29245         Enable common subexpression optimization in GCC.
29246         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
29247         (alphasort): Declare with GCC attribute 'pure'.
29248         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
29249         (atoll): Declare with GCC attribute 'pure'.
29250         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
29251         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
29252         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
29253         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
29254         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
29255         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
29256         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
29258 2012-03-24  Bruno Haible  <bruno@clisp.org>
29260         gnulib-tool: Avoid unintended error output from 'cmp'.
29261         * gnulib-tool (func_add_file, func_update_file, func_import): Use
29262         "cmp -s", not "cmp > /dev/null".
29264 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
29266         gnulib-tool: fix imprecise comments w.r.t. an automake bug
29268         It's not just Automake versions < 1.9b that creates an empty
29269         pkgdatadir at installation time if pkgdata_DATA is specified
29270         to empty; modern automake versions do this as well, at least
29271         until automake 1.11.4 (not yet released at the moment of writing,
29272         but soon to appear).  That behaviour was generally considered a
29273         feature rather than a bug, at least until this discussion:
29274         <http://lists.gnu.org/r/automake/2012-03/msg00014.html>
29276         See also automake bugs #10997 and #11030.
29278         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
29279         reference to relevant automake bug numbers.
29280         (func_emit_tests_Makefile_am): Likewise.
29282 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
29284         announce-gen: use Digest::SHA when possible
29285         * build-aux/announce-gen: Use Digest::SHA when possible, falling
29286         back to Digest::SHA1 if necessary.
29288 2012-03-20  Jim Meyering  <meyering@redhat.com>
29290         tests: avoid gcc warnings about argv vs. const initializers
29291         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
29292         warnings about discarding 'const' qualifier from pointer target type.
29293         * tests/test-posix_spawn2.c (main): Likewise.
29295 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
29297         README-release: simplify slightly
29298         * top/README-release: Run "git checkout master" only once.
29300 2012-03-15  Mark Wielaard  <mark@klomp.org>
29302         git-merge-changelog: add specific example on how to use with hg.
29303         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
29305 2012-03-18  Mark Wielaard  <mark@klomp.org>
29307         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
29309 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
29311         git-version-gen: don't let "prefix" envvar cause trouble
29312         * build-aux/git-version-gen (prefix): Initialize properly,
29313         so as not to use a value specified via the environment.
29314         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
29316 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
29318         regex: diagnose too-large repeat counts in EREs
29319         Previously, the code did not diagnose the too-large repeat count
29320         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
29321         as if it were 'b\{1000000000}', which is unexpected.
29322         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
29323         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
29324         is a reasonable one for this problem.  Another option would be to
29325         create a new REG_OVERFLOW error for repeat counts that are too large.
29326         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
29327         count is too large, so that the caller can distinguish the two cases.
29328         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
29329         "Too large" return code, and that repeat counts are one example of this.
29331 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
29333         doc: some glibc x32 integer width issues
29334         * doc/posix-headers/sys_types.texi (sys/types.h):
29335         * doc/posix-headers/time.texi (time.h):
29336         Mention that glibc x32 does not conform to POSIX in a couple of
29337         areas related to integer widths.
29339 2012-03-15  Bruno Haible  <bruno@clisp.org>
29341         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
29342         * lib/fma.c (VOLATILE): New macro.
29343         (FUNC): Use it to work around a GCC compiler bug.
29345 2012-03-13  Bruno Haible  <bruno@clisp.org>
29347         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
29348         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
29349         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
29350         REPLACE_HYPOTL to 1.
29351         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
29353 2012-03-13  Bruno Haible  <bruno@clisp.org>
29355         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
29356         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
29357         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
29358         REPLACE_REMAINDERL to 1.
29359         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
29360         bug.
29362 2012-03-13  Bruno Haible  <bruno@clisp.org>
29364         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
29365         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
29366         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
29367         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
29368         too big rounding errors.
29369         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
29370         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
29371         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
29372         (Depends-on): Update conditions.
29373         * tests/test-sqrtl.c (my_ldexpl): New function.
29374         (main): Add test of a particular value.
29375         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
29377 2012-03-13  Pádraig Brady  <P@draigBrady.com>
29379         doc: Update timer_* platform portability notes.
29380         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
29381         that always return ENOSYS.
29382         * doc/posix-functions/timer_delete.texi: Likewise.
29383         * doc/posix-functions/timer_gettime.texi: Likewise.
29384         * doc/posix-functions/timer_settime.texi: Likewise.
29386 2012-03-13  Bruno Haible  <bruno@clisp.org>
29388         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
29389         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
29390         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
29391         REPLACE_CBRTL to 1.
29392         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
29394 2012-03-13  Bruno Haible  <bruno@clisp.org>
29396         remainderl: Avoid compilation error on AIX >= 5.2.
29397         * lib/math.in.h (remainderl): Undefine macro from the system header.
29399 2012-03-13  Bruno Haible  <bruno@clisp.org>
29401         Avoid compilation errors with MSVC option -fp:strict.
29402         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
29403         * lib/cbrtf.c: Likewise.
29404         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
29406 2012-03-12  Bruno Haible  <bruno@clisp.org>
29408         uninorm: Don't crash in out-of-memory conditions.
29409         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
29410         gracefully.
29411         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
29412         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
29414 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
29416         quote: fix syntax-check
29417         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
29418         also exports quote_quoting_options.
29420 2012-03-12  Simon Josefsson  <simon@josefsson.org>
29422         Collapse list of copyright years to ranges.  See
29423         <https://lists.gnu.org/r/bug-gnulib/2012-03/msg00051.html>.
29424         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
29425         build-aux/csharpexec.sh.in, build-aux/gnupload,
29426         build-aux/install-reloc, build-aux/javacomp.sh.in,
29427         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
29428         build-aux/move-if-change, build-aux/reloc-ldflags,
29429         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
29431 2012-03-11  Bruno Haible  <bruno@clisp.org>
29433         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
29434         * m4/log2f-ieee.m4: New file.
29435         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
29436         whether log2f works with a minus zero argument. Replace it if not.
29437         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
29438         (Depends-on): Add log2-ieee.
29439         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
29440         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
29442         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
29443         * m4/log2-ieee.m4: New file.
29444         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
29445         whether log2 works with a minus zero argument. Replace it if not.
29446         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
29447         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
29448         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
29450         Tests for module 'log2l-ieee'.
29451         * modules/log2l-ieee-tests: New file.
29452         * tests/test-log2l-ieee.c: New file.
29454         New module 'log2l-ieee'.
29455         * modules/log2l-ieee: New file.
29457         Tests for module 'log2-ieee'.
29458         * modules/log2-ieee-tests: New file.
29459         * tests/test-log2-ieee.c: New file.
29461         New module 'log2-ieee'.
29462         * modules/log2-ieee: New file.
29464         Tests for module 'log2f-ieee'.
29465         * modules/log2f-ieee-tests: New file.
29466         * tests/test-log2f-ieee.c: New file.
29467         * tests/test-log2-ieee.h: New file.
29469         New module 'log2f-ieee'.
29470         * modules/log2f-ieee: New file.
29472 2012-03-11  Bruno Haible  <bruno@clisp.org>
29474         Tests for module 'log2l'.
29475         * modules/log2l-tests: New file.
29476         * tests/test-log2l.c: New file.
29478         New module 'log2l'.
29479         * lib/math.in.h (log2l): New declaration.
29480         * lib/log2l.c: New file.
29481         * m4/log2l.m4: New file.
29482         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
29483         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
29484         REPLACE_LOG2L.
29485         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
29486         REPLACE_LOG2L.
29487         * modules/log2l: New file.
29488         * tests/test-math-c++.cc: Check the declaration of log2l.
29489         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
29490         and OSF/1 problems.
29492 2012-03-11  Bruno Haible  <bruno@clisp.org>
29494         Tests for module 'log2f'.
29495         * modules/log2f-tests: New file.
29496         * tests/test-log2f.c: New file.
29498         New module 'log2f'.
29499         * lib/math.in.h (log2f): New declaration.
29500         * lib/log2f.c: New file.
29501         * m4/log2f.m4: New file.
29502         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
29503         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
29504         REPLACE_LOG2F.
29505         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
29506         REPLACE_LOG2F.
29507         * modules/log2f: New file.
29508         * tests/test-math-c++.cc: Check the declaration of log2f.
29509         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
29510         and OSF/1 and Cygwin problems.
29512 2012-03-11  Bruno Haible  <bruno@clisp.org>
29514         Tests for module 'log2'.
29515         * modules/log2-tests: New file.
29516         * tests/test-log2.c: New file.
29517         * tests/test-log2.h: New file.
29519         New module 'log2'.
29520         * lib/math.in.h (log2): New declaration.
29521         * lib/log2.c: New file.
29522         * m4/log2.m4: New file.
29523         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
29524         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
29525         REPLACE_LOG2.
29526         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
29527         REPLACE_LOG2.
29528         * modules/log2: New file.
29529         * tests/test-math-c++.cc: Check the declaration of log2.
29530         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
29531         and OSF/1 and Cygwin problems.
29533 2012-03-11  Bruno Haible  <bruno@clisp.org>
29535         exp2* tests: More tests.
29536         * tests/test-exp2.h (test_function): Test all integral arguments that
29537         don't need to overflow or denormalized numbers.
29538         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
29539         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
29540         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
29542 2012-03-10  Bruno Haible  <bruno@clisp.org>
29544         log1pl-ieee: Work around test failure on AIX 7.1.
29545         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
29547         log1pl-ieee: Work around test failure on IRIX 6.5.
29548         * m4/log1pl-ieee.m4: New file.
29549         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
29550         test whether log1pl works with a minus zero argument. Replace it if
29551         not.
29552         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
29553         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
29554         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
29555         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
29556         (Depends-on): Update conditions.
29557         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
29558         m4/signbit.m4.
29559         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
29560         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
29562         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
29563         * m4/log1pf-ieee.m4: New file.
29564         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
29565         test whether log1pf works with a minus zero argument. Replace it if
29566         not.
29567         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
29568         m4/signbit.m4.
29569         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
29570         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
29572         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
29573         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
29574         (configure.ac): Require gl_FUNC_LOG1PF.
29576         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
29577         * m4/log1p-ieee.m4: New file.
29578         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
29579         whether log1p works with a minus zero argument. Replace it if not.
29580         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
29581         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
29582         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
29583         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
29584         (Depends-on): Update conditions.
29585         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
29586         m4/signbit.m4.
29587         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
29588         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
29590         Tests for module 'log1pl-ieee'.
29591         * modules/log1pl-ieee-tests: New file.
29592         * tests/test-log1pl-ieee.c: New file.
29594         New module 'log1pl-ieee'.
29595         * modules/log1pl-ieee: New file.
29597         Tests for module 'log1p-ieee'.
29598         * modules/log1p-ieee-tests: New file.
29599         * tests/test-log1p-ieee.c: New file.
29601         New module 'log1p-ieee'.
29602         * modules/log1p-ieee: New file.
29604         Tests for module 'log1pf-ieee'.
29605         * modules/log1pf-ieee-tests: New file.
29606         * tests/test-log1pf-ieee.c: New file.
29607         * tests/test-log1p-ieee.h: New file.
29609         New module 'log1pf-ieee'.
29610         * modules/log1pf-ieee: New file.
29612 2012-03-10  Bruno Haible  <bruno@clisp.org>
29614         Tests for module 'log1pl'.
29615         * modules/log1pl-tests: New file.
29616         * tests/test-log1pl.c: New file.
29618         New module 'log1pl'.
29619         * lib/math.in.h (log1pl): New declaration.
29620         * lib/log1pl.c: New file.
29621         * m4/log1pl.m4: New file.
29622         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
29623         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
29624         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
29625         * modules/log1pl: New file.
29626         * tests/test-math-c++.cc: Check the declaration of log1pl.
29627         * doc/posix-functions/log1pl.texi: Mention the new module.
29629 2012-03-10  Bruno Haible  <bruno@clisp.org>
29631         Tests for module 'log1pf'.
29632         * modules/log1pf-tests: New file.
29633         * tests/test-log1pf.c: New file.
29635         New module 'log1pf'.
29636         * lib/math.in.h (log1pf): New declaration.
29637         * lib/log1pf.c: New file.
29638         * m4/log1pf.m4: New file.
29639         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
29640         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
29641         REPLACE_LOG1PF.
29642         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
29643         REPLACE_LOG1PF.
29644         * modules/log1pf: New file.
29645         * tests/test-math-c++.cc: Check the declaration of log1pf.
29646         * doc/posix-functions/log1pf.texi: Mention the new module.
29648 2012-03-10  Bruno Haible  <bruno@clisp.org>
29650         log1p tests: More tests.
29651         * tests/test-log1p.h: New file.
29652         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
29653         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
29654         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
29655         (main): Invoke test_function.
29657         log1p: Provide replacement for Minix and MSVC.
29658         * lib/math.in.h (log1p): New declaration.
29659         * lib/log1p.c: New file.
29660         * m4/log1p.m4: New file.
29661         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
29662         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
29663         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
29664         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
29665         (Depends-on): Add math, isnand, log, round.
29666         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
29667         HAVE_LOG1P is 0.
29668         * tests/test-math-c++.cc: Check the declaration of log1p.
29669         * doc/posix-functions/log1p.texi: Mention the replacement.
29671 2012-03-10  Bruno Haible  <bruno@clisp.org>
29673         math tests: Small simplification.
29674         * tests/test-exp.h (test_function): Use the same err_bound for
29675         'double' on platforms with sizeof (long double) == sizeof (double)
29676         than on platforms with sizeof (long double) > sizeof (double).
29677         * tests/test-exp2.h (test_function): Likewise.
29678         * tests/test-expm1.h (test_function): Likewise.
29679         * tests/test-log.h (test_function): Likewise.
29681 2012-03-10  Bruno Haible  <bruno@clisp.org>
29683         Fix some comments.
29684         * lib/expl.c: Fix an ambiguous comment.
29685         * lib/expm1.c: Likewise.
29686         * lib/expm1l.c: Likewise.
29687         * lib/exp2.c: Likewise.
29688         * lib/exp2l.c: Likewise.
29690 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
29692         regex: allow inclusion of <regex.h> before <limits.h>
29693         Without this patch, portable programs had to include <limits.h> before
29694         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
29695         I ran into this problem with a test version of GNU grep on Solaris 8.
29696         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
29697         This is done conditionally so that this change can be merged
29698         back to glibc.
29699         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
29700         using the included regex.
29702         fts: depend on fdopendir
29703         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
29704         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
29705         problem was introduced when fdopendir was split out.
29707 2012-03-10  Bruno Haible  <bruno@clisp.org>
29709         Remove unused variables.
29710         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
29711         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
29713 2012-03-10  Bruno Haible  <bruno@clisp.org>
29715         isnanf-nolibm: Fix last commit.
29716         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
29718         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
29719         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
29721 2012-03-10  Bruno Haible  <bruno@clisp.org>
29723         logf-ieee: Work around test failure on NetBSD 5.1.
29724         * m4/logf-ieee.m4: New file.
29725         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
29726         whether logf works with a negative argument. Replace it if not.
29727         * lib/logf.c (logf): For negative arguments, return NaN.
29728         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
29729         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
29730         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
29732         logf-ieee: Work around test failure on Solaris 9.
29733         * modules/logf-ieee (Depends-on): Add log-ieee.
29734         (configure.ac): Require gl_FUNC_LOGF.
29736         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
29737         * m4/log-ieee.m4: New file.
29738         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
29739         log works with a negative argument. Replace it if not.
29740         * lib/log.c (log): For negative arguments, return NaN.
29741         * modules/log-ieee (Files): Add m4/log-ieee.m4.
29742         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
29743         * doc/posix-functions/log.texi: Mention the log-ieee module.
29745         Tests for module 'logl-ieee'.
29746         * modules/logl-ieee-tests: New file.
29747         * tests/test-logl-ieee.c: New file.
29749         New module 'logl-ieee'.
29750         * modules/logl-ieee: New file.
29752         Tests for module 'log-ieee'.
29753         * modules/log-ieee-tests: New file.
29754         * tests/test-log-ieee.c: New file.
29756         New module 'log-ieee'.
29757         * modules/log-ieee: New file.
29759         Tests for module 'logf-ieee'.
29760         * modules/logf-ieee-tests: New file.
29761         * tests/test-logf-ieee.c: New file.
29762         * tests/test-log-ieee.h: New file.
29764         New module 'logf-ieee'.
29765         * modules/logf-ieee: New file.
29767 2012-03-10  Bruno Haible  <bruno@clisp.org>
29769         log: Fix bug introduced on 2012-03-09.
29770         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
29772 2012-03-10  Pádraig Brady  <P@draigBrady.com>
29774         timer-time: link explicitly with pthreads on glibc
29775         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
29776         to support static linking, when newer glibc is
29777         detected, as that contains pthread emulation of
29778         POSIX timer functions where required.
29779         * modules/timer-time: Depend on threadlib to
29780         pull in the appropriate library to link.
29782 2012-03-10  Bruno Haible  <bruno@clisp.org>
29784         log* tests: More tests.
29785         * tests/test-log.h: New file.
29786         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
29787         (main): Invoke test_function.
29788         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
29789         (main): Invoke test_function.
29790         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
29791         (main): Invoke test_function.
29792         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
29793         tests/randomd.c.
29794         (Makefile.am): Add randomd.c to test_log_SOURCES.
29795         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
29796         tests/randomf.c.
29797         (Makefile.am): Add randomf.c to test_logf_SOURCES.
29798         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
29799         tests/randoml.c.
29800         (Depends-on): Add 'float'.
29801         (Makefile.am): Add randoml.c to test_logl_SOURCES.
29803 2012-03-09  Bruno Haible  <bruno@clisp.org>
29805         logl: Work around OSF/1 5.1 bug.
29806         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
29807         * lib/logl.c (logl): If logl exists, use it and provide just the
29808         workaround.
29809         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
29810         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
29811         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
29812         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
29813         * modules/logl (configure.ac): Consider REPLACE_LOGL.
29814         (Depends-on): Update conditions.
29815         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
29817 2012-03-09  Bruno Haible  <bruno@clisp.org>
29819         logf: Work around OSF/1 5.1 bug.
29820         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
29821         * lib/logf.c (logf): If logf exists, use it and provide just the
29822         workaround.
29823         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
29824         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
29825         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
29826         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
29827         * modules/logf (configure.ac): Consider REPLACE_LOGF.
29828         (Depends-on): Update conditions.
29829         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
29831 2012-03-09  Bruno Haible  <bruno@clisp.org>
29833         log: Work around OSF/1 5.1 bug.
29834         * lib/math.in.h (log): New declaration.
29835         * lib/log.c: New file.
29836         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
29837         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
29838         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
29839         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
29840         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
29841         * modules/log (Files): Add lib/log.c.
29842         (Depends-on): Add math.
29843         (configure.ac): If REPLACE_LOG is 1, compile an override.
29844         * tests/test-math-c++.cc: Check the declaration of log.
29845         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
29847 2012-03-09  Jim Meyering  <meyering@redhat.com>
29849         readtokens.c: adjust wording in a comment
29850         * lib/readtokens.c: Insert omitted "that" in a comment.
29852 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
29854         modechange: add notations +40, 00440, etc.
29855         * lib/modechange.c (mode_compile): Support new notations
29856         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
29858 2012-03-08  Bruno Haible  <bruno@clisp.org>
29860         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
29861         * m4/exp2l-ieee.m4: New file.
29862         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
29863         test whether exp2l works with a NaN argument and with a negative
29864         infinity argument. Replace it if not.
29865         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
29866         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
29867         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
29868         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
29869         (Depends-on): Update conditions.
29870         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
29871         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
29872         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
29874         Tests for module 'exp2l-ieee'.
29875         * modules/exp2l-ieee-tests: New file.
29876         * tests/test-exp2l-ieee.c: New file.
29878         New module 'exp2l-ieee'.
29879         * modules/exp2l-ieee: New file.
29881         Tests for module 'exp2-ieee'.
29882         * modules/exp2-ieee-tests: New file.
29883         * tests/test-exp2-ieee.c: New file.
29885         New module 'exp2-ieee'.
29886         * modules/exp2-ieee: New file.
29888         Tests for module 'exp2f-ieee'.
29889         * modules/exp2f-ieee-tests: New file.
29890         * tests/test-exp2f-ieee.c: New file.
29891         * tests/test-exp2-ieee.h: New file.
29893         New module 'exp2f-ieee'.
29894         * modules/exp2f-ieee: New file.
29896 2012-03-08  Bruno Haible  <bruno@clisp.org>
29898         Tests for module 'exp2l'.
29899         * modules/exp2l-tests: New file.
29900         * tests/test-exp2l.c: New file.
29902         New module 'exp2l'.
29903         * lib/math.in.h (exp2l): New declaration.
29904         * lib/exp2l.c: New file.
29905         * lib/expl-table.c: New file, extracted from lib/expl.c.
29906         * lib/expl.c (gl_expl_table): New declaration.
29907         (expl): Remove expl_table. Update reference.
29908         * m4/exp2l.m4: New file.
29909         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
29910         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
29911         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
29912         * modules/exp2l: New file.
29913         * modules/expl (Files): Add lib/expl-table.c.
29914         (configure.ac): Compile also expl-table.c.
29915         * tests/test-math-c++.cc: Check the declaration of exp2l.
29916         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
29917         problem.
29919 2012-03-08  Bruno Haible  <bruno@clisp.org>
29921         Tests for module 'exp2f'.
29922         * modules/exp2f-tests: New file.
29923         * tests/test-exp2f.c: New file.
29925         New module 'exp2f'.
29926         * lib/math.in.h (exp2f): New declaration.
29927         * lib/exp2f.c: New file.
29928         * m4/exp2f.m4: New file.
29929         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
29930         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
29931         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
29932         * modules/exp2f: New file.
29933         * tests/test-math-c++.cc: Check the declaration of exp2f.
29934         * doc/posix-functions/exp2f.texi: Mention the new module and the
29935         IRIX problem.
29937 2012-03-08  Bruno Haible  <bruno@clisp.org>
29939         Tests for module 'exp2'.
29940         * modules/exp2-tests: New file.
29941         * tests/test-exp2.c: New file.
29942         * tests/test-exp2.h: New file.
29944         New module 'exp2'.
29945         * lib/math.in.h (exp2): New declaration.
29946         * lib/exp2.c: New file.
29947         * m4/exp2.m4: New file.
29948         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
29949         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
29950         REPLACE_EXP2.
29951         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
29952         REPLACE_EXP2.
29953         * modules/exp2: New file.
29954         * tests/test-math-c++.cc: Check the declaration of exp2.
29955         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
29956         and OpenBSD problems.
29958 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
29960         savedir: fix comment typo
29961         * lib/savedir.c (savedirstream): Fix typo in comment.
29963 2012-03-08  Bruno Haible  <bruno@clisp.org>
29965         test-readtokens.c: use const; remove unwarranted cast
29966         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
29968 2012-03-08  Bruno Haible  <bruno@clisp.org>
29970         fmal: Avoid compilation error on AIX.
29971         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
29972         AIX 5.2..7.1.
29974 2012-03-08  Bruno Haible  <bruno@clisp.org>
29976         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
29977         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
29978         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
29979         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
29980         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
29981         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
29982         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
29984 2012-03-08  Bruno Haible  <bruno@clisp.org>
29986         remainderf: Override buggy system function on IRIX 6.5.
29987         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
29988         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
29989         when it exists.
29990         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
29992 2012-03-08  Jim Meyering  <meyering@redhat.com>
29994         test-readtokens.c: avoid const-related compilation warnings
29995         * tests/test-readtokens.c: Avoid const-related compilation warnings.
29997 2012-03-07  Jim Meyering  <meyering@redhat.com>
29998             Bruno Haible  <bruno@clisp.org>
30000         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
30001         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
30002         tests/randomd.c.
30003         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
30004         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
30005         tests/randoml.c.
30006         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
30008 2012-03-07  Bruno Haible  <bruno@clisp.org>
30010         expm1l: Avoid compilation error on AIX.
30011         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
30012         AIX 5.2..7.1.
30014 2012-03-07  Bruno Haible  <bruno@clisp.org>
30016         expm1l: Don't override undeclared system function on IRIX 6.5.
30017         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
30018         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
30019         it exists. Set HAVE_DECL_EXPM1L.
30020         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
30021         HAVE_EXPM1L.
30022         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
30023         HAVE_EXPM1L.
30024         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
30026 2012-03-07  Bruno Haible  <bruno@clisp.org>
30028         remainderl: Don't override undeclared system function on IRIX 6.5.
30029         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
30030         HAVE_REMAINDERL.
30031         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
30032         declared when it exists. Set HAVE_DECL_REMAINDERL.
30033         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
30034         not HAVE_REMAINDERL.
30035         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
30036         HAVE_REMAINDERL.
30037         * doc/posix-functions/remainderl.texi: Mention missing declaration
30038         problem.
30040 2012-03-07  Bruno Haible  <bruno@clisp.org>
30042         rintf: Don't override undeclared system function on IRIX 6.5.
30043         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
30044         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
30045         exists. Set HAVE_DECL_RINTF.
30046         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
30047         HAVE_RINTF.
30048         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
30049         HAVE_RINTF.
30050         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
30052 2012-03-07  Bruno Haible  <bruno@clisp.org>
30054         roundl: Avoid compilation error on AIX.
30055         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
30056         AIX 5.2..7.1.
30058 2012-03-07  Bruno Haible  <bruno@clisp.org>
30060         roundl: Don't override undeclared system function on IRIX 6.5.
30061         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
30062         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
30063         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
30064         * modules/roundl (configure.ac): For replacement code, test
30065         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
30066         (Depends-on): Update conditions.
30067         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
30069 2012-03-07  Bruno Haible  <bruno@clisp.org>
30071         roundf: Don't override undeclared system function on IRIX 6.5.
30072         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
30073         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
30074         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
30075         * modules/roundf (configure.ac): For replacement code, test
30076         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
30077         (Depends-on): Update conditions.
30078         * modules/roundf-ieee (Depends-on): Update conditions.
30079         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
30081 2012-03-07  Bruno Haible  <bruno@clisp.org>
30083         round: Don't override undeclared system function on IRIX 6.5.
30084         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
30085         argument.
30086         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
30087         also when it is not declared. Set HAVE_ROUND. For replacement code,
30088         test HAVE_ROUND, not HAVE_DECL_ROUND.
30089         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
30090         not HAVE_DECL_ROUND.
30091         (Depends-on): Update conditions.
30092         * modules/round-ieee (Depends-on): Update conditions.
30093         * doc/posix-functions/round.texi: Mention the IRIX problem.
30095 2012-03-07  Bruno Haible  <bruno@clisp.org>
30097         copysignf: Don't override undeclared system function on IRIX 6.5.
30098         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
30099         HAVE_COPYSIGNF.
30100         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
30101         declared when it exists. Set HAVE_DECL_COPYSIGNF.
30102         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
30103         not HAVE_COPYSIGNF.
30104         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
30105         HAVE_COPYSIGNF.
30106         * doc/posix-functions/copysignf.texi: Mention missing declaration
30107         problem.
30109 2012-03-07  Jim Meyering  <meyering@redhat.com>
30111         readtokens: add tests
30112         * modules/readtokens-tests: New file.
30113         * tests/test-readtokens.c: New file.
30115 2012-03-07  Jim Meyering  <meyering@redhat.com>
30117         quotearg: the module must now include quote.h
30118         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
30119         So must the module.
30120         * modules/quotearg (Files): Add quote.h.
30122 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
30124         readtokens: avoid core dumps with unusual calling patterns
30125         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
30126         * lib/readtokens.c: Include limits.h.
30127         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
30128         (readtoken): Don't cache the delimiters; the cache code was buggy
30129         if !delim && saved_delim, or if the new n_delim differs from the old.
30130         Also, it wasn't thread-safe.
30132 2012-03-07  Bruno Haible  <bruno@clisp.org>
30134         quote: Adhere to common module description layout.
30135         * modules/quote (Makefile.am): Add back empty section.
30137 2012-03-06  Akim Demaille  <demaille@gostai.com>
30139         quote: fuse into quotearg
30140         This patch is made for the benefit of Bison.
30141         quote does not leave the choice of the quoting style to the user.
30142         quoting_style provides poor customizability, yet quoting_options,
30143         which is very rich, is hidden inside quotearg.c.  So in order to
30144         allow quote customization, move its implementation to quotearg.c.
30145         * lib/quote.c: Remove.
30146         * modules/quote: Adjust.
30147         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
30148         warning: provide all the members of literal structs.
30149         (quote_quoting_options): New.
30150         (quote, quote_n): Import implementation from quote.c.
30151         * lib/quote.h: Import the comments from quote.c.
30152         (quote_quoting_options): New.
30154 2012-03-06  Bruno Haible  <bruno@clisp.org>
30156         Tests for module 'expm1l-ieee'.
30157         * modules/expm1l-ieee-tests: New file.
30158         * tests/test-expm1l-ieee.c: New file.
30160         New module 'expm1l-ieee'.
30161         * modules/expm1l-ieee: New file.
30163         Tests for module 'expm1f-ieee'.
30164         * modules/expm1f-ieee-tests: New file.
30165         * tests/test-expm1f-ieee.c: New file.
30167         New module 'expm1f-ieee'.
30168         * modules/expm1f-ieee: New file.
30170         Tests for module 'expm1-ieee'.
30171         * modules/expm1-ieee-tests: New file.
30172         * tests/test-expm1-ieee.c: New file.
30173         * tests/test-expm1-ieee.h: New file.
30175         New module 'expm1-ieee'.
30176         * modules/expm1-ieee: New file.
30177         * m4/expm1-ieee.m4: New file.
30178         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
30179         whether expm1 works with a minus zero argument. Replace it if not.
30180         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
30181         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
30182         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
30183         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
30184         (Depends-on): Update conditions.
30185         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
30186         AIX problem.
30188 2012-03-06  Bruno Haible  <bruno@clisp.org>
30190         Work around expm1f bug on IRIX 6.5.
30191         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
30192         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
30193         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
30194         not work.
30195         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
30196         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
30197         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
30198         (Depends-on): Update conditions.
30199         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
30201 2012-03-06  Bruno Haible  <bruno@clisp.org>
30203         Tests for module 'expm1l'.
30204         * modules/expm1l-tests: New file.
30205         * tests/test-expm1l.c: New file.
30207         New module 'expm1l'.
30208         * lib/math.in.h (expm1l): New declaration.
30209         * lib/expm1l.c: New file.
30210         * m4/expm1l.m4: New file.
30211         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
30212         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
30213         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
30214         * modules/expm1l: New file.
30215         * tests/test-math-c++.cc: Check the declaration of expm1l.
30216         * doc/posix-functions/expm1l.texi: Mention the new module.
30218 2012-03-06  Bruno Haible  <bruno@clisp.org>
30220         Tests for module 'expm1f'.
30221         * modules/expm1f-tests: New file.
30222         * tests/test-expm1f.c: New file.
30224         New module 'expm1f'.
30225         * lib/math.in.h (expm1f): New declaration.
30226         * lib/expm1f.c: New file.
30227         * m4/expm1f.m4: New file.
30228         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
30229         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
30230         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
30231         * modules/expm1f: New file.
30232         * tests/test-math-c++.cc: Check the declaration of expm1f.
30233         * doc/posix-functions/expm1f.texi: Mention the new module.
30235 2012-03-06  Bruno Haible  <bruno@clisp.org>
30237         Tests for module 'expm1'.
30238         * modules/expm1-tests: New file.
30239         * tests/test-expm1.c: New file.
30240         * tests/test-expm1.h: New file.
30242         New module 'expm1'.
30243         * lib/math.in.h (expm1): New declaration.
30244         * lib/expm1.c: New file.
30245         * m4/expm1.m4: New file.
30246         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
30247         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
30248         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
30249         * modules/expm1: New file.
30250         * tests/test-math-c++.cc: Check the declaration of expm1.
30251         * doc/posix-functions/expm1.texi: Mention the new module.
30253 2012-03-06  Bruno Haible  <bruno@clisp.org>
30255         math: Ensure declarations of math functions.
30256         * modules/acosf (Depends-on): Add 'extensions'.
30257         * modules/asinf (Depends-on): Likewise.
30258         * modules/atan2f (Depends-on): Likewise.
30259         * modules/atanf (Depends-on): Likewise.
30260         * modules/cbrt (Depends-on): Likewise.
30261         * modules/cbrtf (Depends-on): Likewise.
30262         * modules/cbrtl (Depends-on): Likewise.
30263         * modules/copysignf (Depends-on): Likewise.
30264         * modules/copysignl (Depends-on): Likewise.
30265         * modules/cosf (Depends-on): Likewise.
30266         * modules/coshf (Depends-on): Likewise.
30267         * modules/expf (Depends-on): Likewise.
30268         * modules/fabsf (Depends-on): Likewise.
30269         * modules/fabsl (Depends-on): Likewise.
30270         * modules/fmaf (Depends-on): Likewise.
30271         * modules/fmal (Depends-on): Likewise.
30272         * modules/fmodf (Depends-on): Likewise.
30273         * modules/fmodl (Depends-on): Likewise.
30274         * modules/frexpf (Depends-on): Likewise.
30275         * modules/frexpl (Depends-on): Likewise.
30276         * modules/hypot (Depends-on): Likewise.
30277         * modules/hypotf (Depends-on): Likewise.
30278         * modules/hypotl (Depends-on): Likewise.
30279         * modules/ldexpf (Depends-on): Likewise.
30280         * modules/ldexpl (Depends-on): Likewise.
30281         * modules/log10f (Depends-on): Likewise.
30282         * modules/log10l (Depends-on): Likewise.
30283         * modules/log1p (Depends-on): Likewise.
30284         * modules/logb (Depends-on): Likewise.
30285         * modules/logf (Depends-on): Likewise.
30286         * modules/modff (Depends-on): Likewise.
30287         * modules/modfl (Depends-on): Likewise.
30288         * modules/powf (Depends-on): Likewise.
30289         * modules/remainderf (Depends-on): Likewise.
30290         * modules/remainderl (Depends-on): Likewise.
30291         * modules/rintf (Depends-on): Likewise.
30292         * modules/rintl (Depends-on): Likewise.
30293         * modules/sinf (Depends-on): Likewise.
30294         * modules/sinhf (Depends-on): Likewise.
30295         * modules/sqrtf (Depends-on): Likewise.
30296         * modules/tanf (Depends-on): Likewise.
30297         * modules/tanhf (Depends-on): Likewise.
30298         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
30299         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
30300         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
30301         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
30302         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
30303         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
30304         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
30305         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
30306         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
30307         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
30308         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
30309         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
30310         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
30311         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
30312         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
30313         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
30314         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
30315         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
30316         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
30317         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
30318         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
30319         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
30320         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
30321         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
30322         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
30323         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
30324         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
30325         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
30326         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
30327         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
30328         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
30329         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
30330         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
30331         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
30332         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
30333         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
30334         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
30335         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
30336         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
30337         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
30338         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
30340 2012-03-06  Bruno Haible  <bruno@clisp.org>
30342         math: Update module names in warnings.
30343         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
30344         tanl): Use specific module name in warn-on-use warning.
30346 2012-03-06  Bruno Haible  <bruno@clisp.org>
30348         expl: Simplify computation.
30349         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
30351 2012-03-05  Bruno Haible  <bruno@clisp.org>
30353         exp* tests: More tests.
30354         * tests/test-exp.h: New file.
30355         * tests/test-exp.c: Include <float.h> and test-exp.h.
30356         (main): Invoke test_function.
30357         * tests/test-expf.c: Include <float.h> and test-exp.h.
30358         (main): Invoke test_function.
30359         * tests/test-expl.c: Include <float.h> and test-exp.h.
30360         (main): Invoke test_function.
30361         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
30362         (Makefile.am): Add randomd.c to test_exp_SOURCES.
30363         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
30364         (Makefile.am): Add randomf.c to test_expf_SOURCES.
30365         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
30366         (Depends-on): Add 'float'.
30367         (Makefile.am): Add randoml.c to test_expl_SOURCES.
30369         expl: Fix precision of computed result.
30370         * lib/expl.c: Completely rewritten.
30371         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
30372         (Maintainer): Add me.
30373         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
30375 2012-03-05  Bruno Haible  <bruno@clisp.org>
30377         cbrt* tests: More tests.
30378         * tests/test-cbrt.h: New file.
30379         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
30380         (main): Invoke test_function.
30381         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
30382         (main): Invoke test_function.
30383         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
30384         (main): Invoke test_function.
30385         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
30386         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
30387         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
30388         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
30389         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
30390         (Depends-on): Add 'float'.
30391         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
30393 2012-03-05  Bruno Haible  <bruno@clisp.org>
30395         hypot* tests: More tests.
30396         * tests/test-hypot.h: New file, partially extracted from
30397         tests/test-hypotl.c.
30398         * tests/test-hypot.c: Include test-hypot.h.
30399         (main): Invoke test_function.
30400         * tests/test-hypotf.c: Include test-hypot.h.
30401         (main): Invoke test_function.
30402         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
30403         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
30404         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
30405         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
30406         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
30407         tests/randomf.c.
30408         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
30409         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
30410         tests/randoml.c.
30411         (Depends-on): Add 'fpucw', 'float'.
30412         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
30414 2012-03-05  Bruno Haible  <bruno@clisp.org>
30416         fpucw: Doc about FreeBSD.
30417         * lib/fpucw.h: Mention FreeBSD in comments.
30419 2012-03-04  Bruno Haible  <bruno@clisp.org>
30421         sqrt* tests: More tests.
30422         * tests/test-sqrt.h: New file.
30423         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
30424         (main): Invoke test_function.
30425         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
30426         (main): Invoke test_function.
30427         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
30428         (main): Invoke test_function.
30429         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
30430         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
30431         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
30432         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
30433         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
30434         (Depends-on): Add 'float'.
30435         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
30437 2012-03-04  Bruno Haible  <bruno@clisp.org>
30439         remainder* tests: More tests.
30440         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
30441         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
30442         (main): Invoke test_function.
30443         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
30444         (main): Invoke test_function.
30445         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
30446         (main): Invoke test_function.
30447         * modules/remainder-tests (Files): Add tests/test-remainder.h,
30448         tests/randomd.c.
30449         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
30450         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
30451         tests/randomf.c.
30452         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
30453         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
30454         tests/randoml.c.
30455         (Depends-on): Add 'float'.
30456         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
30458 2012-03-04  Bruno Haible  <bruno@clisp.org>
30460         remainder, remainderf, remainderl: Fix computation for large quotients.
30461         * lib/remainder.c: Completely rewritten.
30462         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
30463         USE_FLOAT.
30464         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
30465         USE_LONG_DOUBLE.
30466         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
30467         isnand, isinf. Remove round, fma.
30468         * modules/remainderf (Files): Add lib/remainder.c.
30469         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
30470         Remove roundf, fmaf.
30471         * modules/remainderl (Files): Add lib/remainder.c.
30472         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
30473         isinf. Remove roundl, fmal.
30474         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
30475         REMAINDER_LIBM.
30476         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
30477         REMAINDERF_LIBM.
30478         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
30479         REMAINDERL_LIBM.
30481 2012-03-04  Bruno Haible  <bruno@clisp.org>
30483         fmod* tests: More tests.
30484         * tests/test-fmod.h (my_ldexp): New function.
30485         (test_function): Reduce amount of random numbers to test. Add tests
30486         of very large quotients x / y.
30487         * tests/test-fmod.c (MAX_EXP): New macro.
30488         * tests/test-fmodf.c (MAX_EXP): Likewise.
30489         * tests/test-fmodl.c (MAX_EXP): Likewise.
30491 2012-03-04  Bruno Haible  <bruno@clisp.org>
30493         fmod, fmodl: Fix computation for large quotients x / y.
30494         * lib/fmod.c: Completely rewritten.
30495         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
30496         USE_LONG_DOUBLE.
30497         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
30498         isnand. Remove fma.
30499         * modules/fmodl (Files): Add lib/fmod.c.
30500         (Depends-on): Add float, isfinite, signbit, fabsl,
30501         frexpl, ldexpl, isnanl. Remove fma.
30502         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
30503         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
30505 2012-03-03  Bruno Haible  <bruno@clisp.org>
30507         fmod* tests: More tests.
30508         * tests/test-fmod.h: New file.
30509         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
30510         (main): Invoke test_function.
30511         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
30512         (main): Invoke test_function.
30513         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
30514         (main): Invoke test_function.
30515         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
30516         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
30517         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
30518         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
30519         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
30520         (Depends-on): Add 'float'.
30521         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
30523 2012-03-03  Bruno Haible  <bruno@clisp.org>
30525         rint* tests: More tests.
30526         * tests/test-rint.h: New file, partially extracted from
30527         tests/test-rintl.c.
30528         * tests/test-rint.c: Include test-rint.h.
30529         (main): Invoke test_function.
30530         * tests/test-rintf.c: Include test-rint.h.
30531         (main): Invoke test_function.
30532         * tests/test-rintl.c: Include test-rint.h.
30533         (main): Invoke test_function.
30534         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
30535         (Makefile.am): Add randomd.c to test_rint_SOURCES.
30536         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
30537         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
30538         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
30539         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
30541 2012-03-03  Bruno Haible  <bruno@clisp.org>
30543         modf* tests: More tests.
30544         * tests/test-modf.h: New file.
30545         * tests/test-modf.c: Include <float.h> and test-modf.h.
30546         (main): Invoke test_function.
30547         * tests/test-modff.c: Include <float.h> and test-modf.h.
30548         (main): Invoke test_function.
30549         * tests/test-modfl.c: Include <float.h> and test-modf.h.
30550         (main): Invoke test_function.
30551         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
30552         (Makefile.am): Add randomd.c to test_modf_SOURCES.
30553         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
30554         (Makefile.am): Add randomf.c to test_modff_SOURCES.
30555         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
30556         (Depends-on): Add 'float'.
30557         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
30559 2012-03-03  Bruno Haible  <bruno@clisp.org>
30561         fabs* tests: More tests.
30562         * tests/test-fabs.h: New file, partially extracted from
30563         tests/test-fabsl.c.
30564         * tests/test-fabs.c (RANDOM): New macro.
30565         * tests/test-fabsf.c (RANDOM): New macro.
30566         * tests/test-fabsl.c (RANDOM): New macro.
30567         * modules/fabs-tests (Files): Add tests/randomd.c.
30568         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
30569         * modules/fabsf-tests (Files): Add tests/randomf.c.
30570         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
30571         * modules/fabsl-tests (Files): Add tests/randoml.c.
30572         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
30574 2012-03-03  Bruno Haible  <bruno@clisp.org>
30576         ldexp* tests: More tests.
30577         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
30578         * tests/test-ldexp.c (RANDOM): New macro.
30579         * tests/test-ldexpf.c (RANDOM): New macro.
30580         * tests/test-ldexpl.c (RANDOM): New macro.
30581         * modules/ldexp-tests (Files): Add tests/randomd.c.
30582         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
30583         * modules/ldexpf-tests (Files): Add tests/randomf.c.
30584         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
30585         * modules/ldexpl-tests (Files): Add tests/randoml.c.
30586         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
30588 2012-03-03  Bruno Haible  <bruno@clisp.org>
30590         frexp* tests: More tests.
30591         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
30592         * tests/test-frexp.c (RANDOM): New macro.
30593         * tests/test-frexpf.c (RANDOM): New macro.
30594         * tests/test-frexpl.c (RANDOM): New macro.
30595         * modules/frexp-tests (Files): Add tests/randomd.c.
30596         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
30597         * modules/frexpf-tests (Files): Add tests/randomf.c.
30598         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
30599         * modules/frexpl-tests (Files): Add tests/randoml.c.
30600         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
30602 2012-03-03  Bruno Haible  <bruno@clisp.org>
30604         Support for pseudo-random numbers in tests.
30605         * tests/randomf.c: New file.
30606         * tests/randomd.c: New file.
30607         * tests/randoml.c: New file.
30608         * tests/macros.h (randomf, randomd, randoml): New declarations.
30610 2012-03-03  Bruno Haible  <bruno@clisp.org>
30612         frexp* tests: Refactor.
30613         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
30614         * tests/test-frexp.c: Include and use it.
30615         * tests/test-frexpf.c: Likewise.
30616         * tests/test-frexpl.c: Likewise.
30617         * modules/frexp-tests (Files): Add tests/test-frexp.h.
30618         * modules/frexpf-tests (Files): Likewise.
30619         * modules/frexpl-tests (Files): Likewise.
30621 2012-03-02  Jim Meyering  <meyering@redhat.com>
30623         maint: don't specify XZ_OPT=-9ev in dist-related rule
30624         Using xz's -9 option is warranted only if you have a very large
30625         tarball (see xz's documentation for the sizes vs. presets), and
30626         requires 64MiB of memory at decompression time.
30627         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
30628         Automake's default of just "-e" is fine.  Override on a
30629         per-package basis by setting XZ_OPT e.g., in cfg.mk.
30631 2012-03-01  Eric Blake  <eblake@redhat.com>
30633         maint.mk: allow announcement for non-gnulib project
30634         * maint.mk (announcement): Skip gnulib version if not used.
30636 2012-03-01  Jim Meyering  <meyering@redhat.com>
30638         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
30639         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
30640         envvar settings cannot interfere.  Otherwise, setting envvars like
30641         prohibit=foo require=bar, etc. would cause spurious test failures.
30643 2012-03-01  Eric Blake  <eblake@redhat.com>
30645         maint.mk: add per-line exclusions to prohibitions
30646         * maint.mk (_sc_search_regexp): Add $exclude parameter.
30647         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
30648         (sc_const_long_option): Use it.
30650 2012-03-01  Bruno Haible  <bruno@clisp.org>
30652         Tests for module 'expl-ieee'.
30653         * modules/expl-ieee-tests: New file.
30654         * tests/test-expl-ieee.c: New file.
30656         New module 'expl-ieee'.
30657         * modules/expl-ieee: New file.
30659         Tests for module 'exp-ieee'.
30660         * modules/exp-ieee-tests: New file.
30661         * tests/test-exp-ieee.c: New file.
30663         New module 'exp-ieee'.
30664         * modules/exp-ieee: New file.
30666         Tests for module 'expf-ieee'.
30667         * modules/expf-ieee-tests: New file.
30668         * tests/test-expf-ieee.c: New file.
30669         * tests/test-exp-ieee.h: New file.
30671         New module 'expf-ieee'.
30672         * modules/expf-ieee: New file.
30674 2012-02-29  Bruno Haible  <bruno@clisp.org>
30676         cbrtl-ieee: Work around test failure on IRIX 6.5.
30677         * m4/cbrtl-ieee.m4: New file.
30678         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
30679         test whether cbrtl works with a minus zero argument. Replace it if not.
30680         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
30681         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
30682         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
30683         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
30684         (Depends-on): Update conditions.
30685         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
30686         m4/signbit.m4.
30687         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
30688         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
30689         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
30691         Tests for module 'cbrtl-ieee'.
30692         * modules/cbrtl-ieee-tests: New file.
30693         * tests/test-cbrtl-ieee.c: New file.
30695         New module 'cbrtl-ieee'.
30696         * modules/cbrtl-ieee: New file.
30698         Tests for module 'cbrt-ieee'.
30699         * modules/cbrt-ieee-tests: New file.
30700         * tests/test-cbrt-ieee.c: New file.
30702         New module 'cbrt-ieee'.
30703         * modules/cbrt-ieee: New file.
30705         Tests for module 'cbrtf-ieee'.
30706         * modules/cbrtf-ieee-tests: New file.
30707         * tests/test-cbrtf-ieee.c: New file.
30708         * tests/test-cbrt-ieee.h: New file.
30710         New module 'cbrtf-ieee'.
30711         * modules/cbrtf-ieee: New file.
30713 2012-02-29  Bruno Haible  <bruno@clisp.org>
30715         cbrtf: Work around bug in IRIX 6.5 system function.
30716         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
30717         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
30718         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
30719         work.
30720         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
30721         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
30722         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
30723         (Depends-on): Update conditions.
30724         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
30726 2012-02-29  Bruno Haible  <bruno@clisp.org>
30728         Tests for module 'cbrtl'.
30729         * modules/cbrtl-tests: New file.
30730         * tests/test-cbrtl.c: New file.
30732         New module 'cbrtl'.
30733         * lib/math.in.h (cbrtl): New declaration.
30734         * lib/cbrtl.c: New file.
30735         * m4/cbrtl.m4: New file.
30736         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
30737         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
30738         HAVE_DECL_CBRTL.
30739         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
30740         HAVE_DECL_CBRTL.
30741         * modules/cbrtl: New file.
30742         * tests/test-math-c++.cc: Check the declaration of cbrtl.
30743         * doc/posix-functions/cbrtl.texi: Mention the new module.
30745 2012-02-29  Bruno Haible  <bruno@clisp.org>
30747         Tests for module 'cbrtf'.
30748         * modules/cbrtf-tests: New file.
30749         * tests/test-cbrtf.c: New file.
30751         New module 'cbrtf'.
30752         * lib/math.in.h (cbrtf): New declaration.
30753         * lib/cbrtf.c: New file.
30754         * m4/cbrtf.m4: New file.
30755         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
30756         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
30757         HAVE_DECL_CBRTF.
30758         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
30759         HAVE_DECL_CBRTF.
30760         * modules/cbrtf: New file.
30761         * tests/test-math-c++.cc: Check the declaration of cbrtf.
30762         * doc/posix-functions/cbrtf.texi: Mention the new module.
30764 2012-02-29  Bruno Haible  <bruno@clisp.org>
30766         cbrt: Provide replacement on MSVC and Minix.
30767         * lib/math.in.h (cbrt): New declaration.
30768         * lib/cbrt.c: New file.
30769         * m4/cbrt.m4: New file.
30770         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
30771         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
30772         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
30773         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
30774         (Depends-on): Add dependencies.
30775         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
30776         * tests/test-math-c++.cc: Check the declaration of cbrt.
30777         * doc/posix-functions/cbrt.texi: Mention that the module provides a
30778         replacement.
30780 2012-02-29  Bruno Haible  <bruno@clisp.org>
30782         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
30783         * m4/hypotl-ieee.m4: New file.
30784         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
30785         test whether hypotl works with mixed NaN and Infinity arguments.
30786         Replace it if not.
30787         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
30788         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
30789         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
30790         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
30791         (Depends-on): Update conditions.
30792         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
30793         (Depends-on): Add hypot-ieee.
30794         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
30795         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
30797         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
30798         * m4/hypotf-ieee.m4: New file.
30799         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
30800         test whether hypotf works with mixed NaN and Infinity arguments.
30801         Replace it if not.
30802         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
30803         (Depends-on): Add hypot-ieee.
30804         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
30805         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
30807         hypot-ieee: Work around test failure on OSF/1 and native Windows.
30808         * lib/math.in.h (hypot): New declaration.
30809         * lib/hypot.c: New file.
30810         * m4/hypot-ieee.m4: New file.
30811         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
30812         whether hypot works with mixed NaN and Infinity arguments. Replace it
30813         if not.
30814         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
30815         REPLACE_HYPOT.
30816         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
30817         * modules/hypot (Files): Add lib/hypot.c.
30818         (Depends-on): Add dependencies.
30819         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
30820         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
30821         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
30822         * tests/test-math-c++.cc: Check the declaration of hypot.
30823         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
30825         Tests for module 'hypotl-ieee'.
30826         * modules/hypotl-ieee-tests: New file.
30827         * tests/test-hypotl-ieee.c: New file.
30829         New module 'hypotl-ieee'.
30830         * modules/hypotl-ieee: New file.
30832         Tests for module 'hypot-ieee'.
30833         * modules/hypot-ieee-tests: New file.
30834         * tests/test-hypot-ieee.c: New file.
30836         New module 'hypot-ieee'.
30837         * modules/hypot-ieee: New file.
30839         Tests for module 'hypotf-ieee'.
30840         * modules/hypotf-ieee-tests: New file.
30841         * tests/test-hypotf-ieee.c: New file.
30842         * tests/test-hypot-ieee.h: New file.
30844         New module 'hypotf-ieee'.
30845         * modules/hypotf-ieee: New file.
30847 2012-02-29  Bruno Haible  <bruno@clisp.org>
30849         Remove unused variables.
30850         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
30851         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
30852         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
30853         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
30855 2012-02-29  Eric Blake  <eblake@redhat.com>
30857         termios: fix pid_t always, not just for tcgetsid
30858         * doc/posix-headers/termios.texi (termios.h): Mention problem.
30859         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
30860         just when building tcgetsid.
30862 2012-02-29  Bruno Haible  <bruno@clisp.org>
30864         Tests for module 'hypotl'.
30865         * modules/hypotl-tests: New file.
30866         * tests/test-hypotl.c: New file.
30868         New module 'hypotl'.
30869         * lib/math.in.h (hypotl): New declaration.
30870         * lib/hypotl.c: New file.
30871         * m4/hypotl.m4: New file.
30872         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
30873         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
30874         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
30875         * modules/hypotl: New file.
30876         * tests/test-math-c++.cc: Check the hypotl declaration.
30877         * doc/posix-functions/hypotl.texi: Mention the new module.
30879 2012-02-29  Eric Blake  <eblake@redhat.com>
30881         tcgetsid: fix cygwin header bug
30882         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
30884         docs: update cygwin progress
30885         * doc/posix-functions/llround.texi (llround): Added in cygwin
30886         1.7.8.
30887         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
30888         * doc/glibc-functions/program_invocation_name.texi
30889         (program_invocation_name): Likewise.
30890         * doc/glibc-functions/program_invocation_short_name.texi
30891         (program_invocation_short_name): Likewise.
30892         * doc/glibc-functions/madvise.texi (madvise): Likewise.
30893         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
30894         Likewise.
30895         * doc/posix-functions/pthread_spin_destroy.texi
30896         (pthread_spin_destroy): Added in cygwin 1.7.10.
30897         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
30898         Likewise.
30899         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
30900         Likewise.
30901         * doc/posix-functions/pthread_spin_trylock.texi
30902         (pthread_spin_trylock): Likewise.
30903         * doc/posix-functions/pthread_spin_unlock.texi
30904         (pthread_spin_unlock): Likewise.
30905         * doc/posix-functions/pthread_setschedprio.texi
30906         (pthread_setschedprio): Likewise.
30907         * doc/posix-functions/pthread_attr_getstack.texi
30908         (pthread_attr_getstack): Likewise.
30909         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
30910         (pthread_attr_getstackaddr): Likewise.
30911         * doc/glibc-functions/pthread_getattr_np.texi
30912         (pthread_getattr_np): Likewise.
30913         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
30914         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
30915         * doc/posix-functions/clock_settime.texi (clock_settime):
30916         Likewise.
30917         * doc/posix-functions/pthread_attr_getguardsize.texi
30918         (pthread_attr_getguardsize): Likewise.
30919         * doc/posix-functions/pthread_attr_setguardsize.texi
30920         (pthread_attr_setguardsize): Likewise.
30921         * doc/posix-functions/pthread_attr_setstack.texi
30922         (pthread_attr_setstack): Likewise.
30923         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
30924         (pthread_attr_setstackaddr): Likewise.
30925         * doc/posix-functions/clock_getcpuclockid.texi
30926         (clock_getcpuclockid): Likewise.
30927         * doc/posix-functions/pthread_getcpuclockid.texi
30928         (pthread_getcpuclockid): Likewise.
30929         * doc/glibc-functions/error.texi (error): Likewise.
30930         * doc/glibc-functions/error_at_line.texi (error_at_line):
30931         Likewise.
30932         * doc/glibc-functions/error_message_count.texi
30933         (error_message_count): Likewise.
30934         * doc/glibc-functions/error_one_per_line.texi
30935         (error_one_per_line): Likewise.
30936         * doc/glibc-functions/error_print_progname.texi
30937         (error_print_progname): Likewise.
30938         * doc/posix-functions/pthread_condattr_getclock.texi
30939         (pthread_condattr_getclock): Likewise.
30940         * doc/posix-functions/pthread_condattr_setclock.texi
30941         (pthread_condattr_setclock): Likewise.
30942         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
30943         Likewise.
30944         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
30945         * doc/glibc-functions/getpt.texi (getpt): Likewise.
30946         * doc/glibc-functions/get_current_dir_name.texi
30947         (get_current_dir_name): Likewise.
30948         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
30949         Likewise.
30950         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
30951         wrong return type.
30952         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
30953         1.7.11.
30955 2012-02-29  Bruno Haible  <bruno@clisp.org>
30957         Tests for module 'hypotf'.
30958         * modules/hypotf-tests: New file.
30959         * tests/test-hypotf.c: New file.
30961         New module 'hypotf'.
30962         * lib/math.in.h (hypotf): New declaration.
30963         * lib/hypotf.c: New file.
30964         * m4/hypotf.m4: New file.
30965         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
30966         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
30967         REPLACE_HYPOTF.
30968         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
30969         REPLACE_HYPOTF.
30970         * modules/hypotf: New file.
30971         * tests/test-math-c++.cc: Check the hypotf declaration.
30972         * doc/posix-functions/hypotf.texi: Mention the new module.
30974         hypot: Prepare for hypotf module.
30975         * m4/hypot.m4: New file.
30976         * modules/hypot (Files): Add m4/hypot.m4.
30977         (configure.ac): Invoke gl_FUNC_HYPOT.
30979 2012-02-29  Bruno Haible  <bruno@clisp.org>
30981         hypot tests: More tests.
30982         * tests/test-hypot.c: Include <float.h>.
30983         (main): Add tests about overflow and underflow.
30985 2012-02-29  Bruno Haible  <bruno@clisp.org>
30987         math code: Add comments.
30988         * lib/acosl.c: Add comment about related glibc source files.
30989         * lib/asinl.c: Likewise.
30990         * lib/atanl.c: Likewise.
30991         * lib/expl.c: Likewise.
30992         * lib/logl.c: Likewise.
30993         * lib/sincosl.c: Likewise.
30994         * lib/sinl.c: Likewise.
30995         * lib/tanl.c: Likewise.
30996         * lib/trigl.c: Likewise.
30997         * lib/cosl.c: Likewise. Fix comments.
30999 2012-02-28  Bruno Haible  <bruno@clisp.org>
31001         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
31002         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
31003         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
31004         HUGE_VALL are defined.
31005         (numeric_equald): Renamed from numeric_equal.
31006         (numeric_equalf, numeric_equall): New functions.
31007         (main): Check also HUGE_VALF, HUGE_VALL.
31008         * modules/math-tests (Files): Add tests/macros.h.
31009         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
31010         HUGE_VALL.
31012 2012-02-28  Bruno Haible  <bruno@clisp.org>
31014         doc: Move ISO C11 feature notes into POSIX chapters.
31015         * doc/posix-functions/aligned_alloc.texi: Renamed from
31016         doc/glibc-functions/aligned_alloc.texi.
31017         * doc/posix-functions/quick_exit.texi: Renamed from
31018         doc/glibc-functions/quick_exit.texi.
31019         * doc/posix-headers/uchar.texi: Renamed from
31020         doc/glibc-headers/uchar.texi.
31021         * doc/posix-functions/c16rtomb.texi: Renamed from
31022         doc/glibc-functions/c16rtomb.texi.
31023         * doc/posix-functions/c32rtomb.texi: Renamed from
31024         doc/glibc-functions/c32rtomb.texi.
31025         * doc/posix-functions/mbrtoc16.texi: Renamed from
31026         doc/glibc-functions/mbrtoc16.texi.
31027         * doc/posix-functions/mbrtoc32.texi: Renamed from
31028         doc/glibc-functions/mbrtoc32.texi.
31029         * doc/gnulib.texi: Update.
31030         (Glibc uchar.h): Remove section.
31031         Suggested by Eric Blake.
31033 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
31035         stdnoreturn: port to MSVC better
31036         MSVC standard headers use __declspec(noreturn), so #define noreturn
31037         to empty on that platform.  Reported by Bruno Haible in
31038         <http://lists.gnu.org/r/bug-gnulib/2012-02/msg00152.html>.
31039         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
31040         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
31042 2012-02-28  Bruno Haible  <bruno@clisp.org>
31044         doc: Mention new glibc headers and functions.
31045         * doc/glibc-headers/uchar.texi: New file.
31046         * doc/glibc-functions/aligned_alloc.texi: New file.
31047         * doc/glibc-functions/c16rtomb.texi: New file.
31048         * doc/glibc-functions/c32rtomb.texi: New file.
31049         * doc/glibc-functions/clock_adjtime.texi: New file.
31050         * doc/glibc-functions/fanotify_init.texi: New file.
31051         * doc/glibc-functions/fanotify_mark.texi: New file.
31052         * doc/glibc-functions/inet6_opt_append.texi: New file.
31053         * doc/glibc-functions/inet6_opt_find.texi: New file.
31054         * doc/glibc-functions/inet6_opt_finish.texi: New file.
31055         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
31056         * doc/glibc-functions/inet6_opt_init.texi: New file.
31057         * doc/glibc-functions/inet6_opt_next.texi: New file.
31058         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
31059         * doc/glibc-functions/inet6_rth_add.texi: New file.
31060         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
31061         * doc/glibc-functions/inet6_rth_init.texi: New file.
31062         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
31063         * doc/glibc-functions/inet6_rth_segments.texi: New file.
31064         * doc/glibc-functions/inet6_rth_space.texi: New file.
31065         * doc/glibc-functions/login.texi: New file.
31066         * doc/glibc-functions/mbrtoc16.texi: New file.
31067         * doc/glibc-functions/mbrtoc32.texi: New file.
31068         * doc/glibc-functions/name_to_handle_at.texi: New file.
31069         * doc/glibc-functions/ntp_gettimex.texi: New file.
31070         * doc/glibc-functions/open_by_handle_at.texi: New file.
31071         * doc/glibc-functions/prlimit.texi: New file.
31072         * doc/glibc-functions/process_vm_readv.texi: New file.
31073         * doc/glibc-functions/process_vm_writev.texi: New file.
31074         * doc/glibc-functions/recvmmsg.texi: New file.
31075         * doc/glibc-functions/scandirat.texi: New file.
31076         * doc/glibc-functions/sendmmsg.texi: New file.
31077         * doc/glibc-functions/setns.texi: New file.
31078         * doc/glibc-functions/timespec_get.texi: New file.
31079         * doc/gnulib.texi: Include them.
31080         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
31081         sections.
31082         Reported by Eric Blake.
31084 2012-02-28  Bruno Haible  <bruno@clisp.org>
31086         Avoid compilation errors with MSVC option -fp:strict.
31087         * lib/floor.c: Use MSVC specific pragma fenv_access.
31088         * lib/ceil.c: Likewise.
31089         * lib/trunc.c: Likewise.
31090         * lib/round.c: Likewise.
31091         * lib/rint.c: Likewise.
31092         * lib/fma.c: Likewise.
31093         * lib/integer_length.c: Likewise.
31094         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
31095         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
31096         * tests/test-floor2.c: Likewise.
31097         * tests/test-floorf2.c: Likewise.
31098         * tests/test-ceil2.c: Likewise.
31099         * tests/test-ceilf2.c: Likewise.
31100         * tests/test-trunc2.c: Likewise.
31101         * tests/test-truncf2.c: Likewise.
31102         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
31104 2012-02-27  Bruno Haible  <bruno@clisp.org>
31106         Tests for module 'sqrtl-ieee'.
31107         * modules/sqrtl-ieee-tests: New file.
31108         * tests/test-sqrtl-ieee.c: New file.
31110         New module 'sqrtl-ieee'.
31111         * modules/sqrtl-ieee: New file.
31113         Tests for module 'sqrt-ieee'.
31114         * modules/sqrt-ieee-tests: New file.
31115         * tests/test-sqrt-ieee.c: New file.
31117         New module 'sqrt-ieee'.
31118         * modules/sqrt-ieee: New file.
31120         Tests for module 'sqrtf-ieee'.
31121         * modules/sqrtf-ieee-tests: New file.
31122         * tests/test-sqrtf-ieee.c: New file.
31123         * tests/test-sqrt-ieee.h: New file.
31125         New module 'sqrtf-ieee'.
31126         * modules/sqrtf-ieee: New file.
31128 2012-02-27  Bruno Haible  <bruno@clisp.org>
31130         remainderl-ieee: Work around test failure on OSF/1.
31131         * m4/remainderl-ieee.m4: New file.
31132         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
31133         present, test whether remainderl works with a zero second argument.
31134         Replace it if not.
31135         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
31136         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
31137         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
31138         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
31139         (Depends-on): Update conditions.
31140         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
31141         (Depends-on): Add remainder-ieee.
31142         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
31143         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
31144         module.
31146         remainderf-ieee: Work around test failure on OSF/1.
31147         * m4/remainderf-ieee.m4: New file.
31148         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
31149         present, test whether remainderf works with a zero second argument.
31150         Replace it if not.
31151         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
31152         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
31153         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
31154         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
31155         (Depends-on): Update conditions.
31156         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
31157         (Depends-on): Add remainder-ieee.
31158         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
31159         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
31160         module.
31162         remainder-ieee: Work around test failure on OSF/1.
31163         * m4/remainder-ieee.m4: New file.
31164         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
31165         present, test whether remainder works with a zero second argument.
31166         Replace it if not.
31167         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
31168         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
31169         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
31170         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
31171         (Depends-on): Update dependencies.
31172         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
31173         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
31174         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
31176         Tests for module 'remainderl-ieee'.
31177         * modules/remainderl-ieee-tests: New file.
31178         * tests/test-remainderl-ieee.c: New file.
31180         New module 'remainderl-ieee'.
31181         * modules/remainderl-ieee: New file.
31183         Tests for module 'remainder-ieee'.
31184         * modules/remainder-ieee-tests: New file.
31185         * tests/test-remainder-ieee.c: New file.
31187         New module 'remainder-ieee'.
31188         * modules/remainder-ieee: New file.
31190         Tests for module 'remainderf-ieee'.
31191         * modules/remainderf-ieee-tests: New file.
31192         * tests/test-remainderf-ieee.c: New file.
31193         * tests/test-remainder-ieee.h: New file.
31195         New module 'remainderf-ieee'.
31196         * modules/remainderf-ieee: New file.
31198 2012-02-27  Bruno Haible  <bruno@clisp.org>
31200         modff, modfl: Fix configure syntax error.
31201         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
31202         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
31204 2012-02-27  Bruno Haible  <bruno@clisp.org>
31206         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
31207         * m4/fmodl-ieee.m4: New file.
31208         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
31209         whether fmodl works with zero arguments. Replace it if not.
31210         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
31211         (Depends-on): Add fmod-ieee.
31212         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
31213         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
31215         fmodf-ieee: Work around test failure on OSF/1.
31216         * m4/fmodf-ieee.m4: New file.
31217         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
31218         whether fmodf works with zero arguments. Replace it if not.
31219         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
31220         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
31221         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
31222         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
31223         (Depends-on): Update dependencies.
31224         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
31225         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
31226         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
31228         fmodf-ieee: Work around test failure on MSVC 9.
31229         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
31230         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
31232         fmod-ieee: Work around test failures on OSF/1, mingw.
31233         * m4/fmod-ieee.m4: New file.
31234         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
31235         whether fmod works with zero arguments. Replace it if not.
31236         * lib/math.in.h (fmod): New declaration.
31237         * lib/fmod.c: New file.
31238         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
31239         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
31240         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
31241         * modules/fmod (Files): Add lib/fmod.c.
31242         (Depends-on): Add math, isinf, trunc, fma.
31243         (configure.ac): Arrange to compile lib/fmod.c if needed.
31244         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
31245         m4/signbit.m4.
31246         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
31247         * tests/test-math-c++.cc: Check the declaration of fmod.
31248         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
31250         fmodl-ieee: Fix test failures.
31251         * lib/fmodl.c (fmodl): Treat Inf specially.
31252         * modules/fmodl (Depends-on): Add isinf.
31254         Tests for module 'fmodl-ieee'.
31255         * modules/fmodl-ieee-tests: New file.
31256         * tests/test-fmodl-ieee.c: New file.
31258         New module 'fmodl-ieee'.
31259         * modules/fmodl-ieee: New file.
31261         Tests for module 'fmod-ieee'.
31262         * modules/fmod-ieee-tests: New file.
31263         * tests/test-fmod-ieee.c: New file.
31265         New module 'fmod-ieee'.
31266         * modules/fmod-ieee: New file.
31268         Tests for module 'fmodf-ieee'.
31269         * modules/fmodf-ieee-tests: New file.
31270         * tests/test-fmodf-ieee.c: New file.
31271         * tests/test-fmod-ieee.h: New file.
31273         New module 'fmodf-ieee'.
31274         * modules/fmodf-ieee: New file.
31276 2012-02-27  Bruno Haible  <bruno@clisp.org>
31278         Tests for module 'rintl-ieee'.
31279         * modules/rintl-ieee-tests: New file.
31280         * tests/test-rintl-ieee.c: New file.
31282         New module 'rintl-ieee'.
31283         * modules/rintl-ieee: New file.
31285         Tests for module 'rint-ieee'.
31286         * modules/rint-ieee-tests: New file.
31287         * tests/test-rint-ieee.c: New file.
31289         New module 'rint-ieee'.
31290         * modules/rint-ieee: New file.
31292         Tests for module 'rintf-ieee'.
31293         * modules/rintf-ieee-tests: New file.
31294         * tests/test-rintf-ieee.c: New file.
31295         * tests/test-rint-ieee.h: New file.
31297         New module 'rintf-ieee'.
31298         * modules/rintf-ieee: New file.
31300 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
31302         regex: re_search etc. should return -2 when memory exhausted
31303         This bug was uncovered when testing 'grep'.  Without the fix,
31304         re_search and friends return -1 when memory is exhausted, but -1
31305         means no match, and this causes grep to falsely report no-match
31306         instead of memory-exhaustion.  See
31307         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
31308         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
31309         trouble; this can occur if re_search_internal ran out of memory.
31311 2012-02-26  Bruno Haible  <bruno@clisp.org>
31313         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
31314         * m4/modfl-ieee.m4: New file.
31315         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
31316         whether modfl works with Inf. Replace it if not.
31317         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
31318         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
31319         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
31320         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
31321         (Depends-on): Update dependencies.
31322         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
31323         m4/signbit.m4.
31324         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
31325         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
31327         modfl-ieee: Fix dependencies.
31328         * modules/modfl-ieee (Depends-on): Add modf-ieee.
31330         modfl-ieee: Fix test failures.
31331         * lib/modfl.c (modfl): Treat NaN and Inf specially.
31332         * modules/modfl (Depends-on): Add isfinite, isinf.
31334         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
31335         * m4/modff-ieee.m4: New file.
31336         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
31337         whether modff works with NaN and Inf. Replace it if not.
31338         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
31339         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
31340         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
31341         * modules/modff (configure.ac): Consider REPLACE_MODFF.
31342         (Depends-on): Update dependencies.
31343         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
31344         m4/signbit.m4.
31345         (Depends-on): Add modf-ieee.
31346         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
31347         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
31349         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
31350         * m4/modf-ieee.m4: New file.
31351         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
31352         whether modf works with NaN and Inf. Replace it if not.
31353         * lib/math.in.h (modf): New declaration.
31354         * lib/modf.c: New file.
31355         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
31356         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
31357         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
31358         * modules/modf (Files): Add lib/modf.c.
31359         (Depends-on): Add math, isfinite, trunc, isinf.
31360         (configure.ac): Addrange to compile lib/modf.c if needed.
31361         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
31362         m4/signbit.m4.
31363         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
31364         * tests/test-math-c++.cc: Check the declaration of modf.
31365         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
31367         Tests for module 'modfl-ieee'.
31368         * modules/modfl-ieee-tests: New file.
31369         * tests/test-modfl-ieee.c: New file.
31371         New module 'modfl-ieee'.
31372         * modules/modfl-ieee: New file.
31374         Tests for module 'modf-ieee'.
31375         * modules/modf-ieee-tests: New file.
31376         * tests/test-modf-ieee.c: New file.
31378         New module 'modf-ieee'.
31379         * modules/modf-ieee: New file.
31381         Tests for module 'modff-ieee'.
31382         * modules/modff-ieee-tests: New file.
31383         * tests/test-modff-ieee.c: New file.
31384         * tests/test-modf-ieee.h: New file.
31386         New module 'modff-ieee'.
31387         * modules/modff-ieee: New file.
31389 2012-02-26  Bruno Haible  <bruno@clisp.org>
31391         Tests for module 'fabsl-ieee'.
31392         * modules/fabsl-ieee-tests: New file.
31393         * tests/test-fabsl-ieee.c: New file.
31395         New module 'fabsl-ieee'.
31396         * modules/fabsl-ieee: New file.
31398         Tests for module 'fabs-ieee'.
31399         * modules/fabs-ieee-tests: New file.
31400         * tests/test-fabs-ieee.c: New file.
31402         New module 'fabs-ieee'.
31403         * modules/fabs-ieee: New file.
31405         Tests for module 'fabsf-ieee'.
31406         * modules/fabsf-ieee-tests: New file.
31407         * tests/test-fabsf-ieee.c: New file.
31408         * tests/test-fabs-ieee.h: New file.
31410         New module 'fabsf-ieee'.
31411         * modules/fabsf-ieee: New file.
31413 2012-02-26  Bruno Haible  <bruno@clisp.org>
31415         Tests for module 'fmal-ieee'.
31416         * modules/fmal-ieee-tests: New file.
31417         * tests/test-fmal-ieee.c: New file.
31419         New module 'fmal-ieee'.
31420         * modules/fmal-ieee: New file.
31422         Tests for module 'fma-ieee'.
31423         * modules/fma-ieee-tests: New file.
31424         * tests/test-fma-ieee.c: New file.
31426         New module 'fma-ieee'.
31427         * modules/fma-ieee: New file.
31429         Tests for module 'fmaf-ieee'.
31430         * modules/fmaf-ieee-tests: New file.
31431         * tests/test-fmaf-ieee.c: New file.
31432         * tests/test-fma-ieee.h: New file.
31434         New module 'fmaf-ieee'.
31435         * modules/fmaf-ieee: New file.
31437 2012-02-26  Bruno Haible  <bruno@clisp.org>
31439         Tests for module 'ldexpl-ieee'.
31440         * modules/ldexpl-ieee-tests: New file.
31441         * tests/test-ldexpl-ieee.c: New file.
31443         New module 'ldexpl-ieee'.
31444         * modules/ldexpl-ieee: New file.
31446         Tests for module 'ldexp-ieee'.
31447         * modules/ldexp-ieee-tests: New file.
31448         * tests/test-ldexp-ieee.c: New file.
31450         New module 'ldexp-ieee'.
31451         * modules/ldexp-ieee: New file.
31453         Tests for module 'ldexpf-ieee'.
31454         * modules/ldexpf-ieee-tests: New file.
31455         * tests/test-ldexpf-ieee.c: New file.
31456         * tests/test-ldexp-ieee.h: New file.
31458         New module 'ldexpf-ieee'.
31459         * modules/ldexpf-ieee: New file.
31461 2012-02-26  Bruno Haible  <bruno@clisp.org>
31463         Refactor frexp*-ieee tests.
31464         * tests/test-frexp-ieee.h: New file.
31465         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
31466         (main): Just call test_function.
31467         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
31468         (main): Just call test_function.
31469         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
31470         (main): Just call test_function.
31471         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
31472         * modules/frexp-ieee-tests (Files): Likewise.
31473         * modules/frexpl-ieee-tests (Files): Likewise.
31475         Tests for module 'frexpl-ieee'.
31476         * modules/frexpl-ieee-tests: New file.
31477         * tests/test-frexpl-ieee.c: New file.
31479         New module 'frexpl-ieee'.
31480         * modules/frexpl-ieee: New file.
31482         Tests for module 'frexp-ieee'.
31483         * modules/frexp-ieee-tests: New file.
31484         * tests/test-frexp-ieee.c: New file.
31486         New module 'frexp-ieee'.
31487         * modules/frexp-ieee: New file.
31489         Tests for module 'frexpf-ieee'.
31490         * modules/frexpf-ieee-tests: New file.
31491         * tests/test-frexpf-ieee.c: New file.
31493         New module 'frexpf-ieee'.
31494         * modules/frexpf-ieee: New file.
31496 2012-02-26  Bruno Haible  <bruno@clisp.org>
31498         roundl-ieee tests: More tests.
31499         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
31500         (main): Add tests for [MX] shaded specification in POSIX.
31501         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
31502         (Depends-on): Add isnanl-nolibm.
31504         round-ieee tests: More tests.
31505         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
31506         (main): Add tests for [MX] shaded specification in POSIX.
31507         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
31508         (Depends-on): Add isnand-nolibm.
31510         roundf-ieee tests: More tests.
31511         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
31512         (main): Add tests for [MX] shaded specification in POSIX.
31513         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
31514         (Depends-on): Add isnanf-nolibm.
31516         truncl-ieee tests: More tests.
31517         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
31518         (main): Add tests for [MX] shaded specification in POSIX.
31519         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
31520         (Depends-on): Add isnanl-nolibm.
31522         trunc-ieee tests: More tests.
31523         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
31524         (main): Add tests for [MX] shaded specification in POSIX.
31525         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
31526         (Depends-on): Add isnand-nolibm.
31528         truncf-ieee tests: More tests.
31529         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
31530         (main): Add tests for [MX] shaded specification in POSIX.
31531         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
31532         (Depends-on): Add isnanf-nolibm.
31534         ceill-ieee tests: More tests.
31535         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
31536         (main): Add tests for [MX] shaded specification in POSIX.
31537         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
31538         (Depends-on): Add isnanl-nolibm.
31540         ceil-ieee tests: More tests.
31541         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
31542         (main): Add tests for [MX] shaded specification in POSIX.
31543         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
31544         (Depends-on): Add isnand-nolibm.
31546         ceilf-ieee tests: More tests.
31547         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
31548         (main): Add tests for [MX] shaded specification in POSIX.
31549         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
31550         (Depends-on): Add isnanf-nolibm.
31552         floorl-ieee tests: More tests.
31553         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
31554         (main): Add tests for [MX] shaded specification in POSIX.
31555         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
31556         (Depends-on): Add isnanl-nolibm.
31558         floor-ieee tests: More tests.
31559         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
31560         (main): Add tests for [MX] shaded specification in POSIX.
31561         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
31562         (Depends-on): Add isnand-nolibm.
31564         floorf-ieee tests: More tests.
31565         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
31566         (main): Add tests for [MX] shaded specification in POSIX.
31567         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
31568         (Depends-on): Add isnanf-nolibm.
31570 2012-02-26  Bruno Haible  <bruno@clisp.org>
31572         fpieee: More comments.
31573         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
31575 2012-02-25  Bruno Haible  <bruno@clisp.org>
31577         Tests for module 'log10l'.
31578         * modules/log10l-tests: New file.
31579         * tests/test-log10l.c: New file.
31580         * tests/test-math-c++.cc: Check the declaration of log10l.
31582         New module 'log10l'.
31583         * lib/math.in.h (log10l): New declaration.
31584         * lib/log10l.c: New file.
31585         * m4/log10l.m4: New file.
31586         * modules/log10l: New file.
31587         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
31588         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
31589         HAVE_DECL_LOG10L.
31590         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
31591         HAVE_DECL_LOG10L.
31592         * doc/posix-functions/log10l.texi: Mention the new module.
31594 2012-02-25  Bruno Haible  <bruno@clisp.org>
31596         fmodl, remainder*: Avoid wrong results due to rounding errors.
31597         * lib/fmodl.c (fmodl): Correct the result if it is not within the
31598         expected bounds.
31599         * lib/remainderf.c (remainderf): Likewise.
31600         * lib/remainder.c (remainder): Likewise.
31601         * lib/remainderl.c (remainderl): Likewise.
31603 2012-02-25  Bruno Haible  <bruno@clisp.org>
31605         Tests for module 'remainderl'.
31606         * modules/remainderl-tests: New file.
31607         * tests/test-remainderl.c: New file.
31608         * tests/test-math-c++.cc: Check the declaration of remainderl.
31610         New module 'remainderl'.
31611         * lib/math.in.h (remainderl): New declaration.
31612         * lib/remainderl.c: New file.
31613         * m4/remainderl.m4: New file.
31614         * modules/remainderl: New file.
31615         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
31616         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
31617         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
31618         HAVE_REMAINDERL.
31619         * doc/posix-functions/remainderl.texi: Mention the new module.
31621 2012-02-25  Bruno Haible  <bruno@clisp.org>
31623         Tests for module 'remainderf'.
31624         * modules/remainderf-tests: New file.
31625         * tests/test-remainderf.c: New file.
31626         * tests/test-math-c++.cc: Check the declaration of remainderf.
31628         New module 'remainderf'.
31629         * lib/math.in.h (remainderf): New declaration.
31630         * lib/remainderf.c: New file.
31631         * m4/remainderf.m4: New file.
31632         * modules/remainderf: New file.
31633         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
31634         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
31635         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
31636         HAVE_REMAINDERF.
31637         * doc/posix-functions/remainderf.texi: Mention the new module.
31639 2012-02-25  Bruno Haible  <bruno@clisp.org>
31641         remainder: Support for MSVC.
31642         * lib/math.in.h (remainder): New declaration.
31643         * lib/remainder.c: New file.
31644         * m4/remainder.m4: New file.
31645         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
31646         (Depends-on): Add math, round, fma.
31647         (configure.ac): Use results of gl_FUNC_REMAINDER.
31648         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
31649         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
31650         HAVE_DECL_REMAINDER.
31651         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
31652         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
31653         * tests/test-math-c++.cc: Check the declaration of remainder.
31654         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
31655         problems are fixed.
31657 2012-02-25  Bruno Haible  <bruno@clisp.org>
31659         Tests for module 'fmodl'.
31660         * modules/fmodl-tests: New file.
31661         * tests/test-fmodl.c: New file.
31662         * tests/test-math-c++.cc: Check the declaration of fmodl.
31664         New module 'fmodl'.
31665         * lib/math.in.h (fmodl): New declaration.
31666         * lib/fmodl.c: New file.
31667         * m4/fmodl.m4: New file.
31668         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
31669         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
31670         REPLACE_FMODL.
31671         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
31672         REPLACE_FMODL.
31673         * modules/fmodl: New file.
31674         * doc/posix-functions/fmodl.texi: Mention the new module.
31676 2012-02-25  Bruno Haible  <bruno@clisp.org>
31678         Tests for module 'modfl'.
31679         * modules/modfl-tests: New file.
31680         * tests/test-modfl.c: New file.
31681         * tests/test-math-c++.cc: Check the declaration of modfl.
31683         New module 'modfl'.
31684         * lib/math.in.h (modfl): New declaration.
31685         * lib/modfl.c: New file.
31686         * m4/modfl.m4: New file.
31687         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
31688         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
31689         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
31690         * modules/modfl: New file.
31691         * doc/posix-functions/modfl.texi: Mention the new module.
31693 2012-02-25  Bruno Haible  <bruno@clisp.org>
31695         Tests for module 'fabsl'.
31696         * modules/fabsl-tests: New file.
31697         * tests/test-fabsl.c: New file.
31698         * tests/test-math-c++.cc: Check the declaration of fabsl.
31700         New module 'fabsl'.
31701         * lib/math.in.h (fabsl): New declaration.
31702         * lib/fabsl.c: New file.
31703         * m4/fabsl.m4: New file.
31704         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
31705         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
31706         REPLACE_FABSL.
31707         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
31708         REPLACE_FABSL.
31709         * modules/fabsl: New file.
31710         * doc/posix-functions/fabsl.texi: Mention the new module.
31712 2012-02-25  Bruno Haible  <bruno@clisp.org>
31714         fabs tests: More tests.
31715         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
31716         (zero): New variable.
31717         (main): Add tests for signed zero.
31718         * modules/fabs-tests (Files): Add tests/minus-zero.h.
31720         fabsf tests: More tests.
31721         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
31722         (zero): New variable.
31723         (main): Add tests for signed zero.
31724         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
31726 2012-02-24  Bruno Haible  <bruno@clisp.org>
31728         atanl: Provide function definition on MSVC.
31729         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
31730         function pointer.
31731         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
31733 2012-02-24  Bruno Haible  <bruno@clisp.org>
31735         acosl: Provide function definition on MSVC.
31736         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
31737         function pointer.
31738         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
31740 2012-02-24  Bruno Haible  <bruno@clisp.org>
31742         asinl: Provide function definition on MSVC.
31743         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
31744         function pointer.
31745         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
31747 2012-02-24  Bruno Haible  <bruno@clisp.org>
31749         tanl: Provide function definition on MSVC.
31750         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
31751         function pointer.
31752         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
31754 2012-02-24  Bruno Haible  <bruno@clisp.org>
31756         cosl: Provide function definition on MSVC.
31757         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
31758         function pointer.
31759         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
31761 2012-02-24  Bruno Haible  <bruno@clisp.org>
31763         sinl: Provide function definition on MSVC.
31764         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
31765         function pointer.
31766         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
31768 2012-02-24  Bruno Haible  <bruno@clisp.org>
31770         logl: Provide function definition on MSVC.
31771         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
31772         function pointer.
31773         * lib/math.in.h (logl): Undefine if it does not exist as a function.
31775 2012-02-24  Bruno Haible  <bruno@clisp.org>
31777         expl: Provide function definition on MSVC.
31778         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
31779         function pointer.
31780         * lib/math.in.h (expl): Undefine if it does not exist as a function.
31782 2012-02-24  Bruno Haible  <bruno@clisp.org>
31784         sqrtl: Provide function definition on MSVC.
31785         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
31786         a function pointer.
31787         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
31789 2012-02-24  Bruno Haible  <bruno@clisp.org>
31791         ceill: Provide function definition on MSVC.
31792         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
31793         used as a function pointer.
31794         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
31796 2012-02-24  Bruno Haible  <bruno@clisp.org>
31798         floorl: Provide function definition on MSVC.
31799         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
31800         used as a function pointer.
31801         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
31803 2012-02-24  Bruno Haible  <bruno@clisp.org>
31805         ceilf: Provide function definition on MSVC.
31806         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
31807         used as a function pointer.
31808         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
31810 2012-02-24  Bruno Haible  <bruno@clisp.org>
31812         floorf: Provide function definition on MSVC.
31813         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
31814         used as a function pointer.
31815         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
31817 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
31819         stdnoreturn: new module
31820         This implements a replacement for C11's <stdnoreturn.h>.
31821         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
31822         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
31823         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
31824         * tests/test-stdnoreturn.c: New files.
31826 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
31828         regex: fix false multibyte matches in some regular expressions
31829         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
31830         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
31831         * lib/regex_internal.c (re_string_skip_chars):
31832         Fix miscomputation of remain_len that may cause incomplete
31833         multi-byte character and false match.
31835 2012-02-24  Jim Meyering  <meyering@redhat.com>
31837         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
31838         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
31839         uses with "==" *before* the call, e.g., 0 == strcmp (...)
31840         Remove now-unnecessary str''cmp obfuscation.
31841         Suggested by Akim Demaille.
31843 2012-02-24  Bruno Haible  <bruno@clisp.org>
31845         streq: Rename macro.
31846         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
31847         * NEWS: Mention the change.
31848         * lib/mbrtowc.c (mbrtowc): Update.
31849         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
31850         * lib/wcwidth.c (wcwidth): Update.
31851         Suggested by Akim Demaille and Jim Meyering.
31853 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
31855         regex: fix typo in definition of MIN
31856         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
31857         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
31859 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
31860             Bruno Haible  <bruno@clisp.org>
31862         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
31863         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
31864         entries into a stack-allocated buffer directly.
31865         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
31867 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
31868             Bruno Haible  <bruno@clisp.org>
31870         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
31872          - There were several instances of this pattern:
31874              for (;;) {
31875                n = acl (f, GETACLCNT, 0, NULL);
31876                [ allocate an array A of size N ]
31877                if (acl (f, GETACL, n, a) == n)
31878                  break;
31879              }
31881            This loop might never terminate if some other process is constantly
31882            manipulating the file's ACL.  The loop should be rewritten to
31883            terminate.
31885          - The acl (... GETACLNT ...) call is merely an optimization; its value
31886            is merely a hint as to how big to make the array.  A better
31887            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
31888            and just guess a reasonably-big size, growing the size and trying
31889            again if it's not large enough.  This guarantees termination, and
31890            saves a system call.
31892         * lib/acl-internal.h: Include <limits.h>.
31893         (MIN, SIZE_MAX): New macros.
31894         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
31895         a stack-allocated buffer, and use malloc if it does not fit. Don't
31896         use GETACLCNT.
31897         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
31899 2012-02-19  Bruno Haible  <bruno@clisp.org>
31901         acl: Fix endless loop on Solaris with vxfs.
31902         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
31903         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
31904         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
31905         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
31906         * tests/test-sameacls.c (main)[Solaris]: Likewise.
31907         Reported by Bill Jones in
31908         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
31910 2012-02-19  Bruno Haible  <bruno@clisp.org>
31912         acl: Fix copy-acl test failure on Solaris 11.0.
31913         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
31914         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
31915         that this function returns 0 in some more cases.
31917 2012-02-19  Bruno Haible  <bruno@clisp.org>
31919         acl: Update doc references.
31920         * doc/acl-resources.txt: Update links to Solaris documentation.
31922 2012-02-19  Bruno Haible  <bruno@clisp.org>
31924         Fix test failure in many locales on Solaris 11.
31925         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
31926         'tr' arguments.
31927         * tests/test-pipe-filter-ii1.c (main): Likewise.
31928         * build-aux/bootstrap (check_versions): Run 'tr' command with range
31929         expressions in the C locale.
31930         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
31931         * m4/host-os.m4 (gl_HOST_OS): Likewise.
31933 2012-02-19  Bruno Haible  <bruno@clisp.org>
31935         gnulib-tool: Improve usage message.
31936         * gnulib-tool (func_usage): Move doc of --help and --version to the
31937         section "Operation modes".
31939 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
31941         README-release: make it easier to execute commands
31942         * top/README-release: break commands out on to separate lines.
31944 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
31946         GNUmakefile: simplify detection of unconfigured trees
31947         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
31948         whether the tree make is being run from is already configured or
31949         not.  Related simplifications.
31951 2012-02-13  Simon Josefsson  <simon@josefsson.org>
31953         * gnulib-tool (func_usage): Document --help and --version.
31955 2012-02-11  Jim Meyering  <meyering@redhat.com>
31957         bootstrap: don't exit 0 upon gnulib-tool failure
31958         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
31959         its exit status, not 0.
31961 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
31963         README-release: various improvements
31964         * top/README-release: Give a command to push changes for the
31965         release.  Add "distcheck" to list of other pre-release checks.
31966         Fix instance of "make stable" which should be "make TYPE".
31968 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
31970         maint: replace FSF snail-mail addresses with URLs
31971         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
31972         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
31973         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
31974         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
31975         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
31976         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
31977         * lib/check-version.c, lib/check-version.h, lib/config.charset:
31978         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
31979         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
31980         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
31981         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
31982         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
31983         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
31984         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
31985         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
31986         * lib/glthread/thread.c, lib/glthread/thread.h:
31987         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
31988         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
31989         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
31990         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
31991         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
31992         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
31993         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
31994         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
31995         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
31996         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
31997         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
31998         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
31999         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
32000         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
32001         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
32002         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
32003         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
32004         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
32005         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
32006         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
32007         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
32008         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
32009         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
32010         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
32011         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
32012         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
32013         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
32014         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
32015         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
32016         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
32017         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
32018         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
32019         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
32020         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
32021         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
32022         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
32023         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
32024         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
32025         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
32026         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
32027         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
32028         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
32029         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
32030         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
32031         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
32032         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
32033         * tests/test-poll.c, tests/test-quotearg-simple.c:
32034         * tests/test-quotearg.c, tests/test-quotearg.h:
32035         * tests/test-round-ieee.c, tests/test-round1.c:
32036         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
32037         * tests/test-roundl-ieee.c, tests/test-roundl.c:
32038         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
32039         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
32040         * tests/test-strerror.c, tests/test-strerror_r.c:
32041         * tests/test-strsignal.c, tests/test-strverscmp.c:
32042         * tests/test-xmemdup0.c:
32043         Replace FSF snail mail addresses with URLs, as per GNU coding
32044         standards.  See glibc bug
32045         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
32047 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
32049         README-release: capitalize a word and split a line
32050         * top/README-release: Fix punctuation and spacing.
32052 2012-02-08  Akim Demaille  <demaille@gostai.com>
32054         fatal-signal: use C prototypes (with explicit void).
32055         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
32056         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
32058 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
32060         regex: spelling fix
32061         * lib/regexec.c: spelling fix
32063         regex: rely on stdint.h for SIZE_MAX
32064         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
32066 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
32068         regex: merge glibc changes
32070         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
32071         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
32072         (init_word_char): Work even if bitset words are not exactly 32 or
32073         64 bits wide.  Don't assume there are no padding bits.
32074         * lib/regex.c [_LIBC]: Do not include <config.h>.
32075         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
32076         and -Wtype-limits.
32077         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
32078         needless disagreement with glibc.  All uses changed.  Define it to
32079         1 only if _GNU_SOURCE, to match glibc.
32080         (_REG_RM_NAME): Remove; no longer needed, since the names in
32081         question are now all protected by __USE_GNU.
32082         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
32083         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
32084         * lib/regex_internal.h (MIN): New macro.
32086         2012-01-03 Ulrich Drepper <drepper@gmail.com>
32087         * lib/regcomp.c (init_word_char): Optimize regex a bit.
32089         2011-12-30 Jakub Jelinek <jakub@redhat.com>
32090         * lib/regex_internal.c (re_string_fetch_byte_case):
32091         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
32092         is miscompiled, and it turns out it is because of an incorrect
32093         attribute on re_string_fetch_byte_case.  Unlike
32094         re_string_peek_byte_case, this one is really not pure, it modifies
32095         memory (increments pstr->cur_idx), and with the pure attribute GCC
32096         assumed it doesn't and it cached the presumed value of
32097         regexp->cur_idx in a variable across the
32098          for (;; ++i)
32099            {
32100              if (i >= BRACKET_NAME_BUF_SIZE)
32101                return REG_EBRACK;
32102              if (token->type == OP_OPEN_CHAR_CLASS)
32103                ch = re_string_fetch_byte_case (regexp);
32104              else
32105                ch = re_string_fetch_byte (regexp);
32106              if (re_string_eoi(regexp))
32107                return REG_EBRACK;
32108              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
32109                break;
32110              elem->opr.name[i] = ch;
32111            }
32113         2011-11-29 Andreas Schwab <schwab@redhat.com>
32114         * lib/regcomp.c (build_equiv_class):
32115         Fix access after end of search string in regex matcher.
32117         2011-11-12 Ulrich Drepper <drepper@redhat.com>
32118         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
32120         2011-10-12 Ulrich Drepper <drepper@redhat.com>
32121         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
32123         2011-10-11 Ulrich Drepper <drepper@redhat.com>
32124         * lib/regcomp.c (parse_branch, parse_sub_exp):
32125         More regex memory leak fixes and tests.
32126         (parse_sub_exp, parse_bracket_exp):
32127         Fix memory leak for some invalid regular expressions.
32129         2011-05-28 Ulrich Drepper <drepper@gmail.com>
32130         * lib/regex_internal.c, lib/regexec.c:
32131         Fix unnecessary overallocation due to incomplete character.  When
32132         incomplete characters are found at the end of a string the code
32133         ran amok and allocated lots of memory.  Stricter limits are now in
32134         place.
32136         2011-05-20 Reuben Thomas <rrt@sc3d.org>
32137         * lib/regex.h: Update documentation.
32139         2011-05-16 Aharon Robbins <arnold@skeeve.com>
32140         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
32142         2010-05-05 Andreas Schwab <schwab@redhat.com>
32143         * lib/regexec.c (find_collation_sequence_value):
32144         Fix lookup of collation sequence value during regexp matching.
32146         2010-01-22 Ulrich Drepper <drepper@redhat.com>
32147         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
32149         2008-01-16 Ulrich Drepper <drepper@redhat.com>
32150         * lib/regex.h: Cleanup namespace.
32152         2007-11-26 Ulrich Drepper <drepper@redhat.com>
32153         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
32155         2007-08-26 Ulrich Drepper <drepper@redhat.com>
32156         * lib/regex_internal.h: Prevent some declarations and definitions
32157         to be seen when used in tests.
32159         2005-05-06 Ulrich Drepper <drepper@redhat.com>
32160         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
32161         __libc_lock_* macros if not _LIBC.
32162         (struct re_dfa_t): Add lock.
32164 2012-02-07  Eric Blake  <eblake@redhat.com>
32166         maint.mk: also prohibit lower-case @var@
32167         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
32168         lower case, like @top_srcdir@.
32170 2012-02-04  Eric Blake  <eblake@redhat.com>
32172         canonicalize: avoid uninitialized memory use
32173         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
32174         random '/' left in dest.
32175         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
32177 2012-02-04  Bruno Haible  <bruno@clisp.org>
32179         isatty: Fix test failure of ptsname_r on native Windows.
32180         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
32181         and don't set errno.
32182         (isatty): Test first whether fd is valid. Set errno when returning 0.
32184 2012-02-04  Bruno Haible  <bruno@clisp.org>
32186         spawn-pipe tests: Fix a NULL program name in a diagnostic.
32187         * tests/test-spawn-pipe-main.c: Include progname.h.
32188         (main): Invoke set_program_name.
32189         * modules/spawn-pipe-tests (Depends-on): Add progname.
32191         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
32192         * tests/test-nonblocking-socket-main.c: Include progname.h.
32193         (main): Invoke set_program_name.
32194         * modules/nonblocking-socket-tests (Depends-on): Add progname.
32196         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
32197         * tests/test-nonblocking-pipe-main.c: Include progname.h.
32198         (main): Invoke set_program_name.
32199         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
32201 2012-02-04  Eric Blake  <eblake@redhat.com>
32203         canonicalize-lgpl: fix // handling
32204         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
32206         canonicalize: fix // handling
32207         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
32208         /// to //, since only // is special.
32210 2012-02-04  Bruno Haible  <bruno@clisp.org>
32212         ioctl: Fix test failure on native Windows.
32213         * lib/ioctl.c: Include msvc-nothrow.h.
32214         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
32216 2012-02-04  Bruno Haible  <bruno@clisp.org>
32218         fsync: Avoid test failure on native Windows.
32219         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
32220         read-only.
32222 2012-02-04  Bruno Haible  <bruno@clisp.org>
32224         sys_select: Avoid syntax error on OpenBSD 5.0.
32225         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
32226         currently being included, just include the system's <sys/select.h>.
32228 2012-02-04  Bruno Haible  <bruno@clisp.org>
32230         sys_select: Avoid syntax error on OpenBSD 5.0.
32231         * lib/sys_select.in.h: Include <signal.h> only after the include_next
32232         <sys/select.h>, not before.
32233         Reported by Jiri B <jirib@devio.us>.
32235 2012-02-04  Bruno Haible  <bruno@clisp.org>
32237         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
32238         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
32239         global variables.
32240         * tests/test-get-rusage-data.c (main): Likewise.
32241         Reported by Jim Meyering.
32243 2012-02-04  Bruno Haible  <bruno@clisp.org>
32245         stdioext: Fix last commit.
32246         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
32248 2012-02-03  Bruno Haible  <bruno@clisp.org>
32250         stdioext: Add tentative support for Plan9.
32251         * lib/stdio-impl.h: Include <errno.h>.
32252         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
32253         * lib/freadable.c (freadable): Likewise.
32254         * lib/fwritable.c (fwritable): Likewise.
32255         * lib/fbufmode.c (fbufmode): Likewise.
32256         * lib/freading.c (freading): Likewise.
32257         * lib/fwriting.c (fwriting): Likewise.
32258         * lib/freadptr.c (freadptr): Likewise.
32259         * lib/freadseek.c (freadptrinc): Likewise.
32260         * lib/freadahead.c (freadahead): Likewise.
32261         * lib/fpurge.c (fpurge): Likewise.
32262         * lib/fseeko.c (rpl_fseeko): Likewise.
32263         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
32264         Reported by Jens Staal <staal1978@gmail.com>.
32266 2012-02-02  Jim Meyering  <meyering@redhat.com>
32268         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
32269         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
32270         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
32271         not even to try to add the attribute.  Instead, add a pragma to suppress
32272         the suggestion/warning.
32274 2012-01-31  Karl Berry  <karl@gnu.org>
32276         setstate doc: typo.
32277         * doc/posix-functions/setstate.texi (setstate): { not (.
32279 2012-01-31  Bruno Haible  <bruno@clisp.org>
32281         popen: Make more robust on Windows.
32282         * lib/popen.c: On native Windows, use the _popen based code even if
32283         HAVE_POPEN is set.
32284         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
32285         environment variable on native Windows.
32287 2012-01-30  Bruno Haible  <bruno@clisp.org>
32289         pclose: Fix typo.
32290         * lib/stdio.in.h (pclose): Fix typo in warning message.
32292 2012-01-30  Bruno Haible  <bruno@clisp.org>
32294         doc about getlogin_r, setstate.
32295         * doc/posix-functions/getlogin_r.texi: List the incompatible
32296         declaration problem under "not fixed by gnulib".
32297         * doc/posix-functions/setstate.texi: Mention incompatible declaration
32298         problem on Solaris 11 and other platforms.
32300 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
32301             Bruno Haible  <bruno@clisp.org>
32303         poll tests: Make test more robust.
32304         * tests/test-poll.c: Include macros.h.
32305         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
32306         return value of various I/O operations.
32307         * modules/poll-tests (Files): Add tests/macros.h.
32309 2012-01-30  Bruno Haible  <bruno@clisp.org>
32311         sys_stat: Fix support for mingw64 and MSVC.
32312         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
32313         header files already do it.
32314         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
32315         stat itself.
32316         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
32318 2012-01-30  Bruno Haible  <bruno@clisp.org>
32320         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
32321         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
32322         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
32324 2012-01-29  Bruno Haible  <bruno@clisp.org>
32326         quotearg: Fix test failure on MacOS X 10.5.
32327         * tests/test-quotearg-simple.c: Include localcharset.h.
32328         (main): If the locale encoding is not ASCII, bypass the tests of
32329         locale_quoting_style and clocale_quoting_style.
32330         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
32332 2012-01-29  Jim Meyering  <meyering@redhat.com>
32334         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
32335         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
32336         detect uses of canonicalize_file_name.
32338 2012-01-28  Bruno Haible  <bruno@clisp.org>
32340         test-framework-sh: Fix test failure with AIX 7.1 diff.
32341         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
32342         in column 1, like 'diff -c' does.
32343         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
32344         whether 'diff -u' is used. Instead, test whether the output contains
32345         some '@' character.
32347 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
32349         strtoimax: eliminate need for stdint.h, inttypes.h checks
32350         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
32351         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
32352         the prerequisites for a recently-introduced strtoimax test.
32353         I guess this might cause strtoimax to be replaced when not
32354         strictly necessary on older hosts, but this shouldn't introduce
32355         any bugs and it should make Emacs 'configure' faster on typical
32356         modern hosts.  Problem discovered when importing the latest gnulib
32357         to an Emacs test version.
32358         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
32360 2012-01-28  Bruno Haible  <bruno@clisp.org>
32362         sys_time: Override 'struct timeval' on some native Windows platforms.
32363         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
32364         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
32365         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
32366         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
32367         needs to be overridden.
32368         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
32369         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
32370         * tests/test-sys_select.c: Check that the tv_sec member has the same
32371         size as a 'time_t'.
32372         * tests/test-sys_time.c: Likewise.
32373         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
32374         is set, set also REPLACE_GETTIMEOFDAY.
32375         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
32376         convert the resulting 'struct timeval' before returning.
32377         * lib/select.c: Include <sys/time.h>.
32378         (select, timeval): Undefine at the right place.
32379         * modules/select (Depends-on): Add sys_time.
32380         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
32381         some Windows platforms.
32382         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
32384 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
32386         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
32387         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
32388         an integer.
32389         * lib/fcntl.c (dupfd): Likewise.
32390         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
32392 2012-01-28  Bruno Haible  <bruno@clisp.org>
32394         fcntl: Avoid compilation error on native Windows.
32395         * modules/fcntl (Depends-on): Add 'close'.
32397 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
32399         select, poll, isatty: Avoid warnings on x86_64 mingw64.
32400         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
32401         pointer to an integer.
32402         * lib/poll.c (IsConsoleHandle): Likewise.
32403         * lib/isatty.c (IsConsoleHandle): Likewise.
32405 2012-01-28  Jim Meyering  <meyering@redhat.com>
32407         doc: clarify README-release
32408         * top/README-release: Clarify: you should make a point to have
32409         the latest stable versions of build tools in your PATH, and the
32410         reference to buildreq is solely for its list of tool names, not
32411         for its minimal-functional version numbers.
32412         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
32414         maint.mk: use more readable (yet functionally equivalent) quoting
32415         It is common to quote a single quote in a single quoted string like
32416         this:  '...'\''...'.  Unless you know the idiom, that looks like
32417         gibberish, so prefer to double-quote the string when possible.
32418         Then you can use a more readable, lone single quote: "...'..."
32419         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
32420         "don't" is more readable than the equivalent 'don'\''t'.
32421         (sc_cast_of_x_alloc_return_value): Likewise.
32422         (sc_cast_of_alloca_return_value): Likewise.
32423         (sc_makefile_path_separator_check): Similar: use ":" in '...',
32424         rather than '\'':'\''.
32426 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
32428         stdalign: relax _Alignof and tighten _Alignas test
32429         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
32430         as it was too strict: alignof must divide offsetof, but it need
32431         not equal offsetof.  Inspired by Joseph S. Myers's comment
32432         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
32433         Conversely, tighten the _Alignas test a bit, as the resulting
32434         alignment must be exactly 8.
32436 2012-01-27  Bruno Haible  <bruno@clisp.org>
32438         stdalign: Document the last change.
32439         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
32441 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
32443         stdalign: check that alignof and offsetof are consistent
32444         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
32445         Problem reported for gnulib by Richard W.M. Jones in
32446         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00340.html>.
32448 2012-01-27  Jim Meyering  <meyering@redhat.com>
32450         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
32451         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
32452         convert a sequence with gaps to the minimal containing range.
32453         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
32454         * tests/test-update-copyright.sh: Test for this.
32455         The FSF confirmed it is ok to do this, assuming there is at
32456         least one significant change per year in the affected range:
32457         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
32459 2012-01-26  Bruno Haible  <bruno@clisp.org>
32461         pipe2: refine doc about thread-safety
32462         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
32463         multithread-safety problem.
32464         * doc/glibc-functions/accept4.texi: Likewise.
32466 2012-01-26  Bruno Haible  <bruno@clisp.org>
32468         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
32469         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
32470         In the test program, include <fcntl.h>, for O_RDONLY.
32472 2012-01-26  Eric Blake  <eblake@redhat.com>
32474         pipe2: document lack of thread-safety in replacement
32475         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
32476         issue in replacement.
32477         * doc/glibc-functions/accept4.texi (accept4): Likewise.
32478         Based on a report by Eric Wong.
32480 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
32481             Bruno Haible  <bruno@clisp.org>
32483         malloca: Avoid warnings on x86_64 mingw64.
32484         * lib/malloca.c: Include <stdint.h>.
32485         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
32486         * modules/malloca (Depends-on): Add stdint.
32487         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
32489 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
32491         obstack: remove __STDC__ conditionals
32492         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
32493         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
32494         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
32495         m4/include_next.m4 as the only gnulib-maintained places that still
32496         refer to __STDC__.
32498 2012-01-24  Bruno Haible  <bruno@clisp.org>
32500         havelib: Modern quoting.
32501         * build-aux/config.rpath: Quote 'like this', not `like this', as per
32502         the recent change to the GNU coding standards.
32504 2012-01-24  Bruno Haible  <bruno@clisp.org>
32506         stdint: Improve support for Android.
32507         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
32508         Reported by Simon Josefsson <simon@josefsson.org>.
32510 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
32512         doc: omit trailing empty lines from INSTALL etc.
32513         * doc/Makefile (INSTALL): Omit trailing empty lines.
32514         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
32515         omit trailing empty lines.  This simplifies the build procedure.
32517 2012-01-23  Jim Meyering  <meyering@redhat.com>
32519         tests: avoid spurious warnings about gl_sockets_startup
32520         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
32521         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
32522         reporting a "statement with no effect".
32523         * tests/test-accept.c (main): Mark as "(void)".
32524         * tests/test-accept4.c (main): Likewise.
32525         * tests/test-bind.c (main): Likewise.
32526         * tests/test-connect.c (main): Likewise.
32527         * tests/test-getpeername.c (main): Likewise.
32528         * tests/test-getsockname.c (main): Likewise.
32529         * tests/test-getsockopt.c (main): Likewise.
32530         * tests/test-listen.c (main): Likewise.
32531         * tests/test-recv.c (main): Likewise.
32532         * tests/test-recvfrom.c (main): Likewise.
32533         * tests/test-send.c (main): Likewise.
32534         * tests/test-sendto.c (main): Likewise.
32535         * tests/test-setsockopt.c (main): Likewise.
32536         * tests/test-shutdown.c (main): Likewise.
32538 2012-01-21  Bruno Haible  <bruno@clisp.org>
32540         locale-fr.m4: Fix for Android.
32541         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
32542         failure of the test program on Bionic libc.
32544 2012-01-21  Jim Meyering  <meyering@redhat.com>
32546         bootstrap: fail when bootstrap_post_import_hook fails
32547         Otherwise, it's far too easy to miss diagnostics emitted
32548         between gnulib-tool's output and that of running configure.
32549         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
32551 2012-01-17  Jim Meyering  <meyering@redhat.com>
32553         maint: enable sc_trailing_blank
32554         * build-aux/pmccabe.css: Remove trailing blanks.
32555         * doc/acl-cygwin.txt: Likewise.
32556         * doc/gnu-oids.texi: Likewise
32557         * cfg.mk: Enable sc_trailing_blank.
32558         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
32560 2012-01-17  Jim Meyering  <meyering@redhat.com>
32562         maint: enable sc_prohibit_openat_without_use
32563         * cfg.mk: Enable sc_prohibit_openat_without_use.
32564         Exempt lib/selinux-at.c.
32566 2012-01-17  Jim Meyering  <meyering@redhat.com>
32568         maint: enable sc_prohibit_cloexec_without_use
32569         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
32570         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
32572 2012-01-17  Jim Meyering  <meyering@redhat.com>
32574         maint: enable sc_prohibit_intprops_without_use
32575         * cfg.mk: Enable sc_prohibit_intprops_without_use
32576         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
32578 2012-01-17  Jim Meyering  <meyering@redhat.com>
32580         maint: enable sc_prohibit_hash_pjw_without_use
32581         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
32582         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
32583         to match any use of \<hash_pjw\>, i.e., not necessarily with a
32584         following " (".
32586 2012-01-17  Jim Meyering  <meyering@redhat.com>
32588         maint: enable double-word-prohibiting rule
32589         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
32590         Exempt three files.
32592 2012-01-17  Jim Meyering  <meyering@redhat.com>
32594         maint: remove empty lines at EOF, but excluding modules/*
32595         Apply syntax rules at home as well as abroad.  Most changes
32596         were induced by running this:
32597           make srcdir=. _build-aux=build-aux -f top/maint.mk \
32598             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
32599             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
32600         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
32601         Exempt modules/* and two binary files.
32602         Also exempt doc/INSTALL*, per request from Bruno Haible.
32603         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
32604         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
32605         * doc/Copyright/request-assign.future: Likewise.
32606         * doc/Copyright/request-disclaim.changes: Likewise.
32607         * doc/INSTALL: Likewise.
32608         * doc/INSTALL.ISO: Likewise.
32609         * doc/INSTALL.UTF-8: Likewise.
32610         * doc/acl-cygwin.txt: Likewise.
32611         * doc/acl-resources.txt: Likewise.
32612         * doc/fdl-1.2.texi: Likewise.
32613         * doc/fdl-1.3.texi: Likewise.
32614         * doc/fdl.texi: Likewise.
32615         * lib/argp-pin.c: Likewise.
32616         * lib/round.c: Likewise.
32617         * lib/unicase/u16-totitle.c: Likewise.
32618         * lib/unictype/block_test.c: Likewise.
32619         * lib/uninorm/canonical-decomposition.c: Likewise.
32620         * m4/README: Likewise.
32621         * m4/relocatable-lib.m4: Likewise.
32622         * tests/test-isnand-nolibm.c: Likewise.
32623         * tests/test-isnand.c: Likewise.
32624         * tests/uninorm/NormalizationTest.txt: Likewise.
32626 2012-01-17  Jim Meyering  <meyering@redhat.com>
32628         maint: add framework to run syntax-check rules against gnulib sources
32629         * cfg.mk: New file, to disable all currently-failing tests.
32630         We'll enable them one by one, as they are made to pass.
32631         * Makefile (sc_maint): New rule.
32633 2012-01-21  Bruno Haible  <bruno@clisp.org>
32635         stdint: Add support for Android.
32636         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
32637         include the system's <stdint.h>.
32638         Reported by Simon Josefsson <simon@josefsson.org>.
32640 2012-01-19  Jim Meyering  <meyering@redhat.com>
32642         bootstrap: add bootstrap_post_import_hook
32643         Bison does still need something like the gnulib_mk_hook whose
32644         invocation I had to remove along with slurp in commit 767ccd40.
32645         Technically, we could get along without it, but doing so would
32646         have required living with a warning and a mandatory post-bootstrap
32647         automake rerun.
32648         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
32649         (bootstrap_post_import_hook): New function.
32650         Invoke it after gnulib-tool --import and before autoreconf.
32652 2012-01-18  Jim Meyering  <meyering@redhat.com>
32654         gitlog-to-changelog: don't use "no_"-prefixed variable name
32655         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
32656         to enable both --cluster and --no-cluster.  Change variable name,
32657         s/\$no_cluster/$cluster/, and reverse usage to match.
32659         gitlog-to-changelog: use "||", not "or" in expressions
32660         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
32661         expressions.
32663 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
32665         gitlog-to-changelog: new option --no-cluster
32666         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
32667         clustering of adjacent commit messages.
32669 2012-01-17  Jim Meyering  <meyering@redhat.com>
32671         maint: spell file systems with two words, not one
32672         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
32673         two words, not one.
32675 2012-01-16  Jim Meyering  <meyering@redhat.com>
32677         bootstrap: add a FIXME comment to ensure we eventually remove the hack
32678         * build-aux/bootstrap (gnulib_tool_options): Add comment.
32680 2012-01-16  Eric Blake  <eblake@redhat.com>
32682         bootstrap: cater to autoconf 2.59
32683         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
32684         is not available.
32686         bootstrap: properly check for libtool
32687         * build-aux/bootstrap (libtoolize): Also run libtool when older
32688         usage is detected.
32690 2012-01-15  Bruno Haible  <bruno@clisp.org>
32692         Improve support for MSVC 9.
32693         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
32694         clashes on MSVC.
32695         * lib/fcntl.in.h: Likewise.
32696         * lib/stdlib.in.h: Likewise.
32697         * lib/sys_stat.in.h: Likewise.
32699 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
32701         gnupload: we hold the master copy of this script now
32702         For motivation and more information, see:
32703         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00222.html>
32704         * build-aux/gnupload: Make it clear in the heading comments that the
32705         master copy of this file is maintained by gnulib.  Since we are at
32706         it, bump its copyright year and ...
32707         ($scriptversion): ... the date in its version.
32708         ($usage): Patches and bug reports should be sent to the gnulib list,
32709         not the automake one.
32710         * config/srclist.txt: Don't try to sync 'gnupload' from automake
32711         anymore.
32713 2012-01-15  Bruno Haible  <bruno@clisp.org>
32715         Fix module 'random'.
32716         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
32717         initstate, setstate are declared.
32719 2012-01-14  Bruno Haible  <bruno@clisp.org>
32721         Tests for module 'random'.
32722         * modules/random-tests: New file.
32723         * tests/test-random.c: New file, based on tests/test-random_r.c.
32725         New module 'random'.
32726         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
32727         declarations.
32728         * lib/random.c: New file, based on glibc/stdlib/random.c.
32729         * m4/random.m4: New file.
32730         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
32731         HAVE_RANDOM.
32732         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
32733         * modules/random: New file.
32734         * config/srclist.txt: Add an entry for random.c.
32735         * doc/posix-functions/random.texi: Mention the 'random' module.
32736         * doc/posix-functions/initstate.texi: Likewise.
32737         * doc/posix-functions/setstate.texi: Likewise.
32738         * doc/posix-functions/srandom.texi: Likewise.
32740 2012-01-12  Bruno Haible  <bruno@clisp.org>
32742         random_r: Use common idioms.
32743         * lib/random_r.c: Include <stdlib.h> first.
32745         random_r: Override incompatible API on AIX, OSF/1.
32746         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
32747         Override the system function if REPLACE_RANDOM_R is 1.
32748         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
32749         and OSF/1, set REPLACE_RANDOM_R.
32750         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
32751         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
32752         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
32753         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
32754         * doc/glibc-functions/random_r.texi: Likewise.
32755         * doc/glibc-functions/setstate_r.texi: Likewise.
32757         random_r: Support for MSVC 9.
32758         * lib/random_r.c: Include stdint.h, not inttypes.h.
32760 2012-01-12  Eric Blake  <eblake@redhat.com>
32762         inet_ntop: guard extra work by IF_LINT
32763         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
32764         better code generation when not checking for warnings.
32765         Suggested by Paul Eggert and Jim Meyering.
32767         strptime: fix regression on mingw
32768         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
32769         Fix regression.  Reported by Bruno Haible.
32771 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
32772             Bruno Haible  <bruno@clisp.org>
32774         copy-file: add error-code-returning variant.
32775         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
32776         (qcopy_file_preserving): New declaration.
32777         * lib/copy-file.c (qcopy_file_preserving): Renamed from
32778         copy_file_preserving. Change return type to 'int'. Don't emit an error
32779         message here.
32780         (copy_file_preserving): New function.
32781         * tests/test-copy-file.c: Include <stdlib.h>.
32782         (main): Test qcopy_file_preserving if the environment variable
32783         NO_STDERR_OUTPUT is set.
32784         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
32785         with NO_STDERR_OUTPUT
32786         * tests/test-copy-file-2.sh: Likewise.
32788 2012-01-10  Bruno Haible  <bruno@clisp.org>
32790         copy-file: Use 'quote' module consistently.
32791         * lib/copy-file.c (copy_file_preserving): Use quote().
32793         copy-file: Refactor.
32794         * lib/copy-file.c: Include quote.h.
32795         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
32796         message here.
32797         * modules/copy-file (Depends-on): Add quote.
32799         acl: Export qcopy_acl.
32800         * lib/acl.h (qcopy_acl): New declaration.
32801         * lib/copy-acl.c (qcopy_acl): Make non-static.
32803         acl: Rename a local variable.
32804         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
32806         acl: Align return values of copy_acl and qcopy_acl.
32807         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
32808         maybe < -1.
32810 2012-01-11  Eric Blake  <eblake@redhat.com>
32812         strptime: silence gcc warnings
32813         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
32814         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
32815         Reported by Daniel P. Berrange.
32817         inet_ntop: silence gcc warning
32818         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
32819         Reported by Daniel P. Berrange.
32821 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
32823         getloadavg test: skip the test on GNU/Linux without /proc mounted
32824         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
32825         file.  When /proc is not mounted, it always fails with ENOENT.
32826         * tests/test-getloadavg.c (main): Treat ENOENT return code from
32827         getloadavg(3) the same way as ENOSYS and ENOTSUP.
32829 2012-01-10  Bruno Haible  <bruno@clisp.org>
32831         regex: Avoid link error on MSVC 9.
32832         * modules/regex (Depends-on): Add wctype.
32834 2012-01-10  Bruno Haible  <bruno@clisp.org>
32836         doc: Mention --with-tests option.
32837         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
32838         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
32839         --with-tests.
32840         Reported by Reuben Thomas.
32842 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
32844         users.txt: order package names lexicographically.
32845         * users.txt: Order package names lexicographically.
32847 2012-01-10  Jim Meyering  <meyering@redhat.com>
32849         maint.mk: fix description in comment
32850         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
32852         ignore-value: remove deprecated ignore_ptr function
32853         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
32854         * NEWS: Note this.
32856 2012-01-09  Jim Meyering  <meyering@redhat.com>
32858         test-init.sh: avoid a subshell
32859         * tests/test-init.sh: Remove protective subshell.
32860         Suggested by Bernhard Voelker.  While a subshell is normally
32861         required to protect against older shells (Solaris, FreeBSD) that
32862         warn about a missing program before performing redirection, the
32863         shell-selection tests performed by init.sh probably exclude any
32864         offending shell.
32866 2012-01-08  Bruno Haible  <bruno@clisp.org>
32868         setlocale tests: Avoid test failure on Solaris 11.0.
32869         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
32870         variable.
32872 2012-01-08  Bruno Haible  <bruno@clisp.org>
32874         posix_spawn_file_actions_addopen: Work around Solaris 11.0 bug.
32875         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
32876         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
32877         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
32878         macro.
32879         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
32880         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
32881         * lib/spawn_faction_addopen.c: Add workaround implementation if
32882         HAVE_WORKING_POSIX_SPAWN.
32883         * modules/spawn (Makefile): Substitute
32884         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
32885         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
32886         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
32887         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
32888         (Depends-on): Update conditions.
32889         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
32890         the Solaris 11 bug.
32892 2012-01-08  Bruno Haible  <bruno@clisp.org>
32894         posix_spawn_file_actions_adddup2: Work around Solaris 11.0 bug.
32895         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
32896         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
32897         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
32898         macro.
32899         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
32900         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
32901         * lib/spawn_faction_adddup2.c: Add workaround implementation if
32902         HAVE_WORKING_POSIX_SPAWN.
32903         * modules/spawn (Makefile): Substitute
32904         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
32905         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
32906         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
32907         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
32908         (Depends-on): Update conditions.
32909         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
32910         the Solaris 11 bug.
32912 2012-01-08  Bruno Haible  <bruno@clisp.org>
32914         posix_spawn_file_actions_addclose: Work around Solaris 11.0 bug.
32915         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
32916         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
32917         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
32918         HAVE_WORKING_POSIX_SPAWN.
32919         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
32920         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
32921         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
32922         * lib/spawn_faction_addclose.c: Add workaround implementation if
32923         HAVE_WORKING_POSIX_SPAWN.
32924         * modules/spawn (Makefile): Substitute
32925         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
32926         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
32927         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
32928         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
32929         (Depends-on): Update conditions.
32930         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
32931         the Solaris 11 bug.
32933 2012-01-08  Bruno Haible  <bruno@clisp.org>
32935         doc: Update for Solaris 11.0.
32936         * doc/*/*.texi: Mention Solaris 11.0 where appropriate.
32937         * m4/printf.m4: Update comments.
32939 2012-01-08  Bruno Haible  <bruno@clisp.org>
32941         mktime: Avoid compilation error on Solaris 11.
32942         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
32944 2012-01-08  Bruno Haible  <bruno@clisp.org>
32946         doc: Small fix.
32947         * doc/posix-headers/nl_types.texi: Correct platforms list.
32949 2012-01-08  Simon Josefsson  <simon@josefsson.org>
32951         Add lgpl-3.0 module.
32952         * MODULES.html.sh (Support for building documentation): Add
32953         lgpl-3.0.
32954         * modules/lgpl-3.0: New file.
32956 2012-01-08  Jim Meyering  <meyering@redhat.com>
32958         select.c: indent with spaces, not TABs
32959         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
32961 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
32963         quotearg: do not use grave accent for left quote
32964         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
32965         locale_quoting_style.
32966         (quotearg_buffer_restyled): Fix example.
32967         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
32969 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
32971         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
32972         Most programs do not have translation catalogs for English and much
32973         less separate catalogs for British and American English.  Drop the
32974         suggestion to translators about these two, and provide it
32975         automatically for Unicode locales.  Like most programs, even those
32976         using American English, we use single quotation marks.  This conflicts
32977         with the American typographic convention, but works better when you
32978         cite the entire error message within double quotes.  It also tries not
32979         to clash with established practice and with what non-gnulib programs
32980         will usually do.
32981         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
32982         using an UTF-8 or GB-18030 locale.  The list of other locales with
32983         quotes was provided by Bruno Haible.
32984         (quotearg_buffer_restyled): Adjust instructions to translators.
32985         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
32986         text, since this would be wrong when using Unicode.
32987         * modules/quotearg: Depend on c-strcaseeq.
32989 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
32991         quotearg: fix Wikipedia link
32992         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
32994 2012-01-07  Simon Josefsson  <simon@josefsson.org>
32996         Fix for mingw with MSVC9.
32997         * m4/ld-version-script.m4: Check that compiler rejects version
32998         scripts with syntax errors.  Reported by Bruno Haible
32999         <bruno@clisp.org>.
33001 2012-01-06  Bruno Haible  <bruno@clisp.org>
33003         Talk about "native Windows API", not "Woe32".
33004         * lib/accept4.c: Update comments to mention native Windows.
33005         * lib/execute.c: Likewise.
33006         * lib/fatal-signal.c: Likewise.
33007         * lib/localcharset.c: Likewise.
33008         * lib/nanosleep.c: Likewise.
33009         * lib/nl_langinfo.c: Likewise.
33010         * lib/pclose.c: Likewise.
33011         * lib/pipe-filter-gi.c: Likewise.
33012         * lib/pipe-filter-ii.c: Likewise.
33013         * lib/pipe.c: Likewise.
33014         * lib/pipe2.c: Likewise.
33015         * lib/popen.c: Likewise.
33016         * lib/progreloc.c: Likewise.
33017         * lib/relocatable.c: Likewise.
33018         * lib/sigaction.c: Likewise.
33019         * lib/sigprocmask.c: Likewise.
33020         * lib/spawn-pipe.h: Likewise.
33021         * lib/spawn-pipe.c: Likewise.
33022         * lib/spawni.c: Likewise.
33023         * lib/stat-time.h: Likewise.
33024         * lib/w32spawn.h: Likewise.
33025         * tests/test-isatty.c: Likewise.
33026         * lib/config.charset: More comments.
33027         * doc/gnulib-intro.texi: Mention native Windows.
33028         * doc/posix-functions/_Exit_C99.texi: Likewise.
33029         * doc/posix-headers/fcntl.texi: Likewise.
33031 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
33033         argp: Avoid crash if translator uses % characters in a translation.
33034         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
33035         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
33037 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
33039         doc: C11 and C++11 are now official
33040         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
33041         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
33042         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
33043         * modules/stdalign:
33044         Replace references to draft C1X to C11, and to draft C++0X to C++11.
33046 2012-01-06  Bruno Haible  <bruno@clisp.org>
33048         uc-is-grapheme-break tests: Tweak.
33049         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
33050         message.
33052 2012-01-06  Bruno Haible  <bruno@clisp.org>
33054         test-init.sh: correct the test for diff -u
33055         * tests/test-init.sh: Also redirect stdout to /dev/null.
33057 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
33059         Use ', not `, for quoting output.
33060         * build-aux/announce-gen (usage, sizes, print_news_deltas)
33061         (print_changelog_deltas, get_tool_versions, main program):
33062         * build-aux/git-version-gen:
33063         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
33064         * build-aux/move-if-change (help):
33065         * build-aux/useless-if-before-free (usage, main program):
33066         * check-module (parse_module_file, usage)
33067         (find_included_lib_files, check_module):
33068         * lib/argmatch.c (main) [TEST]:
33069         * lib/argp-help.c (_help):
33070         * lib/getopt1.c (main) [TEST]:
33071         * lib/git-merge-changelog.c (usage):
33072         * lib/xstrtol-error.c (xstrtol_error):
33073         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
33074         * m4/argz.m4 (gl_FUNC_ARGZ):
33075         * m4/bison.m4 (gl_BISON):
33076         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
33077         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
33078         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
33079         * m4/fpending.m4 (gl_PREREQ_FPENDING):
33080         * m4/gc-random.m4 (gl_GC_RANDOM):
33081         * m4/intl.m4 (gt_CHECK_DECL):
33082         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
33083         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
33084         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
33085         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
33086         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
33087         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
33088         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
33089         * tests/test-dirname.c (main):
33090         * tests/test-getpass.c (main):
33091         * tests/test-iconvme.c (main):
33092         * tests/test-parse-datetime.c (LOG):
33093         * tests/test-xstrtoimax.sh:
33094         * tests/test-xstrtol.sh:
33095         * tests/test-xstrtoll.sh:
33096         * tests/test-xstrtoumax.sh:
33097         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
33098         * top/GNUmakefile (abort-due-to-no-makefile):
33099         Quote 'like this', not `like this', as per the recent change to
33100         the GNU coding standards.
33102 2012-01-05  Bruno Haible  <bruno@clisp.org>
33104         strtoimax: Don't force a replacement on systems where intmax_t is int.
33105         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
33106         'intmax_t' is not larger than 'int'.
33107         Reported by Pádraig Brady <P@draigBrady.com>.
33109 2012-01-05  Bruno Haible  <bruno@clisp.org>
33111         doc: Mention NetBSD bugs.
33112         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
33113         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
33115 2012-01-05  Bruno Haible  <bruno@clisp.org>
33117         strtoumax tests: Enhance tests.
33118         * tests/test-strtoumax.c (main): Add tests for large values.
33120 2012-01-05  Bruno Haible  <bruno@clisp.org>
33122         strtoimax: Work around AIX 5.1 bug.
33123         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
33124         definition.
33125         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
33126         Set HAVE_STRTOIMAX.
33127         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
33128         REPLACE_STRTOIMAX.
33129         * modules/inttypes-incomplete (Makefile.am): Substitute
33130         REPLACE_STRTOIMAX.
33131         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
33132         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
33133         (Depends-on): Update conditions.
33134         * tests/test-strtoimax.c (main): Add tests for large values.
33135         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
33137 2012-01-05  Bruno Haible  <bruno@clisp.org>
33139         inttypes: Modernize.
33140         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
33141         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
33142         (Makefile.am): Update inttypes.h rule.
33144 2012-01-05  Jim Meyering  <meyering@redhat.com>
33146         init.sh: don't waste a subshell just to redirect stderr
33147         * tests/init.sh: In testing for diff -u and diff -c, use a
33148         stderr-redirecting exec inside `...` rather than a subshell.
33150         test-init.sh: avoid failure on HP-UX 11.00
33151         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
33152         resolves to diff -c or cmp.  Reported by Bruno Haible.
33154 2012-01-05  Bruno Haible  <bruno@clisp.org>
33156         Tests for module 'strtoull'.
33157         * modules/strtoull-tests: New file.
33158         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
33160 2012-01-05  Bruno Haible  <bruno@clisp.org>
33162         Tests for module 'strtoll'.
33163         * modules/strtoll-tests: New file.
33164         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
33166 2012-01-05  Bruno Haible  <bruno@clisp.org>
33168         Tests for module 'strtoul'.
33169         * modules/strtoul-tests: New file.
33170         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
33172 2012-01-05  Bruno Haible  <bruno@clisp.org>
33174         Tests for module 'strtol'.
33175         * modules/strtol-tests: New file.
33176         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
33178 2012-01-04  Jim Meyering  <meyering@redhat.com>
33180         test-init.sh: accommodate Solaris 5.10's different diff -u output
33181         * tests/test-init.sh: Also exempt @@ lines from the comparison
33182         of diff output, since Solaris 5.10 and GNU diff formats differ.
33183         Reported by Stefano Lattarini.
33185 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
33187         test-posixtm: don't assume signed integer wraparound
33188         * tests/test-posixtm.c (main): Don't assume wraparound semantics
33189         after signed integer overflow.  Inspired by (though it may not
33190         fix) Bruno Haible's bug report in
33191         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00066.html>.
33193         Spell out "Windows 9x" and "Windows XP".
33194         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
33195         "Windows 9x" and "WinXP" with "Windows XP".
33197 2012-01-04  Jim Meyering  <meyering@redhat.com>
33199         test-vc-list-files-cvs.sh: remove obsolete comment
33200         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
33201         double exit.  Now that's all encapsulated via skip_ and Exit.
33203 2012-01-04  Bruno Haible  <bruno@clisp.org>
33205         Talk about "native Windows API", not "Win32".
33206         * lib/classpath.c: Update comments to mention native Windows.
33207         * lib/csharpexec.c: Likewise.
33208         * lib/dup2.c: Likewise.
33209         * lib/error.c: Likewise.
33210         * lib/fcntl.c: Likewise.
33211         * lib/filename.h: Likewise.
33212         * lib/findprog.c: Likewise.
33213         * lib/get-rusage-as.c: Likewise.
33214         * lib/get-rusage-data.c: Likewise.
33215         * lib/getpagesize.c: Likewise.
33216         * lib/javaexec.c: Likewise.
33217         * lib/msvc-inval.c: Likewise.
33218         * lib/msvc-nothrow.c: Likewise.
33219         * lib/nanosleep.c: Likewise.
33220         * lib/nonblocking.c: Likewise.
33221         * lib/printf-parse.c: Likewise.
33222         * lib/setlocale.c: Likewise.
33223         * lib/sigaction.c: Likewise.
33224         * lib/strerror_r.c: Likewise.
33225         * lib/tmpdir.c: Likewise.
33226         * lib/vasnprintf.c: Likewise.
33227         * lib/w32spawn.h: Likewise.
33228         * lib/waitpid.c: Likewise.
33229         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
33230         * m4/locale-ar.m4: Likewise.
33231         * m4/locale-fr.m4: Likewise.
33232         * m4/locale-ja.m4: Likewise.
33233         * m4/locale-tr.m4: Likewise.
33234         * m4/locale-zh.m4: Likewise.
33235         * m4/printf.m4: Likewise.
33236         * tests/test-cloexec.c: Likewise.
33237         * tests/test-copy-acl.sh: Likewise.
33238         * tests/test-copy-file.sh: Likewise.
33239         * tests/test-file-has-acl.sh: Likewise.
33240         * tests/test-set-mode-acl.sh: Likewise.
33241         * tests/test-dup-safer.c: Likewise.
33242         * tests/test-dup2.c: Likewise.
33243         * tests/test-dup3.c: Likewise.
33244         * tests/test-fcntl.c: Likewise.
33245         * tests/test-nonblocking-pipe.h: Likewise.
33246         * tests/test-nonblocking-socket.h: Likewise.
33247         * tests/test-pipe.c: Likewise.
33248         * tests/test-pipe2.c: Likewise.
33249         * tests/test-spawn-pipe-child.c: Likewise.
33250         * doc/acl-resources.txt: Likewise.
33251         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
33252         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
33253         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
33254         * lib/localcharset.c: Update comments to mention native Windows.
33255         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
33256         * lib/localename.c: Likewise.
33257         * lib/progreloc.c: Likewise.
33258         * lib/relocatable.c: Likewise.
33259         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
33260         (windows_compute_revents): Renamed from win32_compute_revents.
33261         (windows_compute_revents_socket): Renamed from
33262         win32_compute_revents_socket.
33263         * lib/select.c: Update comments to mention native Windows.
33264         (windows_poll_handle): Renamed from win32_poll_handle.
33265         * m4/threadlib.m4: Update comments to mention native Windows.
33266         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
33267         --enable-threads=windows instead of --enable-threads=win32. Set
33268         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
33269         * lib/glthread/lock.h: Update comments to mention native Windows.
33270         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
33271         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
33272         USE_WIN32_THREADS.
33273         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
33274         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
33275         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
33276         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
33277         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
33278         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
33279         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
33280         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
33281         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
33282         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
33283         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
33284         * tests/test-tls.c: Likewise.
33285         Rationale:
33286         Microsoft renamed the "Win32 API" to "Windows API", as it is available
33287         on both 32-bit and 64-bit Windows systems.
33288         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
33289         line of distinction is between "native Windows" on one side and Unix/
33290         POSIX systems on the other side. More details in
33291         <https://lists.gnu.org/r/bug-gnulib/2012-01/msg00027.html>.
33292         Suggested by Paul Eggert.
33294 2012-01-03  Bruno Haible  <bruno@clisp.org>
33296         isatty: Support for MSVC 9.
33297         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
33298         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
33299         (_isatty_nothrow): New function.
33300         (isatty): Use it instead of _isatty.
33301         (IsConsoleHandle): Add comment, from Paolo Bonzini.
33302         * lib/poll.c (IsConsoleHandle): Likewise.
33303         * lib/select.c (IsConsoleHandle): Likewise.
33304         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
33305         (gl_PREREQ_ISATTY): New macro.
33306         * modules/isatty (Depends-on): Add msvc-inval.
33307         (configure.ac): Invoke gl_PREREQ_ISATTY.
33309 2012-01-03  Jim Meyering  <meyering@redhat.com>
33311         maint.mk: remove temporary transition aid from over 1.5 years ago
33312         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
33313         purpose was to aid in the transition (avoiding silent malfunction)
33314         from that old name to the new _sc_search_regexp.  This shim was
33315         added by commit 219c504b.
33317         init.sh: do not try to accommodate compare arguments starting with "-"
33318         * tests/init.sh (compare_dev_null_): Do not try to accommodate
33319         compare arguments that start with "-".  Besides, we do not worry
33320         about this when invoking diff or cmp; why start now with sed?
33321         Using "--" to separate options from argument would trigger sed
33322         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
33323         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
33325 2012-01-02  Bruno Haible  <bruno@clisp.org>
33327         Enhance tests for module 'isatty'.
33328         * modules/isatty-tests (Depends-on): Add pipe-posix.
33329         * tests/test-isatty.c: Include <fcntl.h>.
33330         (DEV_NULL): New macro.
33331         (main): Test the resut of isatty() also on regular files, pipes, and
33332         /dev/null.
33334         New module 'isatty'.
33335         * lib/unistd.in.h (isatty): New declaration.
33336         * lib/isatty.c: New file, based on an idea of
33337         Bastien Roucariès <roucaries.bastien@gmail.com>.
33338         * m4/isatty.m4: New file.
33339         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
33340         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
33341         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
33342         REPLACE_ISATTY.
33343         * modules/isatty: New file.
33344         * doc/posix-functions/isatty.texi: Mention the new module.
33345         Suggested by Paolo Bonzini.
33347 2012-01-02  Bruno Haible  <bruno@clisp.org>
33349         canonicalize: Tweak 2011-12-29 commit.
33350         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
33351         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
33353 2012-01-02  Jim Meyering  <meyering@redhat.com>
33355         gitlog-to-changelog: describe input syntax in --help output
33356         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
33358         gitlog-to-changelog: fix typo in --help: show backslash before email @
33359         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
33360         in sources, but not in actual output.
33362 2011-12-30  Jim Meyering  <meyering@redhat.com>
33364         gitlog-to-changelog: don't malfunction when name contains %-directive
33365         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
33366         in a name string cause trouble.  E.g., with a user name of "%s",
33367         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
33369 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
33371         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
33372         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
33373         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
33374         the "  (tiny change)" notation that is appended to the standard
33375         ChangeLog "date  name  email" header line.
33377 2012-01-01  Jim Meyering  <meyering@redhat.com>
33379         test-framework-sh: init.sh: fix "make dist" failure
33380         When using gnulib-tool's --with-tests option and any module that
33381         depends on test-framework-sh, "make dist" would fail due to the
33382         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
33383         in the gltests directory, and not in the gllib/ directory.
33384         One way to work around that is to move the EXTRA_DIST += init.sh
33385         from the primary module to the -tests one:
33386         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
33387         * modules/test-framework-sh (Makefile.am): ...not here.
33388         Reported by Tom G. Christensen in
33389         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
33391         version-etc: update copyright year reported by --version
33392         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
33394 2011-12-31  Pádraig Brady  <P@draigBrady.com>
33396         canonicalize: only stat() if required
33397         * lib/canonicalize.c (canonicalize_filename_mode):
33398         Avoid calling l?stat() when both CAN_MISSING,
33399         and CAN_NOLINKS are set, as we neither need
33400         to resolve symlinks or test component existence.
33402 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
33404         doc: cover st_ino issues once; add OpenVMS etc.
33405         * doc/posix-functions/stat.texi (stat):
33406         * doc/posix-functions/lstat.texi (lstat):
33407         * doc/posix-functions/fstatat.texi (fstatat):
33408         * doc/posix-functions/fstat.texi (fstat):
33409         Move general 'struct stat' stuff to sys_stat.texi,
33410         leaving behind a pointer.
33411         * doc/posix-headers/sys_stat.texi (sys/stat.h):
33412         Merge duplicate info about 'struct stat' problems into here.
33413         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
33414         and suggest partial workarounds.
33416         same-inode: port to OpenVMS
33417         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
33418         three st_ino values.
33420 2011-12-30  Pádraig Brady  <P@draigBrady.com>
33422         canonicalize: fix references to stat() and lstat()
33423         * lib/canonicalize.c (canonicalize_filename_mode):
33424         Ensure references always resolve to a replacement
33425         function if required (even via a macro).
33427 2011-12-30  Jim Meyering  <meyering@redhat.com>
33429         gitlog-to-changelog: remove a little duplication
33430         * build-aux/gitlog-to-changelog (main): Grep @lines once,
33431         rather than twice.
33433 2011-12-29  Pádraig Brady  <P@draigBrady.com>
33435         canonicalize: add support for not resolving symlinks
33436         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
33437         indicate we don't want to follow symlinks.  Also
33438         provide CAN_MODE_MASK to aid setting these existing
33439         mutually exclusive values.
33440         * lib/canonicalize.c (canonicalize_filename_mode):
33441         Extract the flags from can_mode parameter, which
33442         are currently just used to select between stat()
33443         and lstat().  Also ensure that mutually exclusive
33444         values are flagged immediately as invalid.
33445         * tests/test-canonicalize.c: Verify symlinks are
33446         not followed, and that invalid flag combinations
33447         are diagnosed.
33449 2011-12-25  Jim Meyering  <meyering@redhat.com>
33451         gitlog-to-changelog: do not clump multi-paragraph entries
33452         Identical header lines (date,name,email+coauthors) are suppressed,
33453         thus putting all entries with those same characteristics under
33454         a single header.  However, when a log entry consists of two or
33455         more paragraphs, it may not be clear where it starts and ends.
33456         This change makes it so that such an entry is always separated
33457         from others by a header line, even when that header would
33458         otherwise be suppressed.
33459         * build-aux/gitlog-to-changelog: Implement the above.
33460         Inspired by a related request from Stefano Lattarini in
33461         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
33463 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
33465         announce-gen: fix `cmd' typo in diagnostic
33466         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
33467         diagnostic: a missing '$' meant that the command was not output.
33469 2011-12-23  Jim Meyering  <meyering@redhat.com>
33471         test-framework-sh: distribute init.sh
33472         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
33473         Otherwise, "make -C gnulib-tests check" (at least in grep) would
33474         fail due to the lack of init.sh.
33476         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
33477         * modules/atexit-tests: Rather than listing tests/init.sh,
33478         now that there's a module for it, simply depend on that new module.
33479         * modules/closein-tests: Likewise.
33480         * modules/exclude-tests: Likewise.
33481         * modules/getcwd-tests: Likewise.
33482         * modules/perror-tests: Likewise.
33483         * modules/pread-tests: Likewise.
33484         * modules/pwrite-tests: Likewise.
33485         * modules/vc-list-files-tests: Likewise.
33486         * modules/verify-tests: Likewise.
33487         * modules/xalloc-die-tests: Likewise.
33488         * modules/xstrtoimax-tests: Likewise.
33489         * modules/xstrtol-tests: Likewise.
33490         * modules/xstrtoll-tests: Likewise.
33491         * modules/xstrtoumax-tests: Likewise.
33492         * modules/yesno-tests: Likewise.
33494 2011-12-22  Jim Meyering  <meyering@redhat.com>
33496         test-framework-sh: add minimal tests of init.sh's compare function
33497         * modules/test-framework-sh-tests: New file.
33498         * tests/test-init.sh: New file.
33500         test-framework-sh: new module
33501         * modules/test-framework-sh: New file.
33502         * MODULES.html.sh (Support for maintaining and releasing projects):
33503         List it.
33505         init.sh: do not emit simulated diff output to stderr
33506         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
33508 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
33510         .gitignore: ignore gnulib.dvi and regex.info
33511         * doc/.gitignore:add gnulib.dvi and regex.info
33513 2011-12-22  Jim Meyering  <meyering@redhat.com>
33515         init.sh: correct previous change
33516         * tests/init.sh (compare): My previous change was wrong.
33517         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
33519         init.sh: avoid unwarranted test failure when using "set -e"
33520         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
33521         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
33522         a use like "compare exp out" would get evoke an unconditional failure.
33524 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
33526         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
33527         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
33528         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
33529         autoreconf that did not.
33530         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
33531         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
33533 2011-12-17  Jim Meyering  <meyering@redhat.com>
33535         bootstrap: remove some now-unneeded code
33536         This script arose back when gnulib-tool was young.
33537         Since then, it has seen improvements that render much of this
33538         script unnecessary.  In particular, it can now make symlinks
33539         to the files it uses.  Also, I no longer see as much value in
33540         marking files as read-only via comments.
33541         If you relied on the symlink-creation feature of the preceding
33542         version of this script, you can get most of that functionality
33543         by adding the --symlink option to the definition of
33544         gnulib_tool_option_extras in your bootstrap.conf file.
33545         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
33546         Run autopoint and libtoolize *before* gnulib-tool.
33547         After it, run an abbreviated autoreconf, rather than a loop around
33548         all tools.
33549         (slirp, bt_mark_as_generated): Remove functions.
33551 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
33553         ftoastr: fix typo
33554         * lib/ftoastr.h: Fix misspelling in comment.
33556 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
33558         * top/README-release: fix punctuation.
33560 2011-12-17  Jim Meyering  <meyering@redhat.com>
33562         bootstrap: correct the recent buildreq change
33563         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
33564         had no effect.
33565         * build-aux/bootstrap (buildreq): Bracket each search term with
33566         "*...*", so that the shell "case" statement works as intended.
33567         Add comments.
33569 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
33571         build: let bootstrap resort to wget when downloading .po files
33572         * build-aux/bootstrap (download_po_files): Fallback to wget when
33573         downloading the .po files via rsync fails.  This is necessary to
33574         bootstrap from behind a strict firewall.
33576 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
33578         stdint: don't assume C++11 when compiling with g++
33579         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
33580         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00099.html>.
33581         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
33582         work also in C++ before C++11, as that improperly inhibits
33583         generating a substitute stdint.h for that case.
33585 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
33587         alloca: protect comment from gnulib-tool
33588         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
33589         that gnulib-tool doesn't think it's a license, and munge it to
33590         say "GCC version 3".
33592 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
33594         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
33595         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
33596         $(abs_top_builddir) instead of $(top_builddir).
33598 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
33600         strftime-tests: also test nanoseconds
33601         * tests/test-strftime.c (T): Add a test of %N.
33603 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
33605         inttypes, stdint: add C++11 support
33606         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
33607         when including inttypes.h and stdint.h.  Support this change to
33608         the standard.
33609         * doc/posix-headers/inttypes.texi (inttypes.h):
33610         * doc/posix-headers/stdint.texi (stdint.h): Document this.
33611         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
33612         Define if not defined already, for the benefit of pre-C++11 hosts.
33613         Define the standard format macros (e.g., PRId8) always.
33614         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
33615         Likewise, if __cpluspus.  Define the standard constant and limit
33616         macros (e.g., INT8_C, INT8_MAX) always.
33617         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
33618         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
33619         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
33620         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
33621         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
33622         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
33623         Likewise.
33625 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
33627         nonblocking tests: Fix test failure on Linux/PPC.
33628         Suggested by Prerna Saxena in
33629         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00080.html>.
33630         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
33631         Set to 1100000.
33633 2011-12-12  Jim Meyering  <meyering@redhat.com>
33635         argmatch: don't hard-code `' when listing valid option arguments
33636         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
33637         use the quote function to add quotes.  Use fputs rather than
33638         fprintf for the format string with no format directive.
33640 2011-12-07  Eric Blake  <eblake@redhat.com>
33642         bootstrap: detect tools required by gnulib-tool
33643         * build-aux/bootstrap (buildreq): Provide minimum implicit
33644         dependencies.
33645         * DEPENDENCIES: Mention patch as a prereq.
33647 2011-12-04  Bruno Haible  <bruno@clisp.org>
33649         sethostname: Port to Windows platforms.
33650         * lib/sethostname.c: Provide an alternate implementation for Windows
33651         platforms.
33652         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
33653         (main): Skip the test if sethostname() fails with EPERM. On Windows
33654         platforms, don't check the result of gethostname().
33656 2011-12-04  Bruno Haible  <bruno@clisp.org>
33657             Jim Meyering  <meyering@redhat.com>
33659         tests: Avoid spurious error message on platforms without mktemp program.
33660         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
33662 2011-12-04  Bruno Haible  <bruno@clisp.org>
33664         sethostname: Fix documentation.
33665         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
33666         "not fixed" section.
33668 2011-12-03  Bruno Haible  <bruno@clisp.org>
33670         gnulib-tool: Verify that the License field is present and non-empty.
33671         * gnulib-tool (func_get_license_raw): New function, extracted from
33672         func_get_license.
33673         (func_get_license): Use it. Warn if the module is not a test module and
33674         has no license.
33675         Suggested by Jim Meyering.
33677 2011-12-03  Bruno Haible  <bruno@clisp.org>
33679         sethostname tests: Fix link error on mingw.
33680         * tests/test-sethostname1.c: New file, extracted from
33681         tests/test-sethostname.c.
33682         * tests/test-sethostname2.c: New file, extracted from
33683         tests/test-sethostname.c.
33684         * tests/test-sethostname.c: Remove file.
33685         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
33686         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
33687         (Depends-on): Add gethostname.
33688         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
33689         Link the latter with $(GETHOSTNAME_LIB).
33691         sethostname tests: Fix compilation error on mingw.
33692         * tests/test-sethostname.c: Don't include <sys/types.h>.
33693         (geteuid): Use a dummy value without uid_t.
33694         * modules/sethostname-tests (Depends-on): Remove sys_types.
33696         sethostname tests: Avoid a gcc warning.
33697         * tests/test-sethostname.c (main): Remove an unused variable.
33699         Tweak last commit.
33700         * modules/sethostname-tests (Files): Sort by decreasing importance.
33701         (configure.ac): Check for geteuid.
33702         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
33703         the test when there's nothing to test. Drop an unnecessary cast.
33704         Improve an error message. Verify that the final sethostname() call
33705         succeeds.
33707 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
33709         Add a test suite for the sethostname module.
33710         * modules/sethostname-tests: New file.  A test program
33711         for the sethostname module.
33712         * tests/test-sethostname.c: Likewise.
33714 2011-12-03  Bruno Haible  <bruno@clisp.org>
33716         Tweak last commit.
33717         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
33718         Fix preprocessor directives indentation. Fix typos.
33719         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
33720         * modules/unistd (Makefile): Likewise.
33722 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
33724         Integrate the sethostname module into unistd.
33725         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
33726         into the unistd.h header.
33727         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
33728         preprocessor directives.
33729         * modules/unistd: Setup the Makefile substitutions of the
33730         SETHOSTNAME preprocessor directives.
33732 2011-12-03  Bruno Haible  <bruno@clisp.org>
33734         Tweak last commit.
33735         * lib/sethostname.c: Don't include <string.h>.
33736         (sethostname): No need to copy the argument string to the stack. Don't
33737         call clearerr. Preserve errno when fprintf failed.
33738         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
33739         Don't invoke AC_REPLACE_FUNCS.
33740         * modules/sethostname (Link): Remove empty section.
33741         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
33742         failure problem.
33744 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
33746         New module 'sethostname'.
33747         * lib/sethostname.c (sethostname): New file.  Provide sethostname
33748         for systems that lack it.
33749         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
33750         sethostname declaration and function.
33751         * modules/sethostname: New file.  Define the sethostname module.
33753 2011-12-03  Bruno Haible  <bruno@clisp.org>
33755         Tweak last commit.
33756         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
33758 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
33760         Split the HOST_NAME_MAX detection into a separate m4 macro.
33761         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
33762         macro so it can be used by the pending sethostname module.
33764 2011-12-03  Bruno Haible  <bruno@clisp.org>
33766         Fix module descriptions syntax.
33767         * modules/argv-iter (License): Fix syntax.
33768         * modules/di-set (License): Likewise.
33769         * modules/ino-map (License): Likewise.
33770         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
33772 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
33774         stdalign: port to Clang 3.0
33775         Problem reported by Simon Josefsson in
33776         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00005.html>.
33777         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
33778         which has <stdalign.h> but which does not define alignof.
33779         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
33781 2011-12-01  Eric Blake  <eblake@redhat.com>
33783         mktempd: silence dd usage
33784         * build-aux/mktempd (rand_bytes): Silence dd.
33786 2011-11-30  Simon Josefsson  <simon@josefsson.org>
33788         manywarnings: Don't mention gcc version in docstring.
33789         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
33790         Jim Meyering <meyering@redhat.com>.
33792 2011-11-30  Jim Meyering  <meyering@redhat.com>
33794         hash: mark a few floating point constants with "f" suffix
33795         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
33796         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
33797         floating point constants with "f", since they're destined to be
33798         saved/used as "float"s.
33800 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
33802         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
33803         * tests/test-float.c (test_long_double): Correct and re-enable the
33804         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
33806 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
33808         Avoid subtracting two pointers that don't point into the same block.
33809         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
33810         only pointers into the same memory block are subtracted. We cannot
33811         assume that sizeof (ptrdiff_t) == sizeof (void *).
33813 2011-11-29  Eric Blake  <eblake@redhat.com>
33815         maint.mk: add syntax check for use of compare from init.sh
33816         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
33817         moved here from coreutils.
33819         manywarnings: drop -Wunsuffixed-float-constants
33820         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
33821         '1.0D', which is the only way to silence this warning for 'double'.
33823 2011-11-29  Jim Meyering  <meyering@redhat.com>
33825         hash: mark compute_bucket_size with the pure attribute
33826         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
33828         quotearg, propername: correct pragma guard expression
33829         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
33830         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
33832 2011-11-28  Jim Meyering  <meyering@redhat.com>
33834         propername: do not mark proper_name with the const attribute
33835         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
33836         since it examines data pointed to by its parameter.
33837         * lib/propername.c (proper_name): Instead, add a pragma to suppress
33838         the suggestion from -Wsuggest-attribute=const.
33840         propername: mark one more function as const
33841         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
33843 2011-11-27  Jim Meyering  <meyering@redhat.com>
33845         mark functions with const and pure attributes
33847         Mark functions per suggestions from gcc-4.6 when using these options:
33848         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
33849         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
33850         Follow these guidelines: when possible, apply the attribute to
33851         an extern declaration, not to its definition.  Apply it to the
33852         definition only when the definition is static.
33853         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
33854         * lib/argv-iter.h (argv_iter_n_args): Likewise.
33855         * lib/base64.h (isbase64): Likewise.
33856         * lib/basename-lgpl.c (last_component, base_len): Likewise.
33857         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
33858         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
33859         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
33860         (c_tolower, c_toupper): Likewise.
33861         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
33862         * lib/chdir-long.c (find_non_slash): Likewise.
33863         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
33864         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
33865         * lib/file-type.h (file_type): Likewise.
33866         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
33867         * lib/filevercmp.c (verrevcmp): Likewise.
33868         * lib/freadahead.h (freadahead): Likewise.
33869         * lib/fts.c (fts_maxarglen): Likewise.
33870         * lib/hash-pjw.h (hash_pjw): Likewise.
33871         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
33872         * lib/hash.c (is_prime, next_prime): Likewise.
33873         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
33874         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
33875         (hash_table_ok, hash_get_first, hash_string): Likewise.
33876         (compute_bucket_size): Likewise.
33877         * lib/i-ring.h (i_ring_empty): Likewise.
33878         * lib/isnan.c (isnanl): Likewise.
33879         * lib/math.h (isnanl, rpl_isnanl): Likewise.
33880         * lib/memcasecmp.h (memcasecmp): Likewise.
33881         * lib/memchr2.h (memchr2): Likewise.
33882         * lib/memcmp2.h (memcmp2): Likewise.
33883         * lib/parse-datetime.y (lookup_zone): Likewise.
33884         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
33885         [!WINDOWS_SOCKETS]: Likewise.
33886         * lib/strnlen1.h (strnlen1): Likewise.
33887         * lib/uniwidth.in.h (uc_width): Likewise.
33888         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
33889         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
33890         (quoting_options_from_style): Add a comment.
33891         * lib/propername.h (proper_name): Add a comment.
33893 2011-11-27  Bruno Haible  <bruno@clisp.org>
33895         Remove unused macros from !_LIBC code in glibc-borrowed files.
33896         * lib/fnmatch.c (STRCOLL): Remove macro.
33897         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
33898         * lib/glob.c (__stat, __readdir64): Remove macros.
33899         * lib/tempname.c (__open64, __xstat64): Remove macros.
33900         Suggested by Paul Eggert.
33902 2011-11-27  Bruno Haible  <bruno@clisp.org>
33904         getcwd: Fix link error on MSVC 9.
33905         * modules/getcwd (Depends-on): Add readdir, rewinddir.
33907 2011-11-27  Bruno Haible  <bruno@clisp.org>
33909         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
33910         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
33911         HAVE_OPENDIR is 0.
33912         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
33913         HAVE_CLOSEDIR is 0.
33914         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
33915         is 0.
33916         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
33918 2011-11-27  Bruno Haible  <bruno@clisp.org>
33920         getcwd: Fix bug from 2011-08-17.
33921         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
33922         platforms that need it.
33923         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
33924         code of 4 to be a failure, not a success. This ensures that
33925         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
33927 2011-11-27  Bruno Haible  <bruno@clisp.org>
33929         binary-io tests: Avoid test failure on mingw when libtool is used.
33930         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
33931         Don't verify the size of t-bin-out1.tmp here.
33932         * tests/test-binary-io.sh: Verify it here.
33933         Reported by Simon Josefsson.
33935 2011-11-26  Bruno Haible  <bruno@clisp.org>
33937         Fix conflict between two instantiations of module 'unistd'.
33938         * gnulib-tool (func_emit_autoconf_snippet): Substitute
33939         ${include_guard_prefix} also in the autoconf snippet.
33940         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
33941         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
33942         GNULIB_UNISTD_H_GETOPT.
33943         * modules/getopt-posix (configure.ac): Set the
33944         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
33945         * modules/getopt-gnu (configure.ac): Likewise.
33946         * modules/unistd (Makefile.am): Change the substitution value of
33947         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
33948         Reported by Simon Josefsson.
33950 2011-11-25  Bruno Haible  <bruno@clisp.org>
33952         pagealign_alloc: Doc and comments.
33953         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
33954         module.
33955         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
33957 2011-11-25  Jim Meyering  <meyering@redhat.com>
33959         test-update-copyright.sh: avoid false-positive failure
33960         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
33961         around false positive failure on Cygwin/Windows.  The latter was
33962         matching erroneously-created files with names like
33963         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
33965 2011-11-25  Simon Josefsson  <simon@josefsson.org>
33967         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
33968         * m4/valgrind-tests.m4: Check that the parameters that will be
33969         used works, not just a subset of them.  Reported by Bruno Haible
33970         <bruno@clisp.org>.
33972 2011-11-24  Jim Meyering  <meyering@redhat.com>
33974         test-stdalign.c: comment out long double tests
33975         * tests/test-stdalign.c: Don't try to reduce alignment of long double
33976         variables.  That provokes errors like this from gcc-4.7.0 20111124:
33977         error: '_Alignas' specifiers cannot reduce alignment of \
33978         'static_longdouble_alignas'.
33980 2011-11-22  Jim Meyering  <meyering@redhat.com>
33982         init.sh: make "compare /dev/null FILE" output more readable
33983         * tests/init.sh (compare_): Document the preferred order of arguments.
33984         (emit_diff_u_header_): New function.
33985         (compare_dev_null_): Emit a simulated diff, rather than just the
33986         contents of the unexpected file.  Suggestion from Bruno Haible.
33988 2011-11-21  Jim Meyering  <meyering@redhat.com>
33989             Eric Blake  <eblake@redhat.com>
33991         init.sh: work around OSF/1 5.1's mishandling of /dev/null
33992         * tests/init.sh: Make our compare function slightly more portable.
33993         Reported by Bruno Haible in
33994         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
33996 2011-11-21  Simon Josefsson  <simon@josefsson.org>
33998         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
33999         before using it, in code that ends up in config.h.
34001 2011-11-20  Bruno Haible  <bruno@clisp.org>
34003         getcwd: Work around getcwd bug on AIX 5..7.
34004         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
34005         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
34006         Use a different value for gl_cv_func_getcwd_path_max. Move the
34007         definition of HAVE_PARTLY_WORKING_GETCWD from here...
34008         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
34009         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
34010         Define HAVE_MINIMALLY_WORKING_GETCWD.
34011         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
34012         where it is not even minimally working, that is, on AIX.
34013         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
34014         m4/getcwd-path-max.m4.
34015         (main): Update exit code computation.
34016         * doc/posix-functions/getcwd.texi: Mention list of platforms where
34017         getcwd does not handle long file names.
34019 2011-11-20  Bruno Haible  <bruno@clisp.org>
34021         getcwd: Fix bug from 2009-09-10.
34022         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
34023         like "no".
34025 2011-11-20  Simon Josefsson  <simon@josefsson.org>
34027         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
34029 2011-11-20  Bruno Haible  <bruno@clisp.org>
34031         fma tests: Avoid shadowing local variables.
34032         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
34033         expected.
34035 2011-11-20  Bruno Haible  <bruno@clisp.org>
34037         copysignf tests: Fix.
34038         * tests/test-copysignf.c: Fix signature check.
34040 2011-11-20  Bruno Haible  <bruno@clisp.org>
34042         fma: Remove unused code.
34043         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
34044         unused macros.
34046 2011-11-20  Bruno Haible  <bruno@clisp.org>
34048         sethostname: Fix doc about AIX.
34049         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
34050         sethostname; it has it.
34052         sethostname: Mention more portability problems.
34053         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
34054         problem.
34055         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
34057 2011-11-19  Bruno Haible  <bruno@clisp.org>
34059         Depend on module fcntl-h when AT_FDCWD is used.
34060         * modules/utimens (Depends-on): Add fcntl-h.
34061         * modules/areadlinkat (Depends-on): Likewise.
34062         * modules/areadlinkat-with-size (Depends-on): Likewise.
34063         * modules/faccessat (Depends-on): Likewise.
34064         * modules/fchmodat (Depends-on): Likewise.
34065         * modules/fchownat (Depends-on): Likewise.
34066         * modules/getcwd (Depends-on): Likewise.
34067         * modules/mkdirat (Depends-on): Likewise.
34068         * modules/mkfifoat (Depends-on): Likewise.
34069         * modules/readlinkat (Depends-on): Likewise.
34070         * modules/symlinkat (Depends-on): Likewise.
34071         * modules/dup2-tests (Depends-on): Likewise.
34072         * modules/fdutimensat-tests (Depends-on): Likewise.
34073         * modules/futimens-tests (Depends-on): Likewise.
34075 2011-11-19  Bruno Haible  <bruno@clisp.org>
34077         euidaccess: Update a comment.
34078         * lib/euidaccess.c: Update comment about platforms with faccessat.
34080 2011-11-19  Bruno Haible  <bruno@clisp.org>
34082         openat: Fix file list.
34083         * modules/openat (Files): Remove lib/at-func.c.
34085 2011-11-19  Bruno Haible  <bruno@clisp.org>
34087         fstatat: Simplify.
34088         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
34089         gnulib should define rpl_fstatat, there is a
34090         "#define fstatat rpl_fstatat" in <sys/stat.h>.
34092 2011-11-19  Bruno Haible  <bruno@clisp.org>
34094         Ensure 'inline' can be used in tests/test-utimens-common.h.
34095         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
34096         * modules/futimens-tests (configure.ac): Likewise.
34097         * modules/utimens-tests (configure.ac): Likewise.
34098         * modules/utimensat-tests (configure.ac): Likewise.
34100 2011-11-19  Simon Josefsson  <simon@josefsson.org>
34102         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
34103         not hash_insert0.
34104         (hash_insert_if_absent): Doc fix.
34106 2011-11-19  Simon Josefsson  <simon@josefsson.org>
34108         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
34110 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
34112         test-getcwd: disambiguate exit status
34113         * tests/test-getcwd.c (test_long_name): Return 0..7.
34114         (main): Exit with an unambiguous exit status.  The old
34115         code yielded a mysterious mixture of two failure codes.
34117         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
34118         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
34119         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
34120         rpl_fstatat or fstatat.  This should fix the other problem
34121         reported by Kai Habel in
34122         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
34123         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
34124         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00239.html>
34125         and I reproduced it on a Solaris 8 host we still have in production.
34127 2011-11-18  Jim Meyering  <meyering@redhat.com>
34129         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
34130         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
34131         Add a sentence to the comment.
34132         (hash_insert0): New function that simply calls hash_insert_if_absent.
34133         * lib/hash.h (hash_insert_if_absent): Declare it.
34134         (hash_insert0): Add deprecation attribute.
34135         (_GL_ATTRIBUTE_DEPRECATED): Define.
34136         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
34137         not hash_insert0.
34138         * NEWS: Mention it, even though it's not really an incompatible change.
34140 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
34142         openat: avoid compilation failure due to lack of <errno.h> inclusion
34143         * lib/openat.c: Include <errno.h>.
34145 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
34147         * modules/getcwd (Depends-on): Add fdopendir.
34148         This fixes one of the two problems reported by Kai Habel in
34149         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
34151         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
34152         stdalign problem reported by Ian Beckwith in
34153         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00238.html>.
34154         * modules/crypto/gc-arcfour (Depends-on):
34155         Depend conditionally on crypto/arcfour.
34156         * modules/crypto/gc-arctwo (Depends-on):
34157         Depend conditionally on crypto/arctwo.
34158         * modules/crypto/gc-des (Depends-on):
34159         Depend conditionally on crypto/des.
34160         * modules/crypto/gc-hmac-md5 (Depends-on):
34161         Depend conditionally on crypto/hmac-md5.
34162         * modules/crypto/gc-hmac-sha1 (Depends-on):
34163         Depend conditionally on crypto/hmac-sha1.
34164         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
34165         * modules/crypto/gc-md4 (Depends-on):
34166         Depend conditionally on crypto/md4.
34167         * modules/crypto/gc-md5 (Depends-on):
34168         Depend conditionally on crypto/md5.
34169         * modules/crypto/gc-rijndael (Depends-on):
34170         Depend conditionally on crypto/rijndael.
34171         * modules/crypto/gc-sha1 (Depends-on):
34172         Depend conditionally on crypto/sha1.
34173         * modules/crypto/gc-arcfour:
34174         * modules/crypto/gc-arctwo:
34175         * modules/crypto/gc-des:
34176         * modules/crypto/gc-hmac-md5:
34177         * modules/crypto/gc-hmac-sha1:
34178         * modules/crypto/gc-md2:
34179         * modules/crypto/gc-md4:
34180         * modules/crypto/gc-md5:
34181         * modules/crypto/gc-rijndael:
34182         * modules/crypto/gc-sha1:
34183         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
34184         now that the conditional dependencies do the work for us.
34186 2011-11-17  Jim Meyering  <meyering@redhat.com>
34188         tests: factor st_ctime-comparison out of two headers
34189         * tests/test-utimens-common.h (ctime_compare): Define.
34190         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
34191         * tests/test-lutimens.h (test_lutimens): Likewise.
34192         * tests/test-utimens.h (test_utimens): Likewise.
34194         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
34195         Invoke the test program via an init.sh-using wrapper.
34196         * tests/test-getcwd.sh: New file.
34197         * modules/getcwd-tests (Files): Add it.
34198         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
34200 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
34202         gitlog-to-changelog: support multi-author commits.
34203         The FSF cares about keeping track of all authors of patches to its
34204         projects, but Git doesn't provide obvious support for multi-author
34205         changesets. Consensus seems to be forming around the use of extra
34206         Signed-off-by inspired lines in the log message formatted as
34207         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
34208         multi-author commits between version control systems.
34209         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
34210         log message and output in standard ChangeLog multi-author format.
34211         Reported by Peter Rosin <peda@lysator.liu.se>
34213 2011-11-15  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
34214             Bruno Haible  <bruno@clisp.org>
34216         Fix some modules' file list.
34217         * modules/fstatat (Files): Add m4/lstat.m4.
34218         * modules/openat (Files): Likewise.
34219         * modules/unlinkat (Files): Likewise.
34221 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
34223         maint.mk: fix tight-scope.mk generation in VPATH builds.
34224         * top/maint.mk (tight-scope.mk): Make sure to prefix file
34225         reference with $(srcdir) so that the file is found correctly even
34226         when running `make syntax-check' in a VPATH build.
34228 2011-11-13  Bruno Haible  <bruno@clisp.org>
34229             Jim Meyering  <meyering@redhat.com>
34231         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
34232         * tests/init.sh (compare): Remove "No differences encountered" or
34233         synonymous output from the 'diff' program.
34235 2011-11-13  Bruno Haible  <bruno@clisp.org>
34237         Makefile: Tweak indentation.
34238         * Makefile: Use tab as first character in every line that contains rule
34239         commands.
34241 2011-11-13  Bruno Haible  <bruno@clisp.org>
34243         Syntax check for copyright statements.
34244         * check-copyright: New file.
34245         * Makefile (sc_check_copyright): New rule.
34247 2011-11-13  Simon Josefsson  <simon@josefsson.org>
34249         * build-aux/git-version-gen: Add --prefix to configure the tag
34250         match string.
34252 2011-11-13  Simon Josefsson  <simon@josefsson.org>
34254         * build-aux/git-version-gen: Add --help and --version.
34256 2011-11-12  Jim Meyering  <meyering@redhat.com>
34258         revamp the other test-exclude?.sh scripts to use init.sh, too
34259         * tests/test-exclude1.sh: Use init.sh.
34260         * tests/test-exclude2.sh: Likewise.
34261         * tests/test-exclude3.sh: Likewise.
34262         * tests/test-exclude4.sh: Likewise.
34263         * tests/test-exclude5.sh: Likewise.
34264         * tests/test-exclude6.sh: Likewise.
34265         * tests/test-exclude7.sh: Likewise.
34266         * tests/test-exclude8.sh: Likewise.
34267         * modules/exclude-tests (Files): List init.sh.
34269         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
34270         These shell scripts ignored failure of the binary test-exclude,
34271         so making the latter return 77 didn't cause them to be skipped.
34272         * tests/test-exclude5.sh: Exit with test-exclude's error status
34273         when that program fails.  Revamp to use init.sh.
34274         * tests/test-exclude2.sh: Likewise.
34276         test-exclude: fix a typo
34277         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
34279 2011-11-11  Bruno Haible  <bruno@clisp.org>
34281         obstack: Fix compilation error on MSVC 9.
34282         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
34284 2011-11-11  Jim Meyering  <meyering@redhat.com>
34286         test-exclude: skip tests rather than failing on deficient systems
34287         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
34288         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
34289         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
34290         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
34292 2011-11-10  Bruno Haible  <bruno@clisp.org>
34294         ptsname_r test: Avoid gcc warning on glibc systems.
34295         * tests/test-ptsname_r.c (null_ptr): New function.
34296         (test_errors): Use it.
34298 2011-11-10  Bruno Haible  <bruno@clisp.org>
34300         ptsname_r: Avoid compilation error on OSF/1 5.1.
34301         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
34302         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
34303         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
34304         function is not declared or incompatibly declared.
34305         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
34306         * modules/ptsname_r (Depends-on, configure.ac): Update.
34307         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
34309 2011-11-10  Bruno Haible  <bruno@clisp.org>
34311         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
34312         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
34313         When cross-compiling, guess yes on all platforms except AIX.
34314         Reported by Ludovic Courtès <ludo@gnu.org>.
34316 2011-11-09  Bruno Haible  <bruno@clisp.org>
34318         ptsname_r tests: Fix bugs.
34319         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
34320         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
34322 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
34324         fstatat: work with cross-compilation
34325         Problem reported by Ludovic Courtès in
34326         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00136.html>.
34327         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
34328         "cross-compiling" and assume the bug is present.  Replace
34329         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
34330         an inverted sense, to be more conservative about our assumptions.
34331         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
34333 2011-11-09  Bruno Haible  <bruno@clisp.org>
34335         Improve MODULES.html output.
34336         * modules/mkfifoat (Description): Use the word "function".
34337         * modules/readlinkat (Description): Likewise.
34338         * modules/symlinkat (Description): Likewise.
34340 2011-11-09  Eric Blake  <eblake@redhat.com>
34342         ptsname_r-tests: new test module
34343         * modules/ptsname_r-tests: New module.
34344         * tests/test-ptsname_r.c: New file.
34346         ptsname_r: new module
34347         * modules/ptsname_r: New module.
34348         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
34349         * lib/ptsname.c (__ptsname_r): Split...
34350         * lib/ptsname_r.c: ...into new file.
34351         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
34352         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
34353         * modules/stdlib (Makefile.am): Substitute witnesses.
34354         * lib/stdlib.in.h (ptsname_r): Declare it.
34355         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
34356         * MODULES.html.sh (Misc): Likewise.
34357         * modules/ptsname (Depends-on): Alter dependency.
34358         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
34360 2011-11-09  Jim Meyering  <meyering@redhat.com>
34362         announce-gen: be more concise when there's only one URL+tarball
34363         * build-aux/announce-gen (get_tool_versions): When you distribute
34364         only one type of tarball, combine the first two "Here are..."
34365         sections and make the key-checking grammar independent of
34366         how many tarballs there are.
34368 2011-11-09  Eric Blake  <eblake@redhat.com>
34370         openpty: provide a stub on mingw
34371         * lib/pty.in.h (includes): Provide forward declarations.
34372         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
34374         raise: fix mingw handling of SIGPIPE
34375         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
34377 2011-11-08  Bruno Haible  <bruno@clisp.org>
34379         More conditional dependencies.
34380         * modules/faccessat (Depends-on): Add conditions.
34381         * modules/fchmodat (Depends-on): Likewise.
34382         * modules/fchownat (Depends-on): Likewise.
34383         * modules/fstatat (Depends-on): Likewise.
34384         * modules/mkfifoat (Depends-on): Likewise.
34385         * modules/readlinkat (Depends-on): Likewise.
34386         * modules/symlinkat (Depends-on): Likewise.
34387         * modules/unlinkat (Depends-on): Likewise.
34388         * modules/utimensat (Depends-on): Likewise.
34389         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
34390         * modules/linkat (Depends-on): Refine the conditions.
34391         * modules/renameat (Depends-on): Likewise.
34393 2011-11-08  Bruno Haible  <bruno@clisp.org>
34395         faccessat: Move AC_LIBOBJ invocation to module description.
34396         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
34397         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
34398         invocation from here...
34399         * modules/faccessat (configure.ac): ... to here. Invoke
34400         gl_PREREQ_FACCESSAT.
34402 2011-11-08  Bruno Haible  <bruno@clisp.org>
34404         faccessat: Simplify autoconf macro.
34405         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
34406         gl_FUNC_EUIDACCESS.
34408 2011-11-08  Bruno Haible  <bruno@clisp.org>
34410         renameat: Fix dependencies.
34411         * modules/renameat (Depends-on): Add stdbool.
34413 2011-11-08  Bruno Haible  <bruno@clisp.org>
34415         mkfifoat: Fix module description.
34416         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
34417         not gl_UNISTD_MODULE_INDICATOR.
34419 2011-11-08  Bruno Haible  <bruno@clisp.org>
34421         fstatat: Remove unused dependency.
34422         * modules/fstatat (Depends-on): Remove fstat.
34424 2011-11-08  Simon Josefsson  <simon@josefsson.org>
34426         GNUmakefile: behave when Makefile is missing.
34427         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
34429 2011-11-08  Bruno Haible  <bruno@clisp.org>
34431         openat: Conditionalize dependencies.
34432         * lib/openat.c: Reduce the scope of some #includes.
34433         * modules/openat (Depends-on): Add conditions.
34435 2011-11-07  Jim Meyering  <meyering@redhat.com>
34437         maint.mk: extract GPG key ID without using a temporary file
34438         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
34439         without using a temporary file.  Based on a suggestion from Werner Koch
34440         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
34442 2011-11-07  Eric Blake  <eblake@redhat.com>
34444         grantpt: fix typo
34445         * lib/stdlib.in.h (grantpt): Check correct function.
34447         maint.mk: silence new syntax check
34448         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
34450 2011-11-06  Bruno Haible  <bruno@clisp.org>
34452         Doc about floating-point and math API.
34453         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
34454         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
34456 2011-11-06  Bruno Haible  <bruno@clisp.org>
34458         stdalign tests: Skip the test when compiled by Sun C.
34459         * tests/test-stdalign.c (main): Skip the test on Sun C.
34461 2011-11-06  Bruno Haible  <bruno@clisp.org>
34463         ansi-c++-opt: Complete the 2011-06-05 change.
34464         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
34465         does not support namespaces, set the variable to "no", not to ":".
34467 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
34469         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
34471 2011-11-06  Bruno Haible  <bruno@clisp.org>
34473         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
34474         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
34475         (minus_zerol) [HP-UX]: New macro.
34476         (unary_minus) [HP-UX]: New function.
34477         (copysignl) [HP-UX]: Use unary_minus function.
34479 2011-11-06  Bruno Haible  <bruno@clisp.org>
34481         ldexp, ldexpf, ldexpl: Enhance tests.
34482         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
34483         and tests/test-ldexpl.c.
34484         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
34485         LDEXP, MIN_EXP, MAX_EXP): New macros.
34486         Include test-ldexp.h.
34487         (main): Just call test_function.
34488         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
34489         infinity.h, nan.h.
34490         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
34491         MAX_EXP): New macros.
34492         Include test-ldexp.h.
34493         (x, y): Remove variables.
34494         (main): Just call test_function.
34495         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
34496         infinity.h, nan.h.
34497         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
34498         MAX_EXP): New macros.
34499         Include test-ldexp.h.
34500         (x, y): Remove variables.
34501         (main): Just call test_function.
34502         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
34503         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
34504         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
34505         (Depends-on): Add isnand-nolibm, signbit, float.
34506         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
34507         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
34508         (Depends-on): Add isnanf-nolibm, signbit, float.
34510 2011-11-06  Bruno Haible  <bruno@clisp.org>
34512         math tests: Cosmetics.
34513         * tests/test-math-c++.cc: Reorder declarations.
34515 2011-11-05  Bruno Haible  <bruno@clisp.org>
34517         fma*: Simplify test.
34518         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
34519         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
34521         Tests for module 'fmal'.
34522         * modules/fmal-tests: New file.
34523         * tests/test-fmal1.c: New file.
34524         * tests/test-fmal2.c: New file.
34526         New module 'fmal'.
34527         * lib/math.in.h (fmal): New declaration.
34528         * lib/fmal.c: New file.
34529         * m4/fmal.m4: New file.
34530         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
34531         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
34532         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
34533         REPLACE_FMAL.
34534         * modules/fmal: New file.
34535         * doc/posix-functions/fmal.texi: Mention the new module and the various
34536         bugs.
34538         Tests for module 'fmaf'.
34539         * modules/fmaf-tests: New file.
34540         * tests/test-fmaf1.c: New file.
34541         * tests/test-fmaf2.c: New file.
34543         New module 'fmaf'.
34544         * lib/math.in.h (fmaf): New declaration.
34545         * lib/fmaf.c: New file.
34546         * m4/fmaf.m4: New file.
34547         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
34548         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
34549         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
34550         REPLACE_FMAF.
34551         * modules/fmaf: New file.
34552         * doc/posix-functions/fmaf.texi: Mention the new module and the various
34553         bugs.
34555         Tests for module 'fma'.
34556         * modules/fma-tests: New file.
34557         * tests/test-fma1.c: New file.
34558         * tests/test-fma1.h: New file.
34559         * tests/test-fma2.c: New file.
34560         * tests/test-fma2.h: New file.
34562         New module 'fma'.
34563         * lib/math.in.h (fma): New declaration.
34564         * lib/fma.c: New file.
34565         * m4/fma.m4: New file.
34566         * m4/fegetround.m4: New file.
34567         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
34568         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
34569         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
34570         REPLACE_FMA.
34571         * modules/fma: New file.
34572         * doc/posix-functions/fma.texi: Mention the new module and the various
34573         bugs.
34575         Extend gl_MATHFUNC.
34576         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
34577         Support 'void' as argument type.
34578         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
34580 2011-11-05  Jim Meyering  <meyering@redhat.com>
34582         maint.mk: also prohibit inclusion of dirent.h without use
34583         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
34585 2011-11-05  Bruno Haible  <bruno@clisp.org>
34587         ldexpl tests: Avoid test failure on MSVC 9.
34588         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
34589         value. Needed in order to enforce the conversion from a value greater
34590         than LDBL_MAX to Infinity.
34592 2011-11-05  Bruno Haible  <bruno@clisp.org>
34594         New modules 'at-internal', 'openat-h', split off from module 'openat'.
34595         * modules/at-internal: New file, extracted from modules/openat.
34596         * modules/openat-h: New file.
34597         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
34598         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
34599         * modules/openat (Description): Add reference to POSIX function.
34600         (Files): Remove lib/openat.h, lib/openat-proc.c.
34601         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
34602         intprops, unistd.
34603         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
34604         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
34605         gl_FCNTL_MODULE_INDICATOR.
34606         (Include): Remove unistd.h, openat.h.
34607         * modules/areadlinkat (Files): Add lib/at-func.c.
34608         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
34609         openat-die, openat-h, save-cwd.
34610         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
34611         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
34612         openat-die, openat-h, save-cwd, unistd.
34613         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
34614         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
34615         openat-h, save-cwd. Remove fcntl-h, openat.
34616         * modules/fchmodat (Files): Remove lib/openat.h.
34617         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
34618         openat, stdbool, unistd.
34619         * modules/fchownat (Files): Remove lib/openat.h.
34620         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
34621         openat, stdbool, sys_stat.
34622         * modules/fdopendir (Files): Remove lib/openat-priv.h,
34623         lib/openat-proc.c.
34624         (Depends-on): Add at-internal.
34625         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
34626         * modules/fstatat (Files): Remove lib/openat.h.
34627         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
34628         stdbool, unistd.
34629         * modules/fts (Depends-on): Add openat-h.
34630         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
34631         openat.
34632         * modules/mkdirat (Files): Remove lib/openat.h.
34633         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
34634         openat, stdbool, sys_stat.
34635         * modules/mkfifoat (Files): Add lib/at-func.c.
34636         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
34637         openat-h, save-cwd. Remove fcntl-h, openat.
34638         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
34639         * modules/readlinkat (Files): Add lib/at-func.c.
34640         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
34641         openat-h, save-cwd. Remove fcntl-h, openat.
34642         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
34643         openat.
34644         * modules/selinux-at (Files): Add lib/at-func.c.
34645         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
34646         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
34647         * modules/symlinkat (Files): Add lib/at-func.c.
34648         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
34649         openat-h, save-cwd. Remove fcntl-h, openat.
34650         * modules/unlinkat (Files): Remove lib/openat.h.
34651         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
34652         stdbool.
34653         * modules/utimensat (Files): Add lib/at-func.c.
34654         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
34655         openat-die, openat-h, save-cwd.
34656         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
34657         * modules/fdutimensat-tests (Depends-on): Add openat.
34658         * modules/fstatat-tests (Depends-on): Add openat-h.
34659         * modules/readlinkat-tests (Depends-on): Add openat.
34660         * modules/symlinkat-tests (Depends-on): Add openat.
34662 2011-11-05  Bruno Haible  <bruno@clisp.org>
34664         openat: Include <stdbool.h>.
34665         * lib/openat.c: Include <stdbool.h>.
34667 2011-11-04  Bruno Haible  <bruno@clisp.org>
34669         fchownat, renameat, unlinkat: Fix dependencies.
34670         * modules/fchownat (Depends-on): Add fstatat.
34671         * modules/renameat (Depends-on): Likewise.
34672         * modules/unlinkat (Depends-on): Likewise.
34674 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
34676         openat: remove direct dependency on dirent
34677         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
34678         and hasn't been needed ever since fdopendir was split into its own
34679         module on 2009-08-31.
34680         * modules/openat (Depends-on): Remove dirent.
34682 2011-11-04  Bruno Haible  <bruno@clisp.org>
34684         renameat: Optimize code size.
34685         * modules/renameat (configure.ac): Don't compile at-func2.c if
34686         REPLACE_RENAMEAT is 1.
34688 2011-11-04  Bruno Haible  <bruno@clisp.org>
34690         openat tests: Fix file list.
34691         * modules/openat-tests (Files): Add tests/test-open.h.
34693 2011-11-04  Bruno Haible  <bruno@clisp.org>
34695         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
34696         * modules/fchmodat (Depends-on): Add openat-die.
34697         * modules/fchownat (Depends-on): Likewise.
34698         * modules/linkat (Depends-on): Likewise.
34699         * modules/renameat (Depends-on): Likewise.
34700         * modules/openat (Depends-on): Add dirent.
34702 2011-11-04  Jim Meyering  <meyering@redhat.com>
34704         at-func*.c: fix comments
34705         * lib/at-func2.c: Correct/improve first-line comment.
34706         * lib/at-func.c: Correct grammar in first-line comment.
34708 2011-11-04  Bruno Haible  <bruno@clisp.org>
34710         New module 'mkdirat', split off from module 'openat'.
34711         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
34712         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
34713         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
34714         * modules/mkdirat: New file, extracted from modules/openat.
34715         * modules/openat (Files): Remove lib/mkdirat.c.
34716         (Depends-on): Remove mkdir.
34717         (configure.ac): Remove AC_LIBOBJ of mkdirat.
34718         (Include): Remove <sys/stat.h>.
34719         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
34720         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
34721         tests/test-mkdir.h.
34722         (Depends-on): Remove ignore-value.
34723         (Makefile.am): Remove rules for test-mkdirat.
34724         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
34725         of module 'openat'.
34726         * NEWS: Mention the change.
34728 2011-11-04  Bruno Haible  <bruno@clisp.org>
34730         closedir: Avoid warning on mingw.
34731         * lib/closedir.c: Include <unistd.h>.
34733 2011-11-04  Bruno Haible  <bruno@clisp.org>
34735         New module 'fstatat', split off from module 'openat'.
34736         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
34737         defined.
34738         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
34739         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
34740         gl_FUNC_FSTATAT.
34741         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
34742         * modules/fstatat: New file, extracted from modules/openat.
34743         * modules/openat (Files): Remove lib/fstatat.c.
34744         (Depends-on): Remove lstat.
34745         (configure.ac): Remove AC_LIBOBJ of fstatat.
34746         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
34747         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
34748         tests/test-lstat.h, tests/test-stat.h.
34749         (Depends-on): Remove getcwd-lgpl.
34750         (Makefile.am): Remove rules for test-fstatat.
34751         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
34752         of module 'openat'.
34753         * NEWS: Mention the change.
34754         * modules/getcwd (Depends-on): Add fstatat.
34755         * modules/linkat (Depends-on): Likewise.
34756         * modules/mkfifoat-tests (Depends-on): Likewise.
34757         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
34759 2011-11-03  Bruno Haible  <bruno@clisp.org>
34761         New module 'unlinkat', split off from module 'openat'.
34762         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
34763         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
34764         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
34765         * modules/unlinkat: New file, extracted from modules/openat. Correct
34766         the dependency conditions.
34767         * modules/openat (Files): Remove lib/unlinkat.c.
34768         (Depends-on): Remove rmdir, unlink.
34769         (configure.ac): Remove AC_LIBOBJ of unlinkat.
34770         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
34771         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
34772         tests/test-rmdir.h, tests/test-unlink.h.
34773         (Depends-on): Remove unlinkdir.
34774         (Makefile.am): Remove rules for test-unlinkat.
34775         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
34776         of module 'openat'.
34777         * NEWS: Mention the change.
34778         * modules/linkat-tests (Depends-on): Add unlinkat.
34779         * modules/mkfifoat-tests (Depends-on): Likewise.
34780         * modules/readlinkat-tests (Depends-on): Likewise.
34782 2011-11-02  Bruno Haible  <bruno@clisp.org>
34784         New module 'fchmodat', split off from module 'openat'.
34785         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
34786         defined.
34787         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
34788         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
34789         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
34790         * modules/fchmodat: New file, extracted from modules/openat.
34791         * modules/openat (Files): Remove lib/fchmodat.c.
34792         (configure.ac): Remove AC_LIBOBJ of fchmodat.
34793         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
34794         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
34795         (Makefile.am): Remove rules for test-fchmodat.
34796         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
34797         of module 'openat'.
34798         * NEWS: Mention the change.
34800 2011-11-02  Jim Meyering  <meyering@redhat.com>
34802         putenv: indent #definition of "environ" to placate cppi
34803         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
34805         gitlog-to-changelog: provide a ChangeLog-repair mechanism
34806         Git logs are often treated as immutable, because editing them
34807         changes the SHA1 checksums of all descendants.  Thus, errors in
34808         git logs tend to stay there forever.  However, when we generate
34809         a ChangeLog file -- typically for distribution -- from that git log,
34810         we can actually make corrections in the generated file.  The key
34811         lies in recording in machine-readable/applicable form the desired
34812         corrections.  See --help for description and an example.
34813         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
34814         (usage): Describe it; alphabetize option descriptions.
34815         (main): Honor the new option, carefully.
34817 2011-11-01  Jim Meyering  <meyering@redhat.com>
34819         gitlog-to-changelog: avoid an infloop
34820         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
34821         that ends up being empty.
34823 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
34825         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
34826         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
34827         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
34828         contains (possibly-quoted) backslashes.  This should avoid
34829         all-too-common shell bugs if COMPLICATED contains backslashes in
34830         the "wrong" places.  Reported by David Evans in
34831         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00013.html>.
34832         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
34833         because we want ASCII ranges.  Is there some reason we don't use
34834         the C locale everywhere in this script?
34835         (func_module, top level): Avoid unwanted pathname expansion when
34836         $repo_url_prefix or $repo_url_suffix_repl contain shell
34837         metacharacters like '?' and '*'.
34839 2011-11-01  Bruno Haible  <bruno@clisp.org>
34841         fchownat: Improve description.
34842         * modules/fchownat (Description): Add link to function.
34844 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
34846         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
34847         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
34848         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00006.html>.
34849         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
34851 2011-11-01  Bruno Haible  <bruno@clisp.org>
34853         alignof: Avoid collision with stdalign module.
34854         * lib/alignof.h (alignof): Remove macro.
34855         * NEWS: Mention the change.
34856         Reported by Paul Eggert.
34858 2011-11-01  Bruno Haible  <bruno@clisp.org>
34860         New module 'fchownat', split off from module 'openat'.
34861         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
34862         defined.
34863         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
34864         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
34865         invoke gl_FUNC_FCHOWNAT.
34866         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
34867         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
34868         * modules/fchownat: New file, extracted from modules/openat.
34869         * modules/openat (Files): Remove lib/fchownat.c.
34870         (Depends-on): Remove lchown.
34871         (configure.ac): Remove AC_LIBOBJ of fchownat.
34872         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
34873         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
34874         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
34875         (Depends-on): Remove mgetgroups, usleep, stat-time.
34876         (configure.ac): Remove test for getegid.
34877         (Makefile.am): Remove rules for test-fchownat.
34878         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
34879         of module 'openat'.
34880         * NEWS: Mention the change.
34882 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
34884         stdalign: port better to MSVC and to Sun C 5.11
34885         This fixes some of the problems reported by Bruno Haible in
34886         <http://lists.gnu.org/r/bug-gnulib/2011-10/msg00300.html>.
34887         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
34888         shortcomings of MSVC and of Sun C 5.11.
34889         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
34890         around __declspec arg.
34891         * modules/stdalign-tests (Files): Add tests/macros.h.
34892         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
34893         Include macros.h, for ASSERT.
34894         (DECLARE_ALIGNED): Remove.
34895         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
34896         to catch bug), and to 1 if not (simplifies the rest of the code).
34897         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
34898         (CHECK_AUTO): Remove.
34899         (CHECK_ALIGNED): Check only the alignment of the static vars,
34900         since auto var alignment isn't supported by Sun C 5.11.
34901         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
34902         ASSERT failures are easier to diagnose.
34904 2011-10-31  Bruno Haible  <bruno@clisp.org>
34906         doc about some IRIX 5.3 problems.
34907         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
34908         on IRIX 5.3.
34909         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
34910         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
34911         5.3.
34912         * doc/posix-functions/grantpt.texi: Likewise.
34913         * doc/posix-functions/unlockpt.texi: Likewise.
34914         * doc/posix-functions/lgamma.texi: Likewise.
34915         * doc/posix-functions/nextafter.texi: Likewise.
34916         * doc/posix-functions/remainder.texi: Likewise.
34917         * doc/posix-functions/select.texi: Mention misplaced declaration on
34918         IRIX 5.3.
34919         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34921 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
34923         gitlog-to-changelog: fix git-log invocation.
34924         git-log mishandles date strings before 1970-01-01 UTC, and there is
34925         no use to specify --since=1970-01-01 by default anyway.
34926         * build-aux/gitlog-to-changelog: By default, when no --since option
34927         was given, do not specify explicit --since option to git-log.
34929 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
34931         gitlog-to-changelog: new option --append-dot.
34932         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
34933         first non-blank line of each commit message terminated with a dot.
34935 2011-10-30  Bruno Haible  <bruno@clisp.org>
34937         ffsl, ffsll: Avoid compilation error due to 'restrict'.
34938         * lib/ffsl.h: Include <config.h>.
34939         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
34941 2011-10-30  Jim Meyering  <meyering@redhat.com>
34943         GNUmakefile: reenable "make syntax-check" for most projects
34944         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
34945         build-aux variable", "syntax-check" would do nothing but succeed with
34946         the "No version control files detected..." diagnostic (unless you
34947         happened to override _build-aux via cfg.mk).
34948         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
34949         to precede inclusion of maint.mk.  Otherwise, these variables would
34950         be used undefined in any project that does not override the default.
34952 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
34954         gitlog-to-changelog: treat a message with only blank lines as empty.
34955         * build-aux/gitlog-to-changelog: Move the code that removes leading and
34956         trailing blank lines before the code that issues a warning about an
34957         empty commit message.
34959 2011-10-30  Jim Meyering  <meyering@redhat.com>
34961         test-parse-datetime.c: avoid new DST-related false positive test failure
34962         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
34963         based on the time/date we'll convert, not the current time.
34964         Otherwise, the moment we cross a DST boundary like today's in
34965         Europe, (CEST to CET), that offset ends up being one hour off.
34967 2011-10-27  Bruno Haible  <bruno@clisp.org>
34969         fstat: Tweak documentation.
34970         * modules/fstat (Description): More precise description.
34972 2011-10-27  Bruno Haible  <bruno@clisp.org>
34974         Update documentation regarding 'largefile' module.
34975         * doc/posix-functions/fstat.texi: Tweak wording.
34976         * doc/posix-functions/opendir.texi: Mention that the module fixes the
34977         problems with huge directories and/or small ino_t types.
34978         * doc/posix-functions/readdir.texi: Likewise.
34979         * doc/posix-functions/rewinddir.texi: Likewise.
34981 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
34983         maint.mk: don't maintain a second build-aux variable.
34984         * maint.mk (build_aux): Removed.  The maintainer-makefile module
34985         depends on GNUmakefile, which already maintains a cfg.mk
34986         overridable $(_build-aux) for projects with a non-standard
34987         build-aux directory location, although without the $(srcdir)
34988         prefix.  Use that variable consistently instead of introducing a
34989         second one.  Adjust all call sites.
34991 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
34993         Add stdalign module and use it in other modules.
34994         This is based on a previous proposal by Bruno Haible
34995         <https://lists.gnu.org/r/bug-gnulib/2011-07/msg00226.html>.
34997         stdalign: new module
34998         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
34999         * modules/stdalign: New files.
35000         * MODULES.html.sh (c1x_core_properties): Add stdalign.
35001         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
35003         stdalign-tests: new module
35004         * modules/stdalign-tests, tests/test-stdalign.c: New files.
35006         argp: use stdalign
35007         * lib/argp-parse.c: Include <stdalign.h>.
35008         (alignof): Remove.
35009         * modules/argp (Depends-on): Add stdalign.
35011         crypto libraries: use stdalign
35012         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
35013         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
35014         Do not include <stdlib.h> twice, in md4.c.
35015         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
35016         because we are accessing a pointer's bit-pattern, not a size.
35017         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
35018         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
35019         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
35020         * modules/crypto/sha512: Likewise.
35022         sys_socket: use stdalign, not alignof
35023         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
35024         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
35026 2011-10-27  Bruno Haible  <bruno@clisp.org>
35028         raise test: Avoid a test failure on Linux/MIPS.
35029         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
35030         because 99 is a valid signal on Linux/MIPS.
35032 2011-10-27  Bruno Haible  <bruno@clisp.org>
35034         nonblocking tests: Fix test failure on Linux/MIPS.
35035         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
35036         Set to 270000.
35038 2011-10-27  Bruno Haible  <bruno@clisp.org>
35040         utimensat: Work around problem on Linux/hppa.
35041         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
35042         values.
35043         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
35045 2011-10-25  Jim Meyering  <meyering@redhat.com>
35047         maint.mk: fix a bug in sc_prohibit_stddef_without_use
35048         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
35049         after symbols like NULL, size_t, etc.
35050         Reported by Alfred M. Szmidt.
35052         maint.mk: exempt ENODATA from a syntax-check rule
35053         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
35054         from the sc_prohibit_always-defined_macros syntax-check rule.
35055         Add a comment.  See this for more details:
35056         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
35058 2011-10-23  Jim Meyering  <meyering@redhat.com>
35060         fts: close parent dir FD before returning from post-traversal fts_read
35061         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
35062         unlink A, even though an FD open on A remained.  This is suboptimal
35063         (holding a file descriptor open longer than needed), but otherwise not
35064         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
35065         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
35066         that represents a real problem: it causes the removal of A to fail
35067         with e.g., "rm: cannot remove `A': Device or resource busy"
35069         fts visits each directory twice and keeps a cache (fts_fd_ring) of
35070         directory file descriptors.  After completing the final, FTS_DP,
35071         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
35072         cache, but then proceeded to add a new FD to it via the subsequent
35073         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
35074         final file descriptor would be closed only via fts_close's call to
35075         fd_ring_clear.  Now, it is usually closed earlier, via the final
35076         FTS_DP-returning fts_read call.
35077         * lib/fts.c (restore_initial_cwd): New function, converted from
35078         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
35079         Update callers.
35080         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
35081         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
35083 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
35084             Bruno Haible  <bruno@clisp.org>
35085             Jim Meyering  <jim@meyering.net>
35087         readme-release: improve safety of release prep instructions.
35088         * README-release: Don't git pull all branches when only master
35089         is needed for the release process.
35090         Run make maintainer-clean before changing trees and merging.
35091         Don't try to run ./configure right after git pull in case files
35092         that influence the bootstrap process have changed, move the
35093         ./configure step to after running ./bootstrap.
35094         Don't bootstrap "one last time"... it's the first time!
35096 2011-10-22  Bruno Haible  <bruno@clisp.org>
35098         errno, strerror-override: Support for MSVC 10.
35099         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
35100         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
35101         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
35102         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
35103         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
35104         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
35105         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
35106         Assign values compatible with MSVC 10.
35107         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
35108         New macros.
35109         (GNULIB_defined_EWINSOCK): New macro.
35110         * lib/strerror-override.c (strerror_override): Update accordingly.
35111         * lib/strerror-override.h: Likewise.
35112         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
35113         longer equal to the corresponding errno value.
35114         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
35116 2011-10-22  Bruno Haible  <bruno@clisp.org>
35118         perror: Recognize when test program crashes.
35119         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
35120         strerror, set gl_cv_func_perror_works to no.
35121         Reported by Daniel Richard G. <skunk@iskunk.org>.
35123         perror: Fix indentation.
35124         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
35126 2011-10-22  Bruno Haible  <bruno@clisp.org>
35128         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
35129         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
35130         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
35131         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
35132         functions, not as a macro.
35133         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
35134         macros.
35135         (isfinite, isinf, isnan, signbit): Check overloaded functions and
35136         absence of macro.
35137         Suggested by Eric Blake.
35138         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
35140 2011-10-21  Bruno Haible  <bruno@clisp.org>
35142         relocatable-prog-wrapper: Don't leave object files behind.
35143         * build-aux/install-reloc: Re-synchronize list of .o files to be
35144         removed with list of compilation units.
35146 2011-10-20  Bruno Haible  <bruno@clisp.org>
35148         openpty, posix_openpt: Remove code duplication.
35149         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
35150         * lib/openpty.c: Include <stdlib.h>.
35151         (openpty): Use posix_openpt on all platforms except IRIX.
35152         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
35154 2011-10-20  Bruno Haible  <bruno@clisp.org>
35156         unlockpt: Detect invalid argument.
35157         * lib/unlockpt.c: Include <fcntl.h>.
35158         (unlockpt): Check whether fd is valid, using fcntl().
35159         * modules/unlockpt (Depends-on): Add fcntl-h.
35161 2011-10-20  Bruno Haible  <bruno@clisp.org>
35163         openpty: Avoid compilation error on AIX 6.1.
35164         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
35166 2011-10-20  Bruno Haible  <bruno@clisp.org>
35168         posix_openpt: Support for OpenBSD.
35169         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
35170         (posix_openpt) [OpenBSD]: New code.
35171         * lib/grantpt.c: Include <fcntl.h>.
35172         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
35173         * modules/grantpt (Depends-on): Add fcntl-h.
35175 2011-10-20  Bruno Haible  <bruno@clisp.org>
35177         posix_openpt test: Coding style.
35178         * tests/test-posix_openpt.c: Use GNU coding style.
35180 2011-10-20  Bruno Haible  <bruno@clisp.org>
35182         grantpt: Support --avoid=pt_chown.
35183         * modules/grantpt (Files): Add lib/pty-private.h.
35185 2011-10-20  Bruno Haible  <bruno@clisp.org>
35187         posix_openpt: Fix autoconf macro.
35188         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
35189         unneeded check for _getpty.
35191 2011-10-20  Bruno Haible  <bruno@clisp.org>
35193         openpty: Update comments.
35194         * lib/openpty.c: Add comments about Minix.
35196 2011-10-19  Eric Blake  <eblake@redhat.com>
35198         openpty: relax license
35199         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
35201         pt_chown: use configmake to simplify build
35202         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
35204         ptsname and others: relax license
35205         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
35206         * modules/unlockpt (License): Likewise.
35207         * modules/pt_chown (License): Likewise.
35208         * modules/ptsname (License): Likewise.
35209         * modules/ttyname_r (License): Likewise.
35211 2011-10-19  Jim Meyering  <meyering@redhat.com>
35213         posix_openpt: remove spurious #endif
35214         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
35216 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
35218         maint.mk: Respect $(build_aux) in web-manual rule.
35219         * top/maint.mk (web-manual): Find gen-announce script in user's
35220         $(build_aux) directory instead of hard-coding 'build-aux'.
35222 2011-10-19  Bruno Haible  <bruno@clisp.org>
35224         posix_openpt: Fix compilation error.
35225         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
35226         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
35227         Mention the openpty module as an alternative.
35229 2011-10-19  Bruno Haible  <bruno@clisp.org>
35231         Support for old NeXTstep 3.3 frexp().
35232         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
35233         execution time of the test to 5 seconds.
35234         Reported by Daniel Richard G. <skunk@iskunk.org>.
35236 2011-10-19  Bruno Haible  <bruno@clisp.org>
35238         Support for old NeXTstep 3.3 sed.
35239         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
35240         part, use /.../, not \|...|. Escape periods in the header file name.
35241         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
35242         Reported by Daniel Richard G. <skunk@iskunk.org>.
35244 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
35246         Support for old NeXTstep 3.3 gcc.
35247         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
35248         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
35249         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
35250         * lib/spawn.in.h (_Restrict_arr_): Likewise.
35251         * lib/regex.h (_Restrict_arr_): Likewise.
35252         * lib/regex_internal.h (re_token_t): Likewise.
35253         * lib/regexec.c (check_node_accept_bytes): Likewise.
35254         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
35256 2011-10-18  Eric Blake  <eblake@redhat.com>
35258         posix_openpt: new module
35259         * modules/posix_openpt: New module.
35260         * m4/posix_openpt.m4: New file.
35261         * lib/posix_openpt.c: Likewise.
35262         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
35263         (gl_STDLIB_H_DEFAULTS): Set defaults.
35264         * modules/stdlib (Makefile.am): Substitute macros.
35265         * lib/stdlib.in.h (posix_openpt): Declare.
35266         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
35267         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
35268         * modules/posix_openpt-tests: New test module.
35269         * tests/test-posix_openpt.c: New test.
35271 2011-10-15  Bruno Haible  <bruno@clisp.org>
35273         xstrtoll: Fix compilation failure.
35274         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
35275         from lib/strtol.c.
35276         * doc/posix-headers/limits.texi: Mention missing numerical limits on
35277         some platforms.
35278         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35280 2011-10-15  Bruno Haible  <bruno@clisp.org>
35282         vasnprintf: Optimize bit search operation.
35283         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
35284         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
35285         gl_DOUBLE_EXPONENT_LOCATION.
35286         * modules/vasnprintf (Files): Add m4/exponentd.m4.
35287         * modules/unistdio/u8-vasnprintf (Files): Likewise.
35288         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
35289         * modules/unistdio/u16-vasnprintf (Files): Likewise.
35290         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
35291         * modules/unistdio/u32-vasnprintf (Files): Likewise.
35292         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
35293         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
35294         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
35296 2011-10-15  Bruno Haible  <bruno@clisp.org>
35298         vasnprintf: Fix comments.
35299         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
35301 2011-10-14  Bruno Haible  <bruno@clisp.org>
35303         Tests for module 'integer_length_ll'.
35304         * modules/integer_length_ll-tests: New file.
35305         * tests/test-integer_length_ll.c: New file.
35307         New module 'integer_length_ll'.
35308         * lib/integer_length_ll.c: New file.
35309         * modules/integer_length_ll: New file.
35311 2011-10-14  Bruno Haible  <bruno@clisp.org>
35313         Tests for module 'integer_length_l'.
35314         * modules/integer_length_l-tests: New file.
35315         * tests/test-integer_length_l.c: New file.
35317         New module 'integer_length_l'.
35318         * lib/integer_length_l.c: New file.
35319         * modules/integer_length_l: New file.
35321 2011-10-14  Bruno Haible  <bruno@clisp.org>
35323         Tests for module 'integer_length'.
35324         * modules/integer_length-tests: New file.
35325         * tests/test-integer_length.c: New file.
35327         New module 'integer_length'.
35328         * lib/integer_length.h: New file.
35329         * lib/integer_length.c: New file.
35330         * modules/integer_length: New file.
35332 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
35334         popen: Fix dependency conditions.
35335         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
35337 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
35339         perror: Fix autoconf test.
35340         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
35341         <stdlib.h> and <string.h>.
35343 2011-10-14  Bruno Haible  <bruno@clisp.org>
35345         ffsl: Optimize on 64-bit platforms.
35346         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
35347         unrolling.
35349 2011-10-13  Bruno Haible  <bruno@clisp.org>
35351         ffsl: Optimize on 32-bit platforms.
35352         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
35353         use ffs() without a loop.
35355         ffsl, ffsll: Optimize for GCC.
35356         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
35357         * lib/ffsl.c (GCC_BUILTIN): New macro.
35358         * lib/ffsll.c (GCC_BUILTIN): Likewise.
35360 2011-10-13  Bruno Haible  <bruno@clisp.org>
35362         ffs, bcopy, memset: Support symbol renaming via config.h.
35363         * lib/ffs.c: Include <config.h>.
35364         * lib/bcopy.c: Likewise.
35365         * lib/memset.c: Likewise.
35367 2011-10-10  Bruno Haible  <bruno@clisp.org>
35369         atanl: Simplify for platforms where 'long double' == 'double'.
35370         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
35371         alternative implementation.
35372         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
35373         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
35374         * modules/atanl (Depends-on): Add atan. Update conditions.
35376 2011-10-10  Bruno Haible  <bruno@clisp.org>
35378         acosl: Simplify for platforms where 'long double' == 'double'.
35379         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
35380         alternative implementation.
35381         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
35382         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
35383         * modules/acosl (Depends-on): Add acos. Update conditions.
35385 2011-10-10  Bruno Haible  <bruno@clisp.org>
35387         asinl: Simplify for platforms where 'long double' == 'double'.
35388         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
35389         alternative implementation.
35390         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
35391         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
35392         * modules/asinl (Depends-on): Add asin. Update conditions.
35394 2011-10-10  Bruno Haible  <bruno@clisp.org>
35396         tanl: Simplify for platforms where 'long double' == 'double'.
35397         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
35398         implementation.
35399         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
35400         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
35401         * modules/tanl (Depends-on): Add tan. Update conditions.
35402         (configure.ac): Don't compile trigl.c if
35403         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
35405 2011-10-10  Bruno Haible  <bruno@clisp.org>
35407         cosl: Simplify for platforms where 'long double' == 'double'.
35408         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
35409         implementation.
35410         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
35411         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
35412         * modules/cosl (Depends-on): Add cos. Update conditions.
35413         (configure.ac): Don't compile sincosl.c and trigl.c if
35414         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
35416 2011-10-10  Bruno Haible  <bruno@clisp.org>
35418         sinl: Simplify for platforms where 'long double' == 'double'.
35419         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
35420         implementation.
35421         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
35422         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
35423         * modules/sinl (Depends-on): Add sin. Update conditions.
35424         (configure.ac): Don't compile sincosl.c and trigl.c if
35425         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
35427 2011-10-10  Bruno Haible  <bruno@clisp.org>
35429         logl: Simplify for platforms where 'long double' == 'double'.
35430         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
35431         implementation.
35432         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
35433         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
35434         * modules/logl (Depends-on): Add log. Update conditions.
35436 2011-10-10  Bruno Haible  <bruno@clisp.org>
35438         expl: Simplify for platforms where 'long double' == 'double'.
35439         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
35440         implementation.
35441         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
35442         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
35443         * modules/expl (Depends-on): Add exp. Update conditions.
35445 2011-10-10  Bruno Haible  <bruno@clisp.org>
35447         sqrtl: Simplify for platforms where 'long double' == 'double'.
35448         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
35449         alternative implementation.
35450         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
35451         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
35452         * modules/sqrtl (Depends-on): Update conditions.
35454 2011-10-10  Bruno Haible  <bruno@clisp.org>
35456         ldexpl: Simplify for platforms where 'long double' == 'double'.
35457         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
35458         alternative implementation.
35459         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
35460         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
35461         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
35463 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
35465         ffsll: set correct witness
35466         * modules/ffsll (configure.ac): Fix typo.
35468 2011-10-10  Bruno Haible  <bruno@clisp.org>
35470         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
35471         * lib/printf-frexpl.c: Include <config.h>.
35472         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
35473         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
35474         second time.
35475         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
35476         gl_LONG_DOUBLE_VS_DOUBLE.
35477         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
35478         conditions.
35480 2011-10-10  Bruno Haible  <bruno@clisp.org>
35482         frexpl: Simplify for platforms where 'long double' == 'double'.
35483         * lib/frexpl.c: Include <config.h>.
35484         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
35485         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
35486         time.
35487         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
35488         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
35489         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
35490         * modules/frexpl (Depends-on): Add frexp. Update conditions.
35491         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
35492         conditions.
35494 2011-10-10  Jim Meyering  <meyering@redhat.com>
35496         test-renameat: don't leave behind a temporary file
35497         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
35498           ERROR: files left in build directory after distclean:
35499           ./gltests/test-renameat.too
35500           make[1]: *** [distcleancheck] Error 1
35501         Reported by Tom G. Christensen.
35503 2011-10-09  Bruno Haible  <bruno@clisp.org>
35505         rint: Determine RINT_LIBM correctly on AIX 7.
35506         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
35507         directly, not only through a function pointer. Also accept an optional
35508         4th argument with extra code.
35509         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
35510         rintf() call by gcc when optimizing.
35512         mathfunc.m4: Refactor.
35513         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
35514         m4 variable.
35516 2011-10-09  Bruno Haible  <bruno@clisp.org>
35518         rintl: Simplify for platforms where 'long double' == 'double'.
35519         * lib/rintl.c: Include <config.h>.
35520         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
35521         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
35522         time.
35523         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
35524         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
35525         * modules/rintl (Depends-on): Add rint. Update conditions.
35527 2011-10-09  Bruno Haible  <bruno@clisp.org>
35529         roundl: Simplify for platforms where 'long double' == 'double'.
35530         * lib/roundl.c: Include <config.h>.
35531         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
35532         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
35533         time.
35534         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
35535         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
35536         * modules/roundl (Depends-on): Add round. Update conditions.
35538 2011-10-09  Bruno Haible  <bruno@clisp.org>
35540         truncl: Simplify for platforms where 'long double' == 'double'.
35541         * lib/truncl.c: Include <config.h>.
35542         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
35543         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
35544         time.
35545         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
35546         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
35547         * modules/truncl (Depends-on): Add trunc. Update conditions.
35549 2011-10-09  Bruno Haible  <bruno@clisp.org>
35551         ceill: Simplify for platforms where 'long double' == 'double'.
35552         * lib/ceill.c: Include <config.h>.
35553         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
35554         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
35555         time.
35556         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
35557         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
35558         * modules/ceill (Depends-on): Add ceil. Update conditions.
35560 2011-10-09  Bruno Haible  <bruno@clisp.org>
35562         floorl: Simplify for platforms where 'long double' == 'double'.
35563         * lib/floorl.c: Include <config.h>.
35564         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
35565         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
35566         time.
35567         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
35568         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
35569         * modules/floorl (Depends-on): Add floor. Update conditions.
35571 2011-10-09  Bruno Haible  <bruno@clisp.org>
35573         rint: Fix ordering constraints.
35574         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
35575         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
35576         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
35578 2011-10-09  Bruno Haible  <bruno@clisp.org>
35580         copysignl: Simplify for platforms where 'long double' == 'double'.
35581         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
35582         alternative.
35583         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
35584         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
35585         * modules/copysignl (Depends-on): Add copysign. Update conditions.
35587 2011-10-09  Bruno Haible  <bruno@clisp.org>
35589         Tests for module 'rintl'.
35590         * modules/rintl-tests: New file.
35591         * tests/test-rintl.c: New file.
35593         New module 'rintl'.
35594         * lib/math.in.h (rintl): New declaration.
35595         * lib/rintl.c: New file.
35596         * m4/rintl.m4: New file.
35597         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
35598         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
35599         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
35600         * modules/rintl: New file.
35601         * tests/test-math-c++.cc: Check the declaration of rintl.
35602         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
35603         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
35604         * doc/posix-functions/rintl.texi: Mention the new module.
35606 2011-10-09  Bruno Haible  <bruno@clisp.org>
35608         Tests for module 'rintf'.
35609         * modules/rintf-tests: New file.
35610         * tests/test-rintf.c: New file.
35612         New module 'rintf'.
35613         * lib/math.in.h (rintf): New declaration.
35614         * lib/rintf.c: New file.
35615         * m4/rintf.m4: New file.
35616         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
35617         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
35618         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
35619         * modules/rintf: New file.
35620         * tests/test-math-c++.cc: Check the declaration of rintf.
35621         * doc/posix-functions/rintf.texi: Mention the new module.
35623 2011-10-09  Bruno Haible  <bruno@clisp.org>
35625         rint: Support for MSVC.
35626         * lib/math.in.h (rint): New declaration.
35627         * lib/rint.c: New file.
35628         * m4/rint.m4: New file.
35629         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
35630         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
35631         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
35632         * modules/rint (Description): Fix.
35633         (Files): Add lib/rint.c, m4/rint.m4.
35634         (Depends-on): Add math.
35635         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
35636         gl_MATH_MODULE_INDICATOR.
35637         * tests/test-math-c++.cc: Check the declaration of rint.
35638         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
35639         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
35640         * doc/posix-functions/rint.texi: Mention the replacement provided by
35641         the module.
35643         rint tests: More tests.
35644         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
35645         minus-zero.h, infinity.h, nan.h.
35646         (main): Skip the test if the current rounding mode is not standard. Add
35647         tests for negative numbers, minus zero, infinity, NaN.
35648         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
35649         tests/nan.h.
35650         (Depends-on): Add isnand-nolibm.
35652 2011-10-09  Bruno Haible  <bruno@clisp.org>
35654         Tests for module 'copysignl'.
35655         * modules/copysignl-tests: New file.
35656         * tests/test-copysignl.c: New file.
35658         New module 'copysignl'.
35659         * lib/math.in.h (copysignl): New declaration.
35660         * lib/copysignl.c: New file.
35661         * m4/copysignl.m4: New file.
35662         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
35663         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
35664         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
35665         HAVE_COPYSIGNL.
35666         * modules/copysignl: New file.
35667         * tests/test-math-c++.cc: Check the declaration of copysignl.
35668         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
35669         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
35670         * doc/posix-functions/copysignl.texi: Mention the new module.
35672 2011-10-09  Bruno Haible  <bruno@clisp.org>
35674         Tests for module 'copysignf'.
35675         * modules/copysignf-tests: New file.
35676         * tests/test-copysignf.c: New file.
35678         New module 'copysignf'.
35679         * lib/math.in.h (copysignf): New declaration.
35680         * lib/copysignf.c: New file.
35681         * m4/copysignf.m4: New file.
35682         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
35683         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
35684         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
35685         HAVE_COPYSIGNF.
35686         * modules/copysignf: New file.
35687         * tests/test-math-c++.cc: Check the declaration of copysignf.
35688         * doc/posix-functions/copysignf.texi: Mention the new module.
35690 2011-10-09  Bruno Haible  <bruno@clisp.org>
35692         Ensure that HAVE_* variables are set to 1 before they are set to 0.
35693         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
35694         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
35695         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
35696         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
35697         gl_SIGNAL_H_DEFAULTS.
35699 2011-10-09  Bruno Haible  <bruno@clisp.org>
35701         poll: Make macro safer.
35702         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
35703         ac_cv_header_poll_h is not set.
35705 2011-10-09  Bruno Haible  <bruno@clisp.org>
35707         copysign: Provide replacement.
35708         * lib/math.in.h (copysign): New declaration.
35709         * lib/copysign.c: New file.
35710         * m4/copysign.m4: New file.
35711         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
35712         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
35713         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
35714         HAVE_COPYSIGN.
35715         * modules/copysign (Description): Clarify.
35716         (Files): Add lib/copysign.c, m4/copysign.m4.
35717         (Depends-on): Add math, signbit.
35718         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
35719         gl_MATH_MODULE_INDICATOR.
35720         * tests/test-math-c++.cc: Check the declaration of copysign.
35721         * doc/posix-functions/copysign.texi: Mention the effects of the module
35722         on Minix and MSVC.
35724 2011-10-09  Bruno Haible  <bruno@clisp.org>
35726         isinf: Ensure macro on AIX 5.1.
35727         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
35728         macro.
35729         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
35731 2011-10-09  Bruno Haible  <bruno@clisp.org>
35733         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
35734         * modules/snprintf-posix-tests (configure.ac): Require
35735         gl_LONG_DOUBLE_VS_DOUBLE.
35736         * modules/sprintf-posix-tests (configure.ac): Likewise.
35737         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
35738         * modules/vasprintf-posix-tests (configure.ac): Likewise.
35739         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
35740         * modules/vsprintf-posix-tests (configure.ac): Likewise.
35741         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
35742         tests on platforms where 'long double' is the same as 'double'.
35743         * tests/test-sprintf-posix.h (test_function): Likewise.
35744         * tests/test-vasnprintf-posix.c (test_function): Likewise.
35745         * tests/test-vasprintf-posix.c (test_function): Likewise.
35747         *printf: Fix for platforms where 'long double' == 'double'.
35748         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
35749         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
35750         * modules/dprintf-posix (Files): Add m4/math_h.m4.
35751         * modules/fprintf-posix (Files): Likewise.
35752         * modules/obstack-printf-posix (Files): Likewise.
35753         * modules/snprintf-posix (Files): Likewise.
35754         * modules/sprintf-posix (Files): Likewise.
35755         * modules/vasnprintf (Files): Likewise.
35756         * modules/vasnprintf-posix (Files): Likewise.
35757         * modules/vasprintf-posix (Files): Likewise.
35758         * modules/vdprintf-posix (Files): Likewise.
35759         * modules/vfprintf-posix (Files): Likewise.
35760         * modules/vsnprintf-posix (Files): Likewise.
35761         * modules/vsprintf-posix (Files): Likewise.
35762         * modules/unistdio/u8-vasnprintf (Files): Likewise.
35763         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
35764         * modules/unistdio/u16-vasnprintf (Files): Likewise.
35765         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
35766         * modules/unistdio/u32-vasnprintf (Files): Likewise.
35767         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
35768         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
35770         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
35771         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
35772         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
35773         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
35774         'long double'.
35775         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
35777         isinf: Fix for platforms where 'long double' == 'double'.
35778         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
35779         Don't blindly assume 80-bit 'long double'.
35781         isfinite: Fix for platforms where 'long double' == 'double'.
35782         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
35783         Don't blindly assume 80-bit 'long double'.
35785         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
35786         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
35787         * modules/isfinite-tests (configure.ac): Require
35788         gl_LONG_DOUBLE_VS_DOUBLE.
35789         * modules/isinf-tests (configure.ac): Likewise.
35790         * modules/isnan-tests (configure.ac): Likewise.
35791         * modules/isnanl-tests (configure.ac): Likewise.
35792         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
35793         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
35794         tests on platforms where 'long double' is the same as 'double'.
35795         * tests/test-isinf.c (test_isinfl): Likewise.
35796         * tests/test-isnan.c (test_long_double): Likewise.
35797         * tests/test-isnanl.h (main): Likewise.
35799 2011-10-08  Bruno Haible  <bruno@clisp.org>
35801         Tests for module 'tanhf'.
35802         * modules/tanhf-tests: New file.
35803         * tests/test-tanhf.c: New file.
35805         New module 'tanhf'.
35806         * lib/math.in.h (tanhf): New declaration.
35807         * lib/tanhf.c: New file.
35808         * m4/tanhf.m4: New file.
35809         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
35810         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
35811         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
35812         * modules/tanhf: New file.
35813         * tests/test-math-c++.cc: Check the declaration of tanhf.
35814         * doc/posix-functions/tanhf.texi: Mention the new module.
35816         tanh: Use a .m4 file.
35817         * m4/tanh.m4: New file.
35818         * modules/tanh (Files): Add it.
35819         (configure.ac): Just invoke gl_FUNC_TANH.
35821 2011-10-08  Bruno Haible  <bruno@clisp.org>
35823         Tests for module 'coshf'.
35824         * modules/coshf-tests: New file.
35825         * tests/test-coshf.c: New file.
35827         New module 'coshf'.
35828         * lib/math.in.h (coshf): New declaration.
35829         * lib/coshf.c: New file.
35830         * m4/coshf.m4: New file.
35831         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
35832         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
35833         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
35834         * modules/coshf: New file.
35835         * tests/test-math-c++.cc: Check the declaration of coshf.
35836         * doc/posix-functions/coshf.texi: Mention the new module.
35838         cosh: Use a .m4 file.
35839         * m4/cosh.m4: New file.
35840         * modules/cosh (Files): Add it.
35841         (configure.ac): Just invoke gl_FUNC_COSH.
35843 2011-10-08  Bruno Haible  <bruno@clisp.org>
35845         Tests for module 'sinhf'.
35846         * modules/sinhf-tests: New file.
35847         * tests/test-sinhf.c: New file.
35849         New module 'sinhf'.
35850         * lib/math.in.h (sinhf): New declaration.
35851         * lib/sinhf.c: New file.
35852         * m4/sinhf.m4: New file.
35853         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
35854         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
35855         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
35856         * modules/sinhf: New file.
35857         * tests/test-math-c++.cc: Check the declaration of sinhf.
35858         * doc/posix-functions/sinhf.texi: Mention the new module.
35860         sinh: Use a .m4 file.
35861         * m4/sinh.m4: New file.
35862         * modules/sinh (Files): Add it.
35863         (configure.ac): Just invoke gl_FUNC_SINH.
35865 2011-10-08  Bruno Haible  <bruno@clisp.org>
35867         Tests for module 'atan2f'.
35868         * modules/atan2f-tests: New file.
35869         * tests/test-atan2f.c: New file.
35871         New module 'atan2f'.
35872         * lib/math.in.h (atan2f): New declaration.
35873         * lib/atan2f.c: New file.
35874         * m4/atan2f.m4: New file.
35875         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
35876         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
35877         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
35878         * modules/atan2f: New file.
35879         * tests/test-math-c++.cc: Check the declaration of atan2f.
35880         * doc/posix-functions/atan2f.texi: Mention the new module.
35882         atan2: Use a .m4 file.
35883         * m4/atan2.m4: New file.
35884         * modules/atan2 (Files): Add it.
35885         (configure.ac): Just invoke gl_FUNC_ATAN2.
35887 2011-10-08  Bruno Haible  <bruno@clisp.org>
35889         Tests for module 'atanf'.
35890         * modules/atanf-tests: New file.
35891         * tests/test-atanf.c: New file.
35893         New module 'atanf'.
35894         * lib/math.in.h (atanf): New declaration.
35895         * lib/atanf.c: New file.
35896         * m4/atanf.m4: New file.
35897         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
35898         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
35899         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
35900         * modules/atanf: New file.
35901         * tests/test-math-c++.cc: Check the declaration of atanf.
35902         * doc/posix-functions/atanf.texi: Mention the new module.
35904         atan: Use a .m4 file.
35905         * m4/atan.m4: New file.
35906         * modules/atan (Files): Add it.
35907         (configure.ac): Just invoke gl_FUNC_ATAN.
35909 2011-10-08  Bruno Haible  <bruno@clisp.org>
35911         Tests for module 'acosf'.
35912         * modules/acosf-tests: New file.
35913         * tests/test-acosf.c: New file.
35915         New module 'acosf'.
35916         * lib/math.in.h (acosf): New declaration.
35917         * lib/acosf.c: New file.
35918         * m4/acosf.m4: New file.
35919         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
35920         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
35921         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
35922         * modules/acosf: New file.
35923         * tests/test-math-c++.cc: Check the declaration of acosf.
35924         * doc/posix-functions/acosf.texi: Mention the new module.
35926         acos: Use a .m4 file.
35927         * m4/acos.m4: New file.
35928         * modules/acos (Files): Add it.
35929         (configure.ac): Just invoke gl_FUNC_ACOS.
35931 2011-10-08  Bruno Haible  <bruno@clisp.org>
35933         Tests for module 'asinf'.
35934         * modules/asinf-tests: New file.
35935         * tests/test-asinf.c: New file.
35937         New module 'asinf'.
35938         * lib/math.in.h (asinf): New declaration.
35939         * lib/asinf.c: New file.
35940         * m4/asinf.m4: New file.
35941         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
35942         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
35943         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
35944         * modules/asinf: New file.
35945         * tests/test-math-c++.cc: Check the declaration of asinf.
35946         * doc/posix-functions/asinf.texi: Mention the new module.
35948         asin: Use a .m4 file.
35949         * m4/asin.m4: New file.
35950         * modules/asin (Files): Add it.
35951         (configure.ac): Just invoke gl_FUNC_ASIN.
35953 2011-10-08  Bruno Haible  <bruno@clisp.org>
35955         Tests for module 'tanf'.
35956         * modules/tanf-tests: New file.
35957         * tests/test-tanf.c: New file.
35959         New module 'tanf'.
35960         * lib/math.in.h (tanf): New declaration.
35961         * lib/tanf.c: New file.
35962         * m4/tanf.m4: New file.
35963         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
35964         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
35965         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
35966         * modules/tanf: New file.
35967         * tests/test-math-c++.cc: Check the declaration of tanf.
35968         * doc/posix-functions/tanf.texi: Mention the new module.
35970         tan: Use a .m4 file.
35971         * m4/tan.m4: New file.
35972         * modules/tan (Files): Add it.
35973         (configure.ac): Just invoke gl_FUNC_TAN.
35975 2011-10-08  Bruno Haible  <bruno@clisp.org>
35977         Tests for module 'cosf'.
35978         * modules/cosf-tests: New file.
35979         * tests/test-cosf.c: New file.
35981         New module 'cosf'.
35982         * lib/math.in.h (cosf): New declaration.
35983         * lib/cosf.c: New file.
35984         * m4/cosf.m4: New file.
35985         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
35986         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
35987         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
35988         * modules/cosf: New file.
35989         * tests/test-math-c++.cc: Check the declaration of cosf.
35990         * doc/posix-functions/cosf.texi: Mention the new module.
35992         cos: Use a .m4 file.
35993         * m4/cos.m4: New file.
35994         * modules/cos (Files): Add it.
35995         (configure.ac): Just invoke gl_FUNC_COS.
35997 2011-10-08  Bruno Haible  <bruno@clisp.org>
35999         Tests for module 'sinf'.
36000         * modules/sinf-tests: New file.
36001         * tests/test-sinf.c: New file.
36003         New module 'sinf'.
36004         * lib/math.in.h (sinf): New declaration.
36005         * lib/sinf.c: New file.
36006         * m4/sinf.m4: New file.
36007         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
36008         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
36009         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
36010         * modules/sinf: New file.
36011         * tests/test-math-c++.cc: Check the declaration of sinf.
36012         * doc/posix-functions/sinf.texi: Mention the new module.
36014         sin: Use a .m4 file.
36015         * m4/sin.m4: New file.
36016         * modules/sin (Files): Add it.
36017         (configure.ac): Just invoke gl_FUNC_SIN.
36019 2011-10-08  Bruno Haible  <bruno@clisp.org>
36021         Tests for module 'powf'.
36022         * modules/powf-tests: New file.
36023         * tests/test-powf.c: New file.
36025         New module 'powf'.
36026         * lib/math.in.h (powf): New declaration.
36027         * lib/powf.c: New file.
36028         * m4/powf.m4: New file.
36029         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
36030         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
36031         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
36032         * modules/powf: New file.
36033         * tests/test-math-c++.cc: Check the declaration of powf.
36034         * doc/posix-functions/powf.texi: Mention the new module.
36036         pow: Use a .m4 file.
36037         * m4/pow.m4: New file.
36038         * modules/pow (Files): Add it.
36039         (configure.ac): Just invoke gl_FUNC_POW.
36041 2011-10-08  Bruno Haible  <bruno@clisp.org>
36043         Tests for module 'log10f'.
36044         * modules/log10f-tests: New file.
36045         * tests/test-log10f.c: New file.
36047         New module 'log10f'.
36048         * lib/math.in.h (log10f): New declaration.
36049         * lib/log10f.c: New file.
36050         * m4/log10f.m4: New file.
36051         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
36052         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
36053         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
36054         * modules/log10f: New file.
36055         * tests/test-math-c++.cc: Check the declaration of log10f.
36056         * doc/posix-functions/log10f.texi: Mention the new module.
36058         log10: Use a .m4 file.
36059         * m4/log10.m4: New file.
36060         * modules/log10 (Files): Add it.
36061         (configure.ac): Just invoke gl_FUNC_LOG10.
36063 2011-10-08  Bruno Haible  <bruno@clisp.org>
36065         Tests for module 'logf'.
36066         * modules/logf-tests: New file.
36067         * tests/test-logf.c: New file.
36069         New module 'logf'.
36070         * lib/math.in.h (logf): New declaration.
36071         * lib/logf.c: New file.
36072         * m4/logf.m4: New file.
36073         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
36074         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
36075         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
36076         * modules/logf: New file.
36077         * tests/test-math-c++.cc: Check the declaration of logf.
36078         * doc/posix-functions/logf.texi: Mention the new module.
36080         log: Use a .m4 file.
36081         * m4/log.m4: New file.
36082         * modules/log (Files): Add it.
36083         (configure.ac): Just invoke gl_FUNC_LOG.
36085 2011-10-08  Bruno Haible  <bruno@clisp.org>
36087         Tests for module 'expf'.
36088         * modules/expf-tests: New file.
36089         * tests/test-expf.c: New file.
36091         New module 'expf'.
36092         * lib/math.in.h (expf): New declaration.
36093         * lib/expf.c: New file.
36094         * m4/expf.m4: New file.
36095         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
36096         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
36097         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
36098         * modules/expf: New file.
36099         * tests/test-math-c++.cc: Check the declaration of expf.
36100         * doc/posix-functions/expf.texi: Mention the new module.
36102         exp: Use a .m4 file.
36103         * m4/exp.m4: New file.
36104         * modules/exp (Files): Add it.
36105         (configure.ac): Just invoke gl_FUNC_EXP.
36107 2011-10-08  Bruno Haible  <bruno@clisp.org>
36109         Tests for module 'sqrtf'.
36110         * modules/sqrtf-tests: New file.
36111         * tests/test-sqrtf.c: New file.
36113         New module 'sqrtf'.
36114         * lib/math.in.h (sqrtf): New declaration.
36115         * lib/sqrtf.c: New file.
36116         * m4/sqrtf.m4: New file.
36117         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
36118         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
36119         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
36120         * modules/sqrtf: New file.
36121         * tests/test-math-c++.cc: Check the declaration of sqrtf.
36122         * doc/posix-functions/sqrtf.texi: Mention the new module.
36124 2011-10-08  Bruno Haible  <bruno@clisp.org>
36126         Tests: Avoid link failures w.r.t. libintl.
36127         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
36128         $(LIBINTL).
36129         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
36130         $(LIBINTL).
36131         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
36132         against $(LIBINTL).
36133         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
36134         $(LIBINTL).
36135         * modules/openat-tests (Makefile.am): Link test-fchmodat against
36136         $(LIBINTL).
36137         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
36139 2011-10-08  Bruno Haible  <bruno@clisp.org>
36141         pow tests: Defeat compiler optimizations.
36142         * tests/test-pow.c (main): Assign arguments to x and y before use.
36144 2011-10-08  Bruno Haible  <bruno@clisp.org>
36146         gnulib-tool: Improve last commit.
36147         * gnulib-tool (func_modules_transitive_closure): Simplify code.
36148         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
36149         ignore dependencies that are not among the modules list.
36151 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
36153         gnulib-tool: don't follow dependencies to avoided modules
36154         This fixes a bug that is related to the previous one.
36155         * gnulib-tool (func_modules_transitive_closure)
36156         (func_emit_autoconf_snippets):
36157         Check whether a dependency is acceptable before using it.
36158         (--extract-dependencies): Report an error if --avoid is also used,
36159         since this combination of options is not yet supported.
36161         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
36162         Problem reported by Peter Dyballa in
36163         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
36164         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
36165         when echoing "$condition".
36167 2011-10-07  Bruno Haible  <bruno@clisp.org>
36169         Fix documentation about math functions on MacOS X.
36170         * doc/posix-functions/exp2.texi: Don't say the function is missing on
36171         MacOS X 10.5.
36172         * doc/posix-functions/fdim.texi: Likewise.
36173         * doc/posix-functions/feclearexcept.texi: Likewise.
36174         * doc/posix-functions/fegetenv.texi: Likewise.
36175         * doc/posix-functions/fegetround.texi: Likewise.
36176         * doc/posix-functions/feholdexcept.texi: Likewise.
36177         * doc/posix-functions/feraiseexcept.texi: Likewise.
36178         * doc/posix-functions/fesetenv.texi: Likewise.
36179         * doc/posix-functions/fesetround.texi: Likewise.
36180         * doc/posix-functions/fetestexcept.texi: Likewise.
36181         * doc/posix-functions/feupdateenv.texi: Likewise.
36182         * doc/posix-functions/fmax.texi: Likewise.
36183         * doc/posix-functions/fmin.texi: Likewise.
36184         * doc/posix-functions/log2.texi: Likewise.
36185         * doc/posix-functions/modff.texi: Likewise.
36186         * doc/posix-functions/nan.texi: Likewise.
36187         * doc/posix-functions/nanf.texi: Likewise.
36188         * doc/posix-functions/nextafterf.texi: Likewise.
36189         * doc/posix-functions/remquo.texi: Likewise.
36191 2011-10-07  Bruno Haible  <bruno@clisp.org>
36193         modff: Drop assumption about library that defines modff.
36194         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
36195         AC_CHECK_FUNCS.
36196         * modules/modff (Files): Add m4/mathfunc.m4.
36198 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
36200         raise tests: Avoid a GCC warning.
36201         * tests/test-raise.c (handler): Use _Noreturn.
36203 2011-10-07  Bruno Haible  <bruno@clisp.org>
36205         Tests for module 'ldexpf'.
36206         * modules/ldexpf-tests: New file.
36207         * tests/test-ldexpf.c: New file.
36209         New module 'ldexpf'.
36210         * lib/math.in.h (ldexpf): New declaration.
36211         * lib/ldexpf.c: New file.
36212         * m4/ldexpf.m4: New file.
36213         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
36214         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
36215         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
36216         * modules/ldexpf: New file.
36217         * tests/test-math-c++.cc: Check the declaration of ldexpf.
36218         * doc/posix-functions/ldexpf.texi: Mention the new module.
36220 2011-10-06  Bruno Haible  <bruno@clisp.org>
36222         frexpf: Work around problems on IRIX and mingw.
36223         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
36224         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
36225         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
36226         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
36227         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
36228         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
36229         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
36231 2011-10-06  Bruno Haible  <bruno@clisp.org>
36233         fabsf: Drop assumption about library that defines fabsf.
36234         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
36235         AC_CHECK_FUNCS.
36236         * modules/fabsf (Files): Add m4/mathfunc.m4.
36238 2011-10-06  Bruno Haible  <bruno@clisp.org>
36240         frexpf: Drop assumption about library that defines frexpf.
36241         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
36242         'int *', 'float *', 'long double *', 'float', 'long double'.
36243         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
36244         AC_CHECK_FUNCS.
36245         * modules/frexpf (Files): Add m4/mathfunc.m4.
36247         Tests for module 'frexpf'.
36248         * modules/frexpf-tests: New file.
36249         * tests/test-frexpf.c: New file.
36251         New module 'frexpf'.
36252         * lib/math.in.h (frexpf): New declaration.
36253         * lib/frexpf.c: New file.
36254         * m4/frexpf.m4: New file.
36255         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
36256         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
36257         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
36258         * modules/frexpf: New file.
36259         * tests/test-math-c++.cc: Check the declaration of frexpf.
36260         * doc/posix-functions/frexpf.texi: Mention the new module.
36262 2011-10-06  Bruno Haible  <bruno@clisp.org>
36264         math: Sort function declarations of math.in.h.
36265         * lib/math.in.h (frexp, logb): Move declarations.
36267 2011-10-05  Bruno Haible  <bruno@clisp.org>
36269         Tests for module 'modff'.
36270         * modules/modff-tests: New file.
36271         * tests/test-modff.c: New file.
36273         New module 'modff'.
36274         * lib/math.in.h (modff): New declaration.
36275         * lib/modff.c: New file.
36276         * m4/modff.m4: New file.
36277         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
36278         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
36279         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
36280         * modules/modff: New file.
36281         * tests/test-math-c++.cc: Check the declaration of modff.
36282         * doc/posix-functions/modff.texi: Mention the new module.
36284         modf tests: Make test sharper.
36285         * tests/test-modf.c (main): Strengthen upper bound.
36287         modf: Use a .m4 file.
36288         * m4/modf.m4: New file.
36289         * modules/modf (Files): Add it.
36290         (configure.ac): Just invoke gl_FUNC_MODF.
36292 2011-10-05  Bruno Haible  <bruno@clisp.org>
36294         Tests for module 'fmodf'.
36295         * modules/fmodf-tests: New file.
36296         * tests/test-fmodf.c: New file.
36298         New module 'fmodf'.
36299         * lib/math.in.h (fmodf): New declaration.
36300         * lib/fmodf.c: New file.
36301         * m4/fmodf.m4: New file.
36302         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
36303         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
36304         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
36305         * modules/fmodf: New file.
36306         * tests/test-math-c++.cc: Check the declaration of fmodf.
36307         * doc/posix-functions/fmodf.texi: Mention the new module.
36309         fmod: Use a .m4 file.
36310         * m4/fmod.m4: New file.
36311         * modules/fmod (Files): Add it.
36312         (configure.ac): Just invoke gl_FUNC_FMOD.
36314 2011-10-05  Bruno Haible  <bruno@clisp.org>
36316         Tests for module 'fabsf'.
36317         * modules/fabsf-tests: New file.
36318         * tests/test-fabsf.c: New file.
36320         New module 'fabsf'.
36321         * lib/math.in.h (fabsf): New declaration.
36322         * lib/fabsf.c: New file.
36323         * m4/fabsf.m4: New file.
36324         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
36325         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
36326         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
36327         * modules/fabsf: New file.
36328         * tests/test-math-c++.cc: Check the declaration of fabsf.
36329         * doc/posix-functions/fabsf.texi: Mention the new module.
36331         fabs: Use a .m4 file.
36332         * m4/fabs.m4: New file.
36333         * modules/fabs (Files): Add it.
36334         (configure.ac): Just invoke gl_FUNC_FABS.
36336 2011-10-05  Jim Meyering  <meyering@redhat.com>
36338         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
36339         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
36340         ls -lL regression introduced in coreutils-8.12, it does so at the
36341         cost of an additional stat call in the common case.  Besides, now
36342         that the kernel change that prompted commit 95f7c57f has been reverted
36343         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
36344         we have no use for commit 95f7c57f, "file-has-acl: use
36345         acl_extended_file_nofollow if available".
36347 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
36349         file-has-acl: revert unintended change in behavior of ls -L
36350         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
36351         derived from...
36352         (file_has_acl): ...code here.  Call it.
36353         This problem was introduced with 2011-07-22 commit 95f7c57f,
36354         "file-has-acl: use acl_extended_file_nofollow if available".
36355         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
36357 2011-10-03  Bruno Haible  <bruno@clisp.org>
36359         poll: Avoid link errors on MSVC.
36360         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
36361         * modules/poll (Depends-on): Add sockets.
36362         (Link): New section.
36363         * NEWS: Mention the change.
36364         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
36365         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
36366         $(LIB_POLL) instead of $(LIBSOCKET).
36368 2011-10-03  Bruno Haible  <bruno@clisp.org>
36370         sys_select tests: Fix link error on MSVC 9.
36371         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
36372         with $(LIB_SELECT) instead of $(LIBSOCKET).
36374 2011-10-03  Bruno Haible  <bruno@clisp.org>
36376         sys_select: Fix compilation error on mingw.
36377         * lib/sys_select.in.h: On native Windows, include <io.h>.
36379 2011-10-03  Bruno Haible  <bruno@clisp.org>
36381         wmemset: Support for MSVC.
36382         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
36383         whether wmemset() exists.
36385 2011-10-03  Bruno Haible  <bruno@clisp.org>
36387         wmemmove: Support for MSVC.
36388         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
36389         whether wmemmove() exists.
36391 2011-10-03  Bruno Haible  <bruno@clisp.org>
36393         wmemcpy: Support for MSVC.
36394         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
36395         whether wmemcpy() exists.
36397 2011-10-03  Bruno Haible  <bruno@clisp.org>
36399         wmemcmp: Support for MSVC.
36400         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
36401         whether wmemcmp() exists.
36403 2011-10-03  Bruno Haible  <bruno@clisp.org>
36405         wmemchr: Support for MSVC.
36406         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
36407         whether wmemchr() exists.
36409 2011-10-03  Bruno Haible  <bruno@clisp.org>
36411         glthread/*, strsignal: Support for MSVC.
36412         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
36413         including <winsock.h> on MSVC 9.
36414         * lib/glthread/lock.h: Likewise.
36415         * lib/glthread/thread.h: Likewise.
36416         * lib/glthread/tls.h: Likewise.
36417         * lib/glthread/yield.h: Likewise.
36418         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
36419         if HAVE_UNISTD_H is false.
36420         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
36422 2011-10-03  Bruno Haible  <bruno@clisp.org>
36424         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
36425         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
36426         Set to 100000.
36428 2011-10-03  Bruno Haible  <bruno@clisp.org>
36430         acl: Fix specification.
36431         * lib/file-has-acl.c (file_has_acl): Fix specification.
36433 2011-10-03  Bruno Haible  <bruno@clisp.org>
36435         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
36436         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
36437         (compute_curr_prefix, shared_library_fullname,
36438         find_shared_library_fullname, get_shared_library_fullname, relocate):
36439         Use it together with PIC && INSTALLDIR.
36440         Reported by <jojelino@gmail.com>
36441         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
36443 2011-10-01  Jim Meyering  <meyering@redhat.com>
36445         maint.mk: adjust a release-related rule not to require use of gzip
36446         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
36447         Instead, check each file in $(DIST_ARCHIVES).  This is better for
36448         projects that build only .tar.xz files.  Also fix an erroneous test.
36450         test-linkat: don't leave behind a temporary file
36451         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
36452         Otherwise, coreutils' "make distcheck" would fail with this:
36453           Only in /c/cu/tests/torture/coreutils/test/\
36454             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
36455           make[2]: *** [my-distcheck] Error 1
36457         float, math: add omitted file
36458         * lib/itold.c: Add file, required for yesterday's float change.
36460 2011-10-01  Bruno Haible  <bruno@clisp.org>
36462         isinf: Fix for OpenBSD/x86.
36463         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
36464         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
36465         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
36467 2011-10-01  Bruno Haible  <bruno@clisp.org>
36469         isfinite: Fix syntax error in configure test.
36470         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
36472         isfinite: Fix typo.
36473         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
36474         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
36476 2011-10-01  Bruno Haible  <bruno@clisp.org>
36478         nonblocking tests: Fix test failure on Linux/IA-64.
36479         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
36480         Set to 270000.
36482 2011-10-01  Bruno Haible  <bruno@clisp.org>
36484         mkfifoat tests: Fix a test failure on mingw.
36485         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
36486         with error ENOSYS.
36488 2011-09-30  Bruno Haible  <bruno@clisp.org>
36490         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
36491         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
36492         'long double'. Set REPLACE_ITOLD.
36493         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
36494         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
36495         * lib/itold.c: New file.
36496         * modules/float (Files): Add lib/itold.c.
36497         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
36498         (Makefile.am): Substitute REPLACE_ITOLD.
36499         * modules/math (Depends-on): Add float.
36500         (Makefile.am): Substitute REPLACE_ITOLD.
36501         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
36502         * doc/posix-headers/math.texi: Likewise.
36503         * doc/posix-functions/logl.texi: Likewise.
36505 2011-09-30  Bruno Haible  <bruno@clisp.org>
36507         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
36508         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
36509         Set to 140000.
36511 2011-09-30  Bruno Haible  <bruno@clisp.org>
36513         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
36514         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
36515         invocation, say "right after AC_PROG_CC_STDC", not "right after
36516         AC_PROG_CC".
36517         Reported by Gary V. Vaughan <gary@gnu.org>.
36519 2011-09-30  Bruno Haible  <bruno@clisp.org>
36521         Centralize C99 requirement.
36522         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
36523         * modules/stdarg (configure.ac-early): Invoke it instead of
36524         AC_PROG_CC_STDC.
36525         Reported by Gary V. Vaughan and Paul Eggert.
36527 2011-09-29  Bruno Haible  <bruno@clisp.org>
36529         float: Fix LDBL_MAX value on Linux/PowerPC.
36530         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
36531         on Linux/PowerPC.
36532         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
36533         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
36534         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
36535         platform.
36536         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
36538 2011-09-29  Bruno Haible  <bruno@clisp.org>
36540         doc: Improve doc about gl_EARLY.
36541         * doc/gnulib-tool.texi (Initial import): Mention where to place an
36542         AC_PROG_CC_STDC invocation.
36543         Reported by Gary V. Vaughan <gary@gnu.org>.
36545 2011-09-28  Bruno Haible  <bruno@clisp.org>
36547         fgetc, fputc, fread, fwrite tests: Fix link error.
36548         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
36549         on non-MSVC platforms.
36550         * tests/test-fputc.c (main): Likewise.
36551         * tests/test-fread.c (main): Likewise.
36552         * tests/test-fwrite.c (main): Likewise.
36553         Reported by Jim Meyering.
36555 2011-09-27  Bruno Haible  <bruno@clisp.org>
36557         fputc, fwrite tests: Avoid test failure on MSVC.
36558         * tests/test-fgetc.c: Include msvc-inval.h.
36559         (main): Invoke gl_msvc_inval_ensure_handler.
36560         * tests/test-fputc.c: Include msvc-inval.h.
36561         (main): Invoke gl_msvc_inval_ensure_handler.
36562         * tests/test-fread.c: Include msvc-inval.h.
36563         (main): Invoke gl_msvc_inval_ensure_handler.
36564         * tests/test-fwrite.c: Include msvc-inval.h.
36565         (main): Invoke gl_msvc_inval_ensure_handler.
36566         * modules/fgetc-tests (Depends-on): Add msvc-inval.
36567         * modules/fputc-tests (Depends-on): Likewise.
36568         * modules/fread-tests (Depends-on): Likewise.
36569         * modules/fwrite-tests (Depends-on): Likewise.
36571 2011-09-27  Bruno Haible  <bruno@clisp.org>
36573         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
36574         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
36575         (raise): Remove older, duplicated declaration.
36576         (_gl_raise_SIGPIPE): New declaration.
36577         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
36578         (rpl_raise): Remove function.
36579         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
36580         a gnulib-defined SIGPIPE here.
36581         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
36582         'sigprocmask' has detected missing signal-blocking and the module
36583         'sigpipe' is enabled.
36584         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
36586 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
36588         base64-tests: avoid memory leak
36589         * tests/test-base64.c (main): Plug memory leak.
36591         base32: new module
36592         * modules/base32: New module.
36593         * lib/base32.c: New file.
36594         * lib/base32.h: Likewise.
36595         * m4/base32.m4: Likewise.
36596         * modules/base32-tests: New test.
36597         * tests/test-base32.c: Likewise.
36598         * MODULES.html.sh (Misc): Mention it.
36600 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
36602         gnulib: use more-standard license notice wording
36603         * gnulib-tool (func_emit_copyright_notice): When emitting a
36604         license notice into a file, use the standard wording as suggested
36605         by the current information for GNU maintainers, except say "file"
36606         rather than "program".  The new wording gives a license version
36607         number, which addresses an issue raised by Glenn Morris in
36608         <http://lists.gnu.org/r/bug-gnulib/2011-09/msg00397.html>.
36609         * m4/onceonly.m4: Use that same wording here, too.
36611         dup2: minor simplification
36612         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
36613         as lib/dup2.c no longer uses 'inline'.
36615 2011-09-25  Bruno Haible  <bruno@clisp.org>
36617         strings: Fix compilation error on MSVC.
36618         * lib/strings.in.h: Include <stddef.h> for size_t.
36620 2011-09-25  Bruno Haible  <bruno@clisp.org>
36622         fflush et al.: Document limitation on MSVC.
36623         * doc/posix-functions/fflush.texi: Document possible crash in handling
36624         mode other than DEFAULT_HANDLING.
36625         * doc/posix-functions/fgetc.texi: Likewise.
36626         * doc/posix-functions/fputc.texi: Likewise.
36627         * doc/posix-functions/fread.texi: Likewise.
36628         * doc/posix-functions/fwrite.texi: Likewise.
36630 2011-09-25  Bruno Haible  <bruno@clisp.org>
36632         msvc-inval: Allow three invalid parameter handling modes.
36633         * lib/msvc-inval.h: Don't include <stdlib.h> here.
36634         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
36635         macros.
36636         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
36637         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
36638         SANE_LIBRARY_HANDLING as a no-op.
36639         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
36640         <stdlib.h>.
36641         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
36643 2011-09-25  Bruno Haible  <bruno@clisp.org>
36645         msvc-inval: Make handler multithread-safe.
36646         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
36647         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
36648         declarations.
36649         (gl_msvc_inval_current): New declaration.
36650         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
36651         Operate on the structure returned by gl_msvc_inval_current().
36652         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
36653         Remove varaiables.
36654         (tls_index, tls_initialized): New variables.
36655         (not_per_thread): New variable.
36656         (gl_msvc_inval_current): New function.
36657         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
36658         returned by gl_msvc_inval_current().
36660 2011-09-25  Bruno Haible  <bruno@clisp.org>
36662         msvc-inval: Install handler globally.
36663         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
36664         !_MSC_VER.
36665         (gl_msvc_invalid_parameter_handler): Remove declaration.
36666         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
36667         declarations.
36668         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
36669         Install the handler globally, don't uninstall it.
36670         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
36671         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
36672         currently valid, call RaiseException instead.
36673         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
36674         for !_MSC_VER.
36676 2011-09-25  Bruno Haible  <bruno@clisp.org>
36678         strerror_r-posix: Fix for MSVC 9.
36679         * lib/strerror_r.c (local_snprintf): New function.
36680         (snprintf): Define to local_snprintf, not to _snprintf.
36682 2011-09-25  Bruno Haible  <bruno@clisp.org>
36684         ftruncate: Support for MSVC 9.
36685         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
36686         (chsize_nothrow): New function.
36687         (chsize): Redefine as a macro.
36688         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
36689         * modules/ftruncate (Depends-on): Add msvc-inval.
36691 2011-09-25  Bruno Haible  <bruno@clisp.org>
36693         New module 'fstat'.
36694         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
36695         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
36696         * lib/fchdir.c (rpl_fstat): Remove function.
36697         * m4/fstat.m4: New file.
36698         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
36699         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
36700         declared.
36701         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
36702         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
36703         * modules/fstat: New file.
36704         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
36705         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
36706         is set.
36707         * doc/posix-functions/fstat.texi: Mention the new module and the
36708         problem on MSVC.
36709         * NEWS: Mention the change.
36710         * modules/acl (Depends-on): Add fstat.
36711         * modules/chdir-safer (Depends-on): Likewise.
36712         * modules/chown (Depends-on): Likewise.
36713         * modules/copy-file (Depends-on): Likewise.
36714         * modules/fchdir (Depends-on): Likewise.
36715         * modules/fdopendir (Depends-on): Likewise.
36716         * modules/fopen (Depends-on): Likewise.
36717         * modules/fts (Depends-on): Likewise.
36718         * modules/getcwd (Depends-on): Likewise.
36719         * modules/isapipe (Depends-on): Likewise.
36720         * modules/linkat (Depends-on): Likewise.
36721         * modules/lseek (Depends-on): Likewise.
36722         * modules/mkdir-p (Depends-on): Likewise.
36723         * modules/open (Depends-on): Likewise.
36724         * modules/openat (Depends-on): Likewise.
36725         * modules/read-file (Depends-on): Likewise.
36726         * modules/renameat (Depends-on): Likewise.
36727         * modules/utimens (Depends-on): Likewise.
36729 2011-09-25  Bruno Haible  <bruno@clisp.org>
36731         linkat: Fix compilation on MSVC 9.
36732         * lib/linkat.c: Don't include <stdint.h>.
36734 2011-09-25  Bruno Haible  <bruno@clisp.org>
36736         fclose: Support for MSVC 9.
36737         * lib/fclose.c: Include msvc-inval.h.
36738         (fclose_nothrow): New function.
36739         (rpl_fclose): Use it.
36740         * modules/fclose (Depends-on): Add msvc-inval.
36741         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
36743 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
36745         dup2: minor simplifications
36746         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
36747         that it's a performance win.
36748         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
36749         ! defined __CYGWIN__)" to "ifdef F_GETFL".
36751 2011-09-24  Jim Meyering  <meyering@redhat.com>
36753         test-futimens: avoid a warning from gcc -Wshadow
36754         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
36755         to avoid a shadowing warning.
36757 2011-09-24  Bruno Haible  <bruno@clisp.org>
36759         fdopen: Support for MSVC 9.
36760         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
36761         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
36762         * lib/fdopen.c: Include msvc-inval.h.
36763         (fdopen_nothrow): New function.
36764         (rpl_fdopen): Use it.
36765         * modules/fdopen (Depends-on): Add msvc-inval.
36766         * modules/fclose-tests (Depends-on): Add fdopen.
36767         * modules/fflush-tests (Depends-on): Likewise.
36768         * modules/fgetc-tests (Depends-on): Likewise.
36769         * modules/fputc-tests (Depends-on): Likewise.
36770         * modules/fread-tests (Depends-on): Likewise.
36771         * modules/freopen-tests (Depends-on): Likewise.
36772         * modules/fseeko-tests (Depends-on): Likewise.
36773         * modules/ftello-tests (Depends-on): Likewise.
36774         * modules/fwrite-tests  (Depends-on): Likewise.
36775         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
36777 2011-09-24  Bruno Haible  <bruno@clisp.org>
36779         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
36780         * modules/fgetc-tests (Depends-on): Add unistd.
36781         * modules/fputc-tests (Depends-on): Likewise.
36782         * modules/fread-tests (Depends-on): Likewise.
36783         * modules/fwrite-tests (Depends-on): Likewise.
36785 2011-09-24  Bruno Haible  <bruno@clisp.org>
36787         dup: Simplify autoconf test.
36788         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
36789         on gl_MSVC_INVAL's result.
36791 2011-09-24  Bruno Haible  <bruno@clisp.org>
36793         Tests for function fwrite().
36794         * modules/fwrite-tests: New file.
36795         * tests/test-fwrite.c: New file.
36796         * modules/stdio-tests (Depends-on): Add fwrite-tests.
36798         Tests for function fread().
36799         * modules/fread-tests: New file.
36800         * tests/test-fread.c: New file.
36801         * modules/stdio-tests (Depends-on): Add fread-tests.
36803         Activate fputc tests.
36804         * modules/stdio-tests (Depends-on): Add fputc-tests.
36806         Enhance fgetc, fputc tests.
36807         * tests/test-fgetc.c (main): Also test the stream's error indicator.
36808         * tests/test-fputc.c (main): Likewise.
36810 2011-09-24  Bruno Haible  <bruno@clisp.org>
36812         write: Support for MSVC 9.
36813         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
36814         is not 1.
36815         * lib/write.c (write_nothrow): New function.
36816         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
36817         not 1. Use write_nothrow.
36818         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
36819         invalid parameter handler.
36820         (gl_PREREQ_WRITE): New macro.
36821         * modules/write (Depends-on): Add msvc-inval.
36822         (configure.ac): Invoke gl_PREREQ_WRITE.
36823         * doc/posix-functions/write.texi: Mention the problem on MSVC.
36825 2011-09-24  Bruno Haible  <bruno@clisp.org>
36827         read: Fix last commit.
36828         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
36830 2011-09-24  Bruno Haible  <bruno@clisp.org>
36832         dup2: Fix last commit.
36833         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
36834         (rpl_dup2): Disable fcntl workaround on native Windows.
36836         sigprocmask: Make code safer.
36837         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
36838         section that changes macro definitions for this compilation unit.
36840 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
36842         dup2: clarify by coalescing Windows-specific material
36843         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
36844         "msvc-nothrow.h"' to the Windows-specific section, so that the
36845         Emacs source need not contain these include files.
36846         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
36847         Windows-specific fixes into this function rather than just the
36848         nothrow fix, as this shortens and clarifies the code.  Always
36849         define as a function, as that's a bit cleaner than having it be
36850         sometimes a function and sometimes a macro.
36851         (rpl_dup2): Move the Windows-specific stuff out of here and into
36852         ms_windows_dup2.  Don't protect the Haiku-related fix with
36853         "#if !defined __linux__", as the same code also works around
36854         a Linux kernel bug, and it doesn't add any system calls on any
36855         platform.  Add comment about FreeBSD 6.1.
36857         sigprocmask: move #include directive
36858         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
36859         Windows-specific section, so that the Emacs source need not
36860         contain msvc-inval.h.
36862 2011-09-23  Bruno Haible  <bruno@clisp.org>
36864         read: Support for MSVC 9.
36865         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
36866         is not 1.
36867         * lib/read.c (read_nothrow): New function.
36868         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
36869         read_nothrow.
36870         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
36871         invalid parameter handler.
36872         (gl_PREREQ_READ): New macro.
36873         * modules/read (Depends-on): Add msvc-inval.
36874         (configure.ac): Invoke gl_PREREQ_READ.
36875         * doc/posix-functions/read.texi: Mention the problem on MSVC.
36877 2011-09-23  Bruno Haible  <bruno@clisp.org>
36879         close: Support for MSVC 9.
36880         * lib/close.c: Include <errno.h>, msvc-inval.h.
36881         (close_nothrow): New function.
36882         (rpl_close): Use it.
36883         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
36884         invalid parameter handler.
36885         * modules/close (Depends-on): Add msvc-inval.
36886         * modules/dup2-tests (Depends-on): Add close.
36887         * modules/dup3-tests (Depends-on): Likewise.
36888         * modules/fcntl-tests (Depends-on): Likewise.
36889         * modules/spawn-pipe-tests (Depends-on): Likewise.
36890         * modules/unistd-safer-tests (Depends-on): Likewise.
36891         * doc/posix-functions/close.texi: Mention the problem on MSVC.
36893 2011-09-23  Bruno Haible  <bruno@clisp.org>
36895         New module 'dup'.
36896         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
36897         Allow replacement.
36898         * lib/dup.c: New file.
36899         * lib/fchdir.c (rpl_dup): Remove function.
36900         * m4/dup.m4: New file.
36901         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
36902         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
36903         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
36904         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
36905         * modules/dup: New file.
36906         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
36907         'dup' module is in use.
36908         * modules/fdopendir (Depends-on): Add dup.
36909         * modules/fdutimensat-tests (Depends-on): Likewise.
36910         * modules/fts (Depends-on): Likewise.
36911         * modules/futimens-tests (Depends-on): Likewise.
36912         * modules/posix_spawnp-tests (Depends-on): Likewise.
36913         * modules/unistd-safer-tests (Depends-on): Likewise.
36914         * modules/utimens-tests (Depends-on): Likewise.
36915         * doc/posix-functions/dup.texi: Mention the new module and the problem
36916         on MSVC.
36918 2011-09-23  Bruno Haible  <bruno@clisp.org>
36920         getdtablesize: Support for MSVC 9.
36921         * lib/getdtablesize.c: Include msvc-inval.h.
36922         (_setmaxstdio_nothrow): New function.
36923         (_setmaxstdio): Redefine it.
36924         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
36925         * modules/getdtablesize (Depends-on): Add msvc-inval.
36926         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
36928 2011-09-23  Bruno Haible  <bruno@clisp.org>
36930         signal-h: Rename from signal.
36931         * modules/signal-h: Renamed from modules/signal.
36932         * modules/pthread_sigmask (Depends-on): Update.
36933         * modules/raise (Depends-on): Likewise.
36934         * modules/sigaction (Depends-on): Likewise.
36935         * modules/sigpipe (Depends-on): Likewise.
36936         * modules/sigprocmask (Depends-on): Likewise.
36937         * modules/sys_select (Depends-on): Likewise.
36938         * modules/signal-h-tests: Renamed from modules/signal-tests.
36939         (Files, Depends-on, Makefile.am): Update.
36940         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
36941         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
36942         (Files, Makefile.am): Update.
36943         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
36944         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
36945         * modules/signal: New placeholder file.
36946         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
36947         * doc/posix-headers/signal.texi: Update.
36948         * NEWS: Mention the change.
36950 2011-09-23  Bruno Haible  <bruno@clisp.org>
36952         sigprocmask: Avoid crashes through signal() on MSVC 9.
36953         * lib/sigprocmask.c: Include msvc-inval.h.
36954         (signal_nothrow): New function.
36955         (signal): Redefine it.
36956         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
36957         * modules/sigprocmask (Depends-on): Add msvc-inval.
36958         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
36960 2011-09-23  Bruno Haible  <bruno@clisp.org>
36962         Tests for module 'raise'.
36963         * modules/raise-tests: New file.
36964         * tests/test-raise.c: New file.
36966         raise: Support for MSVC.
36967         * lib/signal.in.h (raise): New declaration.
36968         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
36969         for native Windows platforms.
36970         * m4/raise.m4: New file.
36971         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
36972         HAVE_RAISE, REPLACE_RAISE.
36973         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
36974         REPLACE_RAISE.
36975         * modules/raise (Status, Notice): Remove fields.
36976         (Files): Add m4/raise.m4.
36977         (Depends-on): Add signal, msvc-inval.
36978         (configure.ac): Use the common idioms.
36979         (Maintainer): Add me.
36980         * tests/test-signal-c++.cc: Check the signature of raise.
36981         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
36983 2011-09-23  Bruno Haible  <bruno@clisp.org>
36985         pipe2: Fix compilation on pre-C99 compilers.
36986         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
36988 2011-09-23  Bruno Haible  <bruno@clisp.org>
36990         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
36991         * lib/msvc-nothrow.h: New file.
36992         * lib/msvc-nothrow.c: New file.
36993         * m4/msvc-nothrow.m4: New file.
36994         * modules/msvc-nothrow: New file.
36995         * lib/dup2.c: Include msvc-nothrow.h.
36996         (rpl_dup2): No need to protect _get_osfhandle call here.
36997         * lib/accept4.c: Include msvc-nothrow.h.
36998         * lib/error.c: Likewise.
36999         * lib/fcntl.c: Likewise.
37000         * lib/lseek.c: Likewise.
37001         * lib/nonblocking.c: Likewise.
37002         * lib/poll.c: Likewise.
37003         * lib/read.c: Likewise.
37004         * lib/select.c: Likewise.
37005         * lib/sockets.h: Likewise.
37006         * lib/sockets.c: Likewise.
37007         * lib/stdio-read.c: Likewise.
37008         * lib/stdio-write.c: Likewise.
37009         * lib/write.c: Likewise.
37010         * lib/w32sock.h: Likewise.
37011         * lib/w32spawn.h: Likewise.
37012         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
37013         * lib/fsync.c: Likewise.
37014         * lib/isapipe.c: Likewise.
37015         * modules/dup2 (Depends-on): Add msvc-nothrow.
37016         * modules/accept4 (Depends-on): Likewise.
37017         * modules/error (Depends-on): Likewise.
37018         * modules/fcntl (Depends-on): Likewise.
37019         * modules/lseek (Depends-on): Likewise.
37020         * modules/nonblocking (Depends-on): Likewise.
37021         * modules/poll (Depends-on): Likewise.
37022         * modules/read (Depends-on): Likewise.
37023         * modules/select (Depends-on): Likewise.
37024         * modules/sockets (Depends-on): Likewise.
37025         * modules/sigpipe (Depends-on): Likewise.
37026         * modules/write (Depends-on): Likewise.
37027         * modules/accept (Depends-on): Likewise.
37028         * modules/bind (Depends-on): Likewise.
37029         * modules/connect (Depends-on): Likewise.
37030         * modules/gethostname (Depends-on): Likewise.
37031         * modules/getpeername (Depends-on): Likewise.
37032         * modules/getsockname (Depends-on): Likewise.
37033         * modules/getsockopt (Depends-on): Likewise.
37034         * modules/ioctl (Depends-on): Likewise.
37035         * modules/listen (Depends-on): Likewise.
37036         * modules/recv (Depends-on): Likewise.
37037         * modules/recvfrom (Depends-on): Likewise.
37038         * modules/send (Depends-on): Likewise.
37039         * modules/sendto (Depends-on): Likewise.
37040         * modules/setsockopt (Depends-on): Likewise.
37041         * modules/shutdown (Depends-on): Likewise.
37042         * modules/socket (Depends-on): Likewise.
37043         * modules/execute (Depends-on): Likewise.
37044         * modules/spawn-pipe (Depends-on): Likewise.
37045         * modules/flock (Depends-on): Likewise.
37046         * modules/fsync (Depends-on): Likewise.
37047         * modules/isapipe (Depends-on): Likewise.
37048         * tests/test-cloexec.c: Include msvc-nothrow.h.
37049         * tests/test-dup-safer.c: Likewise.
37050         * tests/test-dup2.c: Likewise.
37051         * tests/test-dup3.c: Likewise.
37052         * tests/test-fcntl.c: Likewise.
37053         * tests/test-pipe.c: Likewise.
37054         * tests/test-pipe2.c: Likewise.
37055         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
37056         * modules/unistd-safer-tests (Depends-on): Likewise.
37057         * modules/dup2-tests (Depends-on): Likewise.
37058         * modules/dup3-tests (Depends-on): Likewise.
37059         * modules/fcntl-tests (Depends-on): Likewise.
37060         * modules/pipe-posix-tests (Depends-on): Likewise.
37061         * modules/pipe2-tests (Depends-on): Likewise.
37063 2011-09-23  Bruno Haible  <bruno@clisp.org>
37065         dup2: Make code more maintainable.
37066         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
37067         (rpl_dup2): Use it.
37068         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
37069         * modules/dup2 (configure.ac): Invoke it.
37070         Reported by Paul Eggert.
37072 2011-09-23  Bruno Haible  <bruno@clisp.org>
37074         msvc-inval: Fix compilation error.
37075         * lib/msvc-inval.h: Include <excpt.h>.
37077 2011-09-23  Bruno Haible  <bruno@clisp.org>
37079         mkdir: Tweak for MSVC 9.
37080         * lib/sys_stat.in.h: Update comments.
37081         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
37083         Tests for module 'chdir'.
37084         * modules/chdir-tests: New file.
37085         * tests/test-chdir.c: New file.
37087         New module 'chdir'.
37088         * modules/chdir: New file.
37089         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
37090         (chdir): New declaration.
37091         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
37092         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
37093         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
37094         * tests/test-unistd-c++.cc: Check signature of chdir.
37095         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
37096         * modules/chdir-long (Depends-on): Add chdir.
37097         * modules/fchdir (Depends-on): Likewise.
37098         * modules/rename (Depends-on): Likewise.
37099         * modules/savewd (Depends-on): Likewise.
37101         rmdir: Support for mingw, MSVC 9.
37102         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
37103         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
37105         getcwd: Tweak for MSVC 9.
37106         * lib/unistd.in.h: Update comments.
37107         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
37109 2011-09-22  Bruno Haible  <bruno@clisp.org>
37111         strerror_r-posix: Avoid a link error on MSVC.
37112         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
37113         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
37115 2011-09-22  Bruno Haible  <bruno@clisp.org>
37117         select: Avoid link errors on MSVC.
37118         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
37119         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
37120         * modules/pselect (Link): Likewise.
37121         * NEWS: Mention the change.
37122         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
37123         test-select-stdin against $(LIB_SELECT).
37124         * modules/pselect-tests (Makefile.am): Link test-pselect against
37125         $(LIB_SELECT).
37127 2011-09-22  Bruno Haible  <bruno@clisp.org>
37129         select: Avoid compilation error on MSVC.
37130         * lib/select.c: Don't include <stdbool.h>.
37132 2011-09-21  Bruno Haible  <bruno@clisp.org>
37134         Consolidate all uses of PATH_MAX in *.m4 files.
37135         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
37136         macros.
37137         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
37138         and gl_PATHMAX_SNIPPET.
37139         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
37140         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
37141         * modules/chdir-long (Files): Add m4/pathmax.m4.
37142         * modules/getcwd (Files): Likewise.
37144 2011-09-21  Bruno Haible  <bruno@clisp.org>
37146         ftruncate: Un-deprecate, concentrate on Win32 support.
37147         * modules/ftruncate (Status, Notice): Remove sections.
37148         (Depends-on): Add largefile.
37149         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
37150         non-mingw platforms.
37151         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
37152         include <io.h>.
37153         * modules/perror-tests (Depends-on): Add ftruncate.
37154         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
37155         'ftruncate' module.
37157 2011-09-21  Bruno Haible  <bruno@clisp.org>
37159         Add dependencies to new dirent related modules.
37160         * modules/opendir (Depends-on): Add closedir.
37161         * modules/getcwd (Depends-on): Add opendir, closedir.
37162         * modules/dirent-safer-tests (Depends-on): Likewise.
37163         * modules/fdopendir-tests (Depends-on): Likewise.
37164         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
37165         * modules/renameat-tests (Depends-on): Likewise.
37167 2011-09-21  Bruno Haible  <bruno@clisp.org>
37169         opendir: Avoid compilation error on mingw.
37170         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
37171         * modules/opendir (Depends-on): Add unistd.
37173 2011-09-21  Bruno Haible  <bruno@clisp.org>
37175         ftruncate tests: Avoid a test failure on mingw.
37176         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
37178 2011-09-21  Bruno Haible  <bruno@clisp.org>
37180         select tests: Avoid test failures on OSF/1 5.1 and mingw.
37181         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
37182         native Windows.
37184 2011-09-21  Bruno Haible  <bruno@clisp.org>
37186         New module 'fdopen'.
37187         * lib/stdio.in.h (fdopen): New declaration.
37188         * lib/fdopen.c: New file.
37189         * m4/fdopen.m4: New file.
37190         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
37191         REPLACE_FDOPEN.
37192         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
37193         REPLACE_FDOPEN.
37194         * modules/fdopen: New file.
37195         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
37196         * tests/test-stdio-c++.cc: Check signature of fdopen.
37197         * doc/posix-functions/fdopen.texi: Mention the new module.
37199 2011-09-21  Bruno Haible  <bruno@clisp.org>
37201         unlockpt tests: Avoid test failure on NetBSD 5.1.
37202         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
37203         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
37205 2011-09-21  Bruno Haible  <bruno@clisp.org>
37207         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
37208         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
37209         * tests/test-getlogin_r.c (main): Likewise.
37211 2011-09-20  Bruno Haible  <bruno@clisp.org>
37213         time tests: Don't require pid_t.
37214         * doc/posix-headers/time.texi: Revert last change.
37215         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
37216         * tests/test-time.c: Comment out the check for pid_t.
37218 2011-09-20  Bruno Haible  <bruno@clisp.org>
37220         fsync tests: Avoid a test failure on mingw.
37221         * tests/test-fsync.c (main): Allow a failure with EIO.
37223 2011-09-20  Bruno Haible  <bruno@clisp.org>
37225         euidaccess: Update comments.
37226         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
37228 2011-09-20  Bruno Haible  <bruno@clisp.org>
37230         Ensure EBADF returns for socket functions on mingw.
37231         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
37232         descriptor is invalid.
37233         * lib/bind.c (rpl_bind): Likewise.
37234         * lib/connect.c (rpl_connect): Likewise.
37235         * lib/getpeername.c (rpl_getpeername): Likewise.
37236         * lib/getsockname.c (rpl_getsockname): Likewise.
37237         * lib/getsockopt.c (rpl_getsockopt): Likewise.
37238         * lib/listen.c (rpl_listen): Likewise.
37239         * lib/recv.c (rpl_recv): Likewise.
37240         * lib/recvfrom.c (rpl_recvfrom): Likewise.
37241         * lib/send.c (rpl_send): Likewise.
37242         * lib/sendto.c (rpl_sendto): Likewise.
37243         * lib/setsockopt.c (rpl_setsockopt): Likewise.
37244         * lib/shutdown.c (rpl_shutdown): Likewise.
37246 2011-09-20  Bruno Haible  <bruno@clisp.org>
37248         select tests: EBADF tests.
37249         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
37250         test_bad_fd): New functions.
37251         (test_function): Invoke also test_bad_fd.
37253 2011-09-20  Bruno Haible  <bruno@clisp.org>
37255         Tests for module 'posix_spawn_file_actions_addopen.
37256         * modules/posix_spawn_file_actions_addopen-tests: New file.
37257         * tests/test-posix_spawn_file_actions_addopen.c: New file.
37259         Tests for module 'posix_spawn_file_actions_adddup2'.
37260         * modules/posix_spawn_file_actions_adddup2-tests: New file.
37261         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
37263         Tests for module 'posix_spawn_file_actions_addclose'.
37264         * modules/posix_spawn_file_actions_addclose-tests: New file.
37265         * tests/test-posix_spawn_file_actions_addclose.c: New file.
37267 2011-09-20  Bruno Haible  <bruno@clisp.org>
37269         Tests for module 'unlockpt'.
37270         * modules/unlockpt-tests: New file.
37271         * tests/test-unlockpt.c: New file.
37272         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
37274         Tests for module 'grantpt'.
37275         * modules/grantpt-tests: New file.
37276         * tests/test-grantpt.c: New file.
37277         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
37279 2011-09-20  Bruno Haible  <bruno@clisp.org>
37281         freopen tests: EBADF tests.
37282         * tests/test-freopen.c: Include errno.h, unistd.h.
37283         (main): Add tests for EBADF, commented out for the moment.
37285         fclose tests: EBADF tests.
37286         * tests/test-fclose.c (main): Add tests for EBADF.
37288         fflush tests: EBADF tests.
37289         * tests/test-fflush.c: Include errno.h, macros.h.
37290         (main): Add tests for EBADF.
37292         ftello tests: EBADF tests.
37293         * tests/test-ftello4.sh: New file.
37294         * tests/test-ftello4.c: New file.
37295         * modules/ftello-tests (Files): Add them.
37296         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
37298         fseeko tests: EBADF tests.
37299         * tests/test-fseeko4.sh: New file.
37300         * tests/test-fseeko4.c: New file.
37301         * modules/fseeko-tests (Files): Add them.
37302         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
37304         Tests for function fputc().
37305         * modules/fputc-tests: New file.
37306         * tests/test-fputc.c: New file.
37307         * modules/stdio-tests (Depends-on): Add fputc-tests.
37309         Tests for function fgetc().
37310         * modules/fgetc-tests: New file.
37311         * tests/test-fgetc.c: New file.
37312         * modules/stdio-tests (Depends-on): Add fgetc-tests.
37314         Tests for function fdopen().
37315         * modules/fdopen-tests: New file.
37316         * tests/test-fdopen.c: New file.
37317         * modules/stdio-tests (Depends-on): Add fdopen-tests.
37319         Tests for module 'vdprintf'.
37320         * modules/vdprintf-tests: New file.
37321         * tests/test-vdprintf.c: New file.
37323         Tests for module 'dprintf'.
37324         * modules/dprintf-tests: New file.
37325         * tests/test-dprintf.c: New file.
37327 2011-09-20  Bruno Haible  <bruno@clisp.org>
37329         Tests for module 'ioctl'.
37330         * modules/ioctl-tests: New file.
37331         * tests/test-ioctl.c: New file.
37333 2011-09-20  Bruno Haible  <bruno@clisp.org>
37335         fcntl tests: EBADF tests.
37336         * tests/test-fcntl.c (main): Add more tests for EBADF.
37338 2011-09-20  Bruno Haible  <bruno@clisp.org>
37340         utimensat tests: EBADF tests.
37341         * tests/test-utimensat.c (main): Add tests for EBADF.
37343         renameat tests: EBADF tests.
37344         * tests/test-renameat.c (main): Add tests for EBADF.
37346         mkfifoat tests: EBADF tests.
37347         * tests/test-mkfifoat.c (main): Add tests for EBADF.
37349         readlinkat tests: EBADF tests.
37350         * tests/test-readlinkat.c (main): Add tests for EBADF.
37352         symlinkat tests: EBADF tests.
37353         * tests/test-symlinkat.c (main): Add tests for EBADF.
37355         linkat tests: EBADF tests.
37356         * tests/test-linkat.c (main): Add tests for EBADF.
37358         Tests for module 'faccessat'.
37359         * modules/faccessat-tests: New file.
37360         * tests/test-faccessat.c: New file.
37362         fdopendir tests: EBADF tests.
37363         * tests/test-fdopendir.c (main): Add more tests for EBADF.
37365         openat tests: EBADF tests.
37366         * tests/test-fchownat.c (main): Add tests for EBADF.
37367         * tests/test-fstatat.c (main): Likewise.
37368         * tests/test-mkdirat.c (main): Likewise.
37369         * tests/test-openat.c (main): Likewise.
37370         * tests/test-unlinkat.c (main): Likewise.
37371         * tests/test-fchmodat.c: New file.
37372         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
37373         (Makefile.am): Also run 'test-fchmodat'.
37375 2011-09-20  Bruno Haible  <bruno@clisp.org>
37377         utimens, futimens, fdutimensat tests: EBADF tests.
37378         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
37380         Tests for function fstat().
37381         * modules/fstat-tests: New file.
37382         * tests/test-fstat.c: New file.
37383         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
37385 2011-09-20  Bruno Haible  <bruno@clisp.org>
37387         test-ttyname_r tests: EBADF tests.
37388         * tests/test-ttyname_r.c (main): Add tests for EBADF.
37390         Tests for module 'isatty'.
37391         * modules/isatty-tests: New file.
37392         * tests/test-isatty.c: New file.
37394         Tests for module 'write'.
37395         * modules/write-tests: New file.
37396         * tests/test-write.c: New file.
37398         Tests for module 'read'.
37399         * modules/read-tests: New file.
37400         * tests/test-read.c: New file.
37402         pwrite tests: EBADF tests.
37403         * tests/test-pwrite.c (main): Add tests for EBADF.
37405         pread tests: EBADF tests.
37406         * tests/test-pread.c (main): Add tests for EBADF.
37408         lseek tests: EBADF tests.
37409         * tests/test-lseek.c (main): Add more tests for EBADF.
37411         Tests for module 'ftruncate'.
37412         * modules/ftruncate-tests: New file.
37413         * tests/test-ftruncate.sh: New file.
37414         * tests/test-ftruncate.c: New file.
37416         fsync tests: EBADF tests.
37417         * tests/test-fsync.c (main): Add more tests for EBADF.
37419         fdatasync tests: EBADF tests.
37420         * tests/test-fdatasync.c (main): Add more tests for EBADF.
37422         Tests for module 'fchown'.
37423         * modules/fchown-tests: New file.
37424         * tests/test-fchown.c: New file.
37426         Tests for module 'fchmod'.
37427         * modules/fchmod-tests: New file.
37428         * tests/test-fchmod.c: New file.
37430         fchdir tests: EBADF tests.
37431         * tests/test-fchdir.c (main): Add more tests for EBADF.
37433         dup2 tests: EBADF tests.
37434         * tests/test-dup2.c (main): Add more tests for EBADF.
37436         Tests for module 'dup'.
37437         * modules/dup-tests: New file.
37438         * tests/test-dup.c: New file.
37440         Tests for module 'close'.
37441         * modules/close-tests: New file.
37442         * tests/test-close.c: New file.
37444 2011-09-20  Bruno Haible  <bruno@clisp.org>
37446         Tests for module 'shutdown'.
37447         * modules/shutdown-tests: New file.
37448         * tests/test-shutdown.c: New file.
37450         Tests for module 'setsockopt'.
37451         * modules/setsockopt-tests: New file.
37452         * tests/test-setsockopt.c: New file.
37454         Tests for module 'sendto'.
37455         * modules/sendto-tests: New file.
37456         * tests/test-sendto.c: New file.
37458         Tests for module 'send'.
37459         * modules/send-tests: New file.
37460         * tests/test-send.c: New file.
37462         Tests for module 'recvfrom'.
37463         * modules/recvfrom-tests: New file.
37464         * tests/test-recvfrom.c: New file.
37466         Tests for module 'recv'.
37467         * modules/recv-tests: New file.
37468         * tests/test-recv.c: New file.
37470         Tests for module 'listen'.
37471         * modules/listen-tests: New file.
37472         * tests/test-listen.c: New file.
37474         Tests for module 'getsockopt'.
37475         * modules/getsockopt-tests: New file.
37476         * tests/test-getsockopt.c: New file.
37478         Tests for module 'getsockname'.
37479         * modules/getsockname-tests: New file.
37480         * tests/test-getsockname.c: New file.
37482         Tests for module 'getpeername'.
37483         * modules/getpeername-tests: New file.
37484         * tests/test-getpeername.c: New file.
37486         Tests for module 'connect'.
37487         * modules/connect-tests: New file.
37488         * tests/test-connect.c: New file.
37490         Tests for module 'bind'.
37491         * modules/bind-tests: New file.
37492         * tests/test-bind.c: New file.
37494         accept4 tests: Fix for native Windows.
37495         * tests/test-accept4.c: Include sockets.h.
37496         (main): Invoke gl_sockets_startup.
37497         * modules/accept4-tests (Depends-on): Add sockets.
37499         accept tests: Fix for native Windows.
37500         * tests/test-accept.c: Include sockets.h.
37501         (main): Invoke gl_sockets_startup.
37502         * modules/accept-tests (Depends-on): Add sockets.
37504 2011-09-19  Bruno Haible  <bruno@clisp.org>
37506         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
37507         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
37508         do...while(0).
37509         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
37510         Suggested by Paul Eggert.
37512 2011-09-19  Bruno Haible  <bruno@clisp.org>
37514         sched: Ensure pid_t is defined.
37515         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
37516         not define pid_t.
37517         * lib/sched.in.h: Include <sys/types.h>.
37518         * doc/posix-headers/sched.texi: Mention the pid_t problem.
37519         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37521 2011-09-19  Bruno Haible  <bruno@clisp.org>
37523         msvc-inval: Ensure the entire expansion is a single statement.
37524         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
37525         of braces.
37527 2011-09-19  Jim Meyering  <meyering@redhat.com>
37529         tests: use printf, not echo in init.sh's warn_ function
37530         * tests/init.sh (warn_): Use printf, not echo.  The latter would
37531         misbehave when given strings containing a backslash or starting
37532         with e.g., -n.  James Youngman suggested setting IFS.
37534 2011-09-19  Eric Blake  <eblake@redhat.com>
37536         futimens: enhance test
37537         * tests/test-futimens.h (test_futimens): Also check for EBADF on
37538         closed non-negative fd.
37540         date: accept 'hence' as opposite of 'ago'
37541         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
37542         * tests/test-parse-datetime.c (main): Enhance test.
37543         Suggested by Jesse Wilson.
37545 2011-09-19  Jim Meyering  <meyering@redhat.com>
37547         getcwd: don't fail in a deep directory on a system without openat
37548         Before this change, getcwd would fail when called from a directory
37549         of depth PATH_MAX / 3 or greater.  That was due to the fact that
37550         the non-openat implementation used "..", "../..", "../../..", etc.
37551         to access ancestor directories.  With too many, that string would
37552         be longer than PATH_MAX.
37553         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
37554         using gnulib's openat replacement.
37555         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
37556         we're using the replacement function.
37558 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
37560         maint.mk: avoid warnings from perl about missing files
37561         * top/maint.mk (def_sym_regex): Ignore files listed in
37562         $(gl_other_headers_) that do not exist, say because a project
37563         does not use a corresponding module.
37565 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
37567         stat: use pathmax.h only if needed
37568         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
37569         This is better for Emacs, which does not have a mingw port and
37570         therefore can avoid the pathmax module.
37572         utimens: remove dependency on dup2
37573         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
37574         to work around the Linux kernel bug.
37575         * modules/utimens (Depends-on): Remove dup2.
37577 2011-09-18  Bruno Haible  <bruno@clisp.org>
37579         inet_ntop, inet_pton: Look for it also in libresolv.
37580         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
37581         libnsl, search for it in libresolv.
37582         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
37583         Needed on Solaris 7.
37585 2011-09-18  Bruno Haible  <bruno@clisp.org>
37587         accept, accept4 tests: Avoid link error on Solaris.
37588         * modules/accept-tests (Makefile.am): Link test-accept against
37589         $(LIBSOCKET).
37590         * modules/accept4-tests (Makefile.am): Link test-accept4 against
37591         $(LIBSOCKET).
37593         accept4: Avoid link error on Solaris.
37594         * modules/accept4 (Link): New section.
37596         socket functions: Avoid link errors on Solaris.
37597         * modules/accept (Depends-on): Add socketlib.
37598         (Link): New section.
37599         * modules/bind (Depends-on): Add socketlib.
37600         (Link): New section.
37601         * modules/connect (Depends-on): Add socketlib.
37602         (Link): New section.
37603         * modules/getpeername (Depends-on): Add socketlib.
37604         (Link): New section.
37605         * modules/getsockname (Depends-on): Add socketlib.
37606         (Link): New section.
37607         * modules/getsockopt (Depends-on): Add socketlib.
37608         (Link): New section.
37609         * modules/listen (Depends-on): Add socketlib.
37610         (Link): New section.
37611         * modules/recv (Depends-on): Add socketlib.
37612         (Link): New section.
37613         * modules/recvfrom (Depends-on): Add socketlib.
37614         (Link): New section.
37615         * modules/send (Depends-on): Add socketlib.
37616         (Link): New section.
37617         * modules/sendto (Depends-on): Add socketlib.
37618         (Link): New section.
37619         * modules/setsockopt (Depends-on): Add socketlib.
37620         (Link): New section.
37621         * modules/shutdown (Depends-on): Add socketlib.
37622         (Link): New section.
37623         * modules/socket (Depends-on): Add socketlib.
37624         (Link): New section.
37626 2011-09-18  Bruno Haible  <bruno@clisp.org>
37628         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
37629         * tests/test-ptsname.c (main): Terminate the test if it takes longer
37630         than 5 seconds.
37631         * modules/ptsname-tests (configure.ac): Test for alarm.
37633 2011-09-18  Bruno Haible  <bruno@clisp.org>
37635         posix_spawn_file_actions_add*: Fix module dependencies.
37636         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
37637         posix_spawn_file_actions_init.
37638         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
37639         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
37641 2011-09-18  Bruno Haible  <bruno@clisp.org>
37643         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
37644         * tests/test-rename.h (test_rename): Allow error code EEXIST.
37645         * tests/test-renameat.c (main): Likewise.
37647 2011-09-18  Bruno Haible  <bruno@clisp.org>
37649         Tests for module 'accept4'.
37650         * modules/accept4-tests: New file.
37651         * tests/test-accept4.c: New file.
37653 2011-09-18  Bruno Haible  <bruno@clisp.org>
37655         Tests for module 'accept'.
37656         * modules/accept-tests: New file.
37657         * tests/test-accept.c: New file.
37659 2011-09-18  Bruno Haible  <bruno@clisp.org>
37661         dup2: Support for MSVC.
37662         * lib/dup2.c: Include msvc-inval.h.
37663         (rpl_dup2): Handle invalid parameter notifications during dup2 and
37664         _get_osfhandle calls.
37665         * modules/dup2 (Depends-on): Add msvc-inval.
37666         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
37668         New module 'msvc-inval'.
37669         * lib/msvc-inval.h: New file.
37670         * lib/msvc-inval.c: New file.
37671         * m4/msvc-inval.m4: New file.
37672         * modules/msvc-inval: New file.
37674 2011-09-17  Bruno Haible  <bruno@clisp.org>
37676         Tests for module 'pclose'.
37677         * modules/pclose-tests: New file.
37679         New module 'pclose'.
37680         * lib/stdio.in.h (pclose): New declaration.
37681         * lib/pclose.c: New file.
37682         * m4/pclose.m4: New file.
37683         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
37684         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
37685         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
37686         * modules/pclose: New file.
37687         * modules/popen-tests (Depends-on): Add pclose.
37688         * modules/popen-safer-tests (Depends-on): Likewise.
37689         * doc/posix-functions/pclose.texi: Mention the new module.
37691 2011-09-17  Bruno Haible  <bruno@clisp.org>
37693         popen: Support for MSVC.
37694         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
37695         * lib/popen.c (popen): Provide alternate definition for native Windows.
37696         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
37697         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
37698         * modules/popen (Depends-on, configure.ac): Update condition.
37699         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
37700         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
37701         fixed.
37703 2011-09-17  Bruno Haible  <bruno@clisp.org>
37705         isnanl, isnand, isnanf: Work around MSVC bug.
37706         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
37708 2011-09-17  Bruno Haible  <bruno@clisp.org>
37710         sys_socket tests: Fix recent mistake.
37711         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
37713 2011-09-17  Bruno Haible  <bruno@clisp.org>
37715         putenv: Support for MSVC.
37716         * modules/putenv (Depends-on): Add environ.
37717         * lib/putenv.c (environ): Disable declaration.
37718         * lib/unistd.in.h: Update comment.
37720 2011-09-17  Bruno Haible  <bruno@clisp.org>
37722         math: Avoid macro redefinition warnings on MSVC.
37723         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
37724         Undefine before redefining.
37726 2011-09-17  Bruno Haible  <bruno@clisp.org>
37728         doc: Mention functions which are declared as macros.
37729         * doc/posix-functions/*[fl].texi: Mention that some functions are
37730         defined as macros with arguments only.
37732 2011-09-17  Bruno Haible  <bruno@clisp.org>
37734         Add dependencies to new dirent related modules.
37735         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
37736         * modules/fts (Depends-on): Likewise.
37737         * modules/glob (Depends-on): Likewise.
37738         * modules/savedir (Depends-on): Likewise.
37739         * modules/scandir (Depends-on): Likewise.
37740         * modules/dirent-safer (Depends-on): Add opendir, closedir.
37741         * modules/fdopendir (Depends-on): Add opendir.
37743 2011-09-17  Bruno Haible  <bruno@clisp.org>
37745         inet_pton: Support for MSVC on Windows Vista or newer.
37746         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
37747         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
37748         HAVE_DECL_INET_PTON is defined.
37749         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
37750         On platforms with <winsock2.h>, test whether inet_pton is declared in
37751         <ws2tcpip.h>. If so, arrange to replace it.
37752         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
37753         REPLACE_INET_PTON.
37754         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
37755         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
37756         (Depends-on, configure.ac): Update condition.
37757         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
37759 2011-09-17  Bruno Haible  <bruno@clisp.org>
37761         inet_ntop: Support for MSVC on Windows Vista or newer.
37762         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
37763         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
37764         HAVE_DECL_INET_NTOP is defined.
37765         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
37766         On platforms with <winsock2.h>, test whether inet_ntop is declared in
37767         <ws2tcpip.h>. If so, arrange to replace it.
37768         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
37769         REPLACE_INET_NTOP.
37770         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
37771         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
37772         (Depends-on, configure.ac): Update condition.
37773         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
37775 2011-09-16  Eric Blake  <eblake@redhat.com>
37777         test-fsync: yet another enhancement
37778         * tests/test-fsync.c (main): Also test behavior on read-only text
37779         file.
37781 2011-09-16  Bruno Haible  <bruno@clisp.org>
37783         Enhance fsync, fdatasync tests.
37784         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
37785         * tests/test-fdatasync.c (main): Likewise.
37787 2011-09-16  Bruno Haible  <bruno@clisp.org>
37789         Support for MSVC compiler: Ensure mode_t gets defined.
37790         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
37791         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
37792         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
37793         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
37794         * tests/test-fcntl-h.c: Check that mode_t is defined.
37795         * tests/test-sys_stat.c: Likewise.
37796         * tests/test-sys_types.c: Likewise.
37797         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
37798         * doc/posix-headers/sys_stat.texi: Likewise.
37799         * doc/posix-headers/sys_types.texi: Likewise.
37801 2011-09-16  Bruno Haible  <bruno@clisp.org>
37803         sys_stat: Support for MSVC.
37804         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
37805         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
37806         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
37807         MSVC.
37809 2011-09-16  Bruno Haible  <bruno@clisp.org>
37811         Support for MSVC compiler: Ensure off_t gets defined.
37812         * lib/unistd.in.h: Include <sys/types.h>.
37813         * tests/test-fcntl-h.c: Check that off_t is defined.
37814         * tests/test-sys_stat.c: Likewise.
37815         * tests/test-sys_types.c: Likewise.
37817 2011-09-16  Eric Blake  <eblake@redhat.com>
37819         fdatasync: port to Solaris
37820         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
37821         * modules/fdatasync (Link): Document it.
37822         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
37824         fdatasync: port to MacOS X 10.7
37825         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
37826         declared.
37827         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
37828         * modules/unistd (Makefile.am): Substitute it.
37829         * lib/unistd.in.h (fdatasync): Declare on MacOS.
37830         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
37832         fdatasync: minor improvements
37833         * modules/fdatasync (Depends-on): Add condition for fsync.
37834         * lib/fdatasync.c (fdatasync): Add comment.
37835         * tests/test-unistd-c++.cc: Test fdatasync.
37837         unistd: update refs to newer POSIX
37838         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
37839         Suggested by Bruno Haible.
37841         fdatasync: new module
37842         * modules/fsync (Description): Document difference to fdatasync.
37843         * modules/fdatasync: New module.
37844         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
37845         * lib/fdatasync.c (fdatasync): Likewise.
37846         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
37847         defaults.
37848         * modules/unistd (Makefile.am): Set witnesses.
37849         * lib/unistd.in.h (fdatasync): Declare.
37850         * MODULES.html.sh: Document it.
37851         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
37852         * modules/fdatasync-tests: New test.
37853         * tests/test-fdatasync.c: Likewise.
37855 2011-09-16  Eric Blake  <eblake@redhat.com>
37857         test-fsync: enhance tests
37858         * modules/fsync-tests (Depends-on): Add errno, for mingw.
37859         * tests/test-fsync.c (main): Enhance test.
37861 2011-09-15  Bruno Haible  <bruno@clisp.org>
37863         Support for MSVC compiler: Ensure ssize_t gets defined.
37864         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
37865         * doc/posix-headers/stdio.texi: Likewise.
37866         * modules/stdio (Depends-on): Add ssize_t.
37867         * modules/sys_socket (Depends-on): Likewise.
37868         * modules/sys_types (Depends-on): Likewise.
37869         * modules/sys_uio (Depends-on): Likewise.
37870         * modules/unistd (Depends-on): Likewise.
37871         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
37872         * tests/test-sys_types.c: Check that ssize_t is defined.
37874 2011-09-14  Bruno Haible  <bruno@clisp.org>
37876         Avoid using #, the m4 comment starter character, near brackets.
37877         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
37878         delimiter character in sed expressions.
37879         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
37880         Suggested by Eric Blake.
37882         Properly quote AC_CHECK_DECLS' 4th argument.
37883         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
37884         argument.
37885         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
37886         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
37887         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
37888         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
37889         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
37890         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
37891         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
37892         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
37893         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
37894         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
37895         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
37896         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
37897         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
37898         * m4/isinf.m4 (gl_ISINF): Likewise.
37899         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
37900         * m4/readutmp.m4 (gl_READUTMP): Likewise.
37901         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
37902         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
37903         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
37904         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
37905         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
37906         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
37907         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
37908         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
37909         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
37910         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
37911         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
37912         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
37913         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
37914         Reported by Eric Blake.
37916         Properly quote AC_CHECK_DECL's 4th argument.
37917         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
37918         argument.
37919         * m4/argp.m4 (gl_ARGP): Likewise.
37920         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
37921         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
37922         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
37923         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
37924         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
37925         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
37926         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
37927         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
37928         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
37929         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
37930         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
37931         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
37932         Reported by Eric Blake.
37934 2011-09-14  Eric Blake  <eblake@redhat.com>
37936         opendir: avoid compile warning
37937         * lib/opendir.c (includes): Always include errno.h.
37938         Reported by Tatsuro MATSUOKA.
37940 2011-09-14  Jim Meyering  <meyering@redhat.com>
37942         maint.mk: sc_tight_scope: propagate failure from sub-make
37943         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
37944         Reported by Martin von Gagern.
37946 2011-09-13  Bruno Haible  <bruno@clisp.org>
37948         tempname: Support for MSVC.
37949         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
37950         MSVC.
37951         * modules/tempname (Depends-on): Add fcntl-h.
37953 2011-09-13  Bruno Haible  <bruno@clisp.org>
37955         sys_time: Support for MSVC.
37956         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
37957         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
37958         include <winsock2.h>.
37959         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
37960         function declarations that collide with POSIX.
37961         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
37962         (Makefile.am): Substitute HAVE_WINSOCK2_H.
37964 2011-09-13  Bruno Haible  <bruno@clisp.org>
37966         stat: Support for MSVC.
37967         * lib/stat.c: Include pathmax.h.
37968         * modules/stat (Depends-on): Add pathmax.
37970         pathmax: Support for native Windows.
37971         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
37973 2011-09-12  Bruno Haible  <bruno@clisp.org>
37975         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
37976         * lib/dirent.in.h (struct dirent): New type.
37977         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
37978         DT_WHT): New macros.
37979         (DIR): New type.
37980         (opendir, closedir): Declare only if the module 'opendir' is enabled.
37981         (readdir, rewinddir): New declarations.
37982         * lib/dirent-private.h: New file.
37983         * lib/opendir.c: New file.
37984         * lib/readdir.c: New file.
37985         * lib/rewinddir.c: New file.
37986         * lib/closedir.c: New file.
37987         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
37988         * m4/opendir.m4: New file.
37989         * m4/readdir.m4: New file.
37990         * m4/rewinddir.m4: New file.
37991         * m4/closedir.m4: New file.
37992         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
37993         REPLACE_CLOSEDIR here.
37994         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
37995         readdir, rewinddir are declared.
37996         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
37997         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
37998         HAVE_REWINDDIR, HAVE_CLOSEDIR.
37999         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
38000         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
38001         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
38002         * modules/opendir: New file.
38003         * modules/readdir: New file.
38004         * modules/rewinddir: New file.
38005         * modules/closedir: New file.
38006         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
38007         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
38008         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
38009         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
38010         * NEWS: Mention the 'fchdir' change.
38012 2011-09-11  Bruno Haible  <bruno@clisp.org>
38014         asm-underscore.m4: Support for MSVC.
38015         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
38016         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
38018 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
38020         Doc about crypt functions.
38021         * doc/posix-functions/crypt.texi: Expand range of glibc versions
38022         needing for _GNU_SOURCE to get crypt.
38023         * doc/posix-functions/encrypt.texi: Likewise.
38024         * doc/posix-functions/setkey.texi: Likewise.
38026 2011-09-11  Bruno Haible  <bruno@clisp.org>
38028         doc: Update regarding MSVC 9.
38029         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
38030         tested".
38031         * doc/posix-functions/*.texi: Update with info about MSVC 9.
38032         * doc/posix-headers/*.texi: Likewise.
38033         * doc/pastposix-functions/*.texi: Likewise.
38034         * doc/glibc-functions/*.texi: Likewise.
38035         * doc/glibc-headers/*.texi: Likewise.
38037 2011-09-11  Bruno Haible  <bruno@clisp.org>
38039         unistd et al.: Don't assume <unistd.h> exists.
38040         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
38041         does not exist.
38042         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
38043         exist. But include <stdlib.h>.
38044         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
38045         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
38046         symlink() does not exist.
38047         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
38048         include <io.h> instead.
38049         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
38050         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
38051         include <direct.h> instead.
38052         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
38053         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
38054         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
38055         <io.h> instead.
38056         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
38057         correctly if the system does not have hard links.
38058         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
38059         <direct.h> instead.
38060         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
38061         it when looking for function declarations.
38062         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
38063         <direct.h> and <io.h> instead.
38064         * doc/posix-headers/unistd.texi: More details about MSVC problem.
38066 2011-09-11  Bruno Haible  <bruno@clisp.org>
38068         strcase: Support for MSVC.
38069         * modules/strcase (Status, Notice): Remove obsoletion mark.
38070         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
38071         * doc/posix-functions/strncasecmp.texi: Likewise.
38073         strings: Don't assume <strings.h> exists.
38074         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
38075         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
38076         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
38077         * doc/posix-headers/strings.texi: Mention the MSVC problem.
38079 2011-09-11  Bruno Haible  <bruno@clisp.org>
38081         dirent: Don't assume <dirent.h> exists.
38082         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
38083         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
38084         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
38085         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
38087 2011-09-11  Bruno Haible  <bruno@clisp.org>
38089         Fix wint_t on MSVC.
38090         * lib/wchar.in.h (wint_t): On MSVC, override it.
38091         * lib/wctype.in.h (wint_t): Likewise.
38092         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
38093         MSVC.
38094         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
38095         * doc/posix-headers/wctype.texi: Likewise.
38097 2011-09-11  Bruno Haible  <bruno@clisp.org>
38099         sys_types: Fix typo.
38100         * lib/sys_types.in.h: Fix typo in comment.
38101         Reported by Paul Eggert.
38103         Support for MSVC compiler: Ensure size_t gets defined.
38104         * modules/strings (Depends-on): Add 'sys_types'.
38105         * modules/sys_uio (Depends-on): Likewise.
38106         * lib/sys_uio.in.h: Update comment.
38108         C++ tests for module 'sys_types'.
38109         * modules/sys_types-c++-tests: New file.
38110         * tests/test-sys_types-c++.cc: New file.
38112         Tests for module 'sys_types'.
38113         * modules/sys_types-tests: New file.
38114         * tests/test-sys_types.c: New file.
38116         New module 'sys_types'.
38117         * lib/sys_types.in.h: New file.
38118         * m4/sys_types_h.m4: New file.
38119         * modules/sys_types: New file.
38120         * doc/posix-headers/sys_types.texi: Mention the new module and the
38121         size_t problem on MSVC 9.
38123 2011-09-11  Bruno Haible  <bruno@clisp.org>
38125         Support for MSVC compiler: Avoid division by a literal 0.
38126         * lib/math.in.h (NAN): Define through a function call also on MSVC.
38127         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
38128         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
38129         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
38130         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
38131         * tests/infinity.h: New file.
38132         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
38133         on MSVC.
38134         * tests/test-ceilf1.c: Include infinity.h.
38135         (main): Use Infinityf.
38136         * tests/test-ceil1.c: Include infinity.h.
38137         (main): Use Infinityd.
38138         * tests/test-ceill.c: Include infinity.h.
38139         (main): Use Infinityl.
38140         * tests/test-dprintf-posix.c: Include infinity.h.
38141         (test_function): Use Infinityd.
38142         * tests/test-floorf1.c: Include infinity.h.
38143         (main): Use Infinityf.
38144         * tests/test-floor1.c: Include infinity.h.
38145         (main): Use Infinityd.
38146         * tests/test-floorl.c: Include infinity.h.
38147         (main): Use Infinityl.
38148         * tests/test-fprintf-posix.c: Include infinity.h.
38149         (test_function): Use Infinityd.
38150         * tests/test-frexp.c: Include infinity.h.
38151         (main): Use Infinityd.
38152         * tests/test-frexpl.c: Include infinity.h.
38153         (main): Use Infinityl.
38154         * tests/test-isfinite.c: Include infinity.h.
38155         (test_isfinitef): Use Infinityf.
38156         (test_isfinited): Use Infinityd.
38157         (test_isfinitel): Use Infinityl.
38158         * tests/test-isinf.c: Include infinity.h.
38159         (test_isinff): Use Infinityf.
38160         (test_isinfd): Use Infinityd.
38161         (test_isinfl): Use Infinityl.
38162         * tests/test-isnan.c: Include infinity.h.
38163         (test_float): Use Infinityf.
38164         (test_double): Use Infinityd.
38165         (test_long_double): Use Infinityl.
38166         * tests/test-isnanf.h: Include infinity.h.
38167         (main): Use Infinityf.
38168         * tests/test-isnand.h: Include infinity.h.
38169         (main): Use Infinityd.
38170         * tests/test-isnanl.h: Include infinity.h.
38171         (main): Use Infinityl.
38172         * tests/test-ldexpl.c: Include infinity.h.
38173         (main): Use Infinityl.
38174         * tests/test-printf-posix.h: Include infinity.h.
38175         (test_function): Use Infinityd.
38176         * tests/test-roundf1.c: Include infinity.h.
38177         (main): Use Infinityf.
38178         * tests/test-round1.c: Include infinity.h.
38179         (main): Use Infinityd.
38180         * tests/test-roundl.c: Include infinity.h.
38181         (main): Use Infinityl.
38182         * tests/test-signbit.c: Include infinity.h.
38183         (test_signbitf): Use Infinityf.
38184         (test_signbitd): Use Infinityd.
38185         (test_signbitl): Use Infinityl.
38186         * tests/test-snprintf-posix.h: Include infinity.h.
38187         (test_function): Use Infinityd, Infinityl.
38188         * tests/test-sprintf-posix.h: Include infinity.h.
38189         (test_function): Use Infinityd, Infinityl.
38190         * tests/test-truncf1.c: Include infinity.h.
38191         (main): Use Infinityf.
38192         * tests/test-trunc1.c: Include infinity.h.
38193         (main): Use Infinityd.
38194         * tests/test-truncl.c: Include infinity.h.
38195         (main): Use Infinityl.
38196         * tests/test-vasnprintf-posix.c: Include infinity.h.
38197         (test_function): Use Infinityd, Infinityl.
38198         * tests/test-vasprintf-posix.c: Include infinity.h.
38199         (test_function): Use Infinityd, Infinityl.
38200         * modules/ceilf-tests (Files): Add tests/infinity.h.
38201         * modules/ceil-tests (Files): Likewise.
38202         * modules/ceill-tests (Files): Likewise.
38203         * modules/dprintf-posix-tests (Files): Likewise.
38204         * modules/floorf-tests (Files): Likewise.
38205         * modules/floor-tests (Files): Likewise.
38206         * modules/floorl-tests (Files): Likewise.
38207         * modules/fprintf-posix-tests (Files): Likewise.
38208         * modules/frexp-tests (Files): Likewise.
38209         * modules/frexp-nolibm-tests (Files): Likewise.
38210         * modules/frexpl-tests (Files): Likewise.
38211         * modules/frexpl-nolibm-tests (Files): Likewise.
38212         * modules/isfinite-tests (Files): Likewise.
38213         * modules/isinf-tests (Files): Likewise.
38214         * modules/isnan-tests (Files): Likewise.
38215         * modules/isnanf-tests (Files): Likewise.
38216         * modules/isnanf-nolibm-tests (Files): Likewise.
38217         * modules/isnand-tests (Files): Likewise.
38218         * modules/isnand-nolibm-tests (Files): Likewise.
38219         * modules/isnanl-tests (Files): Likewise.
38220         * modules/isnanl-nolibm-tests (Files): Likewise.
38221         * modules/ldexpl-tests (Files): Likewise.
38222         * modules/printf-posix-tests (Files): Likewise.
38223         * modules/roundf-tests (Files): Likewise.
38224         * modules/round-tests (Files): Likewise.
38225         * modules/roundl-tests (Files): Likewise.
38226         * modules/signbit-tests (Files): Likewise.
38227         * modules/snprintf-posix-tests (Files): Likewise.
38228         * modules/sprintf-posix-tests (Files): Likewise.
38229         * modules/truncf-tests (Files): Likewise.
38230         * modules/trunc-tests (Files): Likewise.
38231         * modules/truncl-tests (Files): Likewise.
38232         * modules/vasnprintf-posix-tests (Files): Likewise.
38233         * modules/vasprintf-posix-tests (Files): Likewise.
38234         * modules/vdprintf-posix-tests (Files): Likewise.
38235         * modules/vfprintf-posix-tests (Files): Likewise.
38236         * modules/vprintf-posix-tests (Files): Likewise.
38237         * modules/vsnprintf-posix-tests (Files): Likewise.
38238         * modules/vsprintf-posix-tests (Files): Likewise.
38239         * modules/xprintf-posix-tests (Files): Likewise.
38241 2011-09-11  Bruno Haible  <bruno@clisp.org>
38243         Ensure pid_t gets defined.
38244         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
38245         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
38246         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
38247         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
38248         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
38249         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
38250         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
38251         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
38252         * tests/test-fcntl-h.c: Check that pid_t is defined.
38253         * tests/test-sched.c: Likewise.
38254         * tests/test-termios.c: Likewise.
38255         * tests/test-time.c: Likewise.
38256         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
38257         * doc/posix-headers/signal.texi: Likewise.
38258         * doc/posix-headers/sys_types.texi: Likewise.
38259         * doc/posix-headers/time.texi: Likewise.
38261 2011-09-11  Bruno Haible  <bruno@clisp.org>
38263         acl: Fix compilation on Solaris 10 (older version).
38264         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
38265         of ACE_EVERYONE.
38266         * lib/set-mode-acl.c (qset_acl): Likewise.
38267         Reported by Christian Jullien <eligis@orange.fr>.
38269 2011-09-10  Bruno Haible  <bruno@clisp.org>
38271         iconv, unsetenv: Add support for MSVC compiler.
38272         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
38273         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
38275 2011-09-10  Bruno Haible  <bruno@clisp.org>
38277         *printf: Add support for MSVC compiler.
38278         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
38279         handles the exception caused by the %n directive. When cross-compiling,
38280         guess no on native Windows.
38281         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
38282         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
38283         emulate it through vsnprintf.
38284         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
38285         * doc/posix-functions/dprintf.texi: Update documentation regarding
38286         MSVC 9.
38287         * doc/posix-functions/fprintf.texi: Likewise.
38288         * doc/posix-functions/printf.texi: Likewise.
38289         * doc/posix-functions/snprintf.texi: Likewise.
38290         * doc/posix-functions/sprintf.texi: Likewise.
38291         * doc/posix-functions/swprintf.texi: Likewise.
38292         * doc/posix-functions/vdprintf.texi: Likewise.
38293         * doc/posix-functions/vfprintf.texi: Likewise.
38294         * doc/posix-functions/vprintf.texi: Likewise.
38295         * doc/posix-functions/vsnprintf.texi: Likewise.
38296         * doc/posix-functions/vsprintf.texi: Likewise.
38297         * doc/glibc-functions/asprintf.texi: Likewise.
38298         * doc/glibc-functions/obstack_printf.texi: Likewise.
38299         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
38300         * doc/glibc-functions/vasprintf.texi: Likewise.
38302 2011-09-10  Bruno Haible  <bruno@clisp.org>
38304         nocrash: Add support for native Windows.
38305         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
38307 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
38308             Bruno Haible  <bruno@clisp.org>
38310         absolute-header, include-next: Add support for MSVC compiler.
38311         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
38312         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
38313         directory separator in #line directives.
38314         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
38315         recognize also backslash as directory separator in #line directives.
38317 2011-09-08  Jim Meyering  <meyering@redhat.com>
38319         maint.mk: mark the post-release commit log with "maint: " prefix
38320         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
38321         one-line commit-log summary.
38323 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
38324             Bruno Haible  <bruno@clisp.org>
38326         Doc about crypt functions.
38327         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
38328         systems.
38329         * doc/posix-functions/encrypt.texi: Likewise.
38330         * doc/posix-functions/setkey.texi: Likewise.
38332 2011-09-08  Simon Josefsson  <simon@josefsson.org>
38334         * lib/gc.h: Fix copyright header.
38336 2011-09-07  Bruno Haible  <bruno@clisp.org>
38338         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
38339         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
38340         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
38342 2011-09-07  Bruno Haible  <bruno@clisp.org>
38344         openat: Work around compilation error with OSF/1 5.1 DTK cc.
38345         * lib/fopen.c: Use different syntax for include of <stdio.h>.
38346         * lib/freopen.c: Likewise.
38347         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
38348         * lib/lstat.c: Likewise.
38349         * lib/stat.c: Likewise.
38350         * lib/open.c: Use different syntax for include of <fcntl.h>.
38351         * lib/openat.c: Include fcntl.h again, explicitly.
38353 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
38355         parse-datetime: document the newly accepted format
38356         * doc/parse-datetime.texi (Combined date and time of day items):
38357         New section.
38359 2011-09-06  Bruno Haible  <bruno@clisp.org>
38361         acl: Fix a test failure on newer Solaris 10 with ZFS.
38362         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
38363         ENOSYS as no ACL.
38364         Reported by Jim Meyering.
38366 2011-09-06  Bruno Haible  <bruno@clisp.org>
38368         acl: Update for AIX >= 5.3 with NFS.
38369         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
38370         ENOSYS as no ACL.
38372         acl: Fix a test failure on AIX >= 5.3 with NFS.
38373         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
38374         as no ACL.
38376 2011-09-06  Bruno Haible  <bruno@clisp.org>
38378         acl: Fix a test failure on IRIX 6.5 with NFS.
38379         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
38380         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
38381         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
38382         * lib/copy-acl.c (qcopy_acl): Likewise.
38384 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
38386         openat: port to AIX 7.1 with large files
38387         AIX 7.1 does a "#define openat open64at" if large files are in use,
38388         so we can't simply #undef openat.  Use the orig_openat trick (similar
38389         to orig_open in lib/open.c) to work around the problem.  Problem
38390         reported by Kevin Brott for GNU tar, in the thread containing
38391         <http://lists.gnu.org/r/bug-tar/2011-09/msg00032.html>.
38392         * lib/openat.c (__need_system_fcntl_h): Define first.
38393         Include <fcntl.h> and <sys/types.h> before undefining.
38394         (orig_openat) [HAVE_OPENAT]: New inline function.
38395         (openat) [HAVE_OPENAT]: Do not undef.
38396         (rpl_openat): Use orig_openat, not openat.
38398 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
38399             Bruno Haible  <bruno@clisp.org>
38401         acl: Avoid errors on NonStop Kernel.
38402         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
38403         ENOTSUP errors.
38405 2011-09-05  Bruno Haible  <bruno@clisp.org>
38407         acl: Clean up Solaris code.
38408         * lib/acl-internal.h: Remove no-op #if.
38409         * lib/file-has-acl.c: Likewise.
38410         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
38411         * lib/copy-acl.c (qcopy_acl): Likewise.
38413 2011-09-05  Bruno Haible  <bruno@clisp.org>
38415         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
38416         binaries built on the original Solaris 10.
38417         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
38418         trivial.
38420 2011-09-05  Bruno Haible  <bruno@clisp.org>
38422         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
38423         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
38424         10.
38425         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
38426         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
38427         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
38428         instead of acl_get, facl_get, acl_set, facl_set.
38430 2011-09-05  Bruno Haible  <bruno@clisp.org>
38432         copy-file: Try unit tests on more file systems.
38433         * tests/test-copy-file-1.sh: New file.
38434         * tests/test-copy-file-2.sh: New file.
38435         * modules/copy-file-tests (Files): Add them.
38436         (Makefile.am): Add them to TESTS.
38438         acl: Try unit tests on more file systems.
38439         * tests/test-file-has-acl-1.sh: New file.
38440         * tests/test-file-has-acl-2.sh: New file.
38441         * tests/test-set-mode-acl-1.sh: New file.
38442         * tests/test-set-mode-acl-2.sh: New file.
38443         * tests/test-copy-acl-1.sh: New file.
38444         * tests/test-copy-acl-2.sh: New file.
38445         * modules/acl-tests (Files): Add them.
38446         (Makefile.am): Add them to TESTS.
38448 2011-09-04  Bruno Haible  <bruno@clisp.org>
38450         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
38451         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
38452         10.
38453         (OLD_ALLOW, OLD_DENY): New macros.
38454         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
38455         ACE_ACCESS_ALLOWED_ACE_TYPE.
38456         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
38457         ACE_ACCESS_DENIED_ACE_TYPE.
38458         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
38459         (NEW_ACE_EXECUTE): Fix value.
38460         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
38461         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
38462         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
38463         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
38464         NEW_ACE_SYNCHRONIZE): New macros.
38465         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
38466         instead of acl_fromtext, acl_set, facl_set.
38467         Fixes a coreutils/tests/cp/perm failure.
38469 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
38471         openat: test for fstatat (..., 0) bug
38472         Further testing with tar suggests that fstatat (..., 0)
38473         does not work in general, on AIX 7.1; see
38474         <http://lists.gnu.org/r/bug-tar/2011-09/msg00023.html>.
38475         So, give up entirely on AIX 7.1's fstatat, and fall back on our
38476         replacement fstatat (which is what older AIX releases were using
38477         anyway).
38478         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
38479         use is now changed to orig_fstatat.  This was probably the right
38480         thing to do anyway.
38481         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
38482         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
38483         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
38484         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
38485         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
38486         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
38487         if the bug is found.
38489         openat: test for fstatat (AT_FDCWD, ..., 0) bug
38490         This tests for another fstatat bug on AIX 7.1:
38491         fstatat (AT_FDCWD, ..., 0) does not work.  See
38492         <http://lists.gnu.org/r/bug-tar/2011-09/msg00015.html>.
38493         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
38494         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
38495         (rpl_fstatat): Adjust so that it works around either (or both)
38496         bugs if present.
38497         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
38499 2011-09-03  Karl Berry  <karl@gnu.org>
38501         * doc/regex.texi (Character Class Operators): Avoid literal ":"
38502         in index entries.
38504 2011-09-02  Bruno Haible  <bruno@clisp.org>
38506         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
38507         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
38508         values of AR, ARFLAGS, RANLIB.
38509         Reported by John W. Eaton <jwe@gnu.org> for Octave.
38511 2011-09-02  Bruno Haible  <bruno@clisp.org>
38513         Find 'ar' program that fits with --host argument.
38514         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
38516 2011-09-02  Bruno Haible  <bruno@clisp.org>
38518         tests: init.sh: Support any non-GNU diff.
38519         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
38520         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
38521         Solaris 8.
38523 2011-09-02  Bruno Haible  <bruno@clisp.org>
38525         tests: init.sh: work also with any non-GNU diff that supports -u
38526         * tests/init.sh: Relax check for diff -u support.
38527         Rather than checking for GNU diff via --version, simply check
38528         for support for -u itself.  Useful at least on OpenBSD 4.9,
38529         AIX 7.1, IRIX 6.5, and Solaris 10.
38531 2011-09-01  Bruno Haible  <bruno@clisp.org>
38533         strtoimax, strtoumax: Document problem on HP-UX 11.
38534         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
38535         * doc/posix-functions/strtoumax.texi: Likewise.
38537 2011-09-01  Bruno Haible  <bruno@clisp.org>
38539         strtoumax: Avoid link error on OSF/1 with DTK cc.
38540         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
38541         defined as a function.
38542         * modules/strtoumax (Depends-on, configure.ac): Test only whether
38543         strtoumax is defined, not whether it is declared.
38545 2011-09-01  Bruno Haible  <bruno@clisp.org>
38547         strtoimax: Avoid link error on OSF/1 with DTK cc.
38548         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
38549         defined as a function.
38550         * modules/strtoimax (Depends-on, configure.ac): Test only whether
38551         strtoimax is defined, not whether it is declared.
38553 2011-09-01  Bruno Haible  <bruno@clisp.org>
38555         imaxdiv: Avoid link error on OSF/1 with DTK cc.
38556         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
38557         as a function.
38558         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
38559         whether it is declared.
38561 2011-09-01  Bruno Haible  <bruno@clisp.org>
38563         imaxabs: Avoid link error on OSF/1 with DTK cc.
38564         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
38565         as a function.
38566         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
38567         whether it is declared.
38569 2011-09-01  Bruno Haible  <bruno@clisp.org>
38571         Tests for module 'strtoumax'.
38572         * modules/strtoumax-tests: New file.
38573         * tests/test-strtoumax.c: New file.
38575         Tests for module 'strtoimax'.
38576         * modules/strtoimax-tests: New file.
38577         * tests/test-strtoimax.c: New file.
38579         Tests for module 'imaxdiv'.
38580         * modules/imaxdiv-tests: New file.
38581         * tests/test-imaxdiv.c: New file.
38583         Tests for module 'imaxabs'.
38584         * modules/imaxabs-tests: New file.
38585         * tests/test-imaxabs.c: New file.
38587 2011-09-01  Bruno Haible  <bruno@clisp.org>
38589         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
38590         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
38591         pthread_create.
38593 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
38595         openat: work around AIX 7.1 fstatat issue
38596         This should fix the problem that was not properly fixed
38597         in the previous change, dated 2011-08-30.
38598         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
38599         __need_system_stat_h defined.
38600         (orig_fstatat) [HAVE_FSTATAT]: New function.
38601         (rpl_fstatat): Go back to the old way of doing things,
38602         except call orig_fstatat instead of fstatat.
38603         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
38604         Remove unnecessary check whether fstatat fills in st_size etc.
38606 2011-09-01  Bruno Haible  <bruno@clisp.org>
38608         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
38609         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
38610         just include the system's header.
38612 2011-08-31  Jim Meyering  <meyering@redhat.com>
38614         tests: avoid spurious assertion failure in test-float.c on ppc64
38615         * tests/test-float.c (test_long_double): Comment out an assertion,
38616         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
38617         with gcc-4.4.4.
38619         maint: indent with spaces, not TABs
38620         I need to get in the habit of running gnulib's "make check".
38621         Both of these would have been caught.
38622         * m4/largefile.m4: Indent with spaces, not TABs.
38623         * lib/parse-datetime.y (iso_8601_time): Likewise.
38624         Spotted by Pádraig Brady.
38626         test-parse-datetime.c: accommodate a relatively strict gcc warning
38627         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
38628         to avoid a warning from gcc's -Werror=missing-declarations.
38629         Insert a few spaces-before-funcall-parenthesis.
38631 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
38633         parse-datetime: accept ISO 8601 date and time rep with "T" separator
38634         The parser now accepts ISO 8601 date-time strings with "T" as the
38635         separator.  It has long parsed dates like "2004-02-29 16:21:42"
38636         with a space between the date and time strings.  Now it also parses
38637         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
38638         variants like "2004-02-29T16:21:42.333-07:00"
38639         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
38640         of day representation using the 'T' separator character.
38641         * doc/parse-datetime.texi (General date syntax): replace use of
38642         deprecated --iso-8601 option with --rfc-3339 in example of date
38643         command output formats that can be parsed.
38644         * tests/test-parse-datetime.c (tm_diff): New function, taken from
38645         lib/parse-datetime.y.
38646         (gmt_offset): New function.
38647         (main): Add additional test cases to validate ISO8601 extended
38648         date and time of day parsing.
38650 2011-08-31  Bruno Haible  <bruno@clisp.org>
38652         freopen: Documentation.
38653         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
38654         name.
38655         Reported by Claudio Bley <claudio.bley@gmail.com>.
38657 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
38659         freopen: Don't crash if the filename argument is NULL.
38660         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
38661         NULL.
38663 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
38665         openat: work around AIX 7.1 fstatat bug
38666         Problem reported by Kevin Brott for GNU tar, in the thread containing
38667         <http://lists.gnu.org/r/bug-tar/2011-08/msg00015.html>.
38668         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
38669         FSTATAT_ST_SIZE_ETC_BROKEN.
38670         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
38671         rpl_fstatat.
38672         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
38673         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
38674         AC_CHECK_FUNCS_ONCE for fstatat.
38675         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
38676         fchmodat, mkdirat, openat and unlinkat.
38678 2011-08-30  Bruno Haible  <bruno@clisp.org>
38680         Avoid endless recursions if config.h includes some header files.
38681         * lib/fopen.c (__need_FILE): Define already before including config.h.
38682         * lib/freopen.c (__need_FILE): Likewise.
38683         * lib/open.c (__need_system_fcntl_h): Likewise.
38684         * lib/stat.c (__need_system_sys_stat_h): Likewise.
38685         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
38686         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
38688 2011-08-25  Karl Berry  <karl@gnu.org>
38690         * config/srclist.txt (ylwrap): new try.
38691         * build-aux/ylwrap: new file.
38693 2011-08-23  Bruno Haible  <bruno@clisp.org>
38695         tmpdir: Use a good default directory on native Windows.
38696         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
38697         (P_tmpdir): Default to _P_tmpdir on native Windows.
38698         (path_search): On native Windows, try the value returned by GetTempPath
38699         before trying P_tmpdir.
38700         * modules/tmpdir (Depends-on): Add pathmax.
38701         Suggested by John Darrington <john@darrington.wattle.id.au>.
38703 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
38705         doc: fix typo in README-release
38706         * top/README-release: Capitalize first word of a sentence.
38708 2011-08-19  Jim Meyering  <meyering@redhat.com>
38710         fts: do not exhaust memory when processing million-entry directories
38711         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
38712         directory would require about 256*N bytes of memory.  Thus, it was
38713         easy to construct a directory too large to be processed by any of
38714         those tools.  With this change, fts' maximum memory utilization is
38715         now limited to around 30MB.
38716         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
38717         (fts_read): When we've processed the final entry (i.e., when
38718         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
38719         using the parent entry to read any remaining entries.  Dispatch
38720         depending on what fts_build returns:
38721         - NULL+stop, aka failure: stop
38722         - NULL otherwise: move up in the dir hierarchy
38723         - non-NULL: handle this new entry
38724         (fts_build): Declare and use new local, continue_readdir.
38725         Prepare to be called from fts_read, when the entries
38726         from a partially-read directory have just been exhausted.
38727         In that case, we'll skip the opendir and instead use the parent's
38728         fts_dirp and derive dir_fd from that.
38729         Finally, in the readdir loop, if we read max_entries entries,
38730         exit the loop ensuring *not* to call closedir.  This is required
38731         so that fts_dirp can be reused on a subsequent call.
38732         Prompted by Ben England's report of memory exhaustion in find
38733         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
38735         maint: fts: move decl of `dp' down into while loop; split a long line
38736         * lib/fts.c (fts_build): No semantic change.
38738         fts: add/use new struct member, fts_dirp
38739         We are about to use this to manage any directory with
38740         too many entries to read all of them into memory at once.
38741         To do that, we'll need to save the DIR* pointer in each
38742         affected FTSENT struct.
38743         * lib/fts_.h: Include <dirent.h>.
38744         (struct FTSENT) [fts_dirp]: New member.
38745         * lib/fts.c (closedir_and_clear): Define.
38746         Use it in place of closedir so that we are sure to
38747         clear the new fts_dirp member when done with it.
38748         (fts_alloc): Initialize the new member.
38749         (fts_lfree): Free, if needed.
38751         maint: fts: give __opendir2 a new parameter and rename
38752         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
38753         than surreptitiously using sole caller's "dir_fd".
38754         (fts_opendir): Rename from __opendir2.
38756         maint: fts.c: remove __opendir2's now-unused parameter, oflag
38757         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
38759         maint: fts.c: correct off-by-one indentation
38760         * lib/fts.c (fts_build): Correct indentation, change style
38761         of a couple of block comments, and bracing style.
38763         maint: fts.c: move __opendir2 #define "up" out of function body
38764         * lib/fts.c (__opendir2): Move "up".  No semantic change.
38766         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
38767         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
38768         out for a long time and besides was useful only on BSD systems.
38770 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
38772         regex: port to Stratus OpenVOS
38773         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
38774         define to empty, rather than attempting nonportable optimizations.
38775         Problem reported by Paul Green in:
38776         http://lists.gnu.org/r/bug-diffutils/2011-08/msg00047.html
38777         and fix suggested by Eric Blake in:
38778         http://lists.gnu.org/r/bug-gnulib/2011-08/msg00143.html
38780 2011-08-17  Eric Blake  <eblake@redhat.com>
38782         getcwd: fix test failures on mingw
38783         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
38784         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
38785         test if long directory cannot be created, and allow mingw errno.
38787         getcwd-lgpl: fix m4 to match relaxed test for BSD
38788         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
38789         (gl_FUNC_GETCWD_SIGNATURE): New macro.
38790         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
38791         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
38792         signature problem.
38794         getcwd: fix compilation on mingw64
38795         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
38796         getcwd.
38797         Reported by Marc-André Lureau.
38799         pipe2: silence compiler warning
38800         * lib/pipe2.c (pipe2): Hide label if it is not used.
38802 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
38804         relocatable-prog: fix link error
38805         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
38806         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
38807         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
38808         into modules/relocatable-lib without noticing that
38809         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
38810         also needs to build relocatable.c.
38812 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
38814         getaddrinfo: fix sh typo in gai_strerrorA decl checking
38815         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
38816         shell code: it contained a 'break' that was not in a loop.
38817         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
38818         via a shell-language loop; this may have been true in old Autoconf
38819         versions, but it's not true in Autoconf 2.68.  I found this bug
38820         when testing coreutils git on Solaris 8, whose shell complains
38821         about the syntax error.
38823 2011-08-12  Simon Josefsson  <simon@josefsson.org>
38825         * lib/base64.c: Fix comment to reference RFC 4648.
38826         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
38827         <gvtulder@gmail.com>.
38829 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
38831         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
38833         po/Makefile.in.in: fix make -q problem
38834         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
38835         rule, since there's no file named 'check-macro-version' and its
38836         use as a file breaks make -q.
38837         (all): Don't depend on check-macro-version.
38838         (CHECK_MACRO_VERSION): New macro.
38839         (stamp-po): Use it.
38841         configmake: fix make -q problem
38842         * modules/configmake (configmake.h): Update configmake.h's time stamp
38843         even if the file does not change.  Otherwise, 'make -q' fails.
38844         Problem reported by Simon Josefsson in
38845         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00088.html>.
38847 2011-08-11  Jim Meyering  <meyering@redhat.com>
38849         git-version-gen: correct the advice in a comment
38850         * build-aux/git-version-gen: Correct comment.
38851         Don't recommend to list .tarball-version in .gitignore.
38853 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
38855         base64: fix off-by-one buffer size bug
38856         Problem and (trivial) fix reported by Gijs van Tulder in
38857         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00083.html>.
38858         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
38859         * tests/test-base64.c (main): Catch the bug.
38861 2011-08-10  Eric Blake  <eblake@redhat.com>
38863         closein: correct comments
38864         * lib/closein.c (close_stdin): Improve comments.
38866 2011-08-09  Bruno Haible  <bruno@clisp.org>
38868         More tests for 'fseeko'.
38869         * tests/test-fseeko3.c: New file, from Eric Blake.
38870         * tests/test-fseeko3.sh: New file.
38871         * modules/fseeko-tests (Files): Add them.
38872         (TESTS): Add test-fseeko3.sh.
38873         (check_PROGRAMS): Add test-fseeko3.
38875 2011-08-09  Eric Blake  <eblake@redhat.com>
38877         fseeko: remove unneeded hack
38878         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
38880         fseeko: fix bug on glibc
38881         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
38882         Reported by John W. Eaton.
38884 2011-08-08  Bruno Haible  <bruno@clisp.org>
38886         unictype/base: Fix interoperability with preinstalled libunistring.
38887         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
38888         Reported by Simon Josefsson.
38890 2011-08-08  Bruno Haible  <bruno@clisp.org>
38892         iswblank: Detect declaration correctly.
38893         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
38894         AC_CHECK_DECLS invocation.
38896 2011-08-08  Bruno Haible  <bruno@clisp.org>
38898         tcgetsid: Detect declaration correctly.
38899         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
38900         AC_CHECK_DECLS invocation.
38901         Reported by Simon Josefsson.
38903 2011-08-08  Eric Blake  <eblake@redhat.com>
38905         largefile: fix typo that regressed large file support
38906         * modules/largefile (configure.ac-early): Fix section name.
38908 2011-08-06  Karl Berry  <karl@gnu.org>
38910         * MODULES.html.sh (func_all_files): _Noreturn is no longer
38911         a separate module.
38913 2011-08-05  Simon Josefsson  <simon@josefsson.org>
38915         openat: Fix warnings and commens when building unlinkat.c on Hurd.
38916         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
38917         get prototype for free.
38919 2011-08-04  Bruno Haible  <bruno@clisp.org>
38921         Tests for module 'pathmax'.
38922         * modules/pathmax-tests: New file.
38923         * tests/test-pathmax.c: New file.
38925         canonicalize-lgpl: Support larger filenames on the Hurd.
38926         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
38927         Reported by Paul Eggert.
38929         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
38930         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
38931         * lib/chdir-long.h: Include pathmax.h.
38932         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
38933         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
38934         (PATH_MAX): Remove code that is done by pathmax.h.
38935         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
38936         * lib/tmpfile.c: Add a comment.
38937         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
38938         * modules/chdir-long (Depends-on): Add pathmax.
38939         * modules/getcwd (Depends-on): Add pathmax.
38940         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
38941         is not defined.
38942         * doc/posix-headers/limits.texi: Mention the pathmax module.
38943         * NEWS: Mention the change.
38945 2011-08-02  Bruno Haible  <bruno@clisp.org>
38947         pthread_sigmask: Actually use results of gl_THREADLIB.
38948         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
38949         gl_THREADLIB, not gl_[]THREADLIB.
38950         Reported by Eric Blake.
38952 2011-08-02  Jim Meyering  <meyering@redhat.com>
38954         maint.mk: relax the default _gl_TS_function_match regexp
38955         * top/maint.mk (_gl_TS_function_match): Don't require at least one
38956         space between function name and "(" in an "extern" declaration.
38957         That would fail to match a decl with no space there: extern void foo();
38959 2011-07-31  Iain Nicol  <iain@thenicols.net>
38961         git-version-gen: document that EXTRA_DIST must include .version
38962         * build-aux/git-version-gen: In the how-to-use comment, document
38963         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
38964         will fail when run from an unpacked distribution tarball.
38966 2011-08-01  Bruno Haible  <bruno@clisp.org>
38968         wctype-h: Fix last change.
38969         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
38970         REPLACE_TOWLOWER to 0.
38971         Reported by Sam Steingold <sds@gnu.org>.
38973 2011-07-31  Bruno Haible  <bruno@clisp.org>
38975         frexpl: Update autoconf test.
38976         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
38977         according to changes of 2011-06-20.
38979 2011-07-31  Bruno Haible  <bruno@clisp.org>
38981         sys_utsname: Add support for Minix.
38982         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
38983         <sys/utsname.h>.
38984         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
38985         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
38987 2011-07-31  Bruno Haible  <bruno@clisp.org>
38989         strings: Add support for Minix.
38990         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
38991         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
38992         * doc/posix-headers/strings.texi: Document the Minix problem.
38994 2011-07-31  Bruno Haible  <bruno@clisp.org>
38996         wctype-h: Add support for Minix.
38997         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
38998         REPLACE_TOWLOWER.
38999         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
39000         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
39001         REPLACE_ISWCNTRL.
39003 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
39005         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
39006         This is a performance improvement for 64-bit hosts: it causes the
39007         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
39009 2011-07-31  Bruno Haible  <bruno@clisp.org>
39011         stdioext: Add support for Minix.
39012         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
39013         * lib/fpurge.c (fpurge): Likewise.
39014         * lib/freadahead.c (freadahead): Likewise.
39015         * lib/freadable.c (freadable): Likewise.
39016         * lib/freading.c (freading): Likewise.
39017         * lib/freadptr.c (freadptr): Likewise.
39018         * lib/freadseek.c (freadptrinc): Likewise.
39019         * lib/fseeko.c (rpl_fseeko): Likewise.
39020         * lib/fseterr.c (fseterr): Likewise.
39021         * lib/fwritable.c (fwritable): Likewise.
39022         * lib/fwriting.c (fwriting): Likewise.
39023         * lib/fflush.c (clear_ungetc_buffer): Update comment.
39024         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
39026 2011-07-31  Bruno Haible  <bruno@clisp.org>
39028         errno: Port to Minix.
39029         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
39030         ECONNABORTED are defined.
39031         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
39032         GNULIB_defined_ECONNABORTED): New macros.
39033         * lib/strerror-override.h (strerror_override): Test also
39034         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
39035         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
39036         ECONNABORTED.
39037         * doc/posix-headers/errno.texi: Mention the Minix problem.
39039 2011-07-31  Bruno Haible  <bruno@clisp.org>
39041         Work around declaration collisions on Minix.
39042         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
39043         defined, set REPLACE_MBSINIT.
39044         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
39045         defined, set REPLACE_MBRTOWC.
39046         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
39047         set REPLACE_MBRLEN.
39048         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
39049         defined, set REPLACE_MBSRTOWCS.
39050         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
39051         defined, set REPLACE_WCRTOMB.
39052         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
39053         defined, set REPLACE_WCSRTOMBS.
39055 2011-07-31  Bruno Haible  <bruno@clisp.org>
39057         Add support for Minix with ACK compiler.
39058         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
39059         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
39060         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
39062 2011-07-31  Bruno Haible  <bruno@clisp.org>
39064         Documentation about Minix.
39065         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
39066         * doc/glibc-headers/*.texi: Likewise.
39067         * doc/posix-functions/*.texi: Likewise.
39068         * doc/glibc-functions/*.texi: Likewise.
39070 2011-07-31  Bruno Haible  <bruno@clisp.org>
39072         snippet/warn-on-use: Fix indentation.
39073         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
39075 2011-07-25  Jim Meyering  <meyering@redhat.com>
39077         tests: test-update-copyright.sh: remove unnecessary "rm" commands
39078         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
39079         commands.
39081 2011-07-27  Jim Meyering  <meyering@redhat.com>
39083         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
39084         * top/maint.mk (gl_extract_significant_defines_): Now that
39085         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
39086         gnulib/lib/signal.in.h, and now that we recommend to
39087         define-if-undefined those two symbols in application code,
39088         we must filter them out of the "significant" list.
39089         This avoids a "make syntax-check" failure in coreutils.
39091 2011-07-26  Eric Blake  <eblake@redhat.com>
39093         warnings: add comments about previous patch
39094         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
39095         * m4/include_next.m4: Likewise.
39096         * m4/warn-on-use.m4: Likewise.
39097         * m4/warnings.m4: Likewise, and simplify use.
39098         Suggested by Stefano Lattarini.
39100         include-next, warnings: support older autoconf
39101         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
39102         AS_VAR_PUSHDEF in a way that works with older autoconf.
39103         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
39104         Reported by Daniel P. Berrange.
39106 2011-07-25  Bruno Haible  <bruno@clisp.org>
39108         fseek, ftell: Fix doc.
39109         * doc/posix-functions/fseek.texi: Reword statement about
39110         AC_SYS_LARGEFILE.
39111         * doc/posix-functions/ftell.texi: Likewise.
39113 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
39114             Bruno Haible  <bruno@clisp.org>
39116         Add dependencies to the 'largefile' module.
39117         * modules/fopen (Depends-on): Add 'largefile'.
39118         * modules/freopen (Depends-on): Likewise.
39119         * modules/fseeko (Depends-on): Likewise.
39120         * modules/ftello (Depends-on): Likewise.
39121         * modules/glob (Depends-on): Likewise.
39122         * modules/lseek (Depends-on): Likewise.
39123         * modules/lstat (Depends-on): Likewise.
39124         * modules/mkostemp (Depends-on): Likewise.
39125         * modules/mkostemps (Depends-on): Likewise.
39126         * modules/mkstemp (Depends-on): Likewise.
39127         * modules/mkstemps (Depends-on): Likewise.
39128         * modules/open (Depends-on): Likewise.
39129         * modules/openat (Depends-on): Likewise.
39130         * modules/pread (Depends-on): Likewise.
39131         * modules/pwrite (Depends-on): Likewise.
39132         * modules/scandir (Depends-on): Likewise.
39133         * modules/stat (Depends-on): Likewise.
39134         * modules/tmpfile (Depends-on): Likewise.
39135         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
39136         since the containing module now depends on the largefile module.
39137         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
39138         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
39139         off_t is fixed by gnulib.
39140         * doc/posix-functions/freopen.texi: Likewise.
39141         * doc/posix-functions/fseeko.texi: Likewise.
39142         * doc/posix-functions/fstatat.texi: Likewise.
39143         * doc/posix-functions/ftello.texi: Likewise.
39144         * doc/posix-functions/glob.texi: Likewise.
39145         * doc/posix-functions/lseek.texi: Likewise.
39146         * doc/posix-functions/lstat.texi: Likewise.
39147         * doc/posix-functions/mkstemp.texi: Likewise.
39148         * doc/posix-functions/open.texi: Likewise.
39149         * doc/posix-functions/openat.texi: Likewise.
39150         * doc/posix-functions/pread.texi: Likewise.
39151         * doc/posix-functions/pwrite.texi: Likewise.
39152         * doc/posix-functions/scandir.texi: Likewise.
39153         * doc/posix-functions/stat.texi: Likewise.
39154         * doc/posix-functions/tmpfile.texi: Likewise.
39155         * doc/glibc-functions/mkostemp.texi: Likewise.
39156         * doc/glibc-functions/mkostemps.texi: Likewise.
39157         * doc/glibc-functions/mkstemps.texi: Likewise.
39159 2011-07-25  Bruno Haible  <bruno@clisp.org>
39161         fcntl: Move AC_LIBOBJ invocation to module description.
39162         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
39163         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
39165         fcntl: Remove call-in from fchdir.m4.
39166         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
39167         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
39169         dup3: Remove potential call-in from fchdir.m4.
39170         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
39171         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
39173         dup2: Move AC_LIBOBJ invocation to module description.
39174         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
39175         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
39176         Don't invoke AC_LIBOBJ.
39177         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
39179         dup2: Remove call-in from fchdir.m4.
39180         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
39181         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
39183         fclose: Move AC_LIBOBJ invocation to module description.
39184         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
39185         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
39186         to 1.
39187         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
39189         fclose: Remove call-in from close.m4.
39190         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
39191         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
39193         close: Move AC_LIBOBJ invocation to module description.
39194         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
39195         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
39196         1.
39197         * modules/close (configure.ac): Invoke AC_LIBOBJ.
39199         close: Remove call-in from fchdir.m4.
39200         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
39201         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
39203         open: Move AC_LIBOBJ invocation to module description.
39204         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
39205         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
39206         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
39208         open: Remove call-in from fchdir.m4.
39209         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
39210         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
39212         fchdir: Start to remove gl_REPLACE_* idiom.
39213         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
39214         (gl_FUNC_FCHDIR): Invoke it.
39216 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
39218         * lib/ftell.c (ftell): Comment out cast.
39220         close: use gl_REPLACE_FCLOSE only if defined
39221         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
39222         is defined.  The close module doesn't depend on the fclose module
39223         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
39224         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00392.html>.
39225         I reproduced the problem with "./gnulib-tool --test close sys_socket".
39227 2011-07-24  Jim Meyering  <meyering@redhat.com>
39229         test-select.h: avoid warning when using gcc's -Wmissing-declarations
39230         * tests/test-select.h (test_function): Declare as "static".
39232 2011-07-24  Bruno Haible  <bruno@clisp.org>
39234         doc: Mention the effects of AC_SYS_LARGEFILE.
39235         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
39236         on this function.
39237         * doc/posix-functions/aio_error.texi: Likewise.
39238         * doc/posix-functions/aio_fsync.texi: Likewise.
39239         * doc/posix-functions/aio_read.texi: Likewise.
39240         * doc/posix-functions/aio_return.texi: Likewise.
39241         * doc/posix-functions/aio_suspend.texi: Likewise.
39242         * doc/posix-functions/aio_write.texi: Likewise.
39243         * doc/posix-functions/fgetpos.texi: Likewise.
39244         * doc/posix-functions/fopen.texi: Likewise.
39245         * doc/posix-functions/freopen.texi: Likewise.
39246         * doc/posix-functions/fsetpos.texi: Likewise.
39247         * doc/posix-functions/fstatvfs.texi: Likewise.
39248         * doc/posix-functions/ftruncate.texi: Likewise.
39249         * doc/posix-functions/ftw.texi: Likewise.
39250         * doc/posix-functions/getrlimit.texi: Likewise.
39251         * doc/posix-functions/glob.texi: Likewise.
39252         * doc/posix-functions/lio_listio.texi: Likewise.
39253         * doc/posix-functions/lockf.texi: Likewise.
39254         * doc/posix-functions/mkstemp.texi: Likewise.
39255         * doc/posix-functions/mmap.texi: Likewise.
39256         * doc/posix-functions/nftw.texi: Likewise.
39257         * doc/posix-functions/openat.texi: Likewise.
39258         * doc/posix-functions/opendir.texi: Likewise.
39259         * doc/posix-functions/posix_fadvise.texi: Likewise.
39260         * doc/posix-functions/posix_fallocate.texi: Likewise.
39261         * doc/posix-functions/pread.texi: Likewise.
39262         * doc/posix-functions/pwrite.texi: Likewise.
39263         * doc/posix-functions/readdir.texi: Likewise.
39264         * doc/posix-functions/readdir_r.texi: Likewise.
39265         * doc/posix-functions/rewinddir.texi: Likewise.
39266         * doc/posix-functions/scandir.texi: Likewise.
39267         * doc/posix-functions/seekdir.texi: Likewise.
39268         * doc/posix-functions/setrlimit.texi: Likewise.
39269         * doc/posix-functions/statvfs.texi: Likewise.
39270         * doc/posix-functions/telldir.texi: Likewise.
39271         * doc/posix-functions/tmpfile.texi: Likewise.
39272         * doc/posix-functions/truncate.texi: Likewise.
39273         * doc/glibc-functions/fallocate.texi: Likewise.
39274         * doc/glibc-functions/fstatfs.texi: Likewise.
39275         * doc/glibc-functions/fts_children.texi: Likewise.
39276         * doc/glibc-functions/fts_read.texi: Likewise.
39277         * doc/glibc-functions/getdirentries.texi: Likewise.
39278         * doc/glibc-functions/mkostemp.texi: Likewise.
39279         * doc/glibc-functions/mkostemps.texi: Likewise.
39280         * doc/glibc-functions/mkstemps.texi: Likewise.
39281         * doc/glibc-functions/preadv.texi: Likewise.
39282         * doc/glibc-functions/pwritev.texi: Likewise.
39283         * doc/glibc-functions/sendfile.texi: Likewise.
39284         * doc/glibc-functions/statfs.texi: Likewise.
39286 2011-07-24  Bruno Haible  <bruno@clisp.org>
39288         doc: Fix typo.
39289         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
39291 2011-07-24  Bruno Haible  <bruno@clisp.org>
39293         doc: Mention fsusage.
39294         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
39296 2011-07-24  Bruno Haible  <bruno@clisp.org>
39298         doc: Mention new glibc headers and functions.
39299         * doc/glibc-headers/gshadow.texi: New file.
39300         * doc/glibc-functions/endsgent.texi: New file.
39301         * doc/glibc-functions/fgetsgent.texi: New file.
39302         * doc/glibc-functions/fgetsgent_r.texi: New file.
39303         * doc/glibc-functions/getsgent.texi: New file.
39304         * doc/glibc-functions/getsgent_r.texi: New file.
39305         * doc/glibc-functions/getsgnam.texi: New file.
39306         * doc/glibc-functions/getsgnam_r.texi: New file.
39307         * doc/glibc-functions/putsgent.texi: New file.
39308         * doc/glibc-functions/setsgent.texi: New file.
39309         * doc/glibc-functions/sgetsgent.texi: New file.
39310         * doc/glibc-functions/sgetsgent_r.texi: New file.
39311         * doc/glibc-functions/malloc_info.texi: New file.
39312         * doc/glibc-functions/preadv.texi: New file.
39313         * doc/glibc-functions/pwritev.texi: New file.
39314         * doc/glibc-functions/register_printf_modifier.texi: New file.
39315         * doc/glibc-functions/register_printf_specifier.texi: New file.
39316         * doc/glibc-functions/register_printf_type.texi: New file.
39317         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
39318         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
39319         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
39320         * doc/glibc-functions/pthread_getname_np.texi: New file.
39321         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
39322         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
39323         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
39324         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
39325         * doc/glibc-functions/pthread_setname_np.texi: New file.
39326         * doc/glibc-functions/pthread_sigqueue.texi: New file.
39327         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
39328         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
39329         * doc/glibc-functions/qsort_r.texi: New file.
39330         * doc/glibc-functions/quick_exit.texi: New file.
39331         * doc/glibc-functions/syncfs.texi: New file.
39332         * doc/gnulib.texi: Include them.
39333         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
39334         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
39335         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
39336         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
39337         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
39338         * doc/glibc-functions/execvpe.texi: Likewise.
39340 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
39342         ftell: don't include <unistd.h>
39343         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
39344         guaranteed to define off_t, and the ftell module depends on the
39345         stdio module.
39347         ftell: do not assume wraparound signed arithmetic
39348         * lib/ftell.c: Include <limits.h>.
39349         (ftell): Don't assume wraparound signed arithmetic.
39351 2011-07-24  Bruno Haible  <bruno@clisp.org>
39353         close: No longer depend on module 'fclose'.
39354         * modules/close (Depends-on): Remove fclose.
39355         * NEWS: Mention the change.
39356         Suggested by Sam Steingold <sds@gnu.org>.
39358 2011-07-24  Bruno Haible  <bruno@clisp.org>
39360         fsusage: Enable large volume support on AIX >= 5.2.
39361         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
39362         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
39363         instead of STAT_STATVFS.
39364         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
39366         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
39367         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
39368         f_blocks field only on MacOS X.
39370         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
39371         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
39372         * modules/fsusage (Depends-on): Add largefile.
39374 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
39376         * README: Modernize discussion of signed integers.
39377         Assuming overflow wraparound is no longer safe.
39378         Mention ones' complement and signed magnitude.
39380 2011-07-22  Bruno Haible  <bruno@clisp.org>
39382         select tests, pselect tests: Refactor.
39383         * tests/test-select.h: New file, extracted from tests/test-select.c.
39384         (select_fn): New type.
39385         (test, do_select, do_select_nowait, do_select_wait, test_tty,
39386         test_connect_first, test_accept_first, test_pair, test_socket_pair,
39387         test_pipe): Add my_select argument.
39388         (test_function): Renamed from main. Add my_select argument.
39389         * tests/test-select.c: Move most code to tests/test-select.h. Include
39390         test-select.h.
39391         * modules/select-tests (Files): Add tests/test-select.h.
39392         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
39393         (my_select, main): New functions.
39394         * modules/pselect-tests (Files): Add tests/test-select.h,
39395         tests/macros.h, tests/signature.h.
39396         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
39397         (configure.ac): Check for <sys/wait.h>.
39399 2011-07-22  Bruno Haible  <bruno@clisp.org>
39401         sys_select tests: Check the signature of FD_*.
39402         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
39403         signature tests from here...
39404         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
39405         here.
39406         * modules/sys_select-tests (Files): Add tests/signature.h.
39408 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
39410         largefile: new module, replacing large-inode
39411         Pádraig Brady suggested this in <http://debbugs.gnu.org/9140#20>.
39412         * MODULES.html.sh: Add largefile, remove large-inode.
39413         * modules/largefile, m4/largefile.m4: New files.
39414         * modules/large-inode, m4/large-inode.m4: Remove.
39416         fsusage: port to MacOS X 10.7 with 4 TiB file systems
39417         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
39418         implementations that use only 32 bits to count blocks.
39419         On typical hosts with 1024-byte blocks, this fails with file
39420         systems as small as 4 TiB.  Problem reported by Herb Wartens
39421         <http://debbugs.gnu.org/9140> and this should also fix a similar
39422         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
39424         large-inode: New module
39425         * MODULES.html.sh: Add it.
39426         * modules/large-inode, m4/large-inode.m4: New files.
39428         extensions: Enable extensions on MacOS X 10.5 and later.
39429         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
39431 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
39433         file-has-acl: use acl_extended_file_nofollow if available
39434         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
39435         (acl_extended_file): New macro.
39436         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
39437         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
39439 2011-07-21  Bruno Haible  <bruno@clisp.org>
39441         Declare system functions in a way that works with C++.
39442         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
39443         declare fdopendir as extern "C".
39444         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
39445         declare frexpl as extern "C".
39446         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
39447         declare gai_strerror as extern "C".
39448         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
39449         programs, declare gai_strerror as extern "C".
39450         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
39451         declare getlogin_r as extern "C".
39452         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
39453         as extern "C".
39454         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
39455         declare ldexpl as extern "C".
39456         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
39457         as extern "C".
39458         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
39459         program, declare getmntinfo as extern "C".
39460         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
39461         stpncpy as extern "C".
39462         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
39463         program, declare __xpg_strerror_r as extern "C".
39464         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
39465         strndup as extern "C".
39466         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
39467         declare memset and bzero as extern "C".
39468         Reported by Sam Steingold <sds@gnu.org>.
39470 2011-07-12  Jim Meyering  <meyering@redhat.com>
39472         maint.mk: prohibit inclusion of "verify.h" without use
39473         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
39475 2011-07-19  Pádraig Brady  <P@draigBrady.com>
39477         timer-time: A new module to check for timer_settime()
39478         * m4/timer_time.m4: Check for the posix function.
39479         * modules/timer-time: Add the new module.
39480         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
39481         Mention it.
39483 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
39484             Bruno Haible  <bruno@clisp.org>
39486         pthread_sigmask: assume POSIX threads if --avoid=threadlib
39487         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
39488         not defined, assume POSIX threads and look for pthread_sigmask in
39489         $LIBS, without changing $CPPFLAGS.
39491 2011-07-19  Bruno Haible  <bruno@clisp.org>
39493         strstr: Update cross-compilation guess.
39494         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
39495         CPUs, guess no, in view of glibc
39496         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
39497         Suggested by Eric Blake. Reported by Reuben Thomas.
39499 2011-07-19  Pádraig Brady  <P@draigBrady.com>
39501         getopt-gnu: suppress core dumps from detection code
39502         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
39503         to suppress core dumps that may well occur on glibc systems.
39504         * modules/getopt-gnu: Depend on nocrash.
39506 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
39508         pthread_sigmask: ensure usleep is declared
39509         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
39510         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
39512 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
39514         doc: Document NonStop portability issues.
39515         * doc/posix-functions/sigaction.texi (sigaction):
39516         * doc/posix-headers/signal.texi (signal.h):
39517         Document NonStop.  See Joachim Schmitz in
39518         http://lists.gnu.org/r/bug-coreutils/2011-07/msg00062.html
39520 2011-07-15  Bruno Haible  <bruno@clisp.org>
39522         ffsl, ffsll: Avoid unportable behaviour.
39523         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
39525 2011-07-15  Bruno Haible  <bruno@clisp.org>
39527         ffs: More tests.
39528         * tests/test-ffs.c (NBITS): New macro.
39529         (main): Add more tests.
39530         * tests/test-ffsl.c (NBITS): New macro.
39531         (main): Add more tests.
39532         * tests/test-ffsll.c (NBITS): New macro.
39533         (main): Add more tests.
39535 2011-07-15  Eric Blake  <eblake@redhat.com>
39537         ffsl, ffsll: new modules
39538         * modules/ffsl: New file.
39539         * modules/ffsll: Likewise.
39540         * m4/ffsl.m4: Likewise.
39541         * m4/ffsll.m4: Likewise.
39542         * lib/ffsl.c: Likewise.
39543         * lib/ffsl.h: Likewise.
39544         * lib/ffsll.c: Likewise.
39545         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
39546         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
39547         * modules/string (Makefile.am): Substitute witnesses.
39548         * lib/strings.in.h (ffsl, ffsll): Declare.
39549         * modules/ffsl-tests: New test file.
39550         * modules/ffsll-tests: Likewise.
39551         * tests/test-ffsl.c: Likewise.
39552         * tests/test-ffsll.c: Likewise.
39553         * MODULES.html.sh (Integer arithmetic functions): Mention it.
39554         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
39555         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
39557         ffs: fix m4 prerequisite
39558         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
39560         ffs: avoid undefined behavior
39561         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
39562         * tests/test-ffs.c (naive, main): Avoid signed shifts.
39563         Reported by Bruno Haible.
39565 2011-07-12  Bruno Haible  <bruno@clisp.org>
39567         pthread_sigmask: Rely on module 'threadlib'.
39568         * modules/pthread_sigmask (Depends-on): Add threadlib.
39569         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
39570         is defined.
39572 2011-07-12  Bruno Haible  <bruno@clisp.org>
39574         regex: Depend on module 'strcase'.
39575         * modules/regex (Depends-on): Add strcase, for strcasecmp().
39577 2011-07-12  Jim Meyering  <meyering@redhat.com>
39579         warn-on-use: fix typo in file name
39580         * modules/snippet/warn-on-use (Files): Correct file name:
39581         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
39583 2011-07-12  Bruno Haible  <bruno@clisp.org>
39585         strings: Document module.
39586         * doc/posix-headers/strings.texi: Mention module 'strings'.
39588 2011-07-12  Bruno Haible  <bruno@clisp.org>
39590         Rename module '_Noreturn' to 'snippet/_Noreturn'.
39591         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
39592         (Files, Makefile.am): Update.
39593         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
39594         * modules/stdlib (Depends-on): Update.
39596 2011-07-12  Bruno Haible  <bruno@clisp.org>
39598         * NEWS: Mention the changes.
39600         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
39601         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
39602         (Files, Makefile.am): Update.
39603         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
39604         * modules/arpa_inet (Depends-on): Update.
39605         * modules/ctype (Depends-on): Update.
39606         * modules/dirent (Depends-on): Update.
39607         * modules/fcntl-h (Depends-on): Update.
39608         * modules/glob (Depends-on): Update.
39609         * modules/iconv-h (Depends-on): Update.
39610         * modules/inttypes-incomplete (Depends-on): Update.
39611         * modules/langinfo (Depends-on): Update.
39612         * modules/locale (Depends-on): Update.
39613         * modules/math (Depends-on): Update.
39614         * modules/netdb (Depends-on): Update.
39615         * modules/poll-h (Depends-on): Update.
39616         * modules/pty (Depends-on): Update.
39617         * modules/search (Depends-on): Update.
39618         * modules/signal (Depends-on): Update.
39619         * modules/spawn (Depends-on): Update.
39620         * modules/stdio (Depends-on): Update.
39621         * modules/stdlib (Depends-on): Update.
39622         * modules/string (Depends-on): Update.
39623         * modules/strings (Depends-on): Update.
39624         * modules/sys_file (Depends-on): Update.
39625         * modules/sys_ioctl (Depends-on): Update.
39626         * modules/sys_select (Depends-on): Update.
39627         * modules/sys_socket (Depends-on): Update.
39628         * modules/sys_stat (Depends-on): Update.
39629         * modules/sys_time (Depends-on): Update.
39630         * modules/sys_times (Depends-on): Update.
39631         * modules/sys_utsname (Depends-on): Update.
39632         * modules/sys_wait (Depends-on): Update.
39633         * modules/termios (Depends-on): Update.
39634         * modules/time (Depends-on): Update.
39635         * modules/unistd (Depends-on): Update.
39636         * modules/wchar (Depends-on): Update.
39637         * modules/wctype-h (Depends-on): Update.
39638         * MODULES.html.sh (Support for building libraries and executables):
39639         Update.
39641         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
39642         * modules/snippet/unused-parameter: Renamed from
39643         modules/unused-parameter.
39644         (Files, Makefile.am): Update.
39645         * build-aux/snippet/unused-parameter.h: Renamed from
39646         build-aux/unused-parameter.h.
39647         * modules/selinux-h (Depends-on): Update.
39648         * modules/unistr/base (Depends-on): Update.
39649         * MODULES.html.sh (Core language properties): Update.
39651         Rename module 'link-warning' to 'snippet/link-warning'.
39652         * modules/snippet/link-warning: Renamed from modules/link-warning.
39653         (Files, Makefile.am): Update.
39654         * build-aux/snippet/link-warning.h: Renamed from
39655         build-aux/link-warning.h.
39656         * MODULES.html.sh (Support for building libraries and executables):
39657         Update.
39659         Rename module 'c++defs' to 'snippet/c++defs'.
39660         * modules/snippet/c++defs: Renamed from modules/c++defs.
39661         (Files, Makefile.am): Update.
39662         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
39663         * modules/arpa_inet (Depends-on): Update.
39664         * modules/ctype (Depends-on): Update.
39665         * modules/dirent (Depends-on): Update.
39666         * modules/fcntl-h (Depends-on): Update.
39667         * modules/glob (Depends-on): Update.
39668         * modules/iconv-h (Depends-on): Update.
39669         * modules/langinfo (Depends-on): Update.
39670         * modules/locale (Depends-on): Update.
39671         * modules/math (Depends-on): Update.
39672         * modules/netdb (Depends-on): Update.
39673         * modules/poll-h (Depends-on): Update.
39674         * modules/pty (Depends-on): Update.
39675         * modules/search (Depends-on): Update.
39676         * modules/signal (Depends-on): Update.
39677         * modules/spawn (Depends-on): Update.
39678         * modules/stdio (Depends-on): Update.
39679         * modules/stdlib (Depends-on): Update.
39680         * modules/string (Depends-on): Update.
39681         * modules/strings (Depends-on): Update.
39682         * modules/sys_ioctl (Depends-on): Update.
39683         * modules/sys_select (Depends-on): Update.
39684         * modules/sys_socket (Depends-on): Update.
39685         * modules/sys_stat (Depends-on): Update.
39686         * modules/sys_time (Depends-on): Update.
39687         * modules/sys_wait (Depends-on): Update.
39688         * modules/termios (Depends-on): Update.
39689         * modules/time (Depends-on): Update.
39690         * modules/unistd (Depends-on): Update.
39691         * modules/wchar (Depends-on): Update.
39692         * modules/wctype-h (Depends-on): Update.
39694         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
39695         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
39696         (Files, Makefile.am): Update.
39697         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
39698         * modules/argv-iter (Depends-on): Update.
39699         * modules/arpa_inet (Depends-on): Update.
39700         * modules/dirent (Depends-on): Update.
39701         * modules/fcntl-h (Depends-on): Update.
39702         * modules/fnmatch (Depends-on): Update.
39703         * modules/getopt-posix (Depends-on): Update.
39704         * modules/glob (Depends-on): Update.
39705         * modules/iconv-h (Depends-on): Update.
39706         * modules/inttypes-incomplete (Depends-on): Update.
39707         * modules/locale (Depends-on): Update.
39708         * modules/math (Depends-on): Update.
39709         * modules/netdb (Depends-on): Update.
39710         * modules/search (Depends-on): Update.
39711         * modules/signal (Depends-on): Update.
39712         * modules/spawn (Depends-on): Update.
39713         * modules/stdio (Depends-on): Update.
39714         * modules/stdlib (Depends-on): Update.
39715         * modules/string (Depends-on): Update.
39716         * modules/strings (Depends-on): Update.
39717         * modules/sys_socket (Depends-on): Update.
39718         * modules/sys_stat (Depends-on): Update.
39719         * modules/sys_time (Depends-on): Update.
39720         * modules/sys_times (Depends-on): Update.
39721         * modules/sys_utsname (Depends-on): Update.
39722         * modules/time (Depends-on): Update.
39723         * modules/unistd (Depends-on): Update.
39724         * modules/wchar (Depends-on): Update.
39725         * MODULES.html.sh (Support for building libraries and executables):
39726         Update.
39728 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
39730         Improvements on _Noreturn and related modules.
39732         modules/_Exit-tests: test _Noreturn too
39733         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
39734         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
39735         (main): Use them.
39737         stdnoreturn, stdnoreturn-tests: remove modules
39738         They're not needed here and a bit premature for use elsewhere.  See
39739         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00209.html>.
39740         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
39741         * tests/test-stdnoreturn.c: Remove files.
39742         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
39743         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
39744         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
39745         and using noreturn.
39746         * modules/openat, modules/sigpipe-die, modules/xalloc:
39747         * modules/xmemdup0, modules/xstrtol:
39748         Remove dependency on stdnoreturn.
39750         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
39751         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
39752         Reparenthesize to avoid GCC warning.
39753         Support Microsoft's syntax.
39754         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
39756         _Noreturn-tests: remove module
39757         * modules/_Noreturn-tests: Remove.
39758         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
39759         * tests/test-_Noreturn.c: Remove.
39760         * tests/test-stdnoreturn.c: Merge from the old
39761         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
39763 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
39765         _Noreturn, stdnoreturn, and related modules.
39767         * top/maint.mk: Adjust to new noreturn support.
39768         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
39769         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
39771         xalloc: use stdnoreturn.h
39772         * lib/xalloc.h: Include <stdnoreturn.h>.
39773         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
39774         * modules/xalloc (Depends-on): Add stdnoreturn.
39776         xstrtol: use stdnoreturn.h
39777         * lib/xstrtol.h: Include <stdnoreturn.h>.
39778         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
39779         * modules/xstrtol (Depends-on): Add stdnoreturn.
39781         xmemdup0: use stdnoreturn.h
39782         * lib/xmemdup0.h: Include <stdnoreturn.h>.
39783         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
39784         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
39786         sigpipe-die: use stdnoreturn.h
39787         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
39788         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
39789         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
39791         openat: use stdnoreturn.h
39792         * lib/openat.h: Include <stdnoreturn.h>.
39793         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
39794         * modules/openat (Depends-on): Add stdnoreturn.
39796         * lib/openat-die.c (openat_save_fail): Modernize comment.
39798         * lib/xalloc-die.c (xalloc_die): Modernize comment.
39800         * lib/glthread/thread.h: Modernize comment.
39802         obstack: use _Noreturn
39803         * lib/obstack.c (__attribute__): Remove macro.
39804         (print_and_abort): Use _Noreturn.
39806         c-stack: use _Noreturn
39807         * lib/c-stack.c (die, overflow_handler, segv_handler):
39808         Use _Noreturn rather than __attribute__((noreturn)).
39810         argmatch-tests, exclude_tests: use _Noreturn
39811         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
39812         Remove.
39813         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
39815         stdlib: use _Noreturn
39816         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
39817         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
39818         * modules/stdlib (Depends-on): Add _Noreturn.
39819         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
39821         stdnoreturn-tests: new module
39822         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
39824         stdnoreturn: new module
39825         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
39826         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
39828         _Noreturn-tests: new module
39829         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
39831         _Noreturn: new module
39832         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
39833         New section, mentioning it.
39834         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
39836         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
39838 2011-07-11  Eric Blake  <eblake@redhat.com>
39840         ffs: new module
39841         * modules/ffs: New file.
39842         * m4/ffs.m4: Likewise.
39843         * lib/ffs.c: Likewise.
39844         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
39845         * modules/strings (Makefile.am): Substitute witness.
39846         (Depends-on): Add c++defs.
39847         * lib/strings.in.h (ffs): Declare.
39848         * modules/ffs-tests: New test file.
39849         * tests/test-ffs.c: Test new module.
39850         * MODULES.html.sh (Integer arithmetic functions): Mention it.
39851         * doc/posix-functions/ffs.texi (ffs): Likewise.
39853         regex: avoid compiler warning
39854         * lib/regex.c (includes): Include <strings.h>, for use of
39855         strcasecmp in regcomp.c.
39856         Reported by Joachim Schmitz.
39858 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
39860         stdint: respect system's intmax_t if INTMAX_MAX
39861         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
39862         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
39863         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
39864         long but int64_t is long long, and where we will clash with the
39865         system intmax_t if we override it.  See
39866         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00160.html>.
39867         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
39868         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
39869         similarly for UINTMAX_C.
39871 2011-07-08  Bruno Haible  <bruno@clisp.org>
39873         pthread_sigmask tests: Avoid a compiler warning.
39874         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
39875         non-zero.
39877         sigprocmask tests: A better way to avoid a compiler warning.
39878         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
39879         (main): Complain if system() returns non-zero.
39880         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
39882 2011-07-08  Bruno Haible  <bruno@clisp.org>
39884         pthread_sigmask: Work around IRIX bug.
39885         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
39886         bug.
39887         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
39888         there may be unblocked pending signals.
39889         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
39891 2011-07-08  Bruno Haible  <bruno@clisp.org>
39893         pthread_sigmask: Work around Cygwin bug.
39894         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
39895         bug.
39896         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
39897         the system's pthread_sigmask function.
39898         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
39900 2011-07-08  Bruno Haible  <bruno@clisp.org>
39902         pthread_sigmask: Work around bug in single-threaded implementation.
39903         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
39904         FreeBSD, HP-UX, Solaris bug.
39905         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
39906         * lib/pthread_sigmask.c: Include <stddef.h>.
39907         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
39908         the system's pthread_sigmask function.
39909         * modules/pthread_sigmask (configure.ac): Invoke
39910         gl_PREREQ_PTHREAD_SIGMASK.
39911         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
39912         HP-UX, Solaris.
39914 2011-07-08  Eric Blake  <eblake@redhat.com>
39916         test-sigprocmask: avoid compiler warning
39917         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
39918         * tests/test-sigprocmask.c (main): Use it to silence warning.
39919         Reported by Jim Meyering.
39921         test-snprintf: avoid compiler warning
39922         * tests/test-snprintf.c (main): Avoid shadowed declaration.
39923         * tests/test-vsnprintf.c (main): Likewise.
39924         Reported by Jim Meyering.
39926 2011-07-08  Bruno Haible  <bruno@clisp.org>
39928         Tests for module 'pthread_sigmask'.
39929         * modules/pthread_sigmask-tests: New file.
39930         * tests/test-pthread_sigmask1.c: New file, based on
39931         tests/test-sigprocmask.c.
39932         * tests/test-pthread_sigmask2.c: New file.
39934 2011-07-08  Jim Meyering  <meyering@redhat.com>
39936         test-getopt.h: avoid warning about an unused variable
39937         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
39939 2011-07-07  Jim Meyering  <meyering@redhat.com>
39941         maint: reduce list of files exempt from sc_prohibit_leading_TABs
39942         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
39943         now that it no longer contains leading TABs.
39944         Remove unused "url=FIXME" statement.
39946 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
39948         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
39949         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
39950         When gl_THREADLIB is not in use, assume that the POSIX sematics
39951         are desired.  This is better for Emacs, which uses POSIX semantics
39952         on GNUish and/or POSIXish platforms, and does not use threads at
39953         all otherwise.
39955         pthread_sigmask: fix typo when testing for libraries
39956         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
39957         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
39959 2011-07-08  Eric Blake  <eblake@redhat.com>
39961         fts: introduce FTS_NOATIME
39962         * lib/fts_.h (FTS_NOATIME): New bit flag.
39963         (FTS_OPTIONMASK): Adjust.
39964         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
39965         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
39967 2011-07-08  Bruno Haible  <bruno@clisp.org>
39969         Tests for module 'thread'.
39970         * modules/thread-tests: New file.
39971         * tests/test-thread_self.c: New file.
39972         * tests/test-thread_create.cc: New file.
39974 2011-07-08  Bruno Haible  <bruno@clisp.org>
39976         thread: Avoid gcc warnings when using gl_thread_self().
39977         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
39978         'void *'.
39979         (gl_thread_self_pointer): Update.
39981 2011-07-07  Bruno Haible  <bruno@clisp.org>
39983         signal-c++-tests: Check declaration of pthread_sigmask.
39984         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
39985         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
39986         $(LIB_PTHREAD_SIGMASK).
39988 2011-07-07  Bruno Haible  <bruno@clisp.org>
39990         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
39991         * lib/signal.in.h (pthread_sigmask): Override if
39992         REPLACE_PTHREAD_SIGMASK is 1.
39993         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
39994         REPLACE_PTHREAD_SIGMASK.
39995         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
39996         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
39997         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
39998         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
39999         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
40001 2011-07-07  Bruno Haible  <bruno@clisp.org>
40003         pthread_sigmask: Ensure declaration in <signal.h>.
40004         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
40005         include <pthread.h>.
40006         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
40007         problem.
40009 2011-07-07  Bruno Haible  <bruno@clisp.org>
40011         pthread_sigmask: Document the module.
40012         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
40014 2011-07-07  Bruno Haible  <bruno@clisp.org>
40016         pthread_sigmask: Follow gnulib conventions.
40017         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
40018         gl_PTHREAD_SIGMASK.
40019         * modules/pthread_sigmask (configure.ac): Update.
40021 2011-07-07  Bruno Haible  <bruno@clisp.org>
40023         pthread_sigmask: Make declaration C++ safe.
40024         * lib/signal.in.h: In two special conditions, just do an #include_next.
40025         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
40026         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
40027         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
40028         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
40029         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
40030         not REPLACE_PTHREAD_MASK.
40031         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
40032         not REPLACE_PTHREAD_MASK.
40033         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
40035 2011-07-07  Bruno Haible  <bruno@clisp.org>
40037         pthread_sigmask: Fix return value.
40038         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
40039         * lib/pthread_sigmask.c: New file.
40040         * modules/pthread_sigmask (Files): Add it.
40041         (configure.ac): Invoke AC_LIBOBJ.
40043 2011-07-07  Eric Blake  <eblake@redhat.com>
40045         getopt: more portable argv creation
40046         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
40047         const, use char arrays rather than strings.
40048         Suggested by Paul Eggert.
40050 2011-07-07  Bruno Haible  <bruno@clisp.org>
40052         Tests for module 'sigprocmask'.
40053         * modules/sigprocmask-tests: New file.
40054         * tests/test-sigprocmask.c: New file.
40056 2011-07-07  Bruno Haible  <bruno@clisp.org>
40058         float tests: Tweak.
40059         * tests/test-float.c (main): Tweak skip message.
40061 2011-07-07  Eric Blake  <eblake@redhat.com>
40063         getopt: avoid compiler warning during configure
40064         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
40065         assigning string literals to non-const pointer.
40067         getopt-gnu: avoid crash in glibc getopt
40068         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
40069         * tests/test-getopt.h (test_getopt): Enhance test.
40070         * tests/test-getopt_long.h (test_getopt_long): Likewise.
40071         * doc/posix-functions/getopt.texi (getopt): Document it.
40072         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
40073         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
40074         Likewise.
40076 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
40078         getopt: handle W; without long options in getopt [BZ #12922]
40079         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
40080         but no long options are defined, just return 'W'.
40082 2011-07-07  Bruno Haible  <bruno@clisp.org>
40084         Avoid literal tabs.
40085         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
40086         variable containing a tab instead of a literal tab.
40087         Reported by Jim Meyering.
40089 2011-07-07  Bruno Haible  <bruno@clisp.org>
40091         Comments.
40092         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
40094 2011-07-06  Bruno Haible  <bruno@clisp.org>
40096         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
40097         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
40098         <winsock2.h>.
40099         (rpl_fd_isset, FD_ISSET): New definitions, copied from
40100         lib/sys_socket.in.h.
40101         (close, gethostname): Hide declarations from <winsock2.h>.
40102         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
40103         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
40104         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
40105         (select): Don't override if gnulib's <sys/select.h> was already
40106         included.
40107         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
40108         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
40109         setsockopt, shutdown, select): Tweak indentation.
40111 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
40113         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
40114         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
40115         in an application that does not use the sys_select module.
40117 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
40119         poll: do not return 0 on timeout=-1
40120         * lib/poll.c: Loop with yield if no events occurred.
40122 2011-07-06  Eric Blake  <eblake@redhat.com>
40124         pthread_sigmask: always replace when not using pthread
40125         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
40126         replacement when using some threading other than pthread.  Fix
40127         logic bug.
40129 2011-07-06  Bruno Haible  <bruno@clisp.org>
40131         Comments.
40132         * m4/printf.m4: Update comments about mingw.
40134 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
40136         sys_select: define sigset_t more portably
40137         * lib/sys_select.in.h: Always include <sys/types.h>, since
40138         we now need sigset_t and mingw defines it there.
40139         Include <signal.h> before split inclusion guard, to avoid
40140         mishaps on Solaris, whose <signal.h> eventually includes us.
40141         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
40142         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
40143         which come from ...
40144         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
40145         gl_CHECK_TYPE_SIGSET_T.
40146         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
40147         does the real work.
40148         * modules/sys_select (Depends-on): Add 'signal'.
40150         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
40151         Suggested by Bruno Haible.
40153         pselect: Use pthread_sigmask, not sigprocmask.
40154         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
40155         multithreaded apps better than sigprocmask does.
40156         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
40157         sigprocmask directly.
40159 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
40161         * lib/pselect.c (pselect): Use plain name, without "rpl_".
40162         Don't #undef,  since we don't need any underlying pselect.
40163         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
40164         (Depends-on): Add select.
40165         (Link): Add $(LIBSOCKET).
40166         These changes suggested by Bruno Haible.
40168         pselect: document better
40169         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
40170         * doc/posix-functions/pselect.texi (pselect): Document new module.
40172         pthread_sigmask: new module
40173         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
40174         * doc/posix-functions/pthread_sigmask.texi: Document new module.
40175         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
40176         This is done only as a macro; I don't know how well that'll
40177         work for C++.  Move <sys/types.h> include before the include_next,
40178         to avoid mishap on Solaris.
40179         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
40180         * modules/signal (Makefile.am): Substitute the check's results.
40181         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
40183         test-pselect: new module
40184         * modules/pselect-tests, tests/test-pselect.c: New files.
40185         * tests/test-select.c, tests/test-sys_select-c++.cc:
40186         If TEST_PSELECT is defined, test pselect instead of testing select.
40188         * tests/test-sys_select.c (sigset_t): Test for it, too.
40189         Suggested by Bruno Haible.
40191 2011-07-05  Eric Blake  <eblake@redhat.com>
40193         snprintf: guarantee %1$d, for libintl
40194         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
40195         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
40196         * doc/posix-functions/snprintf.texi (snprintf): Update.
40197         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
40198         * tests/test-snprintf.c (main): Enhance test.
40199         * tests/test-vsnprintf.c (main): Likewise.
40201 2011-07-05  Jim Meyering  <meyering@redhat.com>
40203         maint: exempt stdio-read.c and stdio-write.c from the cppi check
40204         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
40205         per Bruno's request, to accommodate this idiom (no space after "#")
40206         even when the function is inside an #if block:
40207         char *
40208         gets (char *s)
40209         #undef gets
40210         {
40211           ...
40212         }
40214 2011-07-04  Jim Meyering  <meyering@redhat.com>
40216         maint: indent with spaces, not TABs, and add a rule to check this
40217         * tests/test-userspec.c: Indent with spaces, not TABs.
40218         * tests/test-argp.c: Likewise.
40219         * tests/test-c-stack2.sh: Likewise.
40220         * tests/test-parse-duration.sh: Likewise
40221         * m4/strtod.m4: Likewise.
40222         * m4/alloca.m4: Likewise.
40223         * m4/pselect.m4: Likewise.
40224         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
40226 2011-07-03  Jim Meyering  <meyering@redhat.com>
40228         maint.mk: correct omissions in prohibit_argmatch_without_use check
40229         This rule would mistakenly report that argmatch.h is included without
40230         use even when both the argmatch and invalid_arg macro were used.
40231         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
40232         of argmatch and invalid_arg.
40234 2011-07-03  Bruno Haible  <bruno@clisp.org>
40236         Comments about EINTR.
40237         * lib/safe-read.h: Explain the purpose of this module.
40238         * lib/safe-write.h: Likewise.
40239         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
40240         module.
40241         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
40242         module.
40243         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40245 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
40247         xnanosleep: Rewrite to use new dtotimespec module.
40248         It has the conversion code that used to be in xnanosleep.
40249         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
40250         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
40251         (TIME_T_MAX): Remove.
40252         (xnanosleep): Rewrite in terms of dtotimespec.
40253         * modules/xnanosleep (Depends-on): Add dtotimespec.
40254         Remove intprops, stdbool.
40256         timespec-add, timespec-sub: new modules
40257         * lib/timespec.h (timespec_add, timespec_sub): New decls.
40258         * lib/timespec-add.c, lib/timespec-sub.c:
40259         * modules/timespec-add, modules/timespec-sub: New files.
40261         dtotimespec: new module
40262         * lib/timespec.h (dtotimespec): New decl.
40263         * lib/dtotimespec.c, modules/dtotimespec: New files.
40265         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
40267         pselect: new module
40268         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
40269         (pselect): New decls.
40270         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
40271         since the standard pselect decl uses 'restrict'.
40272         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
40273         HAVE_PSELECT, REPLACE_PSELECT.
40274         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
40275         HAVE_PSELECT, REPLACE_PSELECT.
40276         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
40278         sys_select: don't depend on sys_socket
40279         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
40280         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00358.html>.
40281         This fix works on GNU and GNU-like platforms, but has not been tested
40282         on native Windows.
40283         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
40284         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
40285         gl_HEADER_SYS_SOCKET.
40286         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
40287         gl_PREREQ_SYS_H_WINSOCK2.
40289 2011-06-29  Eric Blake  <eblake@redhat.com>
40291         pipe2: fix C89 compile problem
40292         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
40293         Reported by Bruno Haible.
40295         pipe, pipe2: don't corrupt fd on error
40296         * lib/pipe.c (pipe): Leave fd unchanged on error.
40297         * lib/pipe2.c (pipe2): Likewise.
40298         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
40299         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
40301 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
40303         mmap-anon: do not use regular expressions inadvertently
40304         * m4/mmap-anon.m4: Remove trailing period from strings sought
40305         in the output.
40307 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
40309         nanosleep: fix integer overflow problem
40310         * lib/nanosleep.c (my_usleep): Don't assume signed integer
40311         arithmetic wraps around on overflow.
40313         nanosleep: simplify carrying
40314         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
40315         first call to the underyling nanosleep, not for the last one.
40316         This doesn't fix any bugs, but it simplifies the computation of
40317         the remaining delay.  Found while auditing integer overflow issues.
40319         dup2: remove test for existence of fcntl
40320         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
40321         "#if HAVE_FCNTL", in the configure-time test program.
40322         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
40323         and therefore speeds up "configure" a bit.  Found while
40324         adding the dup2 module to Emacs.
40326 2011-06-24  Eric Blake  <eblake@redhat.com>
40328         maint.mk: enhance useless header checks
40329         * top/maint.mk (_sc_header_without_use): Check both include
40330         styles.
40331         (sc_prohibit_assert_without_use)
40332         (sc_prohibit_close_stream_without_use)
40333         (sc_prohibit_getopt_without_use)
40334         (sc_prohibit_quotearg_without_use)
40335         (sc_prohibit_quote_without_use)
40336         (sc_prohibit_long_options_without_use)
40337         (sc_prohibit_inttostr_without_use)
40338         (sc_prohibit_ignore_value_without_use)
40339         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
40340         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
40341         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
40342         (sc_prohibit_hash_pjw_without_use)
40343         (sc_prohibit_safe_read_without_use)
40344         (sc_prohibit_argmatch_without_use)
40345         (sc_prohibit_canonicalize_without_use)
40346         (sc_prohibit_root_dev_ino_without_use)
40347         (sc_prohibit_openat_without_use)
40348         (sc_prohibit_c_ctype_without_use)
40349         (sc_prohibit_signal_without_use)
40350         (sc_prohibit_stdio--_without_use)
40351         (sc_prohibit_stdio-safer_without_use)
40352         (sc_prohibit_strings_without_use)
40353         (sc_prohibit_intprops_without_use)
40354         (sc_prohibit_stddef_without_use)
40355         (sc_prohibit_xfreopen_without_use): Update clients.
40357 2011-06-24  Jim Meyering  <meyering@redhat.com>
40359         syntax-check: keep one maint.mk rule in sync with its header
40360         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
40361         of the bug Eric has just fixed, with today's commit 25e4c2ec.
40362         I prefer to avoid temporary files here, so use <(...), but that
40363         is not supported by /bin/sh, so...
40364         (SHELL): Define to /bin/bash.
40366 2011-06-24  Eric Blake  <eblake@redhat.com>
40368         maint.mk: update sc_prohibit_intprops_without_use
40369         * top/maint.mk (_intprops_names): Match recent changes.
40371 2011-06-24  Bruno Haible  <bruno@clisp.org>
40373         strerror-override: No-op tweak.
40374         * lib/strerror-override.h (strerror_override): Reorder conditions,
40375         for consistency with lib/strerror-override.c.
40377 2011-06-23  Eric Blake  <eblake@redhat.com>
40379         maint.mk: test further PATH_MAX issues
40380         * top/maint.mk (sc_prohibit_path_max_array): Rename...
40381         (sc_prohibit_path_max_allocation): ...and also test alloca.
40382         Suggested by Jim Meyering.
40384 2011-06-22  Eric Blake  <eblake@redhat.com>
40386         maint.mk: add syntax-check to avoid char[PATH_MAX]
40387         * top/maint.mk (sc_prohibit_path_max_array): New rule.
40389         stat: be robust to PATH_MAX definition
40390         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
40391         * modules/stat (Depends-on): Add verify.
40393         link: work around IRIX bug
40394         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
40395         * lib/link.c (rpl_link): Work around it.
40396         * tests/test-link.h (test_link): Enhance test.
40397         * doc/posix-functions/link.texi (link): Document the bug.
40399         getopt: silence clang warning
40400         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
40401         dereference.
40402         Reported by Gustavo Martin Domato.
40404 2011-06-22  Jim Meyering  <meyering@redhat.com>
40406         bootstrap: do not insert a blank line into each .gitignore file
40407         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
40409 2011-06-21  Eric Blake  <eblake@redhat.com>
40411         perror: test for output mismatch
40412         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
40413         perror on IRIX.
40415         strerror_r: fix OpenBSD behavior on out-of-range
40416         * lib/strerror_r.c (strerror_r): Always use maximal string.
40417         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
40419         strerror_r: fix OpenBSD behavior on 0
40420         * lib/strerror-override.c (strerror_override): Also override 0
40421         when needed.
40422         * lib/strerror-override.h (strerror_override): Likewise.
40423         * lib/strerror.c (strerror): Simplify, now that 0 override is done
40424         earlier.
40425         * lib/strerror_r.c (strerror_r): Likewise.
40426         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
40427         behavior...
40428         (gl_FUNC_STRERROR_0): ...into new macro.
40429         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
40430         is overridden.
40431         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
40432         * modules/strerror-override (Files): Add strerror.m4.
40433         (configure.ac): Also provide override for 0 when needed.
40434         * doc/posix-functions/strerror.texi (strerror): Document this.
40435         * doc/posix-functions/perror.texi (perror): Likewise.
40437         perror: adjust array size
40438         * modules/perror (Depends-on): Add strerror-override.
40439         * lib/perror.c (perror): Use it to avoid magic number.
40441         strerror-override: reduce size
40442         * lib/strerror-override.c (strerror_override): Use fewer lines.
40444 2011-06-20  Bruno Haible  <bruno@clisp.org>
40446         pathmax: Ensure correct value for PATH_MAX on HP-UX.
40447         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
40449 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
40451         alloca: port to compilers that can optimize like GCC 4.6.0
40452         * lib/alloca.c (find_stack_direction): New signature, taken from
40453         Autoconf git.  This works with GCC 4.6.0.  This code should never
40454         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
40455         be used with other compilers that optimize as well as GCC 4.6.0 does.
40456         (alloca): Adjust to new signature.
40457         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
40458         New macro, which patches Autoconf in a similar way.
40460         c-stack: stop worrying about stack direction
40461         * lib/c-stack.c (find_stack_direction): Remove.
40462         (segv_handler): Don't worry about stack direction growth, as it's
40463         too much of a pain to configure this correctly, given how compilers
40464         are optimizing-away our stack-growth detection code.  Instead, assume
40465         that any access to just before or just after the stack is OK.
40466         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
40467         Don't require AC_FUNC_ALLOCA; no longer needed.
40469 2011-06-20  Eric Blake  <eblake@redhat.com>
40471         test-stat: don't allocate PATH_MAX bytes
40472         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
40473         PATH_MAX-sized buffer.
40474         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
40475         * modules/stat-tests (Depends-on): Likewise.
40476         * tests/test-fstatat.c (includes): Drop pathmax.h.
40477         * tests/test-stat.c (includes): Likewise.
40478         Reported by Bruno Haible.
40480 2011-06-20  Bruno Haible  <bruno@clisp.org>
40482         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
40483         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
40484         * lib/float.c: New file.
40485         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
40486         REPLACE_FLOAT_LDBL.
40487         * modules/float (Files): Add lib/float.c.
40488         (configure.ac): Invoke AC_LIBOBJ.
40489         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
40491 2011-06-20  Bruno Haible  <bruno@clisp.org>
40493         Tests for module 'float'.
40494         * modules/float-tests: New file.
40495         * tests/test-float.c: New file.
40497 2011-06-19  Bruno Haible  <bruno@clisp.org>
40499         isinf: Coding style.
40500         * lib/isinf.c: Use GNU coding style.
40502 2011-06-19  Bruno Haible  <bruno@clisp.org>
40504         linkat test: Avoid test failure on AIX 7.1.
40505         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
40506         * tests/test-link.h (test_link): Likewise.
40508 2011-06-19  Bruno Haible  <bruno@clisp.org>
40510         pread test: Avoid test failure on OpenBSD 4.9.
40511         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
40513 2011-06-19  Bruno Haible  <bruno@clisp.org>
40515         sprintf-posix: Fix test failure on AIX 7.1.
40516         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
40517         * doc/posix-functions/dprintf.texi: Mention limited precision problem
40518         on AIX.
40519         * doc/posix-functions/fprintf.texi: Likewise.
40520         * doc/posix-functions/printf.texi: Likewise.
40521         * doc/posix-functions/snprintf.texi: Likewise.
40522         * doc/posix-functions/sprintf.texi: Likewise.
40523         * doc/posix-functions/vdprintf.texi: Likewise.
40524         * doc/posix-functions/vfprintf.texi: Likewise.
40525         * doc/posix-functions/vprintf.texi: Likewise.
40526         * doc/posix-functions/vsnprintf.texi: Likewise.
40527         * doc/posix-functions/vsprintf.texi: Likewise.
40529 2011-06-19  Bruno Haible  <bruno@clisp.org>
40531         roundl-ieee: Fix test failure on AIX 7.1.
40532         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
40533         * doc/posix-functions/roundl.texi: Mention problem with negative
40534         arguments.
40536 2011-06-19  Bruno Haible  <bruno@clisp.org>
40538         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
40539         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
40540         * doc/posix-functions/round.texi: Mention problem with negative
40541         arguments.
40542         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
40544 2011-06-19  Bruno Haible  <bruno@clisp.org>
40546         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
40547         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
40548         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
40549         * doc/posix-functions/roundf.texi: Mention problem with negative
40550         arguments.
40551         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
40553 2011-06-19  Bruno Haible  <bruno@clisp.org>
40555         ceilf-ieee: Work around bug on MacOS X 10.5.
40556         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
40558         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
40559         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
40560         IEEE compliant, avoid compiler optimizations.
40561         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
40562         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
40563         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
40564         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
40565         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
40566         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
40567         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
40568         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
40569         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
40570         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
40572 2011-06-19  Bruno Haible  <bruno@clisp.org>
40574         ceilf-ieee: Work around bug on AIX 7.1.
40575         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
40576         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
40578 2011-06-19  Bruno Haible  <bruno@clisp.org>
40580         ceil-ieee: Work around bug on AIX 7.1.
40581         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
40582         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
40584 2011-06-18  Bruno Haible  <bruno@clisp.org>
40586         fsync test: Avoid test failure on MacOS X and AIX.
40587         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
40588         EINVAL.
40590 2011-06-18  Bruno Haible  <bruno@clisp.org>
40592         openat, fdopendir tests: Fix link errors.
40593         * modules/openat-tests (Depends-on): Add progname.
40594         * modules/fdopendir-tests (Depends-on): Likewise.
40595         * tests/test-fchownat.c: Include progname.h.
40596         (main): Call set_program_name.
40597         * tests/test-fstatat.c: Include progname.h.
40598         (main): Call set_program_name.
40599         * tests/test-mkdirat.c: Include progname.h.
40600         (main): Call set_program_name.
40601         * tests/test-openat.c: Include progname.h.
40602         (main): Call set_program_name.
40603         * tests/test-unlinkat.c: Include progname.h.
40604         (main): Call set_program_name.
40605         * tests/test-fdopendir.c: Include progname.h.
40606         (main): Call set_program_name.
40608 2011-06-18  Bruno Haible  <bruno@clisp.org>
40610         Doc update.
40611         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
40612         HP-UX.
40613         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
40615 2011-06-18  Bruno Haible  <bruno@clisp.org>
40617         getcwd tests: Avoid compilation error on HP-UX 11.31.
40618         * modules/getcwd-tests (Depends-on): Add pathmax.
40619         * tests/test-getcwd.c: Include pathmax.h.
40621 2011-06-18  Bruno Haible  <bruno@clisp.org>
40623         isfinite, isinf: Fix link error on AIX 6 and 7.
40624         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
40625         needed, also test the macro with a 'float' argument.
40626         * m4/isinf.m4 (gl_ISINF): Likewise.
40628 2011-06-18  Bruno Haible  <bruno@clisp.org>
40630         getloadavg: Don't clobber LIBS. Regression from previous commit.
40631         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
40632         AC_CHECK_LIB from here...
40633         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
40634         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
40635         gl_func_getloadavg_done.
40636         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40638 2011-06-18  Bruno Haible  <bruno@clisp.org>
40640         clean-temp: Improve documentation.
40641         * lib/clean-temp.h: Explain better how to use this module.
40642         Reported by John Darrington <john@darrington.wattle.id.au>.
40644 2011-06-17  Bruno Haible  <bruno@clisp.org>
40646         pread, pwrite: Avoid cc warning on AIX.
40647         * lib/unistd.in.h (pread): Undefine before defining as a macro.
40648         (pwrite): Likewise.
40650 2011-06-17  Bruno Haible  <bruno@clisp.org>
40652         spawn-pipe tests: Fix link error.
40653         * tests/test-spawn-pipe-child.c: Undefine fprintf.
40654         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40656 2011-06-17  Bruno Haible  <bruno@clisp.org>
40658         Tests: Remove unnecessary dependency.
40659         * modules/canonicalize-tests (Depends-on): Remove progname.
40660         * modules/chown-tests (Depends-on): Likewise.
40661         * modules/dirname-tests (Depends-on): Likewise.
40662         * modules/fdopendir-tests (Depends-on): Likewise.
40663         * modules/fdutimensat-tests (Depends-on): Likewise.
40664         * modules/hash-tests (Depends-on): Likewise.
40665         * modules/lchown-tests (Depends-on): Likewise.
40666         * modules/linkat-tests (Depends-on): Likewise.
40667         * modules/renameat-tests (Depends-on): Likewise.
40668         * modules/spawn-pipe-tests (Depends-on): Likewise.
40669         * modules/utimensat-tests (Depends-on): Likewise.
40671 2011-06-17  Bruno Haible  <bruno@clisp.org>
40673         spawn-pipe tests: Fix link error.
40674         * tests/test-spawn-pipe-child.c: Undefine fflush.
40676 2011-06-17  Bruno Haible  <bruno@clisp.org>
40678         Fix tests link errors.
40679         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
40680         * modules/chown-tests (Makefile.am): Don't link test-chown with
40681         LIBINTL.
40682         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
40683         LIBINTL.
40684         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
40685         LIBINTL.
40686         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
40687         LIBINTL.
40689 2011-06-16  Bruno Haible  <bruno@clisp.org>
40691         crypto/gc-sha1: Fix recent regression.
40692         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
40693         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
40695         crypto/gc-md5: Fix recent regression.
40696         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
40698         crypto/gc-md4: Fix recent regression.
40699         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
40700         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
40702         crypto/gc-arctwo: Fix recent regression.
40703         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
40704         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
40706         crypto/gc-rijndael: Fix recent regression.
40707         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
40708         (configure.ac): Invoke AC_LIBOBJ here.
40709         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
40710         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40712         crypto/gc-hmac-sha1: Fix recent regression.
40713         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
40714         (configure.ac): Invoke AC_LIBOBJ here.
40715         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
40716         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40718         crypto/gc-hmac-md5: Fix recent regression.
40719         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
40720         (configure.ac): Invoke AC_LIBOBJ here.
40721         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
40722         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40724         crypto/gc-des: Fix recent regression.
40725         * modules/crypto/gc-des (Files): Remove m4/des.m4.
40726         (configure.ac): Invoke AC_LIBOBJ here.
40727         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
40728         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40730         crypto/gc-arcfour: Fix recent regression.
40731         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
40732         (configure.ac): Invoke AC_LIBOBJ here.
40733         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
40734         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40736 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
40738         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
40739         After the 2011-05-21 change, this macro requires
40740         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
40741         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
40743 2011-06-16  Bruno Haible  <bruno@clisp.org>
40745         fprintftime: Move AC_LIBOBJ invocations to module description.
40746         * m4/fprintftime.m4: Remove file.
40747         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
40748         (configure.ac): Remove gl_FPRINTFTIME call.
40749         (Makefile.am): Augment lib_SOURCES.
40750         Reported by Jim Meyering.
40752 2011-06-16  Bruno Haible  <bruno@clisp.org>
40754         tmpfile-safer: Finish 2011-05-23 commit.
40755         * m4/stdio-safer.m4: Really remove file.
40756         Reported by Jim Meyering.
40758 2011-06-16  Bruno Haible  <bruno@clisp.org>
40760         syntax-check: Fix typo.
40761         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
40762         printf-posix.m4.
40763         Reported by Jim Meyering.
40765 2011-06-13  Jim Meyering  <meyering@redhat.com>
40767         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
40768         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
40770 2011-05-23  Bruno Haible  <bruno@clisp.org>
40772         yesno: Move AC_LIBOBJ invocations to module description.
40773         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
40774         * modules/yesno (Makefile.am): Augment lib_SOURCES.
40776 2011-05-23  Bruno Haible  <bruno@clisp.org>
40778         xstrtol: Move AC_LIBOBJ invocations to module description.
40779         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
40780         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
40782 2011-05-23  Bruno Haible  <bruno@clisp.org>
40784         xstrtold: Move AC_LIBOBJ invocations to module description.
40785         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
40786         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
40788 2011-05-23  Bruno Haible  <bruno@clisp.org>
40790         xstrtod: Move AC_LIBOBJ invocations to module description.
40791         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
40792         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
40794 2011-05-23  Bruno Haible  <bruno@clisp.org>
40796         xnanosleep: Move AC_LIBOBJ invocations to module description.
40797         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
40798         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
40800 2011-05-23  Bruno Haible  <bruno@clisp.org>
40802         xgetcwd: Move AC_LIBOBJ invocations to module description.
40803         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
40804         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
40806 2011-05-23  Bruno Haible  <bruno@clisp.org>
40808         xalloc: Move AC_LIBOBJ invocations to module description.
40809         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
40810         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
40812 2011-05-23  Bruno Haible  <bruno@clisp.org>
40814         write-any-file: Move AC_LIBOBJ invocations to module description.
40815         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
40816         invocation.
40817         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
40819 2011-05-23  Bruno Haible  <bruno@clisp.org>
40821         utimens: Move AC_LIBOBJ invocations to module description.
40822         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
40823         * modules/utimens (Makefile.am): Augment lib_SOURCES.
40825 2011-05-23  Bruno Haible  <bruno@clisp.org>
40827         utimecmp: Move AC_LIBOBJ invocations to module description.
40828         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
40829         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
40831 2011-05-23  Bruno Haible  <bruno@clisp.org>
40833         userspec: Move AC_LIBOBJ invocations to module description.
40834         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
40835         * modules/userspec (Makefile.am): Augment lib_SOURCES.
40837 2011-05-23  Bruno Haible  <bruno@clisp.org>
40839         unlinkdir: Move AC_LIBOBJ invocations to module description.
40840         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
40841         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
40843 2011-05-23  Bruno Haible  <bruno@clisp.org>
40845         unistd-safer: Move AC_LIBOBJ invocations to module description.
40846         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
40847         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
40849 2011-05-23  Bruno Haible  <bruno@clisp.org>
40851         tempname: Move AC_LIBOBJ invocations to module description.
40852         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
40853         * modules/tempname (Makefile.am): Augment lib_SOURCES.
40855 2011-05-23  Bruno Haible  <bruno@clisp.org>
40857         strftime: Move AC_LIBOBJ invocations to module description.
40858         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
40859         * modules/strftime (Makefile.am): Augment lib_SOURCES.
40861 2011-05-23  Bruno Haible  <bruno@clisp.org>
40863         stdlib-safer: Move AC_LIBOBJ invocations to module description.
40864         * m4/stdlib-safer.m4: Remove file.
40865         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
40866         (configure.ac): Remove gl_STDLIB_SAFER call.
40867         (Makefile.am): Augment lib_SOURCES.
40869 2011-05-23  Bruno Haible  <bruno@clisp.org>
40871         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
40872         * m4/stdio-safer.m4: Remove file.
40873         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
40874         (configure.ac): Remove gl_TMPFILE_SAFER call.
40875         (Makefile.am): Augment lib_SOURCES.
40877 2011-05-23  Bruno Haible  <bruno@clisp.org>
40879         popen-safer: Move AC_LIBOBJ invocations to module description.
40880         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
40881         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
40882         (configure.ac): Remove gl_POPEN_SAFER call.
40883         (Makefile.am): Augment lib_SOURCES.
40885 2011-05-23  Bruno Haible  <bruno@clisp.org>
40887         freopen-safer: Move AC_LIBOBJ invocations to module description.
40888         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
40889         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
40890         (configure.ac): Remove gl_FREOPEN_SAFER call.
40891         (Makefile.am): Augment lib_SOURCES.
40893 2011-05-23  Bruno Haible  <bruno@clisp.org>
40895         fopen-safer: Move AC_LIBOBJ invocations to module description.
40896         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
40897         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
40898         (configure.ac): Remove gl_FOPEN_SAFER call.
40899         (Makefile.am): Augment lib_SOURCES.
40901 2011-05-23  Bruno Haible  <bruno@clisp.org>
40903         crypto/sha512: Move AC_LIBOBJ invocations to module description.
40904         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
40905         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
40907 2011-05-23  Bruno Haible  <bruno@clisp.org>
40909         crypto/sha256: Move AC_LIBOBJ invocations to module description.
40910         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
40911         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
40913 2011-05-23  Bruno Haible  <bruno@clisp.org>
40915         crypto/sha1: Move AC_LIBOBJ invocations to module description.
40916         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
40917         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
40919 2011-05-23  Bruno Haible  <bruno@clisp.org>
40921         settime: Move AC_LIBOBJ invocations to module description.
40922         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
40923         * modules/settime (Makefile.am): Augment lib_SOURCES.
40925 2011-05-23  Bruno Haible  <bruno@clisp.org>
40927         savedir: Move AC_LIBOBJ invocations to module description.
40928         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
40929         * modules/savedir (Makefile.am): Augment lib_SOURCES.
40931 2011-05-23  Bruno Haible  <bruno@clisp.org>
40933         save-cwd: Move AC_LIBOBJ invocations to module description.
40934         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
40935         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
40937 2011-05-23  Bruno Haible  <bruno@clisp.org>
40939         same: Move AC_LIBOBJ invocations to module description.
40940         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
40941         * modules/same (Makefile.am): Augment lib_SOURCES.
40943 2011-05-23  Bruno Haible  <bruno@clisp.org>
40945         safe-write: Move AC_LIBOBJ invocations to module description.
40946         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
40947         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
40948         instead of gl_SAFE_WRITE.
40949         (Makefile.am): Augment lib_SOURCES.
40951 2011-05-23  Bruno Haible  <bruno@clisp.org>
40953         safe-read: Move AC_LIBOBJ invocations to module description.
40954         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
40955         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
40956         of gl_SAFE_READ.
40957         (Makefile.am): Augment lib_SOURCES.
40959 2011-05-23  Bruno Haible  <bruno@clisp.org>
40961         safe-alloc: Move AC_LIBOBJ invocations to module description.
40962         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
40963         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
40965 2011-05-23  Bruno Haible  <bruno@clisp.org>
40967         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
40968         * m4/rijndael.m4: Remove file.
40969         * modules/crypto/rijndael (Files): Remove it.
40970         (configure.ac): Remove gl_RIJNDAEL call.
40971         (Makefile.am): Augment lib_SOURCES.
40973 2011-05-23  Bruno Haible  <bruno@clisp.org>
40975         readtokens: Move AC_LIBOBJ invocations to module description.
40976         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
40977         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
40979 2011-05-23  Bruno Haible  <bruno@clisp.org>
40981         read-file: Move AC_LIBOBJ invocations to module description.
40982         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
40983         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
40984         of gl_FUNC_READ_FILE.
40985         (Makefile.am): Augment lib_SOURCES.
40987 2011-05-23  Bruno Haible  <bruno@clisp.org>
40989         quotearg: Move AC_LIBOBJ invocations to module description.
40990         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
40991         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
40993 2011-05-23  Bruno Haible  <bruno@clisp.org>
40995         quote: Move AC_LIBOBJ invocations to module description.
40996         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
40997         * modules/quote (Makefile.am): Augment lib_SOURCES.
40999 2011-05-23  Bruno Haible  <bruno@clisp.org>
41001         posixver: Move AC_LIBOBJ invocations to module description.
41002         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
41003         * modules/posixver (Makefile.am): Augment lib_SOURCES.
41005 2011-05-23  Bruno Haible  <bruno@clisp.org>
41007         posixtm: Move AC_LIBOBJ invocations to module description.
41008         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
41009         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
41011 2011-05-23  Bruno Haible  <bruno@clisp.org>
41013         physmem: Move AC_LIBOBJ invocations to module description.
41014         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
41015         * modules/physmem (Makefile.am): Augment lib_SOURCES.
41017 2011-05-23  Bruno Haible  <bruno@clisp.org>
41019         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
41020         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
41021         invocation.
41022         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
41024 2011-05-23  Bruno Haible  <bruno@clisp.org>
41026         mpsort: Move AC_LIBOBJ invocations to module description.
41027         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
41028         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
41030 2011-05-23  Bruno Haible  <bruno@clisp.org>
41032         modechange: Move AC_LIBOBJ invocations to module description.
41033         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
41034         * modules/modechange (Makefile.am): Augment lib_SOURCES.
41036 2011-05-23  Bruno Haible  <bruno@clisp.org>
41038         mkdir-p: Move AC_LIBOBJ invocations to module description.
41039         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
41040         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
41042 2011-05-23  Bruno Haible  <bruno@clisp.org>
41044         mkancesdirs: Move AC_LIBOBJ invocations to module description.
41045         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
41046         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
41048 2011-05-23  Bruno Haible  <bruno@clisp.org>
41050         mgetgroups: Move AC_LIBOBJ invocations to module description.
41051         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
41052         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
41054 2011-05-23  Bruno Haible  <bruno@clisp.org>
41056         memxor: Move AC_LIBOBJ invocations to module description.
41057         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
41058         * modules/memxor (Makefile.am): Augment lib_SOURCES.
41060 2011-05-23  Bruno Haible  <bruno@clisp.org>
41062         memcoll: Move AC_LIBOBJ invocations to module description.
41063         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
41064         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
41066 2011-05-23  Bruno Haible  <bruno@clisp.org>
41068         memcasecmp: Move AC_LIBOBJ invocations to module description.
41069         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
41070         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
41072 2011-05-23  Bruno Haible  <bruno@clisp.org>
41074         crypto/md5: Move AC_LIBOBJ invocations to module description.
41075         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
41076         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
41078 2011-05-23  Bruno Haible  <bruno@clisp.org>
41080         crypto/md4: Move AC_LIBOBJ invocations to module description.
41081         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
41082         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
41084 2011-05-23  Bruno Haible  <bruno@clisp.org>
41086         crypto/md2: Move AC_LIBOBJ invocations to module description.
41087         * m4/md2.m4: Remove file.
41088         * modules/crypto/md2 (Files): Remove it.
41089         (configure.ac): Remove gl_MD2 call.
41090         (Makefile.am): Augment lib_SOURCES.
41092 2011-05-23  Bruno Haible  <bruno@clisp.org>
41094         long-options: Move AC_LIBOBJ invocations to module description.
41095         * m4/long-options.m4: Remove file.
41096         * modules/long-options (Files): Remove it.
41097         (configure.ac): Remove gl_LONG_OPTIONS call.
41098         (Makefile.am): Augment lib_SOURCES.
41100 2011-05-23  Bruno Haible  <bruno@clisp.org>
41102         i-ring: Move AC_LIBOBJ invocations to module description.
41103         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
41104         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
41106 2011-05-23  Bruno Haible  <bruno@clisp.org>
41108         idcache: Move AC_LIBOBJ invocations to module description.
41109         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
41110         * modules/idcache (Makefile.am): Augment lib_SOURCES.
41112 2011-05-23  Bruno Haible  <bruno@clisp.org>
41114         human: Move AC_LIBOBJ invocations to module description.
41115         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
41116         * modules/human (Makefile.am): Augment lib_SOURCES.
41118 2011-05-23  Bruno Haible  <bruno@clisp.org>
41120         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
41121         * m4/hmac-sha1.m4: Remove file.
41122         * modules/crypto/hmac-sha1 (Files): Remove it.
41123         (configure.ac): Remove gl_HMAC_SHA1 call.
41124         (Makefile.am): Augment lib_SOURCES.
41126 2011-05-23  Bruno Haible  <bruno@clisp.org>
41128         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
41129         * m4/hmac-md5.m4: Remove file.
41130         * modules/crypto/hmac-md5 (Files): Remove it.
41131         (configure.ac): Remove gl_HMAC_MD5 call.
41132         (Makefile.am): Augment lib_SOURCES.
41134 2011-05-23  Bruno Haible  <bruno@clisp.org>
41136         hash: Move AC_LIBOBJ invocations to module description.
41137         * m4/hash.m4: Remove file.
41138         * modules/hash (Files): Remove it.
41139         (configure.ac): Remove gl_HASH call.
41140         (Makefile.am): Augment lib_SOURCES.
41142 2011-05-23  Bruno Haible  <bruno@clisp.org>
41144         hard-locale: Move AC_LIBOBJ invocations to module description.
41145         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
41146         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
41148 2011-05-23  Bruno Haible  <bruno@clisp.org>
41150         getugroups: Move AC_LIBOBJ invocations to module description.
41151         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
41152         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
41154 2011-05-23  Bruno Haible  <bruno@clisp.org>
41156         gettime: Move AC_LIBOBJ invocations to module description.
41157         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
41158         * modules/gettime (Makefile.am): Augment lib_SOURCES.
41160 2011-05-23  Bruno Haible  <bruno@clisp.org>
41162         getndelim2: Move AC_LIBOBJ invocations to module description.
41163         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
41164         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
41166 2011-05-23  Bruno Haible  <bruno@clisp.org>
41168         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
41169         * m4/gc-pbkdf2-sha1.m4: Remove file.
41170         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
41171         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
41172         (Makefile.am): Augment lib_SOURCES.
41174 2011-05-23  Bruno Haible  <bruno@clisp.org>
41176         fts: Move AC_LIBOBJ invocations to module description.
41177         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
41178         * modules/fts (configure.ac): ... to here.
41180 2011-05-23  Bruno Haible  <bruno@clisp.org>
41182         file-type: Move AC_LIBOBJ invocations to module description.
41183         * m4/file-type.m4: Remove file.
41184         * modules/file-type (Files): Remove it.
41185         (configure.ac): Remove gl_FILE_TYPE call.
41186         (Makefile.am): Augment lib_SOURCES.
41188 2011-05-23  Bruno Haible  <bruno@clisp.org>
41190         filenamecat*: Respect rules for use of AC_LIBOBJ.
41191         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
41192         Remove AC_LIBOBJ invocation.
41193         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
41194         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
41196 2011-05-23  Bruno Haible  <bruno@clisp.org>
41198         filemode: Move AC_LIBOBJ invocations to module description.
41199         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
41200         * modules/filemode (Makefile.am): Augment lib_SOURCES.
41202 2011-05-23  Bruno Haible  <bruno@clisp.org>
41204         openat-safer: Move AC_LIBOBJ invocations to module description.
41205         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
41206         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
41208 2011-05-23  Bruno Haible  <bruno@clisp.org>
41210         fcntl-safer: Move AC_LIBOBJ invocations to module description.
41211         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
41212         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
41214 2011-05-23  Bruno Haible  <bruno@clisp.org>
41216         exclude: Move AC_LIBOBJ invocations to module description.
41217         * m4/exclude.m4: Remove file.
41218         * modules/exclude (Files): Remove it.
41219         (configure.ac): Remove gl_EXCLUDE call.
41220         (Makefile.am): Augment lib_SOURCES.
41222 2011-05-23  Bruno Haible  <bruno@clisp.org>
41224         dirname*: Respect rules for use of AC_LIBOBJ.
41225         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
41226         invocations.
41227         * modules/dirname (Makefile.am): Augment lib_SOURCES.
41228         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
41230 2011-05-23  Bruno Haible  <bruno@clisp.org>
41232         dirent-safer: Move AC_LIBOBJ invocations to module description.
41233         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
41234         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
41236 2011-05-23  Bruno Haible  <bruno@clisp.org>
41238         crypto/des: Move AC_LIBOBJ invocations to module description.
41239         * m4/des.m4: Remove file.
41240         * modules/crypto/des (Files): Remove it.
41241         (configure.ac): Remove gl_DES call.
41242         (Makefile.am): Augment lib_SOURCES.
41244 2011-05-23  Bruno Haible  <bruno@clisp.org>
41246         cycle-check: Move AC_LIBOBJ invocations to module description.
41247         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
41248         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
41250 2011-05-23  Bruno Haible  <bruno@clisp.org>
41252         c-strtold: Move AC_LIBOBJ invocations to module description.
41253         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
41254         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
41256 2011-05-23  Bruno Haible  <bruno@clisp.org>
41258         c-strtod: Move AC_LIBOBJ invocations to module description.
41259         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
41260         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
41262 2011-05-23  Bruno Haible  <bruno@clisp.org>
41264         crc: Move AC_LIBOBJ invocations to module description.
41265         * m4/crc.m4: Remove file.
41266         * modules/crc (Files): Remove it.
41267         (configure.ac): Remove gl_CRC call.
41268         (Makefile.am): Augment lib_SOURCES.
41270 2011-05-23  Bruno Haible  <bruno@clisp.org>
41272         close-stream: Move AC_LIBOBJ invocations to module description.
41273         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
41274         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
41276 2011-05-23  Bruno Haible  <bruno@clisp.org>
41278         closeout: Move AC_LIBOBJ invocations to module description.
41279         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
41280         * modules/closeout (Makefile.am): Augment lib_SOURCES.
41282 2011-05-23  Bruno Haible  <bruno@clisp.org>
41284         closein: Move AC_LIBOBJ invocations to module description.
41285         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
41286         * modules/closein (Makefile.am): Augment lib_SOURCES.
41288 2011-05-23  Bruno Haible  <bruno@clisp.org>
41290         cloexec: Move AC_LIBOBJ invocations to module description.
41291         * m4/cloexec.m4: Remove file.
41292         * modules/cloexec (Files): Remove it.
41293         (configure.ac): Remove gl_CLOEXEC call.
41294         (Makefile.am): Augment lib_SOURCES.
41296 2011-05-23  Bruno Haible  <bruno@clisp.org>
41298         check-version: Move AC_LIBOBJ invocations to module description.
41299         * m4/check-version.m4: Remove file.
41300         * modules/check-version (Files): Remove it.
41301         (configure.ac): Remove gl_CHECK_VERSION call.
41302         (Makefile.am): Augment lib_SOURCES.
41304 2011-05-23  Bruno Haible  <bruno@clisp.org>
41306         chdir-safer: Move AC_LIBOBJ invocations to module description.
41307         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
41308         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
41310 2011-05-23  Bruno Haible  <bruno@clisp.org>
41312         canonicalize: Move AC_LIBOBJ invocations to module description.
41313         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
41314         AC_LIBOBJ invocation.
41315         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
41317 2011-05-23  Bruno Haible  <bruno@clisp.org>
41319         canon-host: Move AC_LIBOBJ invocations to module description.
41320         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
41321         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
41322         instead of gl_CANON_HOST.
41323         (Makefile.am): Augment lib_SOURCES.
41325 2011-05-23  Bruno Haible  <bruno@clisp.org>
41327         backupfile: Move AC_LIBOBJ invocations to module description.
41328         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
41329         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
41331 2011-05-23  Bruno Haible  <bruno@clisp.org>
41333         argmatch: Move AC_LIBOBJ invocations to module description.
41334         * m4/argmatch.m4: Remove file.
41335         * modules/argmatch (Files): Remove it.
41336         (configure.ac): Remove gl_ARGMATCH call.
41337         (Makefile.am): Augment lib_SOURCES.
41339 2011-05-23  Bruno Haible  <bruno@clisp.org>
41341         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
41342         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
41343         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
41345 2011-05-23  Bruno Haible  <bruno@clisp.org>
41347         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
41348         * m4/arcfour.m4: Remove file.
41349         * modules/crypto/arcfour (Files): Remove it.
41350         (configure.ac): Remove gl_ARCFOUR call.
41351         (Makefile.am): Augment lib_SOURCES.
41353 2011-05-22  Bruno Haible  <bruno@clisp.org>
41355         write: Move AC_LIBOBJ invocations to module description.
41356         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
41357         * modules/write (configure.ac): ... to here.
41359 2011-05-22  Bruno Haible  <bruno@clisp.org>
41361         wmemset: Move AC_LIBOBJ invocations to module description.
41362         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
41363         here...
41364         * modules/wmemset (configure.ac): ... to here.
41366 2011-05-22  Bruno Haible  <bruno@clisp.org>
41368         wmemmove: Move AC_LIBOBJ invocations to module description.
41369         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
41370         here...
41371         * modules/wmemmove (configure.ac): ... to here.
41373 2011-05-22  Bruno Haible  <bruno@clisp.org>
41375         wmemcpy: Move AC_LIBOBJ invocations to module description.
41376         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
41377         here...
41378         * modules/wmemcpy (configure.ac): ... to here.
41380 2011-05-22  Bruno Haible  <bruno@clisp.org>
41382         wmemcmp: Move AC_LIBOBJ invocations to module description.
41383         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
41384         here...
41385         * modules/wmemcmp (configure.ac): ... to here.
41387 2011-05-22  Bruno Haible  <bruno@clisp.org>
41389         wmemchr: Move AC_LIBOBJ invocations to module description.
41390         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
41391         here...
41392         * modules/wmemchr (configure.ac): ... to here.
41394 2011-05-22  Bruno Haible  <bruno@clisp.org>
41396         wcswidth: Move AC_LIBOBJ invocations to module description.
41397         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
41398         here...
41399         * modules/wcswidth (configure.ac): ... to here.
41401 2011-05-22  Bruno Haible  <bruno@clisp.org>
41403         wcwidth: Respect rules for use of AC_LIBOBJ.
41404         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
41405         invocation from here...
41406         * modules/wcwidth (configure.ac): ... to here.
41407         (Depends-on): Update conditions.
41409 2011-05-22  Bruno Haible  <bruno@clisp.org>
41411         wctype: Move AC_LIBOBJ invocations to module description.
41412         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
41413         invocation from here...
41414         * modules/wctype (configure.ac): ... to here.
41415         (Depends-on): Update conditions.
41417 2011-05-22  Bruno Haible  <bruno@clisp.org>
41419         wctrans: Move AC_LIBOBJ invocations to module description.
41420         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
41421         invocation from here...
41422         * modules/wctrans (configure.ac): ... to here.
41424 2011-05-22  Bruno Haible  <bruno@clisp.org>
41426         wctomb: Move AC_LIBOBJ invocations to module description.
41427         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
41428         invocations from here...
41429         * modules/wctomb (configure.ac): ... to here.
41431 2011-05-22  Bruno Haible  <bruno@clisp.org>
41433         wctob: Move AC_LIBOBJ invocations to module description.
41434         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
41435         gl_PREREQ_WCTOB invocations from here...
41436         * modules/wctob (configure.ac): ... to here.
41437         (Depends-on): Update conditions.
41439 2011-05-22  Bruno Haible  <bruno@clisp.org>
41441         wcsxfrm: Move AC_LIBOBJ invocations to module description.
41442         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
41443         here...
41444         * modules/wcsxfrm (configure.ac): ... to here.
41446 2011-05-22  Bruno Haible  <bruno@clisp.org>
41448         wcstok: Move AC_LIBOBJ invocations to module description.
41449         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
41450         * modules/wcstok (configure.ac): ... to here.
41452 2011-05-22  Bruno Haible  <bruno@clisp.org>
41454         wcsstr: Move AC_LIBOBJ invocations to module description.
41455         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
41456         * modules/wcsstr (configure.ac): ... to here.
41458 2011-05-22  Bruno Haible  <bruno@clisp.org>
41460         wcsspn: Move AC_LIBOBJ invocations to module description.
41461         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
41462         * modules/wcsspn (configure.ac): ... to here.
41464 2011-05-22  Bruno Haible  <bruno@clisp.org>
41466         wcsrtombs: Move AC_LIBOBJ invocations to module description.
41467         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
41468         gl_PREREQ_WCSRTOMBS invocations from here...
41469         * modules/wcsrtombs (configure.ac): ... to here.
41471 2011-05-22  Bruno Haible  <bruno@clisp.org>
41473         wcsrchr: Move AC_LIBOBJ invocations to module description.
41474         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
41475         here...
41476         * modules/wcsrchr (configure.ac): ... to here.
41478 2011-05-22  Bruno Haible  <bruno@clisp.org>
41480         wcspbrk: Move AC_LIBOBJ invocations to module description.
41481         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
41482         here...
41483         * modules/wcspbrk (configure.ac): ... to here.
41485 2011-05-22  Bruno Haible  <bruno@clisp.org>
41487         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
41488         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
41489         gl_PREREQ_WCSNRTOMBS invocations from here...
41490         * modules/wcsnrtombs (configure.ac): ... to here.
41492 2011-05-22  Bruno Haible  <bruno@clisp.org>
41494         wcsnlen: Move AC_LIBOBJ invocations to module description.
41495         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
41496         here...
41497         * modules/wcsnlen (configure.ac): ... to here.
41499 2011-05-22  Bruno Haible  <bruno@clisp.org>
41501         wcsncpy: Move AC_LIBOBJ invocations to module description.
41502         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
41503         here...
41504         * modules/wcsncpy (configure.ac): ... to here.
41506 2011-05-22  Bruno Haible  <bruno@clisp.org>
41508         wcsncmp: Move AC_LIBOBJ invocations to module description.
41509         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
41510         here...
41511         * modules/wcsncmp (configure.ac): ... to here.
41513 2011-05-22  Bruno Haible  <bruno@clisp.org>
41515         wcsncat: Move AC_LIBOBJ invocations to module description.
41516         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
41517         here...
41518         * modules/wcsncat (configure.ac): ... to here.
41520 2011-05-22  Bruno Haible  <bruno@clisp.org>
41522         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
41523         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
41524         from here...
41525         * modules/wcsncasecmp (configure.ac): ... to here.
41527 2011-05-22  Bruno Haible  <bruno@clisp.org>
41529         wcslen: Move AC_LIBOBJ invocations to module description.
41530         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
41531         * modules/wcslen (configure.ac): ... to here.
41533 2011-05-22  Bruno Haible  <bruno@clisp.org>
41535         wcsdup: Move AC_LIBOBJ invocations to module description.
41536         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
41537         * modules/wcsdup (configure.ac): ... to here.
41539 2011-05-22  Bruno Haible  <bruno@clisp.org>
41541         wcscspn: Move AC_LIBOBJ invocations to module description.
41542         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
41543         here...
41544         * modules/wcscspn (configure.ac): ... to here.
41546 2011-05-22  Bruno Haible  <bruno@clisp.org>
41548         wcscpy: Move AC_LIBOBJ invocations to module description.
41549         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
41550         * modules/wcscpy (configure.ac): ... to here.
41552 2011-05-22  Bruno Haible  <bruno@clisp.org>
41554         wcscoll: Move AC_LIBOBJ invocations to module description.
41555         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
41556         here...
41557         * modules/wcscoll (configure.ac): ... to here.
41559 2011-05-22  Bruno Haible  <bruno@clisp.org>
41561         wcscmp: Move AC_LIBOBJ invocations to module description.
41562         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
41563         * modules/wcscmp (configure.ac): ... to here.
41565 2011-05-22  Bruno Haible  <bruno@clisp.org>
41567         wcschr: Move AC_LIBOBJ invocations to module description.
41568         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
41569         * modules/wcschr (configure.ac): ... to here.
41571 2011-05-22  Bruno Haible  <bruno@clisp.org>
41573         wcscat: Move AC_LIBOBJ invocations to module description.
41574         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
41575         * modules/wcscat (configure.ac): ... to here.
41577 2011-05-22  Bruno Haible  <bruno@clisp.org>
41579         wcscasecmp: Move AC_LIBOBJ invocations to module description.
41580         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
41581         here...
41582         * modules/wcscasecmp (configure.ac): ... to here.
41584 2011-05-22  Bruno Haible  <bruno@clisp.org>
41586         wcrtomb: Move AC_LIBOBJ invocations to module description.
41587         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
41588         invocations from here...
41589         * modules/wcrtomb (configure.ac): ... to here.
41591 2011-05-22  Bruno Haible  <bruno@clisp.org>
41593         wcpncpy: Move AC_LIBOBJ invocations to module description.
41594         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
41595         here...
41596         * modules/wcpncpy (configure.ac): ... to here.
41598 2011-05-22  Bruno Haible  <bruno@clisp.org>
41600         wcpcpy: Move AC_LIBOBJ invocations to module description.
41601         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
41602         * modules/wcpcpy (configure.ac): ... to here.
41604 2011-05-22  Bruno Haible  <bruno@clisp.org>
41606         waitpid: Move AC_LIBOBJ invocations to module description.
41607         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
41608         invocation from here...
41609         * modules/waitpid (configure.ac): ... to here.
41611 2011-05-22  Bruno Haible  <bruno@clisp.org>
41613         utimensat: Move AC_LIBOBJ invocations to module description.
41614         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
41615         here...
41616         * modules/utimensat (configure.ac): ... to here.
41618 2011-05-22  Bruno Haible  <bruno@clisp.org>
41620         usleep: Move AC_LIBOBJ invocations to module description.
41621         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
41622         here...
41623         * modules/usleep (configure.ac): ... to here.
41625 2011-05-22  Bruno Haible  <bruno@clisp.org>
41627         unlockpt: Move AC_LIBOBJ invocations to module description.
41628         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
41629         gl_PREREQ_UNLOCKPT invocations from here...
41630         * modules/unlockpt (configure.ac): ... to here.
41632 2011-05-22  Bruno Haible  <bruno@clisp.org>
41634         unlink: Respect rules for use of AC_LIBOBJ.
41635         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
41636         * modules/unlink (configure.ac): ... to here.
41638 2011-05-22  Bruno Haible  <bruno@clisp.org>
41640         uname: Move AC_LIBOBJ invocations to module description.
41641         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
41642         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
41643         here...
41644         * modules/uname (configure.ac): ... to here.
41646 2011-05-22  Bruno Haible  <bruno@clisp.org>
41648         ttyname_r: Move AC_LIBOBJ invocations to module description.
41649         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
41650         gl_PREREQ_TTYNAME_R invocations from here...
41651         * modules/ttyname_r (configure.ac): ... to here.
41653 2011-05-22  Bruno Haible  <bruno@clisp.org>
41655         tsearch: Move AC_LIBOBJ invocations to module description.
41656         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
41657         invocations from here...
41658         * modules/tsearch (configure.ac): ... to here.
41660 2011-05-22  Bruno Haible  <bruno@clisp.org>
41662         towctrans: Move AC_LIBOBJ invocations to module description.
41663         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
41664         AC_LIBOBJ invocation from here...
41665         * modules/towctrans (configure.ac): ... to here.
41667 2011-05-22  Bruno Haible  <bruno@clisp.org>
41669         tmpfile: Move AC_LIBOBJ invocations to module description.
41670         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
41671         invocations from here...
41672         * modules/tmpfile (configure.ac): ... to here.
41674 2011-05-22  Bruno Haible  <bruno@clisp.org>
41676         times: Move AC_LIBOBJ invocations to module description.
41677         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
41678         * modules/times (configure.ac): ... to here.
41680 2011-05-22  Bruno Haible  <bruno@clisp.org>
41682         time_r: Move AC_LIBOBJ invocations to module description.
41683         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
41684         invocations from here...
41685         * modules/time_r (configure.ac): ... to here.
41687 2011-05-22  Bruno Haible  <bruno@clisp.org>
41689         timegm: Move AC_LIBOBJ invocations to module description.
41690         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
41691         invocations from here...
41692         * modules/timegm (configure.ac): ... to here.
41694 2011-05-22  Bruno Haible  <bruno@clisp.org>
41696         tcgetsid: Move AC_LIBOBJ invocations to module description.
41697         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
41698         and gl_PREREQ_TCGETSID invocations from here...
41699         * modules/tcgetsid (configure.ac): ... to here.
41700         (Depends-on): Update conditions.
41702 2011-05-22  Bruno Haible  <bruno@clisp.org>
41704         symlinkat: Move AC_LIBOBJ invocations to module description.
41705         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
41706         here...
41707         * modules/symlinkat (configure.ac): ... to here.
41709 2011-05-22  Bruno Haible  <bruno@clisp.org>
41711         symlink: Move AC_LIBOBJ invocations to module description.
41712         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
41713         here...
41714         * modules/symlink (configure.ac): ... to here.
41716 2011-05-22  Bruno Haible  <bruno@clisp.org>
41718         strverscmp: Move AC_LIBOBJ invocations to module description.
41719         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
41720         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
41721         from here...
41722         * modules/strverscmp (configure.ac): ... to here.
41724 2011-05-22  Bruno Haible  <bruno@clisp.org>
41726         strtok_r: Move AC_LIBOBJ invocations to module description.
41727         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
41728         and gl_PREREQ_STRTOK_R invocations from here...
41729         * modules/strtok_r (configure.ac): ... to here.
41730         (Depends-on): Update conditions.
41732 2011-05-22  Bruno Haible  <bruno@clisp.org>
41734         strtoumax: Move AC_LIBOBJ invocations to module description.
41735         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
41736         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
41737         from here...
41738         * modules/strtoumax (configure.ac): ... to here.
41740 2011-05-22  Bruno Haible  <bruno@clisp.org>
41742         strtoimax: Move AC_LIBOBJ invocations to module description.
41743         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
41744         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
41745         from here...
41746         * modules/strtoimax (configure.ac): ... to here.
41748 2011-05-22  Bruno Haible  <bruno@clisp.org>
41750         strtoull: Move AC_LIBOBJ invocations to module description.
41751         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
41752         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
41753         from here...
41754         * modules/strtoull (configure.ac): ... to here.
41756 2011-05-22  Bruno Haible  <bruno@clisp.org>
41758         strtoll: Move AC_LIBOBJ invocations to module description.
41759         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
41760         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
41761         here...
41762         * modules/strtoll (configure.ac): ... to here.
41764 2011-05-22  Bruno Haible  <bruno@clisp.org>
41766         strtoul: Move AC_LIBOBJ invocations to module description.
41767         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
41768         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
41769         * modules/strtoul (configure.ac): ... to here.
41771 2011-05-22  Bruno Haible  <bruno@clisp.org>
41773         strtol: Move AC_LIBOBJ invocations to module description.
41774         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
41775         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
41776         * modules/strtol (configure.ac): ... to here.
41778 2011-05-22  Bruno Haible  <bruno@clisp.org>
41780         strtod: Move AC_LIBOBJ invocations to module description.
41781         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
41782         invocations from here...
41783         * modules/strtod (configure.ac): ... to here.
41785 2011-05-22  Bruno Haible  <bruno@clisp.org>
41787         strstr*: Move AC_LIBOBJ invocations to module description.
41788         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
41789         invocations from here...
41790         * modules/strstr-simple (configure.ac): ... to here.
41791         * modules/strstr (configure.ac): ... and here.
41793 2011-05-22  Bruno Haible  <bruno@clisp.org>
41795         strsignal: Move AC_LIBOBJ invocations to module description.
41796         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
41797         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
41798         * modules/strsignal (configure.ac): ... to here.
41799         (Depends-on): Update conditions.
41801 2011-05-22  Bruno Haible  <bruno@clisp.org>
41803         strsep: Move AC_LIBOBJ invocations to module description.
41804         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
41805         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
41806         here...
41807         * modules/strsep (configure.ac): ... to here.
41809 2011-05-22  Bruno Haible  <bruno@clisp.org>
41811         strptime: Move AC_LIBOBJ invocations to module description.
41812         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
41813         gl_PREREQ_STRPTIME invocations from here...
41814         * modules/strptime (configure.ac): ... to here.
41816 2011-05-22  Bruno Haible  <bruno@clisp.org>
41818         strpbrk: Move AC_LIBOBJ invocations to module description.
41819         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
41820         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
41821         here...
41822         * modules/strpbrk (configure.ac): ... to here.
41824 2011-05-22  Bruno Haible  <bruno@clisp.org>
41826         strnlen: Move AC_LIBOBJ invocations to module description.
41827         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
41828         invocations from here...
41829         * modules/strnlen (configure.ac): ... to here.
41831 2011-05-22  Bruno Haible  <bruno@clisp.org>
41833         strndup: Move AC_LIBOBJ invocations to module description.
41834         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
41835         invocations from here...
41836         * modules/strndup (configure.ac): ... to here.
41837         (Depends-on): Update conditions.
41839 2011-05-22  Bruno Haible  <bruno@clisp.org>
41841         strncat: Move AC_LIBOBJ invocations to module description.
41842         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
41843         invocations from here...
41844         * modules/strncat (configure.ac): ... to here.
41846 2011-05-22  Bruno Haible  <bruno@clisp.org>
41848         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
41849         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
41850         invocations from here...
41851         * modules/strdup (configure.ac): ... to here.
41852         * modules/strdup-posix (configure.ac): ... and here.
41854 2011-05-22  Bruno Haible  <bruno@clisp.org>
41856         strcspn: Move AC_LIBOBJ invocations to module description.
41857         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
41858         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
41859         here...
41860         * modules/strcspn (configure.ac): ... to here.
41862 2011-05-22  Bruno Haible  <bruno@clisp.org>
41864         strchrnul: Move AC_LIBOBJ invocations to module description.
41865         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
41866         gl_PREREQ_STRCHRNUL invocations from here...
41867         * modules/strchrnul (configure.ac): ... to here.
41869 2011-05-22  Bruno Haible  <bruno@clisp.org>
41871         strcasestr*: Move AC_LIBOBJ invocations to module description.
41872         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
41873         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
41874         * modules/strcasestr-simple (configure.ac): ... to here.
41875         * modules/strcasestr (configure.ac): ... and here.
41877 2011-05-22  Bruno Haible  <bruno@clisp.org>
41879         strcase: Move AC_LIBOBJ invocations to module description.
41880         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
41881         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
41882         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
41883         gl_PREREQ_STRNCASECMP invocations from here...
41884         * modules/strcase (configure.ac): ... to here.
41886 2011-05-22  Bruno Haible  <bruno@clisp.org>
41888         stpncpy: Move AC_LIBOBJ invocations to module description.
41889         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
41890         here...
41891         * modules/stpncpy (configure.ac): ... to here.
41893 2011-05-22  Bruno Haible  <bruno@clisp.org>
41895         stpcpy: Move AC_LIBOBJ invocations to module description.
41896         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
41897         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
41898         here...
41899         * modules/stpcpy (configure.ac): ... to here.
41901 2011-05-21  Bruno Haible  <bruno@clisp.org>
41903         stat: Move AC_LIBOBJ invocations to module description.
41904         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
41905         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
41906         here...
41907         * modules/stat (configure.ac): ... to here.
41909 2011-05-21  Bruno Haible  <bruno@clisp.org>
41911         sleep: Move AC_LIBOBJ invocations to module description.
41912         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
41913         * modules/sleep (configure.ac): ... to here.
41915 2011-05-21  Bruno Haible  <bruno@clisp.org>
41917         signbit: Move AC_LIBOBJ invocations to module description.
41918         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
41919         * modules/signbit (configure.ac): ... to here.
41921 2011-05-21  Bruno Haible  <bruno@clisp.org>
41923         sigprocmask: Move AC_LIBOBJ invocations to module description.
41924         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
41925         gl_PREREQ_SIGPROMASK invocations from here...
41926         * modules/sigprocmask (configure.ac): ... to here.
41928 2011-05-21  Bruno Haible  <bruno@clisp.org>
41930         sigaction: Move AC_LIBOBJ invocations to module description.
41931         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
41932         gl_PREREQ_SIGACTION invocations from here...
41933         * modules/sigaction (configure.ac): ... to here.
41935 2011-05-21  Bruno Haible  <bruno@clisp.org>
41937         sig2str: Move AC_LIBOBJ invocations to module description.
41938         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
41939         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
41940         here...
41941         * modules/sig2str (configure.ac): ... to here.
41943 2011-05-21  Bruno Haible  <bruno@clisp.org>
41945         setlocale: Move AC_LIBOBJ invocations to module description.
41946         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
41947         gl_PREREQ_SETLOCALE invocations from here...
41948         * modules/setlocale (configure.ac): ... to here.
41950 2011-05-21  Bruno Haible  <bruno@clisp.org>
41952         unsetenv: Move AC_LIBOBJ invocations to module description.
41953         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
41954         and gl_PREREQ_UNSETENV invocations from here...
41955         * modules/unsetenv (configure.ac): ... to here.
41956         (Depends-on): Update.
41958 2011-05-21  Bruno Haible  <bruno@clisp.org>
41960         setenv: Move AC_LIBOBJ invocations to module description.
41961         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
41962         here...
41963         * modules/setenv (configure.ac): ... to here.
41965 2011-05-21  Bruno Haible  <bruno@clisp.org>
41967         selinux-h: Move AC_LIBOBJ invocations to module description.
41968         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
41969         AC_LIBOBJ invocation from here...
41970         * modules/selinux-h (configure.ac): ... to here.
41972 2011-05-21  Bruno Haible  <bruno@clisp.org>
41974         select: Respect rules for use of AC_LIBOBJ.
41975         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
41976         here...
41977         * modules/select (configure.ac): ... to here.
41979 2011-05-21  Bruno Haible  <bruno@clisp.org>
41981         scandir: Move AC_LIBOBJ invocations to module description.
41982         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
41983         invocations from here...
41984         * modules/scandir (configure.ac): ... to here.
41986 2011-05-21  Bruno Haible  <bruno@clisp.org>
41988         rpmatch: Move AC_LIBOBJ invocations to module description.
41989         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
41990         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
41991         here...
41992         * modules/rpmatch (configure.ac): ... to here.
41994 2011-05-21  Bruno Haible  <bruno@clisp.org>
41996         rmdir: Respect rules for use of AC_LIBOBJ.
41997         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
41998         * modules/rmdir (configure.ac): ... to here.
42000 2011-05-21  Bruno Haible  <bruno@clisp.org>
42002         renameat: Move AC_LIBOBJ invocations to module description.
42003         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
42004         here...
42005         * modules/renameat (configure.ac): ... to here.
42007 2011-05-21  Bruno Haible  <bruno@clisp.org>
42009         rename: Respect rules for use of AC_LIBOBJ.
42010         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
42011         here...
42012         * modules/rename (configure.ac): ... to here.
42014 2011-05-21  Bruno Haible  <bruno@clisp.org>
42016         remove: Move AC_LIBOBJ invocations to module description.
42017         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
42018         here...
42019         * modules/remove (configure.ac): ... to here.
42021 2011-05-21  Bruno Haible  <bruno@clisp.org>
42023         relocatable-lib: Move AC_LIBOBJ invocations to module description.
42024         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
42025         macro.
42026         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
42027         * modules/relocatable-lib (configure.ac): ... to here.
42028         * modules/relocatable-prog-wrapper (configure.ac): Invoke
42029         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
42031 2011-05-21  Bruno Haible  <bruno@clisp.org>
42033         relocatable-prog: Move AC_LIBOBJ invocations to module description.
42034         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
42035         here...
42036         * modules/relocatable-prog (configure.ac): ... to here.
42038 2011-05-21  Bruno Haible  <bruno@clisp.org>
42040         regex: Move AC_LIBOBJ invocations to module description.
42041         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
42042         invocations from here...
42043         * modules/regex (configure.ac): ... to here.
42045 2011-05-21  Bruno Haible  <bruno@clisp.org>
42047         realloc-*: Move AC_LIBOBJ invocations to module description.
42048         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
42049         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
42050         AC_LIBOBJ invocations from here...
42051         * modules/realloc-gnu (configure.ac): ... to here.
42052         * modules/realloc-posix (configure.ac): ... and here.
42054 2011-05-21  Bruno Haible  <bruno@clisp.org>
42056         readutmp: Move AC_LIBOBJ invocations to module description.
42057         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
42058         * modules/readutmp (configure.ac): ... to here.
42060 2011-05-21  Bruno Haible  <bruno@clisp.org>
42062         readlinkat: Move AC_LIBOBJ invocations to module description.
42063         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
42064         here...
42065         * modules/readlinkat (configure.ac): ... to here.
42067 2011-05-21  Bruno Haible  <bruno@clisp.org>
42069         readlink: Move AC_LIBOBJ invocations to module description.
42070         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
42071         gl_PREREQ_READLINK invocations from here...
42072         * modules/readlink (configure.ac): ... to here.
42074 2011-05-21  Bruno Haible  <bruno@clisp.org>
42076         readline: Move AC_LIBOBJ invocations to module description.
42077         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
42078         gl_PREREQ_READLINE invocations from here...
42079         * modules/readline (configure.ac): ... to here.
42081 2011-05-21  Bruno Haible  <bruno@clisp.org>
42083         read: Move AC_LIBOBJ invocations to module description.
42084         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
42085         * modules/read (configure.ac): ... to here.
42087 2011-05-21  Bruno Haible  <bruno@clisp.org>
42089         rawmemchr: Move AC_LIBOBJ invocations to module description.
42090         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
42091         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
42092         from here...
42093         * modules/rawmemchr (configure.ac): ... to here.
42095 2011-05-21  Bruno Haible  <bruno@clisp.org>
42097         random_r: Move AC_LIBOBJ invocations to module description.
42098         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
42099         gl_PREREQ_RANDOM_R invocations from here...
42100         * modules/random_r (configure.ac): ... to here.
42102 2011-05-21  Bruno Haible  <bruno@clisp.org>
42104         pwrite: Move AC_LIBOBJ invocations to module description.
42105         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
42106         * modules/pwrite (configure.ac): ... to here.
42108 2011-05-21  Bruno Haible  <bruno@clisp.org>
42110         putenv: Move AC_LIBOBJ invocations to module description.
42111         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
42112         * modules/putenv (configure.ac): ... to here.
42114 2011-05-21  Bruno Haible  <bruno@clisp.org>
42116         login_tty: Move AC_LIBOBJ invocations to module description.
42117         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
42118         * modules/login_tty (configure.ac): ... to here.
42120 2011-05-21  Bruno Haible  <bruno@clisp.org>
42122         openpty: Move AC_LIBOBJ invocations to module description.
42123         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
42124         * modules/openpty (configure.ac): ... to here.
42126 2011-05-21  Bruno Haible  <bruno@clisp.org>
42128         forkpty: Move AC_LIBOBJ invocations to module description.
42129         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
42130         * modules/forkpty (configure.ac): ... to here.
42132 2011-05-21  Bruno Haible  <bruno@clisp.org>
42134         ptsname: Move AC_LIBOBJ invocations to module description.
42135         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
42136         invocations from here...
42137         * modules/ptsname (configure.ac): ... to here.
42139 2011-05-21  Bruno Haible  <bruno@clisp.org>
42141         pread: Move AC_LIBOBJ invocations to module description.
42142         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
42143         * modules/pread (configure.ac): ... to here.
42145 2011-05-21  Bruno Haible  <bruno@clisp.org>
42147         posix_spawn*: Move AC_LIBOBJ invocations to module description.
42148         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
42149         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
42150         * modules/posix_spawn (configure.ac): ... to here.
42151         * modules/posix_spawnp (configure.ac): ... and here.
42153 2011-05-21  Bruno Haible  <bruno@clisp.org>
42155         popen: Move AC_LIBOBJ invocations to module description.
42156         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
42157         invocations from here...
42158         * modules/popen (configure.ac): ... to here.
42160 2011-05-21  Bruno Haible  <bruno@clisp.org>
42162         poll: Move AC_LIBOBJ invocations to module description.
42163         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
42164         invocations from here...
42165         * modules/poll (configure.ac): ... to here.
42167 2011-05-21  Bruno Haible  <bruno@clisp.org>
42169         pipe-posix: Move AC_LIBOBJ invocations to module description.
42170         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
42171         * modules/pipe-posix (configure.ac): ... to here.
42173 2011-05-21  Bruno Haible  <bruno@clisp.org>
42175         openat: Respect rules for use of AC_LIBOBJ.
42176         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
42177         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
42178         * modules/openat (configure.ac): ... to here.
42180 2011-05-21  Bruno Haible  <bruno@clisp.org>
42182         obstack-printf*: Move AC_LIBOBJ invocations to module description.
42183         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
42184         invocation from here...
42185         * modules/obstack-printf (configure.ac): ... to here.
42186         * modules/obstack-printf-posix (configure.ac): ... and here.
42188 2011-05-21  Bruno Haible  <bruno@clisp.org>
42190         nl_langinfo: Move AC_LIBOBJ invocations to module description.
42191         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
42192         from here...
42193         * modules/nl_langinfo (configure.ac): ... to here.
42195 2011-05-21  Bruno Haible  <bruno@clisp.org>
42197         nanosleep: Move AC_LIBOBJ invocations to module description.
42198         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
42199         gl_PREREQ_NANOSLEEP invocations from here...
42200         * modules/nanosleep (configure.ac): ... to here.
42202 2011-05-21  Bruno Haible  <bruno@clisp.org>
42204         mountlist: Move AC_LIBOBJ invocations to module description.
42205         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
42206         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
42207         * modules/mountlist (configure.ac): ... to here.
42209 2011-05-21  Bruno Haible  <bruno@clisp.org>
42211         mktime: Respect rules for use of AC_LIBOBJ.
42212         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
42213         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
42214         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
42215         (gl_FUNC_MKTIME_INTERNAL): ... and here...
42216         * modules/mktime (configure.ac): ... to here.
42217         * modules/mktime-internal (configure.ac): ... and here.
42218         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
42220 2011-05-21  Bruno Haible  <bruno@clisp.org>
42222         mkstemps: Move AC_LIBOBJ invocations to module description.
42223         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
42224         here...
42225         * modules/mkstemps (configure.ac): ... to here.
42227 2011-05-21  Bruno Haible  <bruno@clisp.org>
42229         mkstemp: Move AC_LIBOBJ invocations to module description.
42230         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
42231         gl_PREREQ_MKSTEMP invocations from here...
42232         * modules/mkstemp (configure.ac): ... to here.
42234 2011-05-21  Bruno Haible  <bruno@clisp.org>
42236         mkostemps: Move AC_LIBOBJ invocations to module description.
42237         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
42238         here...
42239         * modules/mkostemps (configure.ac): ... to here.
42241 2011-05-21  Bruno Haible  <bruno@clisp.org>
42243         mkostemp: Move AC_LIBOBJ invocations to module description.
42244         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
42245         gl_PREREQ_MKOSTEMP invocations from here...
42246         * modules/mkostemp (configure.ac): ... to here.
42248 2011-05-21  Bruno Haible  <bruno@clisp.org>
42250         mknod: Move AC_LIBOBJ invocations to module description.
42251         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
42252         * modules/mknod (configure.ac): ... to here.
42254 2011-05-21  Bruno Haible  <bruno@clisp.org>
42256         mkfifoat: Move AC_LIBOBJ invocations to module description.
42257         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
42258         here...
42259         * modules/mkfifoat (configure.ac): ... to here.
42261 2011-05-21  Bruno Haible  <bruno@clisp.org>
42263         mkfifo: Respect rules for use of AC_LIBOBJ.
42264         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
42265         here...
42266         * modules/mkfifo (configure.ac): ... to here.
42268 2011-05-21  Bruno Haible  <bruno@clisp.org>
42270         mkdtemp: Move AC_LIBOBJ invocations to module description.
42271         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
42272         invocations from here...
42273         * modules/mkdtemp (configure.ac): ... to here.
42275 2011-05-21  Bruno Haible  <bruno@clisp.org>
42277         mkdir: Move AC_LIBOBJ invocations to module description.
42278         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
42279         * modules/mkdir (configure.ac): ... to here.
42281 2011-05-21  Bruno Haible  <bruno@clisp.org>
42283         memset: Move AC_LIBOBJ invocations to module description.
42284         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
42285         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
42286         here...
42287         * modules/memset (configure.ac): ... to here.
42289 2011-05-21  Bruno Haible  <bruno@clisp.org>
42291         memrchr: Move AC_LIBOBJ invocations to module description.
42292         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
42293         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
42294         here...
42295         * modules/memrchr (configure.ac): ... to here.
42297 2011-05-21  Bruno Haible  <bruno@clisp.org>
42299         mempcpy: Move AC_LIBOBJ invocations to module description.
42300         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
42301         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
42302         here...
42303         * modules/mempcpy (configure.ac): ... to here.
42305 2011-05-21  Bruno Haible  <bruno@clisp.org>
42307         memmove: Move AC_LIBOBJ invocations to module description.
42308         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
42309         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
42310         here...
42311         * modules/memmove (configure.ac): ... to here.
42313 2011-05-21  Bruno Haible  <bruno@clisp.org>
42315         memmem*: Move AC_LIBOBJ invocations to module description.
42316         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
42317         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
42318         here...
42319         (gl_FUNC_MEMMEM): ... and here...
42320         * modules/memmem-simple (configure.ac): ... to here.
42321         * modules/memmem (configure.ac): ... and here.
42323 2011-05-21  Bruno Haible  <bruno@clisp.org>
42325         memcpy: Move AC_LIBOBJ invocations to module description.
42326         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
42327         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
42328         here...
42329         * modules/memcpy (configure.ac): ... to here.
42331 2011-05-21  Bruno Haible  <bruno@clisp.org>
42333         memcmp: Simplify autoconf macro.
42334         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
42335         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
42336         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
42338 2011-05-21  Bruno Haible  <bruno@clisp.org>
42340         memcmp: Move AC_LIBOBJ invocations to module description.
42341         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
42342         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
42343         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
42344         * modules/memcmp (configure.ac): ... to here.
42345         (Depends-on): Update conditions.
42347 2011-05-21  Bruno Haible  <bruno@clisp.org>
42349         memchr: Respect rules for use of AC_LIBOBJ.
42350         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
42351         invocations from here...
42352         * modules/memchr (configure.ac): ... to here.
42354 2011-05-21  Bruno Haible  <bruno@clisp.org>
42356         mbtowc: Move AC_LIBOBJ invocations to module description.
42357         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
42358         invocations from here...
42359         * modules/mbtowc (configure.ac): ... to here.
42361 2011-05-21  Bruno Haible  <bruno@clisp.org>
42363         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
42364         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
42365         gl_PREREQ_MBSRTOWCS invocations from here...
42366         * modules/mbsrtowcs (configure.ac): ... to here.
42368 2011-05-21  Bruno Haible  <bruno@clisp.org>
42370         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
42371         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
42372         gl_PREREQ_MBSNRTOWCS invocations from here...
42373         * modules/mbsnrtowcs (configure.ac): ... to here.
42375 2011-05-21  Bruno Haible  <bruno@clisp.org>
42377         mbsinit: Move AC_LIBOBJ invocations to module description.
42378         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
42379         invocations from here...
42380         * modules/mbsinit (configure.ac): ... to here.
42382 2011-05-21  Bruno Haible  <bruno@clisp.org>
42384         mbrlen: Move AC_LIBOBJ invocations to module description.
42385         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
42386         invocations from here...
42387         * modules/mbrlen (configure.ac): ... to here.
42389 2011-05-21  Bruno Haible  <bruno@clisp.org>
42391         mbrtowc: Respect rules for use of AC_LIBOBJ.
42392         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
42393         invocations from here...
42394         * modules/mbrtowc (configure.ac): ... to here.
42396 2011-05-21  Bruno Haible  <bruno@clisp.org>
42398         malloc-*: Move AC_LIBOBJ invocations to module description.
42399         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
42400         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
42401         AC_LIBOBJ invocations from here...
42402         * modules/malloc-gnu (configure.ac): ... to here.
42403         * modules/malloc-posix (configure.ac): ... and here.
42405 2011-05-21  Bruno Haible  <bruno@clisp.org>
42407         lstat, openat: Respect rules for use of AC_LIBOBJ.
42408         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
42409         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
42410         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
42411         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
42412         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
42413         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
42414         here.
42415         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
42417 2011-05-21  Bruno Haible  <bruno@clisp.org>
42419         lseek: Move AC_LIBOBJ invocations to module description.
42420         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
42421         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
42422         * modules/lseek (configure.ac): ... to here.
42424 2011-05-21  Bruno Haible  <bruno@clisp.org>
42426         linkat: Move AC_LIBOBJ invocations to module description.
42427         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
42428         here...
42429         * modules/linkat (configure.ac): ... to here.
42431 2011-05-21  Bruno Haible  <bruno@clisp.org>
42433         link: Respect rules for use of AC_LIBOBJ.
42434         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
42435         * modules/link (configure.ac): ... to here.
42437 2011-05-21  Bruno Haible  <bruno@clisp.org>
42439         lchown: Move AC_LIBOBJ invocations to module description.
42440         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
42441         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
42442         * modules/lchown (configure.ac): ... to here.
42444 2011-05-21  Bruno Haible  <bruno@clisp.org>
42446         iswctype: Move AC_LIBOBJ invocations to module description.
42447         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
42448         here...
42449         * modules/iswctype (configure.ac): ... to here.
42451 2011-05-21  Bruno Haible  <bruno@clisp.org>
42453         iswblank: Move AC_LIBOBJ invocations to module description.
42454         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
42455         here...
42456         * modules/iswblank (configure.ac): ... to here.
42458 2011-05-21  Bruno Haible  <bruno@clisp.org>
42460         atanl: Move AC_LIBOBJ invocations to module description.
42461         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
42462         * modules/atanl (configure.ac): ... to here.
42464 2011-05-21  Bruno Haible  <bruno@clisp.org>
42466         acosl: Move AC_LIBOBJ invocations to module description.
42467         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
42468         * modules/acosl (configure.ac): ... to here.
42470 2011-05-21  Bruno Haible  <bruno@clisp.org>
42472         asinl: Respect rules for use of AC_LIBOBJ.
42473         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
42474         * modules/asinl (configure.ac): ... to here.
42476 2011-05-21  Bruno Haible  <bruno@clisp.org>
42478         tanl: Move AC_LIBOBJ invocations to module description.
42479         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
42480         * modules/tanl (configure.ac): ... to here.
42482 2011-05-21  Bruno Haible  <bruno@clisp.org>
42484         cosl: Move AC_LIBOBJ invocations to module description.
42485         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
42486         * modules/cosl (configure.ac): ... to here.
42488 2011-05-21  Bruno Haible  <bruno@clisp.org>
42490         sinl: Move AC_LIBOBJ invocations to module description.
42491         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
42492         * modules/sinl (configure.ac): ... to here.
42494 2011-05-21  Bruno Haible  <bruno@clisp.org>
42496         logl: Move AC_LIBOBJ invocations to module description.
42497         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
42498         * modules/logl (configure.ac): ... to here.
42500 2011-05-21  Bruno Haible  <bruno@clisp.org>
42502         expl: Move AC_LIBOBJ invocations to module description.
42503         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
42504         * modules/expl (configure.ac): ... to here.
42506 2011-05-21  Bruno Haible  <bruno@clisp.org>
42508         roundl: Move AC_LIBOBJ invocations to module description.
42509         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
42510         * modules/roundl (configure.ac): ... to here.
42512 2011-05-21  Bruno Haible  <bruno@clisp.org>
42514         round: Move AC_LIBOBJ invocations to module description.
42515         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
42516         * modules/round (configure.ac): ... to here.
42518 2011-05-21  Bruno Haible  <bruno@clisp.org>
42520         roundf: Move AC_LIBOBJ invocations to module description.
42521         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
42522         * modules/roundf (configure.ac): ... to here.
42524 2011-05-21  Bruno Haible  <bruno@clisp.org>
42526         truncl: Move AC_LIBOBJ invocations to module description.
42527         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
42528         * modules/truncl (configure.ac): ... to here.
42530 2011-05-21  Bruno Haible  <bruno@clisp.org>
42532         trunc: Move AC_LIBOBJ invocations to module description.
42533         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
42534         * modules/trunc (configure.ac): ... to here.
42536 2011-05-21  Bruno Haible  <bruno@clisp.org>
42538         truncf: Move AC_LIBOBJ invocations to module description.
42539         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
42540         * modules/truncf (configure.ac): ... to here.
42542 2011-05-21  Bruno Haible  <bruno@clisp.org>
42544         ceill: Move AC_LIBOBJ invocations to module description.
42545         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
42546         * modules/ceill (configure.ac): ... to here.
42548 2011-05-21  Bruno Haible  <bruno@clisp.org>
42550         ceil: Move AC_LIBOBJ invocations to module description.
42551         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
42552         * modules/ceil (configure.ac): ... to here.
42554 2011-05-21  Bruno Haible  <bruno@clisp.org>
42556         ceilf: Move AC_LIBOBJ invocations to module description.
42557         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
42558         * modules/ceilf (configure.ac): ... to here.
42560 2011-05-21  Bruno Haible  <bruno@clisp.org>
42562         floorl: Respect rules for use of AC_LIBOBJ.
42563         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
42564         * modules/floorl (configure.ac): ... to here.
42566 2011-05-21  Bruno Haible  <bruno@clisp.org>
42568         floor: Respect rules for use of AC_LIBOBJ.
42569         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
42570         * modules/floor (configure.ac): ... to here.
42572 2011-05-21  Bruno Haible  <bruno@clisp.org>
42574         floorf: Move AC_LIBOBJ invocations to module description.
42575         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
42576         * modules/floorf (configure.ac): ... to here.
42578 2011-05-20  Bruno Haible  <bruno@clisp.org>
42580         sqrtl: Respect rules for use of AC_LIBOBJ.
42581         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
42582         * modules/sqrtl (configure.ac): ... to here.
42584 2011-05-20  Bruno Haible  <bruno@clisp.org>
42586         ldexpl: Respect rules for use of AC_LIBOBJ.
42587         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
42588         * modules/ldexpl (configure.ac): ... to here.
42590 2011-05-20  Bruno Haible  <bruno@clisp.org>
42592         frexpl*: Respect rules for use of AC_LIBOBJ.
42593         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
42594         invocation from here...
42595         * modules/frexpl (configure.ac): ... to here.
42596         * modules/frexpl-nolibm (configure.ac): ... and here.
42598 2011-05-20  Bruno Haible  <bruno@clisp.org>
42600         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
42601         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
42602         invocation from here...
42603         * modules/frexp (configure.ac): ... to here.
42604         * modules/frexp-nolibm (configure.ac): ... and here.
42606 2011-05-20  Bruno Haible  <bruno@clisp.org>
42608         isnan: Respect rules for use of AC_LIBOBJ.
42609         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
42610         invocations here.
42611         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
42612         REPLACE_ISNAN.
42613         * modules/isnand (configure.ac): Likewise.
42614         * modules/isnanl (configure.ac): Likewise.
42616 2011-05-20  Bruno Haible  <bruno@clisp.org>
42618         isnanl*: Respect rules for use of AC_LIBOBJ.
42619         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
42620         invocation from here...
42621         * modules/isnanl (configure.ac): ... to here.
42622         * modules/isnanl-nolibm (configure.ac): ... and here.
42624 2011-05-20  Bruno Haible  <bruno@clisp.org>
42626         isnand*: Move AC_LIBOBJ invocations to module description.
42627         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
42628         invocation from here...
42629         * modules/isnand (configure.ac): ... to here.
42630         * modules/isnand-nolibm (configure.ac): ... and here.
42632 2011-05-20  Bruno Haible  <bruno@clisp.org>
42634         isnanf*: Move AC_LIBOBJ invocations to module description.
42635         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
42636         invocation from here...
42637         * modules/isnanf (configure.ac): ... to here.
42638         * modules/isnanf-nolibm (configure.ac): ... and here.
42640 2011-05-20  Bruno Haible  <bruno@clisp.org>
42642         isnan*: Separate the AC_LIBOBJ invocations.
42643         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
42644         AC_LIBOBJ invocation.
42645         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
42646         here.
42647         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
42648         AC_LIBOBJ invocation.
42649         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
42650         here.
42651         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
42652         AC_LIBOBJ invocation.
42653         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
42654         here.
42655         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
42657 2011-05-08  Bruno Haible  <bruno@clisp.org>
42659         isinf: Move AC_LIBOBJ invocations to module description.
42660         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
42661         * modules/isinf (configure.ac): ... to here.
42663 2011-05-08  Bruno Haible  <bruno@clisp.org>
42665         isfinite: Move AC_LIBOBJ invocations to module description.
42666         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
42667         * modules/isfinite (configure.ac): ... to here.
42669 2011-05-08  Bruno Haible  <bruno@clisp.org>
42671         isblank: Move AC_LIBOBJ invocations to module description.
42672         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
42673         here...
42674         * modules/isblank (configure.ac): ... to here.
42676 2011-05-08  Bruno Haible  <bruno@clisp.org>
42678         isapipe: Move AC_LIBOBJ invocations to module description.
42679         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
42680         gl_PREREQ_ISAPIPE invocations from here...
42681         * modules/isapipe (configure.ac): ... to here.
42682         (Depends-on): Update condition.
42684 2011-05-08  Bruno Haible  <bruno@clisp.org>
42686         ioctl: Move AC_LIBOBJ invocations to module description.
42687         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
42688         invocations from here...
42689         * modules/ioctl (configure.ac): ... to here.
42690         (Depends-on): Update condition.
42692 2011-05-08  Bruno Haible  <bruno@clisp.org>
42694         imaxdiv: Move AC_LIBOBJ invocations to module description.
42695         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
42696         invocations from here...
42697         * modules/imaxdiv (configure.ac): ... to here.
42699 2011-05-08  Bruno Haible  <bruno@clisp.org>
42701         imaxabs: Move AC_LIBOBJ invocations to module description.
42702         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
42703         invocations from here...
42704         * modules/imaxabs (configure.ac): ... to here.
42706 2011-05-08  Bruno Haible  <bruno@clisp.org>
42708         getaddrinfo: Move AC_LIBOBJ invocations to module description.
42709         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
42710         AC_LIBOBJ invocations from here...
42711         * modules/getaddrinfo (configure.ac): ... to here.
42712         (Depends-on): Add conditions.
42714 2011-05-08  Bruno Haible  <bruno@clisp.org>
42716         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
42717         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
42718         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
42719         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
42720         (gl_PREREQ_INET_PTON): ... from here.
42721         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
42722         gl_PREREQ_INET_PTON here.
42723         (Depends-on): Update condition.
42725 2011-05-08  Bruno Haible  <bruno@clisp.org>
42727         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
42728         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
42729         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
42730         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
42731         (gl_PREREQ_INET_NTOP): ... from here.
42732         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
42733         gl_PREREQ_INET_NTOP here.
42734         (Depends-on): Update condition.
42736 2011-05-08  Bruno Haible  <bruno@clisp.org>
42738         iconv_open: Move AC_LIBOBJ invocations to module description.
42739         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
42740         AC_LIBOBJ invocations from here...
42741         * modules/iconv_open (configure.ac): ... to here.
42743 2011-05-08  Bruno Haible  <bruno@clisp.org>
42745         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
42746         If module 'iconv_open' is among the main modules and module
42747         'iconv_open-utf' is among the tests dependencies, then
42748         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
42749         return the special iconv_t values. Therefore iconv() and iconv_close()
42750         must support these special iconv_t values, already in lib, not only in
42751         tests.
42752         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
42753         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
42754         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
42755         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
42756         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
42757         (Depends-on): Add the dependencies of iconv_open-utf.
42758         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
42759         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
42760         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
42762 2011-05-08  Bruno Haible  <bruno@clisp.org>
42764         group-member: Move AC_LIBOBJ invocations to module description.
42765         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
42766         gl_PREREQ_GROUP_MEMBER invocations from here...
42767         * modules/group-member (configure.ac): ... to here.
42769 2011-05-08  Bruno Haible  <bruno@clisp.org>
42771         grantpt: Move AC_LIBOBJ invocations to module description.
42772         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
42773         invocations from here...
42774         * modules/grantpt (configure.ac): ... to here.
42776 2011-05-08  Bruno Haible  <bruno@clisp.org>
42778         glob: Move AC_LIBOBJ invocations to module description.
42779         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
42780         from here...
42781         * modules/glob (configure.ac): ... to here.
42783 2011-05-08  Bruno Haible  <bruno@clisp.org>
42785         getusershell: Move AC_LIBOBJ invocations to module description.
42786         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
42787         Move AC_LIBOBJ invocation from here...
42788         * modules/getusershell (configure.ac): ... to here.
42789         (Depends-on): Update condition.
42791 2011-05-08  Bruno Haible  <bruno@clisp.org>
42793         gettimeofday: Move AC_LIBOBJ invocations to module description.
42794         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
42795         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
42796         gl_PREREQ_GETTIMEOFDAY invocations from here...
42797         * modules/gettimeofday (configure.ac): ... to here.
42799 2011-05-08  Bruno Haible  <bruno@clisp.org>
42801         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
42802         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
42803         just gl_FUNC_TZSET.
42804         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
42805         (gl_FUNC_TZSET_CLOBBER): Remove actions.
42806         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
42807         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
42809 2011-05-08  Bruno Haible  <bruno@clisp.org>
42811         getsubopt: Move AC_LIBOBJ invocations to module description.
42812         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
42813         gl_PREREQ_GETSUBOPT invocations from here...
42814         * modules/getsubopt (configure.ac): ... to here.
42816 2011-05-08  Bruno Haible  <bruno@clisp.org>
42818         getpass-gnu: Move AC_LIBOBJ invocations to module description.
42819         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
42820         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
42821         * modules/getpass-gnu (configure.ac): ... to here.
42823 2011-05-08  Bruno Haible  <bruno@clisp.org>
42825         getpass: Move AC_LIBOBJ invocations to module description.
42826         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
42827         gl_PREREQ_GETPASS invocations from here...
42828         * modules/getpass (configure.ac): ... to here.
42830 2011-05-08  Bruno Haible  <bruno@clisp.org>
42832         getpagesize: Move AC_LIBOBJ invocations to module description.
42833         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
42834         from here...
42835         * modules/getpagesize (configure.ac): ... to here.
42837 2011-05-08  Bruno Haible  <bruno@clisp.org>
42839         getopt: Move AC_LIBOBJ invocations to module description.
42840         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
42841         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
42842         invocations from here...
42843         * modules/getopt-gnu (configure.ac): ... to here.
42844         * modules/getopt-posix (configure.ac): ... and here.
42845         (Depends-on): Update condition.
42847 2011-05-08  Bruno Haible  <bruno@clisp.org>
42849         getopt, argp: Respect rules for use of AC_LIBOBJ.
42850         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
42851         (gl_REPLACE_GETOPT_ALWAYS): New macro.
42852         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
42853         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
42855 2011-05-08  Bruno Haible  <bruno@clisp.org>
42857         getlogin_r: Move AC_LIBOBJ invocations to module description.
42858         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
42859         gl_PREREQ_GETLOGIN_R invocations from here...
42860         * modules/getlogin_r (configure.ac): ... to here.
42862 2011-05-08  Bruno Haible  <bruno@clisp.org>
42864         getlogin: Move AC_LIBOBJ invocations to module description.
42865         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
42866         here...
42867         * modules/getlogin (configure.ac): ... to here.
42869 2011-05-08  Bruno Haible  <bruno@clisp.org>
42871         getloadavg: Move AC_LIBOBJ invocations to module description.
42872         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
42873         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
42874         * modules/getloadavg (configure.ac): ... to here.
42876 2011-05-08  Bruno Haible  <bruno@clisp.org>
42878         gethrxtime: Move AC_LIBOBJ invocations to module description.
42879         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
42880         LIB_GETHRXTIME from here...
42881         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
42882         invocations from here...
42883         * modules/gethrxtime (configure.ac): ... to here.
42885 2011-05-08  Bruno Haible  <bruno@clisp.org>
42887         gethostname: Move AC_LIBOBJ invocations to module description.
42888         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
42889         gl_PREREQ_GETHOSTNAME invocations from here...
42890         * modules/gethostname (configure.ac): ... to here.
42892 2011-05-08  Bruno Haible  <bruno@clisp.org>
42894         getgroups: Move AC_LIBOBJ invocations to module description.
42895         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
42896         here...
42897         * modules/getgroups (configure.ac): ... to here.
42899 2011-05-08  Bruno Haible  <bruno@clisp.org>
42901         getdtablesize: Move AC_LIBOBJ invocations to module description.
42902         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
42903         invocation from here...
42904         * modules/getdtablesize (configure.ac): ... to here.
42906 2011-05-08  Bruno Haible  <bruno@clisp.org>
42908         getdomainname: Move AC_LIBOBJ invocations to module description.
42909         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
42910         gl_PREREQ_GETDOMAINNAME invocations from here...
42911         * modules/getdomainname (configure.ac): ... to here.
42913 2011-05-08  Bruno Haible  <bruno@clisp.org>
42915         getline: Move AC_LIBOBJ invocations to module description.
42916         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
42917         invocations from here...
42918         * modules/getline (configure.ac): ... to here.
42920 2011-05-08  Bruno Haible  <bruno@clisp.org>
42922         getline: Simplify.
42923         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
42924         It's already handled through the module dependency.
42926 2011-05-08  Bruno Haible  <bruno@clisp.org>
42928         getdelim: Move AC_LIBOBJ invocations to module description.
42929         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
42930         and gl_PREREQ_GETDELIM invocations from here...
42931         * modules/getdelim (configure.ac): ... to here.
42932         (Depends-on): Fix condition.
42934 2011-05-08  Bruno Haible  <bruno@clisp.org>
42936         getcwd: Move AC_LIBOBJ invocations to module description.
42937         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
42938         invocations from here...
42939         * modules/getcwd (configure.ac): ... to here.
42941 2011-05-08  Bruno Haible  <bruno@clisp.org>
42943         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
42944         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
42945         here...
42946         * modules/getcwd-lgpl (configure.ac): ... to here.
42948 2011-05-07  Bruno Haible  <bruno@clisp.org>
42950         crypto/gc: Move AC_LIBOBJ invocations to module description.
42951         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
42952         * modules/crypto/gc (configure.ac): ... to here.
42954 2011-05-07  Bruno Haible  <bruno@clisp.org>
42956         fwriting: Move AC_LIBOBJ invocations to module description.
42957         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
42958         here...
42959         * modules/fwriting (configure.ac): ... to here.
42961 2011-05-07  Bruno Haible  <bruno@clisp.org>
42963         fwritable: Move AC_LIBOBJ invocations to module description.
42964         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
42965         here...
42966         * modules/fwritable (configure.ac): ... to here.
42968 2011-05-07  Bruno Haible  <bruno@clisp.org>
42970         futimens: Move AC_LIBOBJ invocations to module description.
42971         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
42972         here...
42973         * modules/futimens (configure.ac): ... to here.
42975 2011-05-07  Bruno Haible  <bruno@clisp.org>
42977         ftruncate: Move AC_LIBOBJ invocations to module description.
42978         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
42979         gl_PREREQ_FTRUNCATE invocations from here...
42980         * modules/ftruncate (configure.ac): ... to here.
42982 2011-05-07  Bruno Haible  <bruno@clisp.org>
42984         fsync: Move AC_LIBOBJ invocations to module description.
42985         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
42986         invocations from here...
42987         * modules/fsync (configure.ac): ... to here.
42989 2011-05-07  Bruno Haible  <bruno@clisp.org>
42991         fsusage: Move AC_LIBOBJ invocations to module description.
42992         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
42993         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
42994         * modules/fsusage (configure.ac): ... to here.
42996 2011-05-07  Bruno Haible  <bruno@clisp.org>
42998         freopen: Move AC_LIBOBJ invocations to module description.
42999         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
43000         invocations from here...
43001         * modules/freopen (configure.ac): ... to here.
43003 2011-05-07  Bruno Haible  <bruno@clisp.org>
43005         free: Move AC_LIBOBJ invocations to module description.
43006         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
43007         invocations from here...
43008         * modules/free (configure.ac): ... to here.
43010 2011-05-07  Bruno Haible  <bruno@clisp.org>
43012         freadable: Move AC_LIBOBJ invocations to module description.
43013         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
43014         here...
43015         * modules/freadable (configure.ac): ... to here.
43017 2011-05-07  Bruno Haible  <bruno@clisp.org>
43019         fpurge: Move AC_LIBOBJ invocations to module description.
43020         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
43021         invocations from here...
43022         * modules/fpurge (configure.ac): ... to here.
43024 2011-05-07  Bruno Haible  <bruno@clisp.org>
43026         fpending: Move AC_LIBOBJ invocations to module description.
43027         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
43028         gl_FUNC_FPENDING.
43029         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
43030         invocations from here...
43031         * modules/fpending (configure.ac): ... to here.
43033 2011-05-07  Bruno Haible  <bruno@clisp.org>
43035         fopen: Move AC_LIBOBJ invocations to module description.
43036         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
43037         invocations from here...
43038         * modules/fopen (configure.ac): ... to here.
43040 2011-05-07  Bruno Haible  <bruno@clisp.org>
43042         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
43043         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
43044         gl_FUNC_FNMATCH_POSIX.
43045         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
43046         invocations from here...
43047         * modules/fnmatch (configure.ac): ... to here.
43048         * modules/fnmatch-gnu (configure.ac): ... and here.
43050 2011-05-07  Bruno Haible  <bruno@clisp.org>
43052         flock: Move AC_LIBOBJ invocations to module description.
43053         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
43054         invocations from here...
43055         * modules/flock (configure.ac): ... to here.
43057 2011-05-07  Bruno Haible  <bruno@clisp.org>
43059         fileblocks: Move AC_LIBOBJ invocations to module description.
43060         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
43061         gl_PREREQ_FILEBLOCKS invocations from here...
43062         * modules/fileblocks (configure.ac): ... to here.
43064 2011-05-06  Bruno Haible  <bruno@clisp.org>
43066         fflush: Move AC_LIBOBJ invocations to module description.
43067         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
43068         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
43069         invocations from here...
43070         * modules/fflush (configure.ac): ... to here.
43072 2011-05-06  Bruno Haible  <bruno@clisp.org>
43074         fdopendir: Move AC_LIBOBJ invocations to module description.
43075         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
43076         here...
43077         * modules/fdopendir (configure.ac): ... to here.
43078         (Depends-on): Improve conditions.
43080 2011-05-06  Bruno Haible  <bruno@clisp.org>
43082         _Exit: Move AC_LIBOBJ invocations to module description.
43083         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
43084         invocations from here...
43085         * modules/_Exit (configure.ac): ... to here.
43087 2011-05-21  Bruno Haible  <bruno@clisp.org>
43089         euidaccess: Respect rules for use of AC_LIBOBJ.
43090         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
43091         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
43092         from here...
43093         * modules/euidaccess (configure.ac): ... to here.
43095 2011-05-06  Bruno Haible  <bruno@clisp.org>
43097         error: Move AC_LIBOBJ invocations to module description.
43098         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
43099         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
43100         invocations from here...
43101         * modules/error (configure.ac): ... to here.
43103 2011-05-06  Bruno Haible  <bruno@clisp.org>
43105         duplocale: Move AC_LIBOBJ invocations to module description.
43106         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
43107         gl_PREREQ_DUPLOCALE invocations from here...
43108         * modules/duplocale (configure.ac): ... to here.
43110 2011-05-05  Bruno Haible  <bruno@clisp.org>
43112         dirfd: Move AC_LIBOBJ invocations to module description.
43113         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
43114         gl_FUNC_DIRFD.
43115         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
43116         here...
43117         * modules/dirfd (configure.ac): ... to here.
43118         (Depends-on): Fix condition.
43120 2011-05-05  Bruno Haible  <bruno@clisp.org>
43122         chown: Respect rules for use of AC_LIBOBJ.
43123         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
43124         * modules/chown (configure.ac): ... to here.
43126 2011-05-05  Bruno Haible  <bruno@clisp.org>
43128         chdir-long: Move AC_LIBOBJ invocations to module description.
43129         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
43130         gl_PREREQ_CHDIR_LONG invocations from here...
43131         * modules/chdir-long (configure.ac): ... to here.
43133 2011-05-05  Bruno Haible  <bruno@clisp.org>
43135         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
43136         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
43137         from here...
43138         * modules/canonicalize-lgpl (configure.ac): ... to here.
43140 2011-05-05  Bruno Haible  <bruno@clisp.org>
43142         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
43143         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
43144         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
43145         REPLACE_CALLOC.
43146         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
43147         * modules/calloc-gnu (configure.ac): Likewise.
43149 2011-05-05  Bruno Haible  <bruno@clisp.org>
43151         btowc: Move AC_LIBOBJ invocations to module description.
43152         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
43153         invocations from here...
43154         * modules/btowc (configure.ac): ... to here.
43156 2011-05-21  Bruno Haible  <bruno@clisp.org>
43158         atexit: Move AC_LIBOBJ invocations to module description.
43159         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
43160         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
43161         here...
43162         * modules/atexit (configure.ac): ... to here.
43164 2011-05-05  Bruno Haible  <bruno@clisp.org>
43166         atoll: Move AC_LIBOBJ invocations to module description.
43167         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
43168         invocations from here...
43169         * modules/atoll (configure.ac): ... to here.
43171 2011-05-05  Bruno Haible  <bruno@clisp.org>
43173         argz: Move AC_LIBOBJ invocations to module description.
43174         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
43175         * modules/argz (configure.ac): ... to here.
43177 2011-05-05  Bruno Haible  <bruno@clisp.org>
43179         alphasort: Move AC_LIBOBJ invocations to module description.
43180         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
43181         gl_PREREQ_ALPHASORT invocations from here...
43182         * modules/alphasort (configure.ac): ... to here.
43184 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
43186         verify: new macro verify_expr; verify_true deprecated
43187         * NEWS: Mention this.
43188         * doc/verify.texi (Compile-time Assertions): Document this.
43189         * lib/verify.h (verify_true): Deprecate.
43190         (verify_expr): New macro.
43191         * tests/test-verify.c (function): Test verify_expr.
43193 2011-06-14  Jim Meyering  <meyering@redhat.com>
43195         init.sh: give more portable redirection-related advice in a comment
43196         * tests/init.sh (stderr_fileno_): Update the advice in comments.
43197         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
43198         for lots of discussion.  Stefano Lattarini suggested the solution
43199         of putting "9>&2" after the command.  Reported by Bruno Haible.
43201 2011-06-13  Bruno Haible  <bruno@clisp.org>
43203         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
43204         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
43205         'none'.
43207 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
43209         ftoastr: use strtof only if HAVE_STRTOF
43210         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
43211         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00154.html>.
43212         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
43213         * modules/ftoastr (configure.ac): Check for strtof.
43215 2011-06-13  Bruno Haible  <bruno@clisp.org>
43217         gnulib-tool: Addendum to 2011-06-08 commit.
43218         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
43219         and --witness-c-macro have been given, augment AM_CPPFLAGS.
43221 2011-06-13  Bruno Haible  <bruno@clisp.org>
43223         fseeko: Provide a non-inline replacement of fseek().
43224         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
43225         * modules/fseeko (Depends-on): Add fseek.
43226         * modules/fseek (License): Change to LGPLv2+.
43228 2011-06-13  Bruno Haible  <bruno@clisp.org>
43230         ftello: Provide a non-inline replacement of ftell().
43231         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
43232         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
43233         not have ftello() (such as on mingw).
43234         * modules/ftello (Depends-on): Add ftell.
43235         * modules/ftell (License): Change to LGPLv2+.
43237 2011-05-07  Bruno Haible  <bruno@clisp.org>
43239         ftell: Move AC_LIBOBJ invocations to module description.
43240         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
43241         * modules/ftell (configure.ac): ... to here.
43243 2011-05-07  Bruno Haible  <bruno@clisp.org>
43245         ftello: Respect rules for use of AC_LIBOBJ.
43246         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
43247         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
43248         here...
43249         * modules/ftello (configure.ac): ... to here.
43251 2011-05-07  Bruno Haible  <bruno@clisp.org>
43253         fseeko: Simplify.
43254         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
43255         (gl_FUNC_FSEEKO): Inline it here.
43257 2011-05-07  Bruno Haible  <bruno@clisp.org>
43259         fseek: Move AC_LIBOBJ invocations to module description.
43260         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
43261         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
43262         * modules/fseek (configure.ac): ... to here.
43264 2011-05-07  Bruno Haible  <bruno@clisp.org>
43266         fseek: Respect rules for use of AC_LIBOBJ.
43267         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
43268         here...
43269         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
43271 2011-05-07  Bruno Haible  <bruno@clisp.org>
43273         fseeko: Respect rules for use of AC_LIBOBJ.
43274         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
43275         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
43276         here...
43277         * modules/fseeko (configure.ac): ... to here.
43279 2011-06-13  Bruno Haible  <bruno@clisp.org>
43281         gnulib-tool: Allow comments in the 'Depends-on' section.
43282         * doc/gnulib.texi (Module description): Mention comment syntax in the
43283         Depends-on section.
43284         * gnulib-tool (func_get_dependencies): Filter out comment lines.
43286 2011-06-13  Bruno Haible  <bruno@clisp.org>
43288         file-set.h: guard __attibute__ use, now that it's not always defined
43289         * lib/file-set.h (record_file): Use __attribute__ only with compiler
43290         versions that support it.  This fixes a coreutils build failure with
43291         the vendor cc on HP-UX 11.31.
43293 2011-06-12  Bruno Haible  <bruno@clisp.org>
43295         acl: Add support for HP-UX >= 11.11 JFS ACLs.
43296         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
43297         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
43298         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
43299         (acl, aclsort): New declarations.
43300         (aclv_nontrivial): New declaration.
43301         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
43302         (file_has_acl): Read also the second kind of HP-UX ACLs.
43303         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
43304         kind of HP-UX ACLs if the first kind fails.
43305         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
43306         second kind of HP-UX ACLs.
43307         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
43308         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
43309         agree.
43310         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
43311         hpuxjfs.
43312         Handle hpuxjfs.
43313         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
43314         hpuxjfs.
43315         Handle hpuxjfs.
43316         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
43317         (func_test_same_acls): Use both lsacl and getacl.
43318         Handle hpuxjfs.
43319         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
43320         (func_test_same_acls): Use both lsacl and getacl.
43321         Handle hpuxjfs.
43323 2011-06-12  Bruno Haible  <bruno@clisp.org>
43325         acl: Complete the 2010-08-10 fix.
43326         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
43327         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
43328         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
43329         explicitly.
43330         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
43331         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
43333 2011-06-12  Bruno Haible  <bruno@clisp.org>
43335         spawn-pipe tests: Comments.
43336         * tests/test-spawn-pipe-child.c (main): Update comment.
43337         Reported by James Youngman <jay@gnu.org>.
43339 2011-06-11  James Youngman  <jay@gnu.org>
43341         New module 'stat-size'.
43342         * modules/stat-size: New module.  Provides macros for accessing
43343         file size information in instances of struct stat.  Depends on the
43344         fileblocks module because it calls st_blocks.
43345         * lib/stat-size.h: New file, adapted from coreutils' system.h.
43346         * doc/gnulib.texi: Include stat-size.texi.
43347         * doc/stat-size.texi: Documentation for this module.
43348         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
43349         * m4/fileblocks.m4: Mention that stat-size depends on the call to
43350         AC_STRUCT_ST_BLOCKS.
43352 2011-06-09  Bruno Haible  <bruno@clisp.org>
43354         thread: Support pthreads-win32.
43355         * lib/glthread/thread.h (gl_thread_self): Define differently on
43356         pthreads-win32.
43357         (gl_null_thread): New declaration.
43358         (gl_thread_self_pointer): New macro.
43359         * lib/glthread/thread.c (gl_null_thread): New constant.
43360         * tests/test-lock.c: Use gl_thread_self_pointer instead of
43361         gl_thread_self.
43362         * tests/test-tls.c: Likewise.
43363         Suggested by Paul Eggert. Reported by Eric Blake.
43365 2011-06-09  Bruno Haible  <bruno@clisp.org>
43367         thread: Fix confusion between NULL and 0.
43368         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
43369         Reported by Paul Eggert.
43371 2011-06-09  Bruno Haible  <bruno@clisp.org>
43373         spawn-pipe tests: Avoid test failure on HP-UX 11.
43374         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
43375         is closed.
43377 2011-06-09  Bruno Haible  <bruno@clisp.org>
43379         acl tests: Fix compilation error on HP-UX 11.
43380         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
43382 2011-06-09  Bruno Haible  <bruno@clisp.org>
43384         rmdir: Avoid test failure on HP-UX 10.20.
43385         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
43386         EEXIST.
43388 2011-06-08  Eric Blake  <eblake@redhat.com>
43390         perror: fix test on mingw
43391         * modules/perror-tests (Depends-on): Add dup2.
43393         strerror_r-posix: fix on MacOS
43394         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
43395         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
43396         logic bug.
43397         * lib/strerror_r.c (strerror_r): Fix the bug.
43398         * lib/strerror.c (strerror): Likewise.
43399         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
43400         problem.
43401         * doc/posix-functions/strerror.texi (strerror): Likewise.
43402         * doc/posix-functions/perror.texi (perror): Likewise.
43403         * tests/test-strerror.c (main): Enhance test.
43404         * tests/test-strerror_r.c (main): Likewise.
43406 2011-06-08  Bruno Haible  <bruno@clisp.org>
43408         gnulib-tool: Better isolation between different gnulib-tool invocations.
43409         * gnulib-tool: New option --witness-c-macro.
43410         (witness_c_macro): New variable.
43411         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
43412         AM_CPPFLAGS define it as a C macro.
43413         (func_emit_tests_Makefile_am): Likewise.
43414         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
43415         read it from there.
43416         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
43417         m4_define, not AC_DEFUN.
43418         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
43419         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
43420         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
43421         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
43422         s|...|...|, to substitute the values of the GNULIB_* module indicator
43423         variables.
43424         * modules/dirent (Makefile.am): Likewise.
43425         * modules/fcntl-h (Makefile.am): Likewise.
43426         * modules/iconv-h (Makefile.am): Likewise.
43427         * modules/langinfo (Makefile.am): Likewise.
43428         * modules/locale (Makefile.am): Likewise.
43429         * modules/math (Makefile.am): Likewise.
43430         * modules/netdb (Makefile.am): Likewise.
43431         * modules/poll-h (Makefile.am): Likewise.
43432         * modules/pty (Makefile.am): Likewise.
43433         * modules/search (Makefile.am): Likewise.
43434         * modules/signal (Makefile.am): Likewise.
43435         * modules/spawn (Makefile.am): Likewise.
43436         * modules/stdio (Makefile.am): Likewise.
43437         * modules/stdlib (Makefile.am): Likewise.
43438         * modules/string (Makefile.am): Likewise.
43439         * modules/sys_ioctl (Makefile.am): Likewise.
43440         * modules/sys_select (Makefile.am): Likewise.
43441         * modules/sys_socket (Makefile.am): Likewise.
43442         * modules/sys_stat (Makefile.am): Likewise.
43443         * modules/sys_times (Makefile.am): Likewise.
43444         * modules/sys_utsname (Makefile.am): Likewise.
43445         * modules/sys_wait (Makefile.am): Likewise.
43446         * modules/termios (Makefile.am): Likewise.
43447         * modules/time (Makefile.am): Likewise.
43448         * modules/unistd (Makefile.am): Likewise.
43449         * modules/wchar (Makefile.am): Likewise.
43451 2011-06-08  Eric Blake  <eblake@redhat.com>
43453         strerror: simplify replacement
43454         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
43455         * modules/strerror (configure.ac): No prereqs needed here...
43456         * modules/strerror-override (configure.ac): ...but this needs it.
43457         (Files): Add file for needed prereq macro.
43459 2011-06-08  Bruno Haible  <bruno@clisp.org>
43461         strerror_r-posix: Tweaks.
43462         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
43463         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
43464         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
43465         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
43466         (gl_FUNC_STRERROR_R): ... to here.
43467         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
43469 2011-06-07  Eric Blake  <eblake@redhat.com>
43471         perror: document fixed bugs
43472         * doc/posix-functions/perror.texi (perror): Document recent
43473         patches.
43475 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
43477         stat-time: get_stat_birthtime failure is better-defined
43478         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
43479         return a timestamp whose tv_sec and tv_nsec values are both -1.
43480         Previously, the spec said only that the tv_nsec value was negative.
43481         This upward-compatible change simplifies GNU tar a bit.
43483 2011-06-07  Eric Blake  <eblake@redhat.com>
43485         strerror_r-posix: work around cygwin 1.7.9
43486         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
43487         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
43488         bug without replacing strerror_r.
43489         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
43490         strerror_r is buggy, but without requiring strerror_r compilation.
43491         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
43493         test-perror: relax test to ignore cygwin bug
43494         * tests/test-perror2.c (main): Relax test on requiring detection
43495         of stream errors, and use unbuffered stream.
43496         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
43497         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
43498         * doc/posix-functions/fputc.texi (fputc): Likewise.
43499         * doc/posix-functions/fputs.texi (fputs): Likewise.
43500         * doc/posix-functions/fputws.texi (fputws): Likewise.
43501         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
43502         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
43503         * doc/posix-functions/getopt.texi (getopt): Likewise.
43504         * doc/posix-functions/perror.texi (perror): Likewise.
43505         * doc/posix-functions/printf.texi (printf): Likewise.
43506         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
43507         * doc/posix-functions/psignal.texi (psignal): Likewise.
43508         * doc/posix-functions/putc.texi (putc): Likewise.
43509         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
43510         Likewise.
43511         * doc/posix-functions/putchar.texi (putchar): Likewise.
43512         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
43513         Likewise.
43514         * doc/posix-functions/puts.texi (puts): Likewise.
43515         * doc/posix-functions/putwc.texi (putwc): Likewise.
43516         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
43517         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
43518         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
43519         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
43520         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
43521         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
43522         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
43523         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
43525 2011-05-22  Bruno Haible  <bruno@clisp.org>
43527         strerror: Move AC_LIBOBJ invocations to module description.
43528         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
43529         gl_PREREQ_STRERROR invocations from here...
43530         * modules/strerror (configure.ac): ... to here.
43532 2011-05-21  Bruno Haible  <bruno@clisp.org>
43534         perror: Use common idiom.
43535         * modules/perror (configure.ac): Reorder statements.
43537 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
43539         tests: fix usage message in 'mktempd_'
43540         * tests/init.sh (mktempd_): In the usage message, use literal
43541         'mktempd_', not '$ME' (which is even undefined), as the name of
43542         the subroutine.
43544 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
43546         tests init: new function 'fatal_', for hard errors
43547         Before this patch, the only way offered by tests/init.sh to
43548         properly signal a hard error was the `framework_failure_'
43549         function.  But the error message issued by that function,
43550         as its name would suggest, refers to a set-up failure in the
43551         testsuite, while hard errors can obviously also be due to
43552         other reasons.  The best way to fix this inconsistency is to
43553         introduce a new function with a more general error message.
43554         * tests/init.sh (fatal_): New function.
43556 2011-06-06  Eric Blake  <eblake@redhat.com>
43558         canonicalize-lgpl: use common idiom
43559         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
43560         over newer POSIX -Rf.
43561         Reported by Bruno Haible.
43563         canonicalize-lgpl: work around AIX realpath bug
43564         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
43565         * doc/posix-functions/realpath.texi (realpath): Document it.
43566         Reported by Bruno Haible.
43568         strerror: work around FreeBSD bug
43569         * lib/strerror.c (strerror): Special case 0.
43570         Reported by Bruno Haible.
43572         strerror-override: avoid bloating errno module
43573         * modules/errno (Files, configure.ac): Move replacement strings...
43574         * modules/strerror-override: ...to new module.
43575         * modules/strerror (Depends-on): Add strerror-override.
43576         * modules/strerror_r-posix (Depends-on): Likewise.
43577         * MODULES.html.sh: Document new module.
43578         Reported by Bruno Haible.
43580 2011-06-06  Bruno Haible  <bruno@clisp.org>
43582         spawn-pipe tests: Rename program.
43583         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
43584         * tests/test-spawn-pipe-child.c: Update comment.
43585         * tests/test-spawn-pipe.sh: Update.
43586         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
43588         spawn-pipe tests: Link the child program only against libc.
43589         * tests/test-spawn-pipe-child.c: New file, extracted from
43590         tests/test-spawn-pipe.c.
43591         (main): Expect only one argument.
43592         (is_open): New function, copied from tests/test-pipe.c.
43593         * tests/test-spawn-pipe.c: Don't include <errno.h>.
43594         (child_main): Remove function.
43595         (test_pipe): Pass only one argument to the child program.
43596         (main): Remove child process code. Expect the child program's name as
43597         first argument.
43598         * tests/test-spawn-pipe.sh: Pass the child program's name as first
43599         argument.
43600         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
43601         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
43602         test-spawn-pipe-child against no libraries.
43604 2011-06-06  Bruno Haible  <bruno@clisp.org>
43606         careadlinkat: Avoid mismatch between ssize_t and int.
43607         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
43608         * lib/careadlinkat.c (careadlinkatcwd): Define always.
43610 2011-06-06  Jim Meyering  <meyering@redhat.com>
43612         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
43613         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
43614         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
43616 2011-06-05  Bruno Haible  <bruno@clisp.org>
43618         ansi-c++-opt: Interoperability with libtool.
43619         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
43620         set the variable to "no", not to ":".
43621         * NEWS: Mention the change.
43623 2011-06-05  Bruno Haible  <bruno@clisp.org>
43625         acl: Fix test failure on AIX 7.
43626         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
43627         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
43629 2011-06-05  Bruno Haible  <bruno@clisp.org>
43631         pipe-filter-ii: Fix test failure on AIX and IRIX.
43632         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
43633         with EAGAIN, retry with a smaller buffer size.
43635 2011-06-05  Bruno Haible  <bruno@clisp.org>
43637         localename: Fix link dependencies.
43638         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
43639         * modules/localename-tests (Makefile.am): Link test-localename with
43640         $(LIBTHREAD).
43642 2011-06-05  Bruno Haible  <bruno@clisp.org>
43644         error: Avoid gcc warning.
43645         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
43647 2011-06-05  Bruno Haible  <bruno@clisp.org>
43649         unsetenv: Avoid gcc warning.
43650         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
43652 2011-06-05  Bruno Haible  <bruno@clisp.org>
43654         setenv: Avoid gcc warning.
43655         * lib/setenv.c (setenv): Provide declaration if system lacks it.
43657 2011-06-05  Bruno Haible  <bruno@clisp.org>
43659         sys_select: Ensure memset is declared also on AIX 7.
43660         * lib/sys_select.in.h: Include <string.h> also on AIX.
43661         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
43662         self-contained also on AIX 7.1.
43664 2011-06-04  Jim Meyering  <meyering@redhat.com>
43666         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
43667         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
43668         function name, "error".
43669         (_gl_translatable_diag_func_re): New configurable variable.
43671 2011-06-04  Bruno Haible  <bruno@clisp.org>
43673         getopt: Avoid gcc warning.
43674         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
43676 2011-06-04  Bruno Haible  <bruno@clisp.org>
43678         strerror_r: Fix comments.
43679         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
43680         commit.
43682 2011-06-04  Bruno Haible  <bruno@clisp.org>
43684         perror: Fix compilation error.
43685         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
43686         Undefine fprintf, not sprintf.
43687         * modules/perror (Depends-on): Remove intprops, verify.
43689 2011-06-04  Bruno Haible  <bruno@clisp.org>
43691         setlocale: Enable replacement on Cygwin 1.5.
43692         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
43693         Cygwin 1.5.x.
43694         * doc/posix-functions/setlocale.texi: Mention that the problem with the
43695         LC_CTYPE category also exists on Cygwin 1.5.x.
43697 2011-06-04  Bruno Haible  <bruno@clisp.org>
43699         strerror-override: Don't disable symbol renamings.
43700         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
43701         * lib/strerror-override.c: Include config.h.
43702         (strerror_override): Don't undefine.
43704 2011-06-03  Bruno Haible  <bruno@clisp.org>
43706         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
43707         * lib/localename.h: Update copyright header.
43708         * lib/localename.c: Likewise.
43709         * lib/relocatable.h: Likewise.
43710         * lib/relocatable.c: Likewise.
43712 2011-06-02  Bruno Haible  <bruno@clisp.org>
43714         doc: Fix a module name.
43715         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
43717 2011-06-02  Bruno Haible  <bruno@clisp.org>
43719         pipe2: Remove dependency on 'nonblocking' module.
43720         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
43721         O_NONBLOCK is defined by gnulib.
43722         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
43723         is zero.
43724         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
43725         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
43726         defined by gnulib.
43727         (get_nonblocking_flag): New function.
43728         (main): Test O_NONBLOCK flag only if it is nonzero.
43729         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
43731 2011-06-03  Jim Meyering  <meyering@redhat.com>
43733         maint: three new prohibit-header-without-use rules
43734         Prohibit use of cloexec.h, posixver.h, same.h without use.
43735         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
43736         (sc_prohibit_posixver_without_use): Likewise.
43737         (sc_prohibit_same_without_use): Likewise.
43739 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
43741         allocator: 'die' routine is now given requested size
43742         * lib/allocator.h (struct allocator.die): New size arg.
43743         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
43744         If the actual problem is an ssize_t limitation, not a size_t or
43745         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
43747 2011-06-01  Eric Blake  <eblake@redhat.com>
43749         strerror: drop strerror_r dependency
43750         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
43751         * lib/strerror-override.c (strerror_override): ...to new file.
43752         * lib/strerror-override.h: Add prototype.
43753         * lib/strerror-impl.h: Delete.
43754         * lib/strerror.c (strerror): New implementation.
43755         * modules/errno (Files): Add new files.
43756         (configure.ac): Compile new file as appropriate.
43757         * modules/strerror (Files): Drop unused file.
43758         (Depends-on): Drop strerror_r-posix.
43759         * MODULES.html.sh: Document strerror_r-posix.
43760         Requested by Sam Steingold.
43762         perror: call strerror_r directly
43763         * modules/perror (Files): Drop strerror-impl.h.
43764         * lib/perror.c (perror): Use our own stack buffer, rather than
43765         calling a wrapper that uses static storage.
43766         * doc/posix-functions/perror.texi (perror): Document a limitation
43767         of our replacement.
43769         strerror_r: fix includes for FreeBSD
43770         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
43771         since we use abort on some platforms.
43772         Reported by Matthias Bolte.
43774 2011-05-31  Bruno Haible  <bruno@clisp.org>
43776         Fix link errors in tests: openat-die uses gettext-h.
43777         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
43778         against $(LIBINTL).
43779         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
43780         against $(LIBINTL).
43781         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
43782         $(LIBINTL).
43783         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
43784         against $(LIBINTL).
43785         * modules/linkat-tests (Makefile.am): Link test-linkat against
43786         $(LIBINTL).
43787         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
43788         $(LIBINTL).
43789         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
43790         against $(LIBINTL).
43791         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
43792         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
43793         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
43794         $(LIBINTL).
43795         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
43796         $(LIBINTL).
43797         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
43798         $(LIBINTL).
43799         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43801 2011-05-31  Bruno Haible  <bruno@clisp.org>
43803         Fix link errors in tests: wait-process uses gettext-h.
43804         * modules/nonblocking-pipe-tests (Makefile.am): Set
43805         test_nonblocking_pipe_main_LDADD.
43806         * modules/nonblocking-socket-tests (Makefile.am): Link
43807         test-nonblocking-socket-main against $(LIBINTL).
43808         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43810 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
43812         assert-h: work around 'verify' incompatibility
43813         * lib/verify.h: Use @...@ directives, not ifdef.
43814         * modules/assert-h (assert.h): Implement the directives.
43815         (assert.h): Substitute the symbol-prefix more consistently.
43817 2011-05-29  Jim Meyering  <meyering@redhat.com>
43819         trim: remove three superfluous assignments
43820         * lib/trim.c (trim2): Remove three superfluous assignments
43821         and correct brace positioning.
43823 2011-05-29  Bruno Haible  <bruno@clisp.org>
43825         wctype-h: Avoid namespace pollution on Solaris 2.6.
43826         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
43827         identifiers.
43828         * doc/posix-headers/wctype.texi: Mention the problem.
43829         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43831 2011-05-28  Jim Meyering  <meyering@redhat.com>
43833         parse-datetime.y: accommodate -Wstrict-overflow
43834         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
43835         placate -Wstrict-overflow.
43837         trim: avoid a warning from -O2 -Wstrict-overflow
43838         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
43840 2011-05-29  Bruno Haible  <bruno@clisp.org>
43842         gnulib-tool: Fix bug in yesterday's commit.
43843         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
43844         twice.
43846 2011-05-29  Bruno Haible  <bruno@clisp.org>
43848         Allow multiple gnulib generated include files to be combined.
43849         * gnulib-tool (func_compute_include_guard_prefix): New function.
43850         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
43851         ${gl_include_guard_prefix} references.
43852         (func_import, func_create_testdir): Invoke
43853         func_compute_include_guard_prefix.
43854         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
43855         * lib/ctype.in.h: Likewise.
43856         * lib/dirent.in.h: Likewise.
43857         * lib/errno.in.h: Likewise.
43858         * lib/fcntl.in.h: Likewise.
43859         * lib/float.in.h: Likewise.
43860         * lib/getopt.in.h: Likewise.
43861         * lib/iconv.in.h: Likewise.
43862         * lib/langinfo.in.h: Likewise.
43863         * lib/locale.in.h: Likewise.
43864         * lib/math.in.h: Likewise.
43865         * lib/netdb.in.h: Likewise.
43866         * lib/netinet_in.in.h: Likewise.
43867         * lib/poll.in.h: Likewise.
43868         * lib/pthread.in.h: Likewise.
43869         * lib/pty.in.h: Likewise.
43870         * lib/sched.in.h: Likewise.
43871         * lib/se-selinux.in.h: Likewise.
43872         * lib/search.in.h: Likewise.
43873         * lib/signal.in.h: Likewise.
43874         * lib/spawn.in.h: Likewise.
43875         * lib/stdarg.in.h: Likewise.
43876         * lib/stddef.in.h: Likewise.
43877         * lib/stdint.in.h: Likewise.
43878         * lib/stdio.in.h: Likewise.
43879         * lib/stdlib.in.h: Likewise.
43880         * lib/string.in.h: Likewise.
43881         * lib/strings.in.h: Likewise.
43882         * lib/sys_file.in.h: Likewise.
43883         * lib/sys_ioctl.in.h: Likewise.
43884         * lib/sys_select.in.h: Likewise.
43885         * lib/sys_socket.in.h: Likewise.
43886         * lib/sys_stat.in.h: Likewise.
43887         * lib/sys_time.in.h: Likewise.
43888         * lib/sys_times.in.h: Likewise.
43889         * lib/sys_uio.in.h: Likewise.
43890         * lib/sys_utsname.in.h: Likewise.
43891         * lib/sys_wait.in.h: Likewise.
43892         * lib/sysexits.in.h: Likewise.
43893         * lib/termios.in.h: Likewise.
43894         * lib/time.in.h: Likewise.
43895         * lib/unistd.in.h: Likewise.
43896         * lib/wchar.in.h: Likewise.
43897         * lib/wctype.in.h: Likewise.
43898         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
43899         * modules/ctype (Makefile.am): Likewise.
43900         * modules/dirent (Makefile.am): Likewise.
43901         * modules/errno (Makefile.am): Likewise.
43902         * modules/fcntl-h (Makefile.am): Likewise.
43903         * modules/float (Makefile.am): Likewise.
43904         * modules/getopt-posix (Makefile.am): Likewise.
43905         * modules/iconv-h (Makefile.am): Likewise.
43906         * modules/langinfo (Makefile.am): Likewise.
43907         * modules/locale (Makefile.am): Likewise.
43908         * modules/math (Makefile.am): Likewise.
43909         * modules/netdb (Makefile.am): Likewise.
43910         * modules/netinet_in (Makefile.am): Likewise.
43911         * modules/poll-h (Makefile.am): Likewise.
43912         * modules/pthread (Makefile.am): Likewise.
43913         * modules/pty (Makefile.am): Likewise.
43914         * modules/sched (Makefile.am): Likewise.
43915         * modules/search (Makefile.am): Likewise.
43916         * modules/selinux-h (Makefile.am): Likewise.
43917         * modules/signal (Makefile.am): Likewise.
43918         * modules/spawn (Makefile.am): Likewise.
43919         * modules/stdarg (Makefile.am): Likewise.
43920         * modules/stddef (Makefile.am): Likewise.
43921         * modules/stdint (Makefile.am): Likewise.
43922         * modules/stdio (Makefile.am): Likewise.
43923         * modules/stdlib (Makefile.am): Likewise.
43924         * modules/string (Makefile.am): Likewise.
43925         * modules/strings (Makefile.am): Likewise.
43926         * modules/sys_file (Makefile.am): Likewise.
43927         * modules/sys_ioctl (Makefile.am): Likewise.
43928         * modules/sys_select (Makefile.am): Likewise.
43929         * modules/sys_socket (Makefile.am): Likewise.
43930         * modules/sys_stat (Makefile.am): Likewise.
43931         * modules/sys_time (Makefile.am): Likewise.
43932         * modules/sys_times (Makefile.am): Likewise.
43933         * modules/sys_uio (Makefile.am): Likewise.
43934         * modules/sys_utsname (Makefile.am): Likewise.
43935         * modules/sys_wait (Makefile.am): Likewise.
43936         * modules/sysexits (Makefile.am): Likewise.
43937         * modules/termios (Makefile.am): Likewise.
43938         * modules/time (Makefile.am): Likewise.
43939         * modules/unistd (Makefile.am): Likewise.
43940         * modules/wchar (Makefile.am): Likewise.
43941         * modules/wctype-h (Makefile.am): Likewise.
43942         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
43944 2011-05-29  Bruno Haible  <bruno@clisp.org>
43946         assert-h: Allow multiple gnulib generated replacements to coexist.
43947         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
43949 2011-05-29  Bruno Haible  <bruno@clisp.org>
43951         argp: Allow coexistence with strerror_r-posix module.
43952         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
43953         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
43954         by gnulib's <string.h> replacement), assume it has the POSIX signature,
43955         not the glibc signature.
43957 2011-05-28  Bruno Haible  <bruno@clisp.org>
43959         gnulib-tool: Alternative structure of testdirs, similar to --import.
43960         * gnulib-tool: New option --single-configure.
43961         (func_usage): Document it.
43962         (single_configure): New variable.
43963         (func_modules_transitive_closure_separately,
43964         func_modules_transitive_closure_separately,
43965         func_determine_use_libtests, func_modules_add_dummy_separately,
43966         func_modules_to_filelist_separately): New functions, extracted from
43967         func_import.
43968         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
43969         (func_import): Use the new functions.
43970         (func_create_testdir): Set final_modules. Handle $single_configure =
43971         true case.
43973 2011-05-28  Bruno Haible  <bruno@clisp.org>
43975         getloadavg: Remove an unreliable safety check.
43976         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
43977         getloadavg.c is in place.
43978         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
43979         Reported by Sam Steingold <sds@gnu.org>.
43981 2011-05-28  Bruno Haible  <bruno@clisp.org>
43983         doc: Cleanup yet another file produced by texinfo.tex.
43984         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
43986 2011-05-28  Bruno Haible  <bruno@clisp.org>
43988         Finish the conditional dependencies mechanism.
43989         * gnulib-tool: New option --no-conditional-dependencies.
43990         (func_usage): Document it. Don't mark --conditional-dependencies as
43991         experimental.
43992         (cond_dependencies): The possible values can now be true, false, empty.
43993         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
43994         (func_import): Store setting in gnulib-cache.m4 and read it from there.
43995         * doc/gnulib-tool.texi (Conditional dependencies): New section.
43997 2011-05-28  Bruno Haible  <bruno@clisp.org>
43999         doc: Use a recent texinfo.tex.
44000         * doc/Makefile (tex_opts): New variable.
44001         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
44003 2011-05-28  Jim Meyering  <meyering@redhat.com>
44005         intprops.h: adjust comment to match code change
44006         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
44007         only once, it *may* have side effects.  Also fix an unrelated typo.
44008         (_GL_INT_SIGNED): Likewise.
44010 2011-05-26  Simon Josefsson  <simon@josefsson.org>
44012         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
44014 2011-05-26  Bruno Haible  <bruno@clisp.org>
44016         mbsrchr: Avoid collision with system function on Interix.
44017         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
44018         Reported by Markus Duft <mduft@gentoo.org>.
44020 2011-05-15  James Youngman  <jay@gnu.org>
44022         getopt: for ambiguous options, enumerate the possibilities.
44023         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
44024         the ambiguous options when an ambiguous prefix is given. This was
44025         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
44026         glibc change was
44027         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
44029 2011-05-25  Eric Blake  <eblake@redhat.com>
44031         getcwd: work around mingw bug
44032         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
44033         * doc/posix-functions/getcwd.texi (getcwd): Document it.
44034         Reported by Matthias Bolte.
44036 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
44038         test-intprops: disable -Wtype-limits diagnostics
44039         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
44040         diagnostics.  Otherwise, the integer overflow macros generate many
44041         diagnostics.  Reported by Jim Meyering in
44042         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
44044         intprops: shorten, to pacify gcc -Woverlength-strings
44045         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
44046         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
44047         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
44048         likely to run afoul of C compiler limits for string constant lengths.
44049         See <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
44051 2011-05-24  Eric Blake  <eblake@redhat.com>
44053         docs: document recently fixed glibc printf bug
44054         * doc/posix-functions/fprintf.texi (fprintf): Document it.
44055         * doc/posix-functions/printf.texi (printf): Likewise.
44056         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
44057         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
44059         closein-tests: convert to init.sh
44060         * modules/closein-tests (Files): Add init.sh
44061         * tests/test-closein.sh Use it.
44063         yesno-tests: convert to init.sh
44064         * modules/yesno-tests (Files): Add init.sh.
44065         * tests/test-yesno.sh: Use it.
44067         atexit-tests: ensure reliable exit status
44068         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
44069         Reported by Bruno Haible.
44071 2011-05-24  Bruno Haible  <bruno@clisp.org>
44073         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
44074         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
44075         gl_PREREQ_STRERROR_R invocations from here...
44076         * modules/strerror_r-posix (configure.ac): ... to here.
44078 2011-05-24  Eric Blake  <eblake@redhat.com>
44080         strerror_r: fix missing header
44081         * lib/strerror_r.c: Avoid compiler warning about snprintf.
44083         strerror_r: fix AIX test failures
44084         * lib/strerror_r.c (strerror_r): Convert silent truncation to
44085         ERANGE failure.
44087         strerror_r: fix Solaris test failures
44088         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
44089         failures.
44090         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
44092         strerror_r: enforce POSIX recommendations
44093         * lib/strerror_r.c (safe_copy): New helper method.
44094         (strerror_r): Guarantee a non-empty string.
44095         * tests/test-strerror_r.c (main): Enhance tests to incorporate
44096         recent POSIX rulings and to match our strerror guarantees.
44097         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
44099 2011-05-24  Jim Meyering  <meyering@redhat.com>
44101         test-perror2.c: avoid warning about unused variable
44102         * tests/test-perror2.c (main): Remove declaration of unused "fp".
44104 2011-05-24  Eric Blake  <eblake@redhat.com>
44106         perror: avoid spurious test failure on HP-UX
44107         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
44109         tests: fix logic bug in init.sh
44110         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
44111         shell.
44113 2011-05-24  Jim Meyering  <meyering@redhat.com>
44115         utimensat: do not reference an out-of-scope buffer
44116         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
44117         declared in an inner scope, yet "times" would be dereferenced outside
44118         the scope in which "ts" was valid.
44119         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
44120         of ts[2] "out/up", so that the use of aliased "times" (via
44121         "times = ts;") does not end up referencing an out-of-scope "ts"
44123         opendir-safer.c: don't clobber errno; don't close negative FD
44124         * lib/opendir-safer.c (opendir_safer):
44125         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
44126         file descriptor, and more importantly, don't clobber the
44127         offending errno value with EINVAL.  Before, upon failure
44128         of dup_safer, we would pass the negative file descriptor to
44129         fdopendir, which would clobber errno.
44131 2011-05-23  Bruno Haible  <bruno@clisp.org>
44133         idcache: Fix module description.
44134         * modules/idcache (Include): Set to "idcache.h".
44136 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
44138         gnulib-tool: fix portability problem with MacOS sed
44139         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
44140         before the "}".  Problem reported by Leo in
44141         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00717.html>.
44142         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
44143         sed_extract_condition1, sed_extract_condition2.
44145 2011-05-23  Bruno Haible  <bruno@clisp.org>
44147         hash: Simplify autoconf macro.
44148         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
44150 2011-05-23  Bruno Haible  <bruno@clisp.org>
44152         getugroups: Fix module description.
44153         * modules/getugroups (Include): Set to "getugroups.h".
44155 2011-05-23  Bruno Haible  <bruno@clisp.org>
44157         linkat: Simplify autoconf macro.
44158         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
44160 2011-05-23  Bruno Haible  <bruno@clisp.org>
44161             Eric Blake  <eblake@redhat.com>
44163         linkat, renameat: Update dependencies.
44164         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
44165         * modules/linkat (Depends-on): Likewise. Remove also readlink,
44166         symlinkat.
44168 2011-05-23  Jim Meyering  <meyering@redhat.com>
44170         maint.mk: more tight_scope improvements
44171         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
44172         (_gl_TS_headers): Define only in if-0'd block.
44173         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
44174         sometimes we must *not* use it.  Adjust uses accordingly.
44175         (sc_tight_scope): Use much simpler grep-based test to determine
44176         whether we skip this rule.
44178         maint.mk: generalize/improve the tight-scope rule
44179         * top/maint.mk: Emit a warning when the test is skipped.
44180         (_gl_TS_dir): Add $(srcdir)/ prefix.
44181         (_gl_TS_function_match): Simplify, rather than trying
44182         to enumerate common types.  Otherwise, it would fail to match an
44183         "extern unsigned char const *" declaration in idutils.
44184         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
44185         a way to support use of that type of macro.
44186         (_gl_TS_var_match): Simplify regexp.
44187         (_gl_TS_obj_files): New configurable variable.
44188         (_gl_TS_headers): Likewise.
44190 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
44192         verify: fix bug when gnulib <assert.h> is also included
44193         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
44194         is defined, not if _GL_STATIC_ASSERT_H is not defined.
44195         Perhaps there's a better way, but this fixes the immediate problem.
44196         Problem reported by Bruno Haible in
44197         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00478.html>.
44199 2011-05-22  Bruno Haible  <bruno@clisp.org>
44201         xgetcwd: Simplify autoconf macro.
44202         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
44204 2011-05-22  Bruno Haible  <bruno@clisp.org>
44206         New module 'mktime-internal'.
44207         * modules/mktime-internal: New file.
44208         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
44209         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
44210         mktime_internal as a C macro if libc has __mktime_internal.
44211         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
44212         conditions.
44213         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
44215 2011-05-22  Bruno Haible  <bruno@clisp.org>
44217         timegm: Correct mktime replacement statements.
44218         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
44219         defining mktime as a C macro. This completes a 2009-07-28 commit.
44221 2011-05-22  Bruno Haible  <bruno@clisp.org>
44223         timegm: Simplify autoconf macro.
44224         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
44226 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
44228         clock-time: change to LGPLv2+.
44229         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
44230         BSD-like but we have no mark for that; this is good enough for now.
44232 2011-05-21  Bruno Haible  <bruno@clisp.org>
44234         strerror_r: Fix comments.
44235         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
44237 2011-05-21  Bruno Haible  <bruno@clisp.org>
44239         relocatable-prog-wrapper: Fix possible link error.
44240         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
44241         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
44242         (gl_FUNC_SETENV): ... to here.
44243         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
44244         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
44246 2011-05-21  Bruno Haible  <bruno@clisp.org>
44248         relocatable-prog-wrapper: Assume strerror() exists.
44249         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
44250         m4/strerror.m4.
44251         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
44252         * lib/relocwrapper.c: Remove mention of strerror module.
44253         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
44254         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
44255         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
44256         C macro.
44258 2011-05-21  Bruno Haible  <bruno@clisp.org>
44260         select: Simplify replacement idiom.
44261         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
44262         Win32 platforms.
44263         * lib/sys_select.in.h (select): Simplify accordingly.
44264         * modules/select (Depends-on): Likewise.
44266 2011-05-21  Bruno Haible  <bruno@clisp.org>
44268         mkdir-p: Simplify autoconf macro.
44269         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
44270         gl_FUNC_LCHOWN.
44272 2011-05-21  Eric Blake  <eblake@redhat.com>
44274         strerror_r: avoid clobbering strerror on cygwin
44275         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
44276         fall back instead to sys_errlist.
44277         * modules/strerror (configure.ac): Add witness.
44278         * tests/test-strerror_r.c (main): Enhance test.
44279         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
44280         * tests/test-perror2.c (main): Free memory before exit.
44282 2011-05-21  Bruno Haible  <bruno@clisp.org>
44284         mkdtemp: Use gnulib naming conventions.
44285         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
44286         * modules/mkdtemp (configure.ac): Update.
44288 2011-05-20  Eric Blake  <eblake@redhat.com>
44290         strerror_r: avoid corrupting errno on Solaris
44291         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
44292         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
44294         strerror_r: avoid compiler warning
44295         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
44297         strerror_r: simplify AIX code
44298         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
44300         test-perror: avoid spurious failure on FreeBSD
44301         * modules/perror-tests (Depends-on): Add strerror, now that
44302         strerror_r no longer pulls it in.
44304 2011-05-20  Bruno Haible  <bruno@clisp.org>
44306         strerror_r-posix: Remove unused dependencies.
44307         * modules/strerror_r-posix (Depends-on): Remove strerror.
44308         Reported by Eric Blake.
44310 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
44312         intprops: remove assumption about A|B representation
44313         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
44314         is a valid integer if both A and B are.  Although this is true for
44315         all known practical hosts, the C standard doesn't guarantee it,
44316         and the code need not assume it.  Also, this change may work around
44317         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
44318         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00426.html>.
44320 2011-05-20  Eric Blake  <eblake@redhat.com>
44322         perror: work around FreeBSD bug
44323         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
44324         is broken.  Move AC_LIBOBJ...
44325         * modules/perror (configure.ac): Here.
44326         * doc/posix-functions/perror.texi (perror): Document this.
44327         * tests/test-perror2.c (main): Enhance test.
44329         test-perror: check for strerror interactions
44330         * tests/macros.h (STREQ): Add macro.
44331         * modules/perror-tests (Files): Add second test.
44332         * tests/test-perror2.c (main): New file.
44333         * doc/posix-functions/perror.texi (perror): Document glibc bug.
44335         test-perror: rewrite to use init script
44336         * modules/perror-tests (Files): Add init.sh.
44337         * tests/test-perror.sh: Use temporary directory.
44339 2011-05-20  Jim Meyering  <meyering@redhat.com>
44341         maint: replace misused "a" with "an"
44342         * doc/intprops.texi: "a integer"
44343         * doc/regex.texi: "a explanation"
44344         * lib/alignof.h: "a object"
44345         * lib/argmatch.h: "a explanation"
44346         * lib/argp-help.c: "a option" and "a OPTION_DOC"
44347         * lib/stdint.in.h: "a integer"
44348         * lib/userspec.c: "a owner"
44349         * doc/gnulib.texi: Fix "a idea", and reword.
44351 2011-05-19  Jim Meyering  <meyering@redhat.com>
44353         maint: correct misuse of "a" and "an"
44354         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
44355         * lib/argp-help.c: "an docum...": s/an/a/
44356         * lib/argp-parse.c: "An vector": s/An/A/
44357         * lib/execute.c: "an native": s/an/a/
44358         * lib/spawn-pipe.c: Likewise.
44359         * lib/gc.h: "an Gc_rc": s/an/a/
44360         * lib/unigbrk.in.h: "an grapheme": s/an/a/
44361         * lib/fts.c: "an stat.st_dev": s/an/a/
44363 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
44365         intprops-tests: work around HP-UX 11.23 cc bug with constants
44366         * tests/test-intprops.c (VERIFY): New macro.
44367         (main): Use it, instead of verify, to work around the compiler bug; see
44368         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
44370         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
44371         See http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html
44372         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
44373         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
44374         (_GL_REMAINDER_OVERFLOW): Use it.
44376         intprops-tests: revert unsigned part of previous change
44377         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
44378         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
44379         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
44380         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html>.
44382 2011-05-19  Bruno Haible  <bruno@clisp.org>
44384         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
44385         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
44386         strerror_r() returned without filling the buffer.
44387         Reported by Eric Blake.
44389 2011-05-19  Eric Blake  <eblake@redhat.com>
44391         strerror_r: guarantee unchanged errno
44392         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
44393         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
44394         failure.
44395         * tests/test-strerror_r.c (main): Enhance test.
44397 2011-05-19  Bruno Haible  <bruno@clisp.org>
44399         strerror_r: Reorder #if blocks.
44400         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
44401         for consistency with the previous commit.
44403 2011-05-19  Bruno Haible  <bruno@clisp.org>
44405         perror: Avoid clobbering the strerror buffer when possible.
44406         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
44407         * lib/strerror.c: Include it.
44408         * modules/strerror (Files): Add lib/strerror-impl.h.
44409         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
44410         (my_strerror): New function, defined through lib/strerror-impl.h.
44411         (perror): Use it instead of strerror.
44412         * modules/perror (Files): Add lib/strerror-impl.h.
44413         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
44415 2011-05-19  Eric Blake  <eblake@redhat.com>
44417         strerror_r: fix on newer cygwin
44418         * lib/strerror_r.c (strerror_r): Cygwin now has
44419         __xpg_strerror_r, use it.
44421 2011-05-19  Bruno Haible  <bruno@clisp.org>
44423         strerror_r: Avoid clobbering the strerror buffer when possible.
44424         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
44425         (sys_nerr, sys_errlist): New declarations.
44426         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
44427         HP-UX, native Win32, IRIX, and 32-bit Solaris.
44428         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
44430 2011-05-19  Bruno Haible  <bruno@clisp.org>
44432         strerror_r: Fix test failure on mingw.
44433         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
44434         EXTEND_STRERROR_R.
44435         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
44436         macros from errno.in.h instead.
44438 2011-05-19  Eric Blake  <eblake@redhat.com>
44440         strerror: relax test for Solaris
44441         * tests/test-strerror.c (main): Permit Solaris behavior.
44442         * tests/test-strerror_r.c (main): Likewise.
44444         strerror: enforce POSIX ruling on strerror(0)
44445         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
44446         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
44447         * lib/strerror_r.c (rpl_strerror_r): Work around it.
44448         * doc/posix-functions/strerror.texi (strerror): Document it.
44449         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
44450         * tests/test-strerror.c (main): Strengthen test.
44451         * tests/test-strerror_r.c (main): Likewise.
44453 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
44455         intprop-tests: port to older and more-pedantic compilers
44456         * modules/intprops-tests (Files): Add tests/macros.h.
44457         * tests/test-intprops.c: Include macros.h.
44458         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
44459         it's no longer documented to expand to an integer constant expression.
44460         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
44461         argument is floating point, as it's no longer documented to expand
44462         to an integer constant expression in that case.
44463         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
44464         compiler bugs reported by Bruno Haible.  See
44465         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
44466         (U0, U1): New constants, to work around the same bugs.  Also,
44467         in tests, use e.g., "(unsigned int) 39" rather than "39u".
44469         intprops: work around C compiler bugs
44470         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
44471         bug in Sun C 5.11 2010/08/13 and other compilers; see
44472         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
44474         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
44475         * doc/intprops.texi (Integer Type Determination): Fix
44476         documentation for TYPE_IS_INTEGER: it returns an constant
44477         expression, not an integer constant expression.  Fix doc for
44478         TYPE_SIGNED: it returns an integer constant expression only if its
44479         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
44480         hardly worth documented that way....)
44482 2011-05-18  Bruno Haible  <bruno@clisp.org>
44484         strerror_r: Avoid clobbering the strerror buffer when possible.
44485         * lib/strerror_r.c (strerror_r): Merge the three implementations.
44486         Handle gnulib defined errno values here. When strerror() returns NULL
44487         or an empty string, return EINVAL.
44488         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
44489         gnulib defined errno values here.
44490         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
44492 2011-05-18  Eric Blake  <eblake@redhat.com>
44494         fnmatch: avoid compiler warning
44495         * lib/fnmatch_loop.c (FCT): Use correct type.
44496         Reported by Matthias Bolte.
44498 2011-05-13  Jim Meyering  <meyering@redhat.com>
44500         maint.mk: three new prohibit_<HDR>_without_use rules
44501         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
44502         (sc_prohibit_stdio-safer_without_use): Likewise.
44503         (sc_prohibit_xfreopen_without_use): Likewise.
44505 2011-05-17  Jim Meyering  <meyering@redhat.com>
44507         announce-gen: fail if the NEWS delta is empty
44508         If there's nothing noteworthy in NEWS, then either you forgot
44509         or you shouldn't be releasing.
44510         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
44512 2011-05-17  Pádraig Brady  <P@draigBrady.com>
44514         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
44515         reserved symbols starting with double underscore from the check.
44517 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
44519         intprops: add doc
44520         * doc/intprops.texi: New file, documenting intprops.
44521         * doc/gnulib.texi (Particular Modules): Include it.
44523         verify: add doc to gnulib manual and fix example
44524         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
44525         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
44526         (Compile-time Assertions): Fix example so it can't overflow.
44528 2011-05-17  Jim Meyering  <meyering@redhat.com>
44530         warnings.m4: don't usurp save_CPPFLAGS variable name
44531         * m4/warnings.m4: Prefix local temporary variable name with gl_.
44533         doc: fix typo
44534         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
44536 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
44537             Bruno Haible  <bruno@clisp.org>
44539         doc: Tweak recent change.
44540         * README (Portability guidelines): Tweak new text.
44541         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
44542         Interix 6.1.
44544 2011-05-16  Eric Blake  <eblake@redhat.com>
44546         inttypes: avoid autoconf warning
44547         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
44548         * m4/stdint.m4 (gl_STDINT_H): Likewise.
44550 2011-05-16  Sam Steingold  <sds@gnu.org>
44551         and Eric Blake  <eblake@redhat.com>
44553         vc-list-files: accept multiple directory operands
44554         * build-aux/vc-list-files: Iterate over all remaining operands.
44556 2011-05-16  Bruno Haible  <bruno@clisp.org>
44558         Fix confusion regarding deprecated modules.
44559         * modules/calloc (Status, Notice): Mark module as deprecated, not
44560         obsolete.
44561         * modules/fnmatch-posix (Status, Notice): Likewise.
44562         * modules/getdate (Status, Notice): Likewise.
44563         * modules/getopt (Status, Notice): Likewise.
44564         * modules/malloc (Status, Notice): Likewise.
44565         * modules/pipe (Status, Notice): Likewise.
44566         * modules/realloc (Status, Notice): Likewise.
44567         * modules/rename-dest-slash (Status, Notice): Likewise.
44568         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
44569         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
44570         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
44571         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
44572         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
44574 2011-05-16  Bruno Haible  <bruno@clisp.org>
44576         doc: List the target platforms.
44577         * doc/gnulib-intro.texi (Target Platforms): New section.
44578         * doc/gnulib.texi (Introduction): Update menu.
44579         * README (Portability guidelines): Refer to the new section. Update
44580         statement about oldest supported environment. Remove rationale why
44581         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
44582         unportable C89 function.
44583         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
44584         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
44586 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
44588         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
44590 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
44592         intprops-tests: new module
44593         * modules/intprops-tests, tests/test-intprops.c: New files.
44595         intprops: add safe, portable integer overflow checking
44596         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
44597         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
44598         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
44599         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
44600         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
44601         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
44602         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
44603         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
44604         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
44605         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
44606         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
44608 2011-05-12  James Youngman  <jay@gnu.org>
44610         Add a test for glibc's Bugzilla bug #12378.
44611         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
44612         doesn't allow the literal matching of a lone "[" (which is
44613         required by POSIX).
44614         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
44616 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
44618         Sync glibc change fixing Bugzilla bug #12378.
44619         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
44620         beginning and fall back to matching as normal character if the
44621         string ends before the matching ']' is found.  This is what POSIX
44622         requires.
44624 2011-05-13  Eric Blake  <eblake@redhat.com>
44626         getcwd-lgpl: relax test for FreeBSD
44627         * doc/posix-functions/getcwd.texi (getcwd): Document portability
44628         issue.
44629         * tests/test-getcwd-lgpl.c (main): Relax test.
44630         Reported by Matthias Bolte.
44632 2011-05-11  Eric Blake  <eblake@redhat.com>
44634         test-fflush: silence compiler warning
44635         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
44637 2011-05-11  Bruno Haible  <bruno@clisp.org>
44639         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
44640         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
44641         * modules/canonicalize (Depends-on): Add 'nocrash'.
44642         * modules/canonicalize-lgpl (Depends-on): Likewise.
44643         * doc/posix-functions/realpath.texi: Update platforms list.
44644         Reported by Ryan Schmidt <ryandesign@macports.org>.
44646 2011-05-11  Bruno Haible  <bruno@clisp.org>
44648         group-member: Declare function in <unistd.h>.
44649         * lib/unistd.in.h (group_member): New declaration.
44650         * lib/group-member.h: Remove file.
44651         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
44652         * tests/test-unistd-c++.cc: Check signature of group_member.
44653         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
44654         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
44655         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
44656         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
44657         HAVE_GROUP_MEMBER.
44658         * modules/group-member (Files): Remove lib/group-member.h.
44659         (Depends-on): Add unistd. Specify conditions.
44660         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44661         (Include): Change to <unistd.h>.
44662         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
44663         HAVE_GROUP_MEMBER.
44664         * NEWS: Mention the change.
44665         * lib/euidaccess.c: Don't include group-member.h.
44667 2011-05-11  Bruno Haible  <bruno@clisp.org>
44669         group-member: Document module.
44670         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
44671         module.
44673 2011-05-11  Bruno Haible  <bruno@clisp.org>
44675         fclose: Fix mistake earlier today.
44676         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
44678 2011-05-11  Eric Blake  <eblake@redhat.com>
44680         fclose: preserve fflush errors
44681         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
44682         Reported by Jim Meyering.
44684         bootstrap: support a prereq of 'rpcgen -' on RHEL5
44685         * build-aux/bootstrap (check_versions): When no specific version
44686         is required, merely check that the app produces an exit status
44687         that indicates its existence.
44689         maint.mk: drop redundant check
44690         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
44691         the same but better.
44693 2011-05-11  Bruno Haible  <bruno@clisp.org>
44695         fclose: Fix possible link error.
44696         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
44697         unregister_shadow_fd. Improve comments.
44698         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
44699         Eric Blake.
44701 2011-05-11  Jim Meyering  <meyering@redhat.com>
44703         maint.mk: improve "can not" detection and generalize rule name
44704         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
44705         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
44706         Use the same technique as in sc_prohibit_doubled_word, so that
44707         we recognize "can not" also when the words are separated by a newline.
44708         Suggested by Eric Blake.
44709         (perl_filename_lineno_text_): Define.  Factored out of...
44710         (prohibit_doubled_word_): ...here.  Use the new definition.
44711         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
44712         (prohibit_undesirable_word_seq_RE_): New overridable variable.
44713         (ignore_undesirable_word_sequence_RE_): New overridable variable.
44715 2011-05-10  Eric Blake  <eblake@redhat.com>
44717         fclose: avoid double close race when possible
44718         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
44719         all but WINDOWS_SOCKETS.
44721 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
44723         openat: correct new comment
44724         * lib/openat-proc.c (openat_proc_name): Correct the comment.
44726 2011-05-10  Jim Meyering  <meyering@redhat.com>
44728         openat: add comments
44729         * lib/openat-proc.c (openat_proc_name): Add comments,
44730         mostly from Eric Blake.
44732 2011-05-09  Eric Blake  <eblake@redhat.com>
44734         openat: reduce syscalls in first probe of /proc
44735         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
44736         be a directory.  Simplify the probe for .. bugs.
44737         * modules/openat (Depends-on): Drop same-inode.
44738         Reported by Bastien ROUCARIES.
44740 2011-05-09  Jim Meyering  <meyering@redhat.com>
44742         maint.mk: change semantics/name of tight_scope variables
44743         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
44744         Rename variables to align with semantics that make them more useful.
44746         maint.mk: tweak new rule's name not to impinge
44747         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
44748         (sc_tight_scope): Use new rule name rather than $@-0.
44750         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
44751         * top/maint.mk (sc_tight_scope): New rule.
44752         (sc_tight_scope-0): New rule, ifdef'd out.
44753         (_gl_TS_dir): Default.
44754         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
44755         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
44757 2011-05-09  Simon Josefsson  <simon@josefsson.org>
44759         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
44760         Haible <bruno@clisp.org>.
44762 2011-05-08  Bruno Haible  <bruno@clisp.org>
44764         Comments.
44765         * m4/isnanf.m4: Add comment.
44766         * m4/isnanl.m4: Likewise.
44768 2011-05-08  Bruno Haible  <bruno@clisp.org>
44770         glob: Remove obsolete macro.
44771         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
44773 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
44775         intprops: Sun C 5.11 supports __typeof__
44776         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
44777         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
44778         which is new.
44779         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
44781         intprops: switch to usual gnulib indenting and naming
44782         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
44783         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
44785         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
44787 2011-05-08  Jim Meyering  <meyering@redhat.com>
44789         maint.mk: suppress "Entering/Leaving directory" diag in announcement
44790         * top/maint.mk (release-prep): Use make's --no-print-directory
44791         option when generating the announcement.  This eliminates the
44792         pesky "make[2]: Entering/Leaving directory" diagnostics in the
44793         generated announcement template.
44795 2011-05-08  Bruno Haible  <bruno@clisp.org>
44797         tzset: Fix gettimeofday wrapper on Solaris 2.6.
44798         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
44799         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
44801 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
44803         ignore-value, verify: Omit include files from lib_SOURCES.
44804         * modules/ignore-value, modules/verify (Makefile.am):
44805         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
44806         that leads Automake to duplicate use of am__objects_... variables
44807         in Makefile.in.  See
44808         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00257.html>.
44810 2011-05-07  Bruno Haible  <bruno@clisp.org>
44812         fclose: Simplify autoconf macro.
44813         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
44814         defined.
44816 2011-05-07  Bruno Haible  <bruno@clisp.org>
44818         canonicalize-lgpl: Fix autoconf macro ordering bug.
44819         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
44820         gl_STDLIB_H_DEFAULTS.
44822 2011-05-06  Eric Blake  <eblake@redhat.com>
44824         maintainer-makefile: make sc_po_check easier to tune
44825         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
44826         to probe for strings, such as an alternate location for gnulib.
44828         fclose: guarantee behavior on seekable stdin
44829         * modules/fclose (Depends-on): Add fflush.
44830         * doc/posix-functions/fclose.texi (fclose): Document this.
44831         * tests/test-fclose.c (main): Make test for this unconditional.
44833 2011-05-06  Bruno Haible  <bruno@clisp.org>
44835         fflush, fpurge: Relicense under LGPLv2+.
44836         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
44837         * modules/fpurge (License): Likewise.
44838         With permission from Eric Blake and Jim Meyering.
44839         Suggested by Eric Blake.
44841 2011-05-06  Karl Berry  <karl@gnu.org>
44843         * MODULES.html.sh (func_all_modules): remove exit.
44845 2011-05-06  Jim Meyering  <meyering@redhat.com>
44847         maint.mk: use info-gnu@ as the default only for a stable release
44848         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
44849         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
44850         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
44851         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
44853 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
44855         assert-h: new module, which supports C1X-style static_assert
44856         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
44857         * lib/verify.h: Revamp so that this can be copied into assert.h,
44858         while retaining the ability to use it standalone as before.
44859         Rename private identifiers so as not to encroach on the
44860         standard C namespace, since this is now used by assert.h.
44861         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
44862         the old verify_true.
44863         (_GL_VERIFY_TRUE): New macro, with much of the contents of
44864         the old verify_true.  Use _GL_VERIFY_TYPE.
44865         (_GL_VERIFY): New macro, with much of the contents of the old verify.
44866         (static_assert): New macro, if _GL_STATIC_ASSERT_H
44867         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
44868         defined when this file is copied into the replacement assert.h.
44869         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
44870         and _Static_assert is not built in.
44871         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
44872         defined, and use the new macros mentioned above.
44873         * doc/posix-headers/assert.texi: Document this.
44875 2011-05-05  Bruno Haible  <bruno@clisp.org>
44877         fclose, fflush: Respect rules for use of AC_LIBOBJ.
44878         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
44879         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
44880         gl_REPLACE_FCLOSE here.
44881         * modules/fflush (Depends-on): Remove fclose.
44882         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
44883         combination with module 'fclose'.
44885 2011-05-05  Bruno Haible  <bruno@clisp.org>
44887         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
44888         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
44889         gl_FUNC_FFLUSH.
44890         (gl_FUNC_FFLUSH): Use it.
44891         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
44892         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
44893         gl_REPLACE_FSEEKO here.
44895 2011-05-05  Bruno Haible  <bruno@clisp.org>
44897         tzset: Relicense under LGPL.
44898         * modules/tzset (License): Change to LGPL.
44899         No agreement needed; it's a no-op.
44901         strtoimax, strtoumax: Relicense under LGPL.
44902         * modules/strtoimax (License): Change to LGPL.
44903         * modules/strtoumax (License): Likewise.
44904         With permission from Jim Meyering, Paul Eggert:
44905         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00124.html>
44906         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00109.html>
44908         getgroups: Relicense under LGPL.
44909         * modules/getgroups (License): Change to LGPL.
44910         With permission from Jim Meyering, Paul Eggert, Eric Blake:
44911         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
44912         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
44913         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
44915         nanosleep: Relicense under LGPL.
44916         * modules/nanosleep (License): Change to LGPL.
44917         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
44918         Haible:
44919         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
44920         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
44921         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
44922         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
44924         futimens: Relicense under LGPL.
44925         * modules/futimens (License): Change to LGPL.
44926         With permission from Eric Blake:
44927         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
44929         fflush: Relicense under LGPL.
44930         * modules/fflush (License): Change to LGPL.
44931         With permission from Eric Blake, Bruno Haible, Jim Meyering:
44932         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
44933         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
44934         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00133.html>
44936         tmpfile: Relicense under LGPL.
44937         * modules/tmpfile (License): Change to LGPL.
44938         With permission from Ben Pfaff:
44939         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
44941         isfinite: Relicense under LGPL.
44942         * modules/isfinite (License): Change to LGPL.
44943         With permission from Ben Pfaff, Bruno Haible:
44944         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
44945         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00130.html>
44947         acosl..tanl: Relicense under LGPL.
44948         * modules/acosl (License): Change to LGPL.
44949         * modules/asinl (License): Likewise.
44950         * modules/atanl (License): Likewise.
44951         * modules/cosl (License): Likewise.
44952         * modules/expl (License): Likewise.
44953         * modules/logl (License): Likewise.
44954         * modules/sinl (License): Likewise.
44955         * modules/sqrtl (License): Likewise.
44956         * modules/tanl (License): Likewise.
44957         Source code originally from glibc and Paolo Bonzini. Agreements:
44958         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00137.html>
44959         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00128.html>
44961 2011-05-05  Bruno Haible  <bruno@clisp.org>
44963         signal: Define sighandler_t.
44964         * lib/signal.in.h (sighandler_t): New type.
44965         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
44966         whether sighandler_t is defined.
44967         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
44968         * modules/signal (Depends-on): Add extensions.
44969         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
44970         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
44971         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
44973 2011-05-05  Eric Blake  <eblake@redhat.com>
44975         maint: remove useless REPLACE_*_H macros
44976         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
44977         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
44978         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
44979         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
44980         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
44981         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
44982         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
44983         * m4/btowc.m4: Update callers.
44984         * m4/dirfd.m4: Likewise.
44985         * m4/duplocale.m4: Likewise.
44986         * m4/fchdir.m4: Likewise.
44987         * m4/fdopendir.m4: Likewise.
44988         * m4/inet_ntop.m4: Likewise.
44989         * m4/inet_pton.m4: Likewise.
44990         * m4/ioctl.m4: Likewise.
44991         * m4/mbrlen.m4: Likewise.
44992         * m4/mbrtowc.m4: Likewise.
44993         * m4/mbsinit.m4: Likewise.
44994         * m4/mbsnrtowcs.m4: Likewise.
44995         * m4/mbsrtowcs.m4: Likewise.
44996         * m4/poll.m4: Likewise.
44997         * m4/setlocale.m4: Likewise.
44998         * m4/wcrtomb.m4: Likewise.
44999         * m4/wcsnrtombs.m4: Likewise.
45000         * m4/wcsrtombs.m4: Likewise.
45001         * m4/wctob.m4: Likewise.
45002         * m4/wcwidth.m4: Likewise.
45003         * modules/posix_spawn: Likewise.
45004         * modules/posix_spawn_file_actions_addclose: Likewise.
45005         * modules/posix_spawn_file_actions_adddup2: Likewise.
45006         * modules/posix_spawn_file_actions_addopen: Likewise.
45007         * modules/posix_spawn_file_actions_destroy: Likewise.
45008         * modules/posix_spawn_file_actions_init: Likewise.
45009         * modules/posix_spawnattr_destroy: Likewise.
45010         * modules/posix_spawnattr_getflags: Likewise.
45011         * modules/posix_spawnattr_getpgroup: Likewise.
45012         * modules/posix_spawnattr_getschedparam: Likewise.
45013         * modules/posix_spawnattr_getschedpolicy: Likewise.
45014         * modules/posix_spawnattr_getsigdefault: Likewise.
45015         * modules/posix_spawnattr_getsigmask: Likewise.
45016         * modules/posix_spawnattr_init: Likewise.
45017         * modules/posix_spawnattr_setflags: Likewise.
45018         * modules/posix_spawnattr_setpgroup: Likewise.
45019         * modules/posix_spawnattr_setschedparam: Likewise.
45020         * modules/posix_spawnattr_setschedpolicy: Likewise.
45021         * modules/posix_spawnattr_setsigdefault: Likewise.
45022         * modules/posix_spawnattr_setsigmask: Likewise.
45023         * modules/posix_spawnp: Likewise.
45025 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
45027         Add option to do-release-commit-and-tag to specify branch.
45028         * build-aux/do-release-commit-and-tag: Add --branch.
45030 2011-05-03  Bruno Haible  <bruno@clisp.org>
45032         Avoid unnecessary compilation units, through conditional dependencies.
45033         * modules/accept (Depends-on): Add conditions to the dependencies.
45034         * modules/acosl (Depends-on): Likewise.
45035         * modules/argz (Depends-on): Likewise.
45036         * modules/asinl (Depends-on): Likewise.
45037         * modules/atanl (Depends-on): Likewise.
45038         * modules/atoll (Depends-on): Likewise.
45039         * modules/bind (Depends-on): Likewise.
45040         * modules/btowc (Depends-on): Likewise.
45041         * modules/canonicalize-lgpl (Depends-on): Likewise.
45042         * modules/ceil (Depends-on): Likewise.
45043         * modules/ceilf (Depends-on): Likewise.
45044         * modules/ceill (Depends-on): Likewise.
45045         * modules/chdir-long (Depends-on): Likewise.
45046         * modules/chown (Depends-on): Likewise.
45047         * modules/close (Depends-on): Likewise.
45048         * modules/connect (Depends-on): Likewise.
45049         * modules/cosl (Depends-on): Likewise.
45050         * modules/dirfd (Depends-on): Likewise.
45051         * modules/dprintf (Depends-on): Likewise.
45052         * modules/dprintf-posix (Depends-on): Likewise.
45053         * modules/error (Depends-on): Likewise.
45054         * modules/euidaccess (Depends-on): Likewise.
45055         * modules/expl (Depends-on): Likewise.
45056         * modules/faccessat (Depends-on): Likewise.
45057         * modules/fchdir (Depends-on): Likewise.
45058         * modules/fclose (Depends-on): Likewise.
45059         * modules/fcntl (Depends-on): Likewise.
45060         * modules/fdopendir (Depends-on): Likewise.
45061         * modules/fflush (Depends-on): Likewise.
45062         * modules/floor (Depends-on): Likewise.
45063         * modules/floorf (Depends-on): Likewise.
45064         * modules/floorl (Depends-on): Likewise.
45065         * modules/fnmatch (Depends-on): Likewise.
45066         * modules/fopen (Depends-on): Likewise.
45067         * modules/fprintf-posix (Depends-on): Likewise.
45068         * modules/frexp (Depends-on): Likewise.
45069         * modules/frexp-nolibm (Depends-on): Likewise.
45070         * modules/frexpl (Depends-on): Likewise.
45071         * modules/frexpl-nolibm (Depends-on): Likewise.
45072         * modules/fseek (Depends-on): Likewise.
45073         * modules/fsusage (Depends-on): Likewise.
45074         * modules/ftell (Depends-on): Likewise.
45075         * modules/ftello (Depends-on): Likewise.
45076         * modules/futimens (Depends-on): Likewise.
45077         * modules/getcwd (Depends-on): Likewise.
45078         * modules/getcwd-lgpl (Depends-on): Likewise.
45079         * modules/getdelim (Depends-on): Likewise.
45080         * modules/getdomainname (Depends-on): Likewise.
45081         * modules/getgroups (Depends-on): Likewise.
45082         * modules/gethostname (Depends-on): Likewise.
45083         * modules/getline (Depends-on): Likewise.
45084         * modules/getlogin_r (Depends-on): Likewise.
45085         * modules/getopt-posix (Depends-on): Likewise.
45086         * modules/getpeername (Depends-on): Likewise.
45087         * modules/getsockname (Depends-on): Likewise.
45088         * modules/getsockopt (Depends-on): Likewise.
45089         * modules/getsubopt (Depends-on): Likewise.
45090         * modules/getusershell (Depends-on): Likewise.
45091         * modules/glob (Depends-on): Likewise.
45092         * modules/grantpt (Depends-on): Likewise.
45093         * modules/iconv_open (Depends-on): Likewise.
45094         * modules/iconv_open-utf (Depends-on): Likewise.
45095         * modules/inet_ntop (Depends-on): Likewise.
45096         * modules/inet_pton (Depends-on): Likewise.
45097         * modules/ioctl (Depends-on): Likewise.
45098         * modules/isapipe (Depends-on): Likewise.
45099         * modules/isfinite (Depends-on): Likewise.
45100         * modules/isinf (Depends-on): Likewise.
45101         * modules/lchown (Depends-on): Likewise.
45102         * modules/ldexpl (Depends-on): Likewise.
45103         * modules/link (Depends-on): Likewise.
45104         * modules/linkat (Depends-on): Likewise.
45105         * modules/listen (Depends-on): Likewise.
45106         * modules/logl (Depends-on): Likewise.
45107         * modules/lstat (Depends-on): Likewise.
45108         * modules/mbrlen (Depends-on): Likewise.
45109         * modules/mbrtowc (Depends-on): Likewise.
45110         * modules/mbsinit (Depends-on): Likewise.
45111         * modules/mbsnrtowcs (Depends-on): Likewise.
45112         * modules/mbsrtowcs (Depends-on): Likewise.
45113         * modules/mbtowc (Depends-on): Likewise.
45114         * modules/memcmp (Depends-on): Likewise.
45115         * modules/mkdir (Depends-on): Likewise.
45116         * modules/mkdtemp (Depends-on): Likewise.
45117         * modules/mkfifo (Depends-on): Likewise.
45118         * modules/mkfifoat (Depends-on): Likewise.
45119         * modules/mknod (Depends-on): Likewise.
45120         * modules/mkostemp (Depends-on): Likewise.
45121         * modules/mkostemps (Depends-on): Likewise.
45122         * modules/mkstemp (Depends-on): Likewise.
45123         * modules/mkstemps (Depends-on): Likewise.
45124         * modules/mktime (Depends-on): Likewise.
45125         * modules/nanosleep (Depends-on): Likewise.
45126         * modules/open (Depends-on): Likewise.
45127         * modules/openat (Depends-on): Likewise.
45128         * modules/perror (Depends-on): Likewise.
45129         * modules/poll (Depends-on): Likewise.
45130         * modules/popen (Depends-on): Likewise.
45131         * modules/posix_spawn (Depends-on): Likewise.
45132         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
45133         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
45134         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
45135         * modules/posix_spawnp (Depends-on): Likewise.
45136         * modules/pread (Depends-on): Likewise.
45137         * modules/printf-posix (Depends-on): Likewise.
45138         * modules/ptsname (Depends-on): Likewise.
45139         * modules/putenv (Depends-on): Likewise.
45140         * modules/pwrite (Depends-on): Likewise.
45141         * modules/readline (Depends-on): Likewise.
45142         * modules/readlink (Depends-on): Likewise.
45143         * modules/readlinkat (Depends-on): Likewise.
45144         * modules/recv (Depends-on): Likewise.
45145         * modules/recvfrom (Depends-on): Likewise.
45146         * modules/regex (Depends-on): Likewise.
45147         * modules/remove (Depends-on): Likewise.
45148         * modules/rename (Depends-on): Likewise.
45149         * modules/renameat (Depends-on): Likewise.
45150         * modules/rmdir (Depends-on): Likewise.
45151         * modules/round (Depends-on): Likewise.
45152         * modules/roundf (Depends-on): Likewise.
45153         * modules/roundl (Depends-on): Likewise.
45154         * modules/rpmatch (Depends-on): Likewise.
45155         * modules/select (Depends-on): Likewise.
45156         * modules/send (Depends-on): Likewise.
45157         * modules/sendto (Depends-on): Likewise.
45158         * modules/setenv (Depends-on): Likewise.
45159         * modules/setlocale (Depends-on): Likewise.
45160         * modules/setsockopt (Depends-on): Likewise.
45161         * modules/shutdown (Depends-on): Likewise.
45162         * modules/sigaction (Depends-on): Likewise.
45163         * modules/signbit (Depends-on): Likewise.
45164         * modules/sigprocmask (Depends-on): Likewise.
45165         * modules/sinl (Depends-on): Likewise.
45166         * modules/sleep (Depends-on): Likewise.
45167         * modules/snprintf (Depends-on): Likewise.
45168         * modules/snprintf-posix (Depends-on): Likewise.
45169         * modules/socket (Depends-on): Likewise.
45170         * modules/sprintf-posix (Depends-on): Likewise.
45171         * modules/sqrtl (Depends-on): Likewise.
45172         * modules/stat (Depends-on): Likewise.
45173         * modules/strchrnul (Depends-on): Likewise.
45174         * modules/strdup-posix (Depends-on): Likewise.
45175         * modules/strerror (Depends-on): Likewise.
45176         * modules/strerror_r-posix (Depends-on): Likewise.
45177         * modules/strndup (Depends-on): Likewise.
45178         * modules/strnlen (Depends-on): Likewise.
45179         * modules/strptime (Depends-on): Likewise.
45180         * modules/strsep (Depends-on): Likewise.
45181         * modules/strsignal (Depends-on): Likewise.
45182         * modules/strstr-simple (Depends-on): Likewise.
45183         * modules/strtod (Depends-on): Likewise.
45184         * modules/strtoimax (Depends-on): Likewise.
45185         * modules/strtok_r (Depends-on): Likewise.
45186         * modules/strtoumax (Depends-on): Likewise.
45187         * modules/symlink (Depends-on): Likewise.
45188         * modules/symlinkat (Depends-on): Likewise.
45189         * modules/tanl (Depends-on): Likewise.
45190         * modules/tcgetsid (Depends-on): Likewise.
45191         * modules/tmpfile (Depends-on): Likewise.
45192         * modules/trunc (Depends-on): Likewise.
45193         * modules/truncf (Depends-on): Likewise.
45194         * modules/truncl (Depends-on): Likewise.
45195         * modules/uname (Depends-on): Likewise.
45196         * modules/unlink (Depends-on): Likewise.
45197         * modules/unlockpt (Depends-on): Likewise.
45198         * modules/unsetenv (Depends-on): Likewise.
45199         * modules/usleep (Depends-on): Likewise.
45200         * modules/utimensat (Depends-on): Likewise.
45201         * modules/vasprintf (Depends-on): Likewise.
45202         * modules/vdprintf (Depends-on): Likewise.
45203         * modules/vdprintf-posix (Depends-on): Likewise.
45204         * modules/vfprintf-posix (Depends-on): Likewise.
45205         * modules/vprintf-posix (Depends-on): Likewise.
45206         * modules/vsnprintf (Depends-on): Likewise.
45207         * modules/vsnprintf-posix (Depends-on): Likewise.
45208         * modules/vsprintf-posix (Depends-on): Likewise.
45209         * modules/wcrtomb (Depends-on): Likewise.
45210         * modules/wcscasecmp (Depends-on): Likewise.
45211         * modules/wcscspn (Depends-on): Likewise.
45212         * modules/wcsdup (Depends-on): Likewise.
45213         * modules/wcsncasecmp (Depends-on): Likewise.
45214         * modules/wcsnrtombs (Depends-on): Likewise.
45215         * modules/wcspbrk (Depends-on): Likewise.
45216         * modules/wcsrtombs (Depends-on): Likewise.
45217         * modules/wcsspn (Depends-on): Likewise.
45218         * modules/wcsstr (Depends-on): Likewise.
45219         * modules/wcstok (Depends-on): Likewise.
45220         * modules/wcswidth (Depends-on): Likewise.
45221         * modules/wctob (Depends-on): Likewise.
45222         * modules/wctomb (Depends-on): Likewise.
45223         * modules/wctype (Depends-on): Likewise.
45224         * modules/wcwidth (Depends-on): Likewise.
45225         * modules/write (Depends-on): Likewise.
45227 2011-05-03  Bruno Haible  <bruno@clisp.org>
45229         Support for conditional dependencies.
45230         * doc/gnulib.texi (Module description): Document the syntax of
45231         conditional dependencies.
45232         * gnulib-tool: New option --conditional-dependencies.
45233         (func_usage): Document it.
45234         (cond_dependencies): New variable.
45235         (func_get_automake_snippet_conditional,
45236         func_get_automake_snippet_unconditional): New functions, extracted from
45237         func_get_automake_snippet.
45238         (func_get_automake_snippet): Use them.
45239         (sed_first_32_chars): New variable.
45240         (func_module_shellfunc_name): New function.
45241         (func_module_shellvar_name): New function.
45242         (func_module_conditional_name): New function.
45243         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
45244         func_cond_module_condition): New functions.
45245         (func_modules_transitive_closure): Add support for conditional
45246         dependencies.
45247         (func_emit_lib_Makefile_am): For a conditional module, enclose the
45248         conditional automake snippet in an automake conditional.
45249         (func_emit_autoconf_snippets): Emit shell functions that contain the
45250         code for conditional modules.
45251         (func_import, func_create_testdir): Update specification.
45253 2011-05-03  Eric Blake  <eblake@redhat.com>
45255         test-getaddrinfo: report error information
45256         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
45258 2011-05-03  Jim Meyering  <meyering@redhat.com>
45260         bootstrap: avoid build failure when $GZIP is set
45261         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
45262         program name.  If defined at all, it is supposed to list gzip options.
45263         Reported by Alan Curry in http://debbugs.gnu.org/8609
45265 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
45267         readme-release: new module with release instructions
45268         * modules/readme-release: New module.
45269         * top/README-release: New file, from coreutils, grep, diffutils.
45270         * MODULES.html.sh (Support for maintaining and releasing): Add it.
45272 2011-05-02  Eric Blake  <eblake@redhat.com>
45274         fflush: also replace fclose when fixing fflush
45275         * modules/fflush (Depends-on): Add fclose.
45276         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
45277         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
45278         memstreams with no backing fd.
45279         * doc/posix-functions/fclose.texi (fclose): Document the use of
45280         fflush module to fix the bug.
45281         * tests/test-fclose.c (main): Relax test when fclose is used in
45282         isolation.
45284         fclose: add some tests
45285         * modules/fclose-tests: New test module.
45286         * tests/test-fclose.c: New file.
45287         * doc/posix-functions/fclose.texi (fclose): Document the bug.
45289         fclose: reduced dependencies
45290         * modules/fclose (Depends-on): Switch from fflush/fseeko to
45291         simpler lseek.
45292         * lib/fclose.c (rpl_fclose): Likewise.
45293         Reported by Simon Josefsson.
45295         exit: drop remaining clients
45296         * modules/argmatch (Depends-on): Replace exit with stdlib.
45297         * modules/copy-file (Depends-on): Likewise.
45298         * modules/execute (Depends-on): Likewise.
45299         * modules/exitfail (Depends-on): Likewise.
45300         * modules/obstack (Depends-on): Likewise.
45301         * modules/pagealign_alloc (Depends-on): Likewise.
45302         * modules/pipe-filter-gi (Depends-on): Likewise.
45303         * modules/pipe-filter-ii (Depends-on): Likewise.
45304         * modules/savewd (Depends-on): Likewise.
45305         * modules/spawn-pipe (Depends-on): Likewise.
45306         * modules/wait-process (Depends-on): Likewise.
45307         * modules/xsetenv (Depends-on): Likewise.
45308         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
45309         * modules/git-merge-changelog (Depends-on): Likewise.
45310         * modules/long-options (Depends-on): Likewise.
45311         * modules/pt_chown (Depends-on): Likewise.
45312         * modules/sysexits (Depends-on): Likewise.
45314         freading: relax license from LGPLv3+ to LGPLv2+
45315         * modules/freading (License): Relax LGPL version.
45317 2011-05-02  Bruno Haible  <bruno@clisp.org>
45319         fchdir: Remove unused dependencies.
45320         * modules/fchdir (Depends-on): Remove include_next.
45322 2011-05-02  Bruno Haible  <bruno@clisp.org>
45324         gnulib-tool: Refactor.
45325         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
45326         from func_emit_autoconf_snippets.
45327         (func_emit_autoconf_snippets): Use it.
45329 2011-05-02  Simon Josefsson  <simon@josefsson.org>
45331         * NEWS: Document removal of 'exit'.
45332         * modules/exit: Remove file.
45334 2011-05-01  Bruno Haible  <bruno@clisp.org>
45336         Update DEPENDENCIES.
45337         * DEPENDENCIES (gettext): Recommend the newest release.
45338         Reported by Simon Josefsson.
45340 2011-05-01  Bruno Haible  <bruno@clisp.org>
45342         gnulib-tool: Reduce code duplication.
45343         * gnulib-tool (func_emit_autoconf_snippets): New function.
45344         (func_import, func_create_testdir): Use it.
45346 2011-04-30  Eric Blake  <eblake@redhat.com>
45348         fclose: don't fail on non-seekable input stream
45349         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
45350         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
45351         since fflush is allowed to fail in that case.
45353 2011-04-30  Bruno Haible  <bruno@clisp.org>
45355         dup3: cleanup
45356         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
45358 2011-04-30  Bruno Haible  <bruno@clisp.org>
45360         netdb: Make it work in C++ mode.
45361         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
45362         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
45363         module.
45364         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
45365         gl_MODULE_INDICATOR_FOR_TESTS.
45366         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
45367         * modules/netdb-c++-tests: New file.
45368         * tests/test-netdb-c++.cc: New file.
45370 2011-04-30  Bruno Haible  <bruno@clisp.org>
45372         New modules 'vfscanf', 'vscanf'.
45373         * modules/vfscanf: New file.
45374         * modules/vscanf: New file.
45375         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
45376         here.
45377         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
45378         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
45380 2011-04-30  Bruno Haible  <bruno@clisp.org>
45382         passfd: Add comments.
45383         * lib/passfd.c: Add comments about platforms.
45385 2011-04-30  Bruno Haible  <bruno@clisp.org>
45387         sys_uio: Make <sys/uio.h> self-contained.
45388         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
45389         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
45391 2011-04-30  Bruno Haible  <bruno@clisp.org>
45393         sys_socket: Ensure 'struct iovec' definition.
45394         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
45395         <sys/socket.h>.
45396         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
45398 2011-04-30  Bruno Haible  <bruno@clisp.org>
45400         sys_uio: Protect definition of 'struct iovec'.
45401         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
45402         it as a C struct.
45404 2011-04-30  Bruno Haible  <bruno@clisp.org>
45406         manywarnings: fix indentation
45407         * m4/manywarnings.m4: Indent by 2 spaces consistently.
45409 2011-04-30  Pádraig Brady  <P@draigBrady.com>
45411         manywarnings: add -Wno-missing-field-initializers if needed.
45412         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
45413         option if it's needed to allow initialization with { 0, }
45415 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
45417         announce-gen: cosmetic improvement
45418         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
45420 2011-04-29  Jim Meyering  <meyering@redhat.com>
45422         vc-list-files: indent with spaces, not TABs
45423         * build-aux/vc-list-files: Convert leading TABs to spaces,
45424         to match the style of most other files in gnulib.
45426         announce-gen: indent with spaces, not TABs
45427         * build-aux/announce-gen: Convert all TABs to spaces, to match
45428         the style of most other files in gnulib.
45430 2011-04-29  Eric Blake  <eblake@redhat.com>
45432         quotearg: avoid uninitialized variable use
45433         * lib/quotearg.c (quoting_options_from_style): Initialize
45434         remaining fields, and ensure that custom styles are only used via
45435         quoting_options rather than quoting_style.
45437 2011-04-29  Jim Meyering  <meyering@redhat.com>
45439         maint.mk: remove unused VC-tag variable
45440         * top/maint.mk (VC-tag): Remove unused variable.
45442 2011-04-29  Bruno Haible  <bruno@clisp.org>
45444         netdb: fix gai_strerror replacements
45445         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
45446         * modules/netdb: Substitute it.
45448 2011-04-29  Jim Meyering  <meyering@redhat.com>
45450         test-getcwd.c: avoid new set-but-not-used warning
45451         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
45452         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
45453         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
45454         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
45456         test-hash.c: avoid a new shadowing warning
45457         * tests/test-hash.c (main): Don't shadow "dup".
45459 2011-04-28  Eric Blake  <eblake@redhat.com>
45461         getaddrinfo: fix gai_strerror signature
45462         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
45463         and work around mingw with UNICODE defined.
45464         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
45465         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
45466         * modules/netdb (Makefile.am): Substitute it.
45467         * lib/netdb.in.h (gai_strerror): Declare replacement.
45468         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
45469         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
45470         the fix.
45472         getsockopt: avoid compiler warning
45473         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
45474         Reported by Matthias Bolte.
45476         tests: drop unused link dependency
45477         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
45478         * modules/dirent-safer-tests (Makefile.am): Likewise.
45479         * modules/fdopendir-tests (Makefile.am): Likewise.
45480         * modules/mkfifoat-tests (Makefile.am): Likewise.
45481         * modules/openat-safer-tests (Makefile.am): Likewise.
45482         * modules/openat-tests (Makefile.am): Likewise.
45483         * modules/readlinkat-tests (Makefile.am): Likewise.
45484         * modules/symlinkat-tests (Makefile.am): Likewise.
45485         * modules/linkat-tests (Makefile.am): Likewise.
45486         (Depends-on): Switch to filenamecat-lgpl.
45487         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
45488         LIBINTL.
45489         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
45490         * tests/test-linkat.c (main): Don't require xalloc.
45492         hash, mgetgroups: drop xalloc dependency
45493         * lib/hash.c (includes): Adjust includes.
45494         * lib/mgetgroups.c (includes): Likewise.
45495         (xgetgroups): Move...
45496         * lib/xgetgroups.c: ...to new file.
45497         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
45498         * modules/xgetgroups: New file, split from...
45499         * modules/mgetgroups: ...here.
45500         (Depends-on): Add xalloc-oversized.
45501         * modules/hash (Depends-on): Likewise.
45502         * modules/hash-tests (Depends-on): Drop xalloc.
45503         (test_hash_LDADD): Drop unused library.
45504         * tests/test-hash.c (main): Break xalloc dependency.
45505         (includes): Drop unused include.
45507         xalloc-oversized: new module
45508         * modules/xalloc-oversized: New module.
45509         * modules/xalloc (Depends-on): Add it.
45510         * lib/xalloc.h (xalloc_oversized): Move...
45511         * lib/xalloc-oversized.h: ...into new file.
45513         utimecmp: drop dependency on xmalloc
45514         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
45515         due to memory pressure.
45516         * modules/utimecmp (Depends-on): Drop xalloc.
45518 2011-04-27  Eric Blake  <eblake@redhat.com>
45520         getcwd: fix mingw bugs
45521         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
45522         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
45523         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
45525 2011-04-27  Bruno Haible  <bruno@clisp.org>
45527         mkstemps: Ensure declaration on MacOS X 10.5.
45528         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
45529         * doc/glibc-functions/mkstemps.texi: Document header file problem on
45530         MacOS X.
45532 2011-04-27  Bruno Haible  <bruno@clisp.org>
45534         mkstemp: More documentation.
45535         * doc/posix-functions/mkstemp.texi: Document header file problem on
45536         MacOS X.
45538 2011-04-27  Bruno Haible  <bruno@clisp.org>
45540         mkstemp: Tweak configure message when cross-compiling.
45541         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
45542         result as a guess.
45544 2011-04-27  Bruno Haible  <bruno@clisp.org>
45546         clean-temp: Clarify what it does.
45547         * lib/clean-temp.h: Add more comments.
45548         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
45549         module.
45550         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
45551         * doc/glibc-functions/mkstemps.texi: Likewise.
45552         * doc/glibc-functions/mkostemps.texi: Likewise.
45554 2011-04-27  Eric Blake  <eblake@redhat.com>
45556         fchdir: avoid extra chdir and fix test
45557         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
45558         getcwd-lgpl.
45559         * lib/fchdir.c (get_name): Any absolute name will do; it does not
45560         have to be canonical.
45561         (canonicalize_file_name): Drop unused macro.
45562         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
45564         filenamecat-lgpl: fix licence
45565         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
45566         when it was first created.
45568         linkat, renameat: add missing dependency
45569         * modules/linkat (Depends-on): Require getcwd-lgpl.
45570         * modules/renameat (Depends-on): Likewise.
45572         tests: reduce dependencies
45573         * tests/test-linkat.c (main): Use lighter-weight getcwd.
45574         * tests/test-renameat.c (main): Likewise.
45575         * modules/linkat-tests (Depends-on): Relax dependency.
45576         * modules/renameat-tests (Depends-on): Likewise.
45577         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
45578         dependency explicit.
45580         save-cwd: reduce default dependency
45581         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
45582         * lib/save-cwd.c: Update comments.
45583         * NEWS: Document the semantic change.
45585         getcwd: enhance tests
45586         * tests/test-getcwd-lgpl.c: New file, taken from...
45587         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
45588         repeat long path stress tests from m4 probe.
45589         * modules/getcwd-lgpl-tests: New module.
45590         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
45591         * m4/getcwd-abort-bug.m4: Update comment.
45592         * m4/getcwd-path-max.m4: Likewise.
45594         getcwd-lgpl: new module
45595         * modules/getcwd-lgpl: New module.
45596         * lib/getcwd-lgpl.c: New file.
45597         * doc/posix-functions/getcwd.texi (getcwd): Document it.
45598         * MODULES.html.sh (lacking POSIX:2008): Likewise.
45599         * modules/getcwd (configure.ac): Set C witness.
45600         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
45602         getcwd: tweak comments
45603         * m4/getcwd-abort-bug.m4: Fix comments.
45604         * m4/getcwd-path-max.m4: Likewise.
45605         * m4/getcwd.m4: Likewise.
45607 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
45608         and Eric Blake  <eblake@redhat.com>
45610         mkstemp: replace if system version uses wrong permissions
45611         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
45612         read/write mode bits set in file created by mkstemp.
45613         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
45615 2011-04-27  Eric Blake  <eblake@redhat.com>
45617         passfd: avoid compiler warning
45618         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
45619         Reported by Laine Stump.
45621 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
45623         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
45624         required by the NetBSD (and perhaps other 4.4BSD derived) join.
45626 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
45627         and Eric Blake  <eblake@redhat.com>
45629         mkstemp: mention clean-temp module
45630         * lib/mkstemp.c: Add comment.
45631         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
45633 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
45635         inttypes: also provide default values for 32-bit tests
45636         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
45637         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
45639 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
45641         strtoumax: remove dependency on strtoimax
45642         This is like the strtoull change of yesterday.
45643         * modules/strtoumax (Files): Add lib/strtoimax.c.
45644         (Depends-on): Remove strtoimax and add verify.
45646         inttypes-incomplete: new module
45647         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
45648         all but the PRI* and SCN* parts of gl_INTTYPES_H.
45649         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
45650         of gl_INTTYPES_H.
45651         (gl_INTTYPES_H): Rewrite in terms of these new macros.
45652         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
45653         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
45654         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
45655         * modules/strtoumax, modules/xstrtol (Depends-on):
45656         Depend on inttypes-incomplete, not inttypes.
45657         * modules/inttypes-incomplete: New module, containing the contents
45658         of the old modules/inttypes module, except that the Files: section
45659         omits m4/inttypes-pri.m4, and the configure.ac section invokes
45660         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
45661         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
45662         (Depends-on): Depend only on inttypes-incomplete.
45663         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
45665         inttypes: omit now-redundant strtoimax and strtoumax work
45666         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
45667         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
45669         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
45670         This supports apps that need pointers to strtoimax and strtoumax,
45671         and ports to HP-UX 11.00 64.bit, which has macros that expand to
45672         nonexistent functions.  See
45673         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00241.html>
45674         et seq.
45675         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
45676         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
45677         a macro.
45678         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
45680 2011-04-25  Simon Josefsson  <simon@josefsson.org>
45682         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
45684 2011-04-25  Bruno Haible  <bruno@clisp.org>
45686         strtol, strtoul: Mark modules as obsolete.
45687         * modules/strtol (Status, Notice): New sections.
45688         * modules/strtoul (Status, Notice): New sections.
45690 2011-04-25  Bruno Haible  <bruno@clisp.org>
45692         strtod: Remove check for strtod, unless supporting old platforms.
45693         * modules/strtod-obsolete: New file.
45694         * m4/strtod-obsolete.m4: New file.
45695         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
45696         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
45697         * modules/strtod (Depends-on): Add strtod-obsolete.
45698         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
45700 2011-04-25  Bruno Haible  <bruno@clisp.org>
45702         strcase: Make module obsolete.
45703         * modules/strcase (Status, Notice): New sections.
45705 2011-04-25  Bruno Haible  <bruno@clisp.org>
45707         dup2: Remove check for dup2, unless supporting old obsolete platforms.
45708         * modules/dup2-obsolete: New file.
45709         * m4/dup2-obsolete.m4: New file.
45710         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
45711         gl_FUNC_DUP2_OBSOLETE is not also defined.
45712         * modules/dup2 (Depends-on): Add dup2-obsolete.
45713         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
45715 2011-04-25  Bruno Haible  <bruno@clisp.org>
45717         strnlen: Avoid memchr related link error on old obsolete platforms.
45718         * modules/memchr-obsolete: New file.
45719         * m4/memchr-obsolete.m4: New file.
45720         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
45721         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
45722         * modules/memchr (Depends-on): Add memchr-obsolete.
45723         * modules/strnlen (Depends-on): Likewise.
45724         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
45726 2011-04-25  Jim Meyering  <meyering@redhat.com>
45728         maint.mk: makefile_at_at_check extend and clean up
45729         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
45730         in addition to */Makefile.am.
45731         Exempt legitimate uses of @VAR@ notation, e.g.,
45732         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
45733         Remove obsolete coreutils-specific comment.
45734         Prompted by discussion here:
45735         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
45737 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
45739         strtoul: remove dependency on strtol
45740         This is so that 'configure' need not check for strtol merely because
45741         the application needs strtoul.
45742         * modules/strtoul (Files): Add lib/strtol.c.
45743         (Depends-on): Remove strtol.
45745         strtoull: remove dependency on strtoul
45746         This is like the strtoll change.
45747         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
45748         (Depends-on): Remove strtoul.
45750         strtoll: remove dependency on strtol
45751         This is so that 'configure' need not check for strtol merely because
45752         the application needs strtoll.
45753         * modules/strtoll (Files): Add lib/strtol.c.
45754         (Depends-on): Remove strtol.
45756 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
45758         inttypes: Move some configure check to module 'imaxdiv'.
45759         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
45760         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
45761         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
45763 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
45765         inttypes: Move some configure check to module 'imaxabs'.
45766         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
45767         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
45768         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
45770 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
45772         inttypes: Remove configure tests that are not needed since 2009-12-31.
45773         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
45774         gl_cv_header_working_inttypes_h.
45776 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
45778         * modules/strnlen (Depends-on): Remove memchr.
45779         The strnlen implementation doesn't need the memchr module's fixes; see
45780         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00237.html>.
45782         strtol: remove dependency on wchar
45783         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
45784         * modules/strtol (Depends-on): Remove wchar.
45786 2011-04-21  Eric Blake  <eblake@redhat.com>
45788         passfd: fix test regression on Linux
45789         * modules/passfd-tests (configure.ac): Correct socketpair check.
45791         passfd: speed up configure and drop unused code
45792         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
45793         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
45794         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
45795         Instead of probing at configure for unix_scm_rights_bsd44_way,
45796         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
45797         check to a struct member probe.
45798         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
45799         (sendfd, recvfd): Update preprocessor checks.
45800         * modules/passfd (Files): Reflect rename, and drop unused file.
45801         (Depends-on): Drop unused dependency.
45803         passfd: allow compilation on mingw
45804         * modules/sys_socket (Depends-on): Add sys_uio.
45805         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
45806         iovec and a minimal struct msghdr.
45807         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
45808         * tests/test-sys_socket.c (main): Enhance test.
45809         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
45810         guaranteed to provide what we need.
45811         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
45812         * modules/passfd-tests (Depends-on): Add sys_wait.
45813         * tests/test-passfd.c (main): Skip test on mingw, for now.
45814         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
45815         partial 'struct msghdr' implementation.
45817         sys_uio: new module
45818         * modules/sys_uio: New module.
45819         * modules/sys_uio-tests: Likewise.
45820         * lib/sys_uio.in.h: New file.
45821         * m4/sys_uio_h.m4: Likewise.
45822         * tests/test-sys_uio.c: Likewise.
45823         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
45824         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
45826 2011-04-20  Jim Meyering  <meyering@redhat.com>
45828         useless-if-before-free: avoid false-positive
45829         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
45830         disjunct so that it too requires a terminating ";".  Without that,
45831         this script would identify as useless one statement from gcc that
45832         was not:
45833           if (aligned_ptr)
45834             free (((void **) aligned_ptr) [-1]);
45836 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
45838         doc: update users.txt.
45839         * users.txt: Add barcode.
45841 2011-04-19  Bruno Haible  <bruno@clisp.org>
45843         ioctl: Remove link dependency on native Windows.
45844         * lib/fd-hook.h: Renamed from lib/close-hook.h.
45845         (gl_close_fn, gl_ioctl_fn): New types.
45846         (struct fd_hook): Renamed from struct close_hook. Change type of
45847         private_close_fn field. Add private_ioctl_fn field.
45848         (close_hook_fn): Add parameter for primary close method.
45849         (execute_close_hooks, execute_all_close_hooks): Likewise.
45850         (ioctl_hook_fn): New type.
45851         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
45852         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
45853         argument.
45854         (unregister_fd_hook): Renamed from unregister_close_hook.
45855         * lib/fd-hook.c: Renamed from lib/close-hook.c.
45856         Don't include <unistd.h>.
45857         (close): Remove undef.
45858         (anchor): Update.
45859         (execute_close_hooks): Add argument for primary close method.
45860         (execute_all_close_hooks): Likewise.
45861         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
45862         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
45863         argument. Allow each argument to be NULL.
45864         (unregister_fd_hook): Renamed from unregister_close_hook.
45865         * lib/close.c (rpl_close): Pass 'close' function pointer to
45866         execute_all_close_hooks.
45867         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
45868         (primary_ioctl): New function.
45869         (ioctl): Don't call ioctlsocket here. Instead, call
45870         execute_all_ioctl_hooks.
45871         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
45872         close method.
45873         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
45874         (fd_sockets_hook): Renamed from close_sockets_hook.
45875         (gl_sockets_startup, gl_sockets_cleanup): Update.
45876         * modules/fd-hook: Renamed from modules/close-hook. Update.
45877         * modules/close (Depends-on): Add fd-hook, remove close-hook.
45878         * modules/sockets (Depends-on): Likewise.
45879         * modules/ioctl (Depends-on): Add fd-hook.
45880         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
45881         GNULIB_SOCKET.
45883 2011-04-19  Bruno Haible  <bruno@clisp.org>
45885         Move the support of O_NONBLOCK in open() to the 'open' module.
45886         * modules/nonblocking (Depends-on): Remove 'open'.
45887         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
45888         gl_cv_have_open_O_NONBLOCK.
45889         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
45890         O_NONBLOCK support.
45891         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
45893 2011-04-17  Bruno Haible  <bruno@clisp.org>
45895         pipe2: Simplify code.
45896         * lib/pipe2.c (pipe2): Reduce code duplication.
45898 2011-04-17  Bruno Haible  <bruno@clisp.org>
45900         nonblocking: Add comment.
45901         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
45903 2011-04-17  Bruno Haible  <bruno@clisp.org>
45905         nonblocking: Add tests for sockets.
45906         * tests/test-nonblocking-socket.sh: New file.
45907         * tests/test-nonblocking-socket-main.c: New file.
45908         * tests/test-nonblocking-socket-child.c: New file.
45909         * tests/test-nonblocking-socket.h: New file.
45910         * tests/socket-server.h: New file.
45911         * tests/socket-client.h: New file.
45912         * modules/nonblocking-socket-tests: New file.
45913         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
45915 2011-04-17  Bruno Haible  <bruno@clisp.org>
45917         nonblocking: Add tests for pipes.
45918         * tests/test-nonblocking-pipe.sh: New file.
45919         * tests/test-nonblocking-pipe-main.c: New file.
45920         * tests/test-nonblocking-pipe-child.c: New file.
45921         * tests/test-nonblocking-pipe.h: New file.
45922         * tests/test-nonblocking-writer.h: New file.
45923         * tests/test-nonblocking-reader.h: New file.
45924         * tests/test-nonblocking-misc.h: New file.
45925         * modules/nonblocking-pipe-tests: New file.
45926         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
45928 2011-04-16  Bruno Haible  <bruno@clisp.org>
45930         gettext: Clarify the needed programmer actions.
45931         * modules/gettext (Notice): New field.
45932         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
45934 2011-04-16  Bruno Haible  <bruno@clisp.org>
45936         strchrnul: Tweak last commit.
45937         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
45938         bug.
45939         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
45940         as in _GL_FUNCDECL_SYS.
45941         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
45942         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
45944 2011-04-15  Eric Blake  <eblake@redhat.com>
45946         strchrnul: work around cygwin bug
45947         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
45948         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
45949         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
45950         * modules/string (Makefile.am): Substitute it.
45951         * lib/string.in.h (strchrnul): Use it.
45953 2011-04-15  Bruno Haible  <bruno@clisp.org>
45955         Don't require lib/stdio-write.c when only module 'stdio' is used.
45956         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
45957         invocation.
45958         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
45960 2011-04-14  Bruno Haible  <bruno@clisp.org>
45962         Support non-blocking pipe I/O in read() on native Windows.
45963         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
45964         (read): New declaration.
45965         * lib/read.c: New file.
45966         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
45967         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
45968         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
45969         vscanf): New declarations.
45970         * lib/stdio-read.c: New file.
45971         * m4/read.m4: New file.
45972         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
45973         REPLACE_READ.
45974         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
45975         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
45976         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
45977         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
45978         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
45979         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
45980         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
45981         * modules/read: New file.
45982         * modules/nonblocking (Files): Add lib/stdio-read.c.
45983         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
45984         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
45985         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
45986         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
45987         * modules/pread (Depends-on): Add read.
45988         * modules/safe-read (Depends-on): Likewise.
45989         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
45990         gets, scanf, vfscanf, vscanf): Verify signatures.
45991         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
45992         problem with non-blocking pipes.
45993         * doc/posix-functions/fgetc.texi: Likewise.
45994         * doc/posix-functions/fgets.texi: Likewise.
45995         * doc/posix-functions/fread.texi: Likewise.
45996         * doc/posix-functions/fscanf.texi: Likewise.
45997         * doc/posix-functions/getc.texi: Likewise.
45998         * doc/posix-functions/getchar.texi: Likewise.
45999         * doc/posix-functions/gets.texi: Likewise.
46000         * doc/posix-functions/scanf.texi: Likewise.
46001         * doc/posix-functions/vfscanf.texi: Likewise.
46002         * doc/posix-functions/vscanf.texi: Likewise.
46004 2011-04-14  Bruno Haible  <bruno@clisp.org>
46006         Support non-blocking pipe I/O in write() on native Windows.
46007         * lib/write.c (rpl_write): Split a write request that failed merely
46008         because the byte count was larger than the pipe buffer's size.
46009         * doc/posix-functions/write.texi: Mention the problem with large byte
46010         counts.
46012 2011-04-14  Bruno Haible  <bruno@clisp.org>
46014         wchar: Ensure that wchar_t gets defined on uClibc.
46015         * lib/wchar.in.h: On uClibc, include <stddef.h>.
46016         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
46018 2011-04-13  Bruno Haible  <bruno@clisp.org>
46020         safe-write, full-read: Avoid unnecessary compilation units.
46021         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
46022         (Depends-on): Remove safe-read. Add ssize_t.
46023         * modules/full-read (Files): Add lib/full-write.c.
46024         (Depends-on): Add full-write.
46026 2011-04-13  Bruno Haible  <bruno@clisp.org>
46028         Support non-blocking pipe I/O and SIGPIPE in pwrite().
46029         * modules/pwrite (Depends-on): Add 'write'.
46031 2011-04-13  Bruno Haible  <bruno@clisp.org>
46033         Support non-blocking pipe I/O in write() on native Windows.
46034         * lib/unistd.in.h (write): Enable replacement also if
46035         GNULIB_UNISTD_H_NONBLOCKING is 1.
46036         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
46037         (rpl_write): When failing to write on a non-blocking pipe, change
46038         errno from ENOSPC to EAGAIN.
46039         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
46040         putchar, puts, vfprintf, vprintf): Enable replacement also if
46041         GNULIB_STDIO_H_NONBLOCKING is 1.
46042         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
46043         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
46044         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
46045         CALL_WITH_SIGPIPE_EMULATION.
46046         (CALL_WITH_SIGPIPE_EMULATION): Use them.
46047         * m4/nonblocking.m4: New file.
46048         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
46049         for non-blocking I/O support.
46050         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46051         GNULIB_UNISTD_H_NONBLOCKING.
46052         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
46053         required for non-blocking I/O support.
46054         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
46055         * modules/nonblocking (Files): Add m4/nonblocking.m4,
46056         lib/stdio-write.c, m4/asm-underscore.m4.
46057         (Depends-on): Add stdio, unistd.
46058         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
46059         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
46060         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
46061         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
46062         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
46063         problem with non-blocking pipes.
46064         * doc/posix-functions/fputc.texi: Likewise.
46065         * doc/posix-functions/fputs.texi: Likewise.
46066         * doc/posix-functions/fwrite.texi: Likewise.
46067         * doc/posix-functions/printf.texi: Likewise.
46068         * doc/posix-functions/putc.texi: Likewise.
46069         * doc/posix-functions/putchar.texi: Likewise.
46070         * doc/posix-functions/puts.texi: Likewise.
46071         * doc/posix-functions/vfprintf.texi: Likewise.
46072         * doc/posix-functions/vprintf.texi: Likewise.
46073         * doc/posix-functions/write.texi: Likewise.
46075 2011-04-10  Jim Meyering  <meyering@redhat.com>
46077         maint.mk: prohibit doubled words
46078         Detect them also when they're separated by a newline.
46079         There are 3 ways to customize it:
46080           - disable the test on a per file basis, as usual with rules using
46081             $(VC_LIST_EXCEPT)
46082           - replace the default doubled-word-selecting regexp (affects all files)
46083           - ignore a particular file-vs-doubled-word match
46084         I nearly used that last one to ignore the "is is" match in
46085         coreutils' NEWS file, since the text was "ls -is is ..."
46086         To do that, I would have added this line to cfg.mk:
46087           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
46088         but it would have ignored any "is is" match in NEWS.
46089         Low probability, but still...
46090         Instead, I changed the text, slightly:
46091           -  ls -is is now consistent with ls -lis in ignoring values returned
46092           +  "ls -is" is now consistent with ls -lis in ignoring values returned
46093         * top/maint.mk (prohibit_double_word_RE_): Provide default.
46094         (prohibit_doubled_word_): Define.
46095         (sc_prohibit_doubled_word): New rule.
46096         (sc_prohibit_the_the): Remove.  Subsumed by the above.
46098 2011-04-10  Jim Meyering  <meyering@redhat.com>
46100         maint: fix doubled-word typo in comment
46101         * m4/gethostname.m4: s/is is/it is/
46102         * m4/getdomainname.m4: Likewise.
46104 2011-04-10  Jim Meyering  <meyering@redhat.com>
46106         maint: remove doubled word: s/it it/it/
46107         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
46109 2011-04-10  Jim Meyering  <meyering@redhat.com>
46111         maint.mk: remove useless semicolon and backslash
46112         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
46113         semicolon and backslash.
46115 2011-04-10  Bruno Haible  <bruno@clisp.org>
46117         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
46118         * modules/stdint-tests (Depends-on): Add wchar.
46120 2011-04-10  Jim Meyering  <meyering@redhat.com>
46122         maint: remove doubled words in comments, e.g., s/a a/a/
46123         * lib/strptime.c (day_of_the_week): s/the the/the/
46124         * tests/test-chown.h (test_chown): s/a a/a/
46126         test-chown.h: correct a cast
46127         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
46128         when the destination is a stat.st_gid.
46130 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
46132         getaddrinfo: Fix test for sa_len member.
46133         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
46134         include <sys/types.h> before <sys/socket.h>.
46136 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
46138         maint: change "can not" to "cannot"
46139         * doc/posix-functions/iconv.texi (iconv): This one crossed line
46140         boundaries.
46142 2011-04-09  Jim Meyering  <meyering@redhat.com>
46144         maint: change "a a" to "a"
46145         * tests/test-lchown.h (test_lchown): s/a a/a/
46147         maint.mk: prohibit \<the the\>
46148         * top/maint.mk (sc_prohibit_the_the): New rule.
46150         maint: fix "the the" in comment
46151         * lib/count-one-bits.h: s/the the/the/
46153         maint: change "can not" to "cannot"
46154         But do not change the occurrences in maintain.texi or in
46155         build-aux/po/Makefile.in.in, which I presume comes from gettext.
46156         * doc/gnulib-tool.texi: s/can not/cannot/
46157         * doc/posix-functions/accept.texi (accept): Likewise.
46158         * doc/posix-functions/socket.texi (socket): Likewise.
46159         * lib/mbrtowc.c: Likewise.
46161         maint.mk: prohibit use of "can not"
46162         * top/maint.mk (sc_prohibit_can_not): New rule.
46163         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
46165 2011-04-09  Bruno Haible  <bruno@clisp.org>
46167         careadlinkat: Guard against misuse of careadlinkatcwd.
46168         * lib/careadlinkat.c: Include <stdlib.h>.
46169         (careadlinkatcwd): Check that the fd argument is as expected.
46171 2011-04-09  Bruno Haible  <bruno@clisp.org>
46173         careadlinkat: Use common coding style.
46174         * lib/careadlinkat.c: Move gnulib includes after system includes.
46176 2011-04-09  Bruno Haible  <bruno@clisp.org>
46178         careadlinkat: Clarify specification.
46179         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
46180         (careadlinkatcwd): Add comment.
46181         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
46183 2011-04-09  Bruno Haible  <bruno@clisp.org>
46185         areadlinkat: Avoid link error on many platforms.
46186         * modules/areadlinkat (Depends-on): Add areadlink.
46188 2011-04-09  Bruno Haible  <bruno@clisp.org>
46190         allocator, careadlinkat: Fix double-inclusion guard.
46191         * lib/allocator.h: Fix double-inclusion guard.
46192         * lib/careadlinkat.h: Likewise.
46194 2011-04-09  Bruno Haible  <bruno@clisp.org>
46196         relocatable-prog-wrapper: Update after module 'areadlink' changed.
46197         * lib/relocwrapper.c: Update dependencies hierarchy.
46198         * build-aux/install-reloc: Update list of files to be compiled.
46199         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
46200         lib/allocator.[hc].
46202 2011-04-08  Eric Blake  <eblake@redhat.com>
46204         strftime: silence gnulib-tool warning
46205         * modules/strftime-tests (Depends-on): Drop automatic dependency.
46207 2011-04-08  Bruno Haible  <bruno@clisp.org>
46209         verify: Fix syntax error with GCC 4.6 in C++ mode.
46210         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
46211         (HAVE_STATIC_ASSERT): New macro.
46212         (verify_true, verify): Use 'static_assert' if it is supported and
46213         '_Static_assert' is not supported.
46215 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
46217         allocator: New module.
46218         * modules/allocator, lib/allocator.c: New files.
46219         * lib/allocator.h (stdlib_allocator): New decl.
46220         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
46221         Remove.  Do not include <stdlib.h>.
46222         (careadlinkat): Use stdlib_allocator instead of rolling our own.
46223         * modules/careadlinkat (Files): Remove lib/allocator.h.
46224         (Depends-on): Add allocator.
46226         stdlib: let modules use system malloc, realloc
46227         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
46228         if !_GL_USE_STDLIB_ALLOC.
46229         (malloc, realloc): Limit this change to a smaller scope.
46231         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
46232         (malloc, realloc): Don't #undef; no longer needed.
46233         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
46234         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
46235         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
46236         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
46237         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
46238         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
46239         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
46240         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
46242         careadlinkat: rename members to avoid problem
46243         * lib/allocator.h (struct allocator): Rename members from
46244         malloc/realloc to allocate/reallocate, to avoid problems if malloc
46245         and realloc are #define'd.  Reported by Eric Blake in
46246         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00091.html>.
46247         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
46249 2011-04-08  Eric Blake  <eblake@redhat.com>
46251         nonblocking: reduce dependency
46252         * tests/test-nonblocking.c: Only test sockets when in use.
46253         * modules/nonblocking-tests (Depends-on): Drop socket.
46254         (Makefile.am): Link even if sockets are not present.
46255         * modules/pipe2-tests (Makefile.am): Likewise.
46256         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
46258         pipe2: fix O_NONBLOCK support on mingw
46259         * modules/pipe2 (Depends-on): Add nonblocking.
46260         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
46261         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
46262         * tests/test-nonblocking.c (main): Likewise.
46263         * modules/pipe2-tests (Makefile.am): Avoid link failure.
46265         fcntl-h: fix O_ACCMODE on cygwin
46266         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
46267         * lib/fcntl.in.h (O_ACCMODE): Fix it.
46269         pipe-filter: drop O_NONBLOCK workarounds
46270         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
46271         * modules/pipe-filter-ii (Depends-on): Likewise.
46272         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
46274         nonblocking: provide O_NONBLOCK for mingw
46275         * modules/nonblocking (Depends-on): Add open.
46276         (configure.ac): Set new witness macro.
46277         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
46278         * modules/fcntl-h (Makefile.am): Substitute it.
46279         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
46280         nonblocking module is in use.
46281         * lib/nonblocking.c: Adjust portability test.
46282         * lib/open.c (open): Don't let native open see gnulib flag.
46283         * tests/test-fcntl-h.c (main): Enhance test.
46284         * tests/test-open.h (test_open): Likewise.
46285         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
46287         careadlinkat: fix compilation error on mingw
46288         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
46289         within struct allocator.
46291 2011-04-06  Eric Blake  <eblake@redhat.com>
46293         binary-io: relicense under LGPLv2+
46294         * modules/binary-io (License): Relax to LGPLv2+.
46295         Requested for libvirt, and required by pipe2.
46297 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
46299         verify: use _Static_assert if available
46300         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
46301         (verify_true, verify): Use it if available.  This generates better
46302         diagnostics with GCC 4.6.0 and later.
46304 2011-04-05  Bruno Haible  <bruno@clisp.org>
46306         Remove leftover generated .h files after config.status changed.
46308         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
46309         GL_GENERATE_ALLOCA_H.
46310         * modules/alloca-opt (Makefile.am): Remove alloca.h if
46311         GL_GENERATE_ALLOCA_H evaluates to false.
46313         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
46314         GL_GENERATE_ARGZ_H.
46315         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
46316         evaluates to false.
46318         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
46319         GL_GENERATE_BYTESWAP_H.
46320         * modules/byteswap (Makefile.am): Remove byteswap.h if
46321         GL_GENERATE_BYTESWAP_H evaluates to false.
46323         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
46324         GL_GENERATE_ERRNO_H.
46325         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
46326         evaluates to false.
46328         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
46329         GL_GENERATE_FLOAT_H.
46330         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
46331         evaluates to false.
46333         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
46334         GL_GENERATE_FNMATCH_H.
46335         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
46336         GL_GENERATE_FNMATCH_H evaluates to false.
46338         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
46339         GL_GENERATE_GLOB_H.
46340         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
46341         evaluates to false.
46343         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
46344         automake conditional GL_GENERATE_ICONV_H.
46345         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
46346         evaluates to false.
46348         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
46349         GL_GENERATE_NETINET_IN_H.
46350         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
46351         GL_GENERATE_NETINET_IN_H evaluates to false.
46353         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
46354         conditional GL_GENERATE_PTHREAD_H.
46355         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
46356         * modules/pthread (Makefile.am): Remove pthread.h if
46357         GL_GENERATE_PTHREAD_H evaluates to false.
46359         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
46360         GL_GENERATE_SCHED_H.
46361         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
46362         evaluates to false.
46364         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
46365         conditional GL_GENERATE_SELINUX_CONTEXT_H.
46366         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
46367         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
46369         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
46370         GL_GENERATE_STDARG_H.
46371         * modules/stdarg (Makefile.am): Remove stdarg.h if
46372         GL_GENERATE_STDARG_H evaluates to false.
46374         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
46375         GL_GENERATE_STDBOOL_H.
46376         * modules/stdbool (Makefile.am): Remove stdbool.h if
46377         GL_GENERATE_STDBOOL_H evaluates to false.
46379         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
46380         conditional GL_GENERATE_STDDEF_H.
46381         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
46382         * modules/stddef (Makefile.am): Remove stddef.h if
46383         GL_GENERATE_STDDEF_H evaluates to false.
46385         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
46386         GL_GENERATE_STDINT_H.
46387         * modules/stdint (Makefile.am): Remove stdint.h if
46388         GL_GENERATE_STDINT_H evaluates to false.
46390         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
46391         GL_GENERATE_SYSEXITS_H.
46392         * modules/sysexits (Makefile.am): Remove sysexits.h if
46393         GL_GENERATE_SYSEXITS_H evaluates to false.
46395         Reported by Karl Berry and Ralf Wildenhues.
46397 2011-04-05  Bruno Haible  <bruno@clisp.org>
46399         Ensure to rebuild generated .h files when config.status has changed.
46400         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
46401         config.status.
46402         * modules/ctype (Makefile.am): Likewise.
46403         * modules/dirent (Makefile.am): Likewise.
46404         * modules/errno (Makefile.am): Likewise.
46405         * modules/fcntl-h (Makefile.am): Likewise.
46406         * modules/float (Makefile.am): Likewise.
46407         * modules/getopt-posix (Makefile.am): Likewise.
46408         * modules/glob (Makefile.am): Likewise.
46409         * modules/iconv-h (Makefile.am): Likewise.
46410         * modules/inttypes (Makefile.am): Likewise.
46411         * modules/langinfo (Makefile.am): Likewise.
46412         * modules/locale (Makefile.am): Likewise.
46413         * modules/math (Makefile.am): Likewise.
46414         * modules/netdb (Makefile.am): Likewise.
46415         * modules/netinet_in (Makefile.am): Likewise.
46416         * modules/poll-h (Makefile.am): Likewise.
46417         * modules/pthread (Makefile.am): Likewise.
46418         * modules/pty (Makefile.am): Likewise.
46419         * modules/sched (Makefile.am): Likewise.
46420         * modules/search (Makefile.am): Likewise.
46421         * modules/selinux-h (Makefile.am): Likewise.
46422         * modules/signal (Makefile.am): Likewise.
46423         * modules/spawn (Makefile.am): Likewise.
46424         * modules/stdarg (Makefile.am): Likewise.
46425         * modules/stdbool (Makefile.am): Likewise.
46426         * modules/stddef (Makefile.am): Likewise.
46427         * modules/stdint (Makefile.am): Likewise.
46428         * modules/stdio (Makefile.am): Likewise.
46429         * modules/stdlib (Makefile.am): Likewise.
46430         * modules/string (Makefile.am): Likewise.
46431         * modules/strings (Makefile.am): Likewise.
46432         * modules/sys_file (Makefile.am): Likewise.
46433         * modules/sys_ioctl (Makefile.am): Likewise.
46434         * modules/sys_select (Makefile.am): Likewise.
46435         * modules/sys_socket (Makefile.am): Likewise.
46436         * modules/sys_stat (Makefile.am): Likewise.
46437         * modules/sys_time (Makefile.am): Likewise.
46438         * modules/sys_times (Makefile.am): Likewise.
46439         * modules/sys_utsname (Makefile.am): Likewise.
46440         * modules/sys_wait (Makefile.am): Likewise.
46441         * modules/sysexits (Makefile.am): Likewise.
46442         * modules/termios (Makefile.am): Likewise.
46443         * modules/time (Makefile.am): Likewise.
46444         * modules/unistd (Makefile.am): Likewise.
46445         * modules/wchar (Makefile.am): Likewise.
46446         * modules/wctype-h (Makefile.am): Likewise.
46447         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
46449 2011-04-05  Bruno Haible  <bruno@clisp.org>
46451         pipe2: Relicense under LGPLv2+.
46452         * modules/pipe2 (License): Change to LGPLv2+.
46453         Requested by Eric Blake, for libvirt.
46455 2011-04-05  Bruce Korb  <bkorb@gnu.org>
46457         bootstrap: compute gnulib_extra_files after updating build_aux
46458         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
46459         change build_aux or also supply gnulib_extra_files.  Handle correctly.
46461 2011-04-05  Eric Blake  <eblake@redhat.com>
46463         bootstrap: preserve git whitelist item sorting
46464         * build-aux/bootstrap (sort_patterns): New function.
46465         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
46467 2011-04-05  Simon Josefsson  <simon@josefsson.org>
46469         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
46470         sc_space_tab check.
46472 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
46474         areadlink, areadlinkat: rewrite in terms of careadlinkat
46475         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
46476         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
46477         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
46478         (malloc, realloc): Remove #undefs.
46479         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
46480         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
46481         readlink, ssize_t, stdint, unistd.
46482         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
46483         areadlink, stdint.
46485         careadlinkat: new module
46486         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
46487         * modules/careadlinkat: New files, written by me with
46488         a review and feedback from Ben Pfaff in
46489         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00008.html>.
46491 2011-04-01  Bruno Haible  <bruno@clisp.org>
46493         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
46494         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
46495         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
46496         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
46497         Reported by Bruce Korb <bruce.korb@gmail.com>.
46499 2011-04-01  Bruno Haible  <bruno@clisp.org>
46501         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
46502         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
46503         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
46504         * modules/wcpcpy (Depends-on): Add extensions.
46505         * modules/wcpncpy (Depends-on): Likewise.
46506         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
46507         systems.
46508         * doc/posix-functions/wcpncpy.texi: Likewise.
46509         * doc/posix-functions/wcwidth.texi: Likewise.
46511 2011-03-31  Eric Blake  <eblake@redhat.com>
46513         nonblocking: fix mingw test failures
46514         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
46515         non-blocking flag on regular file.
46516         (get_nonblocking_flag): Set errno on invalid fd.
46517         * tests/test-nonblocking.c (main): Avoid test failure on
46518         directories if fchdir is not active.
46519         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
46521 2011-03-31  Bruno Haible  <bruno@clisp.org>
46523         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
46524         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
46525         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
46526         Reported by Simon Josefsson <simon@josefsson.org>.
46528 2011-03-31  Bruno Haible  <bruno@clisp.org>
46529         and Eric Blake  <eblake@redhat.com>
46531         nonblocking: new module
46532         * modules/nonblocking: New module.
46533         * modules/nonblocking-tests: Likewise.
46534         * lib/nonblocking.h: New file.
46535         * lib/nonblocking.c: Likewise.
46536         * tests/test-nonblocking.c: New test.
46537         * lib/ioctl.c (ioctl) [mingw]: Update comment.
46539 2011-03-30  Bruno Haible  <bruno@clisp.org>
46541         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
46542         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
46543         instead of 'printf' format for GCC >= 4.4.
46544         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
46545         (fprintf, printf, vfprintf, vprintf): Declare with
46546         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
46547         the system's vfprintf() function.
46548         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
46550 2011-03-30  Eric Blake  <eblake@redhat.com>
46552         passfd: fix scoping bug
46553         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
46554         before sendmsg/recvmsg.
46556         passfd: standardize coding conventions
46557         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
46558         can be learned at compile time.
46559         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
46560         ifdefs.
46561         (sendfd, recvfd): Follow gnulib code conventions.
46563         passfd: fix incorrect sendmsg arguments
46564         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
46565         incorrect msg_controllen value.
46566         * modules/passfd-tests (Depends-on): Check for alarm.
46567         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
46568         Reported by Bastien ROUCARIES.
46570 2011-03-30  Bruno Haible  <bruno@clisp.org>
46572         c-strcasestr: Relicense under LGPLv2+.
46573         * modules/c-strcasestr (License): Change to LGPLv2+.
46574         Requested by Eric Blake, for libvirt.
46576 2011-03-30  Simon Josefsson  <simon@josefsson.org>
46578         * users.txt: Add libidn2.  Fix libtasn1 link.
46580 2011-03-30  Jim Meyering  <meyering@redhat.com>
46582         tests: readlink* ("",... fails with EINVAL on newer kernels
46583         readlink and readlinkat have typically failed with ENOENT for
46584         the invalid, empty file name,  "".  However, with the advent
46585         of linux-2.6.39, they fail with EINVAL.
46586         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
46587         when operating on the empty file name.
46588         * tests/test-readlink.h (test_readlink): Likewise.
46590 2011-03-29  Bruno Haible  <bruno@clisp.org>
46592         Relicense some modules under LGPLv2+, for libidn2.
46593         * modules/array-mergesort (License): Change to LGPLv2+.
46594         * modules/c-strcaseeq (License): Likewise.
46595         * modules/striconveh (License): Likewise.
46596         * modules/striconveha (License): Likewise.
46597         * modules/uniconv/base (License): Likewise.
46598         * modules/uniconv/u8-conv-from-enc (License): Likewise.
46599         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
46600         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
46601         * modules/unictype/base (License): Likewise.
46602         * modules/unictype/bidiclass-of (License): Likewise.
46603         * modules/unictype/category-M (License): Likewise.
46604         * modules/unictype/category-none (License): Likewise.
46605         * modules/unictype/category-of (License): Likewise.
46606         * modules/unictype/category-test (License): Likewise.
46607         * modules/unictype/category-test-withtable (License): Likewise.
46608         * modules/unictype/combining-class (License): Likewise.
46609         * modules/unictype/joiningtype-of (License): Likewise.
46610         * modules/unictype/scripts (License): Likewise.
46611         * modules/uninorm/base (License): Likewise.
46612         * modules/uninorm/canonical-decomposition (License): Likewise.
46613         * modules/uninorm/composition (License): Likewise.
46614         * modules/uninorm/decompose-internal (License): Likewise.
46615         * modules/uninorm/decomposition-table (License): Likewise.
46616         * modules/uninorm/nfc (License): Likewise.
46617         * modules/uninorm/nfd (License): Likewise.
46618         * modules/uninorm/u32-normalize (License): Likewise.
46619         * modules/unistr/base (License): Likewise.
46620         * modules/unistr/u32-cpy (License): Likewise.
46621         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
46622         * modules/unistr/u32-to-u8 (License): Likewise.
46623         * modules/unistr/u32-uctomb (License): Likewise.
46624         * modules/unistr/u8-check (License): Likewise.
46625         * modules/unistr/u8-mblen (License): Likewise.
46626         * modules/unistr/u8-mbtouc (License): Likewise.
46627         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
46628         * modules/unistr/u8-mbtoucr (License): Likewise.
46629         * modules/unistr/u8-prev (License): Likewise.
46630         * modules/unistr/u8-strlen (License): Likewise.
46631         * modules/unistr/u8-to-u32 (License): Likewise.
46632         * modules/unistr/u8-uctomb (License): Likewise.
46633         * modules/unitypes (License): Likewise.
46634         Requested by Simon Josefsson.
46636 2011-03-29  Simon Josefsson  <simon@josefsson.org>
46638         lib-symbol-visibility: Add a notice.
46639         * modules/lib-symbol-visibility (Notice): New field.
46641 2011-03-29  Bruno Haible  <bruno@clisp.org>
46643         getaddrinfo: Doc fix.
46644         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
46645         section "fixed in Gnulib".
46647 2011-03-28  Simon Josefsson  <simon@josefsson.org>
46649         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
46650         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
46652 2011-03-26  Bruno Haible  <bruno@clisp.org>
46654         unictype/property-byname: Reduce the number of load-time relocations.
46655         * lib/unictype/pr_byname.c: Include <stdlib.h>.
46656         (UC_PROPERTY_INDEX_*): New enumeration values.
46657         (uc_property_byname): Convert an index from the lookup table to an
46658         uc_property_t.
46659         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
46660         values.
46662 2011-03-26  Bruno Haible  <bruno@clisp.org>
46664         unictype/property-byname: Allow omitted word separators and aliases.
46665         * lib/unictype/pr_byname.gperf: Add property names without word
46666         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
46667         for 'space'.
46669 2011-03-26  Bruno Haible  <bruno@clisp.org>
46671         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
46672         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
46673         also hyphens to space.
46674         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
46675         without spaces.
46676         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
46678 2011-03-26  Bruno Haible  <bruno@clisp.org>
46680         unictype/joiningtype-byname: Recognize long names as well.
46681         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
46682         a long name.
46683         * lib/unictype/joiningtype_byname.c: Include <string.h>,
46684         unictype/joiningtype_byname.h.
46685         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
46686         * lib/unictype/joiningtype_byname.gperf: New file.
46687         * modules/unictype/joiningtype-byname (Files): Add
46688         lib/unictype/joiningtype_byname.gperf.
46689         (Depends-on): Add gperf.
46690         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
46691         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
46692         long names.
46694         Tests for module 'unictype/joiningtype-longname'.
46695         * modules/unictype/joiningtype-longname-tests: New file.
46696         * tests/unictype/test-joiningtype_longname.c: New file.
46698         New module 'unictype/joiningtype-longname'.
46699         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
46700         * lib/unictype/joiningtype_longname.c: New file.
46701         * modules/unictype/joiningtype-longname: New file.
46702         * modules/unictype/joiningtype-all (Depends-on): Add
46703         unictype/joiningtype-longname.
46705 2011-03-26  Bruno Haible  <bruno@clisp.org>
46707         unictype/bidiclass-byname: Recognize long names as well.
46708         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
46709         name.
46710         * lib/unictype/bidi_byname.c: Include <string.h>,
46711         unictype/bidi_byname.h.
46712         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
46713         * lib/unictype/bidi_byname.gperf: New file.
46714         * modules/unictype/bidiclass-byname (Files): Add
46715         lib/unictype/bidi_byname.gperf.
46716         (Depends-on): Add gperf.
46717         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
46718         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
46719         long names.
46721         Tests for module 'unictype/bidiclass-longname'.
46722         * modules/unictype/bidiclass-longname-tests: New file.
46723         * tests/unictype/test-bidi_longname.c: New file.
46725         New module 'unictype/bidiclass-longname'.
46726         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
46727         * lib/unictype/bidi_longname.c: New file.
46728         * modules/unictype/bidiclass-longname: New file.
46729         * modules/unictype/bidiclass-all (Depends-on): Add
46730         unictype/bidiclass-longname.
46732 2011-03-26  Bruno Haible  <bruno@clisp.org>
46734         unictype/bidi*: Rename modules.
46735         * modules/unictype/bidiclass-all: Renamed from
46736         modules/unictype/bidicategory-all.
46737         * modules/unictype/bidiclass-name: Renamed from
46738         modules/unictype/bidiclass-name.
46739         (Description): Update.
46740         * modules/unictype/bidiclass-name-tests: Renamed from
46741         modules/unictype/bidicategory-name-tests.
46742         * modules/unictype/bidiclass-byname: Renamed from
46743         modules/unictype/bidicategory-byname.
46744         (Description): Update.
46745         * modules/unictype/bidiclass-byname-tests: Renamed from
46746         modules/unictype/bidicategory-byname-tests.
46747         * modules/unictype/bidiclass-of: Renamed from
46748         modules/unictype/bidicategory-of.
46749         (Description): Update.
46750         * modules/unictype/bidiclass-of-tests: Renamed from
46751         modules/unictype/bidicategory-of-tests.
46752         * modules/unictype/bidiclass-test: Renamed from
46753         modules/unictype/bidicategory-test.
46754         (Description): Update.
46755         * modules/unictype/bidiclass-test-tests: Renamed from
46756         modules/unictype/bidicategory-test-tests.
46757         * modules/unictype/bidicategory-all: New file, a simple redirection.
46758         * modules/unictype/bidicategory-name: Likewise.
46759         * modules/unictype/bidicategory-byname: Likewise.
46760         * modules/unictype/bidicategory-of: Likewise.
46761         * modules/unictype/bidicategory-test: Likewise.
46762         * modules/unictype/property-bidi-* (Dependencies): Update.
46763         * lib/unictype/bidi_*.c: Update comment.
46765 2011-03-26  Bruno Haible  <bruno@clisp.org>
46767         unictype/bidi*: Rename functions, part 2.
46768         * modules/unictype/bidicategory-name (configure.ac): Update required
46769         libunistring version.
46770         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
46772 2011-03-25  Bruno Haible  <bruno@clisp.org>
46774         New module 'unictype/combining-class-all'.
46775         * modules/unictype/combining-class-all: New file.
46777         Tests for module 'unictype/combining-class-byname'.
46778         * modules/unictype/combining-class-byname-tests: New file.
46779         * tests/unictype/test-combiningclass_byname.c: New file.
46781         New module 'unictype/combining-class-byname'.
46782         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
46783         * lib/unictype/combiningclass_byname.c: New file.
46784         * lib/unictype/combiningclass_byname.gperf: New file.
46785         * modules/unictype/combining-class-byname: New file.
46787         Tests for module 'unictype/combining-class-longname'.
46788         * modules/unictype/combining-class-longname-tests: New file.
46789         * tests/unictype/test-combiningclass_longname.c: New file.
46791         New module 'unictype/combining-class-longname'.
46792         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
46793         * lib/unictype/combiningclass_longname.c: New file.
46794         * modules/unictype/combining-class-longname: New file.
46796         Tests for module 'unictype/combining-class-name'.
46797         * modules/unictype/combining-class-name-tests: New file.
46798         * tests/unictype/test-combiningclass_name.c: New file.
46800         New module 'unictype/combining-class-name'.
46801         * lib/unictype.in.h (uc_combining_class_name): New declaration.
46802         * lib/unictype/combiningclass_name.c: New file.
46803         * modules/unictype/combining-class-name: New file.
46805 2011-03-25  Bruno Haible  <bruno@clisp.org>
46807         unictype/combining-class: Rename source files.
46808         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
46809         of unictype/combining.h.
46810         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
46811         Update.
46812         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
46813         * modules/unictype/combining-class (Description): Fix.
46814         (Files, Makefile.am): Update.
46815         * tests/unictype/test-combiningclass.c: Renamed from
46816         tests/unictype/test-combining.c.
46817         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
46819 2011-03-25  Bruno Haible  <bruno@clisp.org>
46821         unictype: Update list of canonical combining classes.
46822         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
46824 2011-03-25  Bruno Haible  <bruno@clisp.org>
46826         unictype/category-byname: Recognize long names as well.
46827         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
46828         a long name.
46829         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
46830         unictype/categ_byname.h.
46831         (UC_CATEGORY_INDEX_*): New enumeration values.
46832         (uc_general_category_byname): Use uc_general_category_lookup and
46833         convert from index to value.
46834         * lib/unictype/categ_byname.gperf: New file.
46835         * modules/unictype/category-byname (Files): Add
46836         lib/unictype/categ_byname.gperf.
46837         (Depends-on): Add gperf.
46838         (Makefile.am): Add rule for generating unictype/categ_byname.h.
46839         * tests/unictype/test-categ_byname.c (main): Test the recognition of
46840         long names.
46842         Tests for module 'unictype/category-longname'.
46843         * modules/unictype/category-longname-tests: New file.
46844         * tests/unictype/test-categ_longname.c: New file.
46846         New module 'unictype/category-longname'.
46847         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
46848         * lib/unictype/categ_longname.c: New file.
46849         * modules/unictype/category-longname: New file.
46850         * modules/unictype/category-all (Depends-on): Add it.
46852 2011-03-25  Bruno Haible  <bruno@clisp.org>
46854         Tests for module 'unictype/category-LC'.
46855         * modules/unictype/category-LC-tests: New file.
46856         * tests/unictype/test-categ_LC.c: New file, automatically generated.
46858         New module 'unictype/category-LC'.
46859         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
46860         (UC_CATEGORY_LC): New declaration.
46861         (UC_CASED_LETTER): New macro.
46862         * lib/gen-uni-tables.c (is_category_LC): New function.
46863         (output_categories): Also handle category LC.
46864         (UC_CATEGORY_MASK_LC): New enumeration value.
46865         (general_category_byname): Also handle category LC.
46866         * lib/unictype/categ_LC.c: New file.
46867         * lib/unictype/categ_LC.h: New file, automatically generated.
46868         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
46869         category LC.
46870         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
46871         * modules/unictype/category-LC: New file.
46872         * modules/unictype/category-byname (Depends-on): Add
46873         unictype/category-LC.
46874         * modules/unictype/category-all (Depends-on): Likewise.
46876 2011-03-25  Eric Blake  <eblake@redhat.com>
46878         xmalloc: revert yesterday's regression
46879         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
46880         realloc's underlying behavior (allowing allocation of zero-size
46881         objects, especially if malloc-gnu is also in use).
46883 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
46885         maint.mk: add missing version to VC-tag
46886         * top/maint.mk: git tag was missing actual tag name; add it.
46888         valgrind: do leak checking, and exit with code 1 on error (not 0)
46889         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
46890         to VALGRIND.
46892 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
46894         posix-modules: say what it does.
46895         * posix-modules: Add a line to the --help output saying what it does.
46897 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
46899         xmalloc: Do not leak if underlying realloc is C99 compatible.
46900         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
46901         This avoids a leak on C99-based systems.  See
46902         <http://lists.gnu.org/r/bug-gnulib/2011-03/msg00243.html>.
46904 2011-03-24  Eric Blake  <eblake@redhat.com>
46906         realloc: document portability problem
46907         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
46908         passing 0 size to realloc.
46910 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
46912         doc: update users.txt
46913         * users.txt: Add cvsps, tmpwatch
46915 2011-03-23  Matt Rice  <ratmice@gmail.com>
46917         doc: update users.txt
46918         * users.txt: Add gdb.
46920 2011-03-23  Jim Meyering  <meyering@redhat.com>
46922         doc: update users.txt
46923         Looking through matches up to the following URL (there are still
46924         several more pages), I found several projects that use gnulib:
46925         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
46926         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
46927         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
46929 2011-03-22  Bruno Haible  <bruno@clisp.org>
46931         unictype/bidi*: Rename functions.
46932         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
46933         uc_bidi_class, uc_is_bidi_class): New declarations.
46934         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
46935         uc_bidi_category_byname.
46936         (uc_bidi_category_byname): New function.
46937         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
46938         u_bidi_category_name.
46939         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
46940         (uc_bidi_category_name): New function.
46941         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
46942         uc_bidi_category.
46943         (uc_bidi_category): New function.
46944         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
46945         uc_is_bidi_category. Invoke uc_bidi_class.
46946         (uc_is_bidi_category): New function.
46947         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
46948         instead of uc_bidi_category_byname.
46949         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
46950         instead of uc_bidi_category_name.
46951         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
46952         uc_bidi_category.
46953         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
46954         instead of uc_is_bidi_category.
46956 2011-03-21  Bruno Haible  <bruno@clisp.org>
46958         New module 'unictype/joininggroup-all'.
46959         * modules/unictype/joininggroup-all: New file.
46961         Tests for module 'unictype/joininggroup-of'.
46962         * modules/unictype/joininggroup-of-tests: New file.
46963         * tests/unictype/test-joininggroup_of.c: New file.
46964         * tests/unictype/test-joininggroup_of.h: New file, automatically
46965         generated by gen-uni-tables.
46967         New module 'unictype/joininggroup-of'.
46968         * modules/unictype/joininggroup-of: New file.
46969         * lib/unictype/joininggroup_of.c: New file.
46970         * lib/unictype/joininggroup_of.h: New file, automatically generated by
46971         gen-uni-tables.
46973         Tests for module 'unictype/joininggroup-byname'.
46974         * modules/unictype/joininggroup-byname-tests: New file.
46975         * tests/unictype/test-joininggroup_byname.c: New file.
46977         New module 'unictype/joininggroup-byname'.
46978         * modules/unictype/joininggroup-byname: New file.
46979         * lib/unictype/joininggroup_byname.c: New file.
46980         * lib/unictype/joininggroup_byname.gperf: New file.
46982         Tests for module 'unictype/joininggroup-name'.
46983         * modules/unictype/joininggroup-name-tests: New file.
46984         * tests/unictype/test-joininggroup_name.c: New file.
46986         New module 'unictype/joininggroup-name'.
46987         * modules/unictype/joininggroup-name: New file.
46988         * lib/unictype/joininggroup_name.c: New file.
46989         * lib/unictype/joininggroup_name.h: New file.
46991         New module 'unictype/joiningtype-all'.
46992         * modules/unictype/joiningtype-all: New file.
46994         Tests for module 'unictype/joiningtype-of'.
46995         * modules/unictype/joiningtype-of-tests: New file.
46996         * tests/unictype/test-joiningtype_of.c: New file.
46997         * tests/unictype/test-joiningtype_of.h: New file, automatically
46998         generated by gen-uni-tables.
47000         New module 'unictype/joiningtype-of'.
47001         * modules/unictype/joiningtype-of: New file.
47002         * lib/unictype/joiningtype_of.c: New file.
47003         * lib/unictype/joiningtype_of.h: New file, automatically generated by
47004         gen-uni-tables.
47006         Tests for module 'unictype/joiningtype-byname'.
47007         * modules/unictype/joiningtype-byname-tests: New file.
47008         * tests/unictype/test-joiningtype_byname.c: New file.
47010         New module 'unictype/joiningtype-byname'.
47011         * modules/unictype/joiningtype-byname: New file.
47012         * lib/unictype/joiningtype_byname.c: New file.
47014         Tests for module 'unictype/joiningtype-name'.
47015         * modules/unictype/joiningtype-name-tests: New file.
47016         * tests/unictype/test-joiningtype_name.c: New file.
47018         New module 'unictype/joiningtype-name'.
47019         * modules/unictype/joiningtype-name: New file.
47020         * lib/unictype/joiningtype_name.c: New file.
47022         unictype: Add support for Arabic shaping properties.
47023         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
47024         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
47025         declarations.
47026         (UC_JOINING_GROUP_*): New enumeration values.
47027         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
47028         declarations.
47029         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
47030         (unicode_joining_type): New variable.
47031         (UC_JOINING_GROUP_*): New enumeration values.
47032         (unicode_joining_group): New variable.
47033         (fill_arabicshaping, joining_type_as_c_identifier,
47034         output_joining_type_test, output_joining_type,
47035         joining_group_as_c_identifier, output_joining_group_test,
47036         output_joining_group): New functions.
47037         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
47038         fill_arabicshaping and output_joining_type_test, output_joining_type,
47039         output_joining_group_test, output_joining_group.
47040         Reported by Simon Josefsson.
47042 2011-03-21  Jim Meyering  <meyering@redhat.com>
47044         strftime: fix a bug in yesterday's change
47045         * lib/strftime.c (add): Accommodate width's initial value of -1.
47046         Otherwise, nstrftime would copy uninitialized data into
47047         the result buffer.
47049 2011-03-21  Jim Meyering  <meyering@redhat.com>
47051         tests: add strftime-tests module
47052         * tests/test-strftime.c: New file.
47053         * modules/strftime-tests: New module.
47055 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
47057         strftime: don't assume a byte count fits in 'int'
47058         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
47059         found this problem by static analysis, using gcc -Wstrict-overflow
47060         (GCC 4.5.2, x86-64).  This reported an optimization that depended
47061         on an integer overflow having undefined behavior, but it turns out
47062         that the argument is a size, which might not fit in 'int' anyway,
47064 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
47066         stdio: don't require ignore_value around fwrite
47068         This patch works around libc bug 11959
47069         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
47070         Without this patch, applications must often write
47071         ignore_value (fwrite (...)) even though the ignore_value is
47072         not helpful here.  It's common to write many objects, using
47073         fwrite/printf/etc., and then use ferror to detect output error.
47075         I considered making this patch optional, but decided against it,
47076         because libc is obviously being inconsistent here: there is no
47077         reason libc should insist that user code must inspect fwrite
47078         return's value without also insisting that it inspect printf's,
47079         putchar's, etc.  If user code wants to have a strict style where
47080         all these functions' values are checked (so that ferror need not
47081         be checked), we could add support for that style in a new gnulib
47082         module, but in the meantime it's better to be consistent and to
47083         support common usage.
47085         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
47086         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
47087         that we are compiling in checking mode, and if not C++, and
47088         if not already wrapping fwrite for some other reason.
47089         (fwrite): #define to rpl_fwrite if the latter is defined.
47091 2011-03-20  Bruno Haible  <bruno@clisp.org>
47093         verror: Fix compilation error introduced on 2011-02-13.
47094         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
47095         instead of __attribute__.
47096         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47098 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
47099             Bruno Haible  <bruno@clisp.org>
47101         socklen: do not depend on sys_socket
47102         While trying to modify Emacs to use gnulib's socklen module,
47103         I discovered a circular dependency: socklen depends on sys_socket
47104         and vice versa.  Emacs can use socklen, but it does not need
47105         sys_socket because it has its own substitute for sys/socket.h.
47106         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
47107         gl_TYPE_SOCKLEN_T.
47108         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
47109         gl_PREREQ_SYS_H_SOCKET.
47110         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
47111         gl_PREREQ_SYS_H_SOCKET.
47112         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
47113         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
47114         * modules/socklen (Depends-on): Do not depend on sys_socket.
47115         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
47117 2011-03-20  Jim Meyering  <meyering@redhat.com>
47119         maint.mk: sort file names *after* new transformation
47120         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
47121         prefix would have led to an unwarranted failure in GNU parted.
47122         Sort after that transformation.
47124 2011-03-19  Jim Meyering  <meyering@redhat.com>
47126         maint.mk: fix po-file syntax-check rule
47127         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
47128         Patch by Bruno Haible.
47130 2011-03-19  Bruno Haible  <bruno@clisp.org>
47132         socklen: Update comment.
47133         * m4/socklen.m4: Update comment about platforms.
47135 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
47136             Bruno Haible  <bruno@clisp.org>
47138         inet_ntop, inet_pton: Simplify.
47139         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
47140         documented to provide socklen_t and we already depend on sys_socket.
47141         * modules/inet_pton (Depends-on): Likewise.
47142         * lib/arpa_inet.in.h: Adjust comment.
47144 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
47145             Bruno Haible  <bruno@clisp.org>
47147         netdb: Simplify.
47148         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
47149         documented to provide socklen_t and we already depend on sys_socket.
47150         * lib/netdb.in.h: Adjust comment.
47152 2011-03-19  Bruno Haible  <bruno@clisp.org>
47154         sys_socket, netdb: Document problem with socklen_t.
47155         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
47156         platforms.
47157         * doc/posix-headers/netdb.texi: Likewise.
47159 2011-03-18  Eric Blake  <eblake@redhat.com>
47161         maint.mk: let po check work in VPATH build
47162         * top/maint.mk (po_file): Allow cfg.mk override.
47163         (sc_po_check): Allow VPATH use.
47164         Reported by Jiri Denemark.
47166 2011-03-16  Jim Meyering  <meyering@redhat.com>
47168         maint.mk: allow fine-grained syntax-check exclusion via Make variables
47169         Before, you would have had to create one .x-sc_ file per rule in order
47170         to exempt offending files.  Now, you may instead use a Make variable --
47171         usually defined in cfg.mk -- whose name identifies the affected rule.
47172         * top/maint.mk (_sc_excl): Define.
47173         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
47174         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
47176 2011-03-13  Bruno Haible  <bruno@clisp.org>
47178         ignore-value tests: Avoid warnings.
47179         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
47180         empty for gcc < 3.4.
47182 2011-03-13  Bruno Haible  <bruno@clisp.org>
47184         passfd: Fix link error on Solaris.
47185         * modules/passfd (Description): Correct.
47186         (Depends-on): Add socketlib.
47187         (Link): New section.
47188         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
47190 2011-03-13  Bruno Haible  <bruno@clisp.org>
47192         passfd: Fix link error on AIX 5.2.
47193         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
47195 2011-03-13  Bruno Haible  <bruno@clisp.org>
47197         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
47198         * lib/sys_socket.in.h: Include <stddef.h>.
47199         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
47200         CMSG_FIRSTHDR. Remove unused variable.
47202 2011-03-13  Bruno Haible  <bruno@clisp.org>
47204         passfd: Fix compilation error on OpenBSD.
47205         * lib/passfd.c: Include <sys/uio.h>.
47207 2011-03-13  Bruno Haible  <bruno@clisp.org>
47209         passfd test: Fix warnings.
47210         * tests/test-passfd.c: Include <sys/wait.h>.
47211         (main): Fix typo.
47213 2011-03-13  Bruno Haible  <bruno@clisp.org>
47215         passfd module, part 4, tweaks.
47216         * tests/test-passfd.c: Reorder includes.
47217         (main): Fix perror and printf calls.
47219 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
47221         passfd module, part 4.
47222         * modules/passfd-tests: New file.
47223         * tests/test-passfd.c: New file.
47225 2011-03-13  Jim Meyering  <meyering@redhat.com>
47227         Makefile: rely on GNU make; derive syntax-check rule names
47228         Rather than requiring that each sc_ rule be listed as a dependent
47229         of "check", use features of GNU make to derive the list.
47230         * Makefile (syntax-check-rules): Define.
47231         (check): Depend on the new variable, not the hard-coded list.
47233 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
47234             Bruno Haible  <bruno@clisp.org>
47236         passfd module, part 3.
47237         * lib/passfd.h (recvfd): Add a flags argument.
47238         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
47239         (recvfd): Add a flags argument.
47240         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
47241         exists.
47242         * modules/passfd (Depends-on): Add cloexec.
47243         Suggested by Eric Blake.
47245 2011-03-13  Bruno Haible  <bruno@clisp.org>
47247         passfd module, part 2, tweaks.
47248         * modules/passfd (Files): Reorder.
47249         (Depends-on): Remove errno.
47250         (Include): Remove <sys/socket.h>, <sys/un.h>.
47251         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
47252         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
47253         specification header. Include <sys/socket.h> always. Don't include
47254         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
47255         (sendfd): Clarify that it sets errno when it fails.
47256         (recvfd): Fix specification.
47258 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
47260         passfd module, part 2.
47261         * modules/passfd: New file.
47262         * lib/passfd.h: New file.
47263         * lib/passfd.c: New file.
47265 2011-03-12  Bruno Haible  <bruno@clisp.org>
47267         wcswidth, mbswidth: Avoid integer overflow.
47268         * lib/wcswidth.c: Include <limits.h>.
47269         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
47270         * lib/mbswidth.c: Include <limits.h>.
47271         (mbsnwidth): Avoid 'int' overflow.
47272         Reported by Jim Meyering.
47274 2011-03-12  Bruno Haible  <bruno@clisp.org>
47276         futimens, utimensat: Avoid endless recursion on Solaris 10.
47277         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
47278         Solaris.
47279         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
47280         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
47282 2011-03-11  Jim Meyering  <meyering@redhat.com>
47284         maint.mk: relax a regexp to accommodate other formatting styles
47285         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
47286         between "ngettext" and the following "(".
47288 2011-03-11  Pádraig Brady  <P@draigBrady.com>
47290         maint.mk: suppress a false positive warning
47291         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
47292         diagnostics are marked with ngettext.
47294 2011-03-10  Eric Blake  <eblake@redhat.com>
47296         wchar: add explicit dependencies, for Tru64
47297         * modules/mbmemcasecoll (Depends-on): Add wchar.
47298         * modules/mbtowc (Depends-on): Likewise.
47299         * modules/vasnprintf (Depends-on): Likewise.
47300         * modules/unistdio/u-printf-args (Depends-on): Likewise.
47301         * modules/wctomb (Depends-on): Likewise.
47302         Reported by Peter O'Gorman.
47304 2011-03-08  Bruno Haible  <bruno@clisp.org>
47306         passfd module, part 1, tweaks.
47307         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
47308         Improve indentation. Improve AC_MSG_CHECKING messages.
47309         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
47310         gl_SOCKET_FAMILIES.
47312 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
47314         passfd module, part 1.
47315         * m4/afunix.m4: New file.
47316         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
47317         sockets.
47319 2011-03-08  Bruno Haible  <bruno@clisp.org>
47321         regex-quote: New API.
47322         * lib/regex-quote.h: Include <stdbool.h>.
47323         (struct regex_quote_spec): New type.
47324         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
47325         New declarations.
47326         (regex_quote_length, regex_quote_copy, regex_quote): Take a
47327         'const struct regex_quote_spec *' argument.
47328         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
47329         (pcre_special): New constant.
47330         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
47331         New functions.
47332         (regex_quote_length, regex_quote_copy, regex_quote): Take a
47333         'const struct regex_quote_spec *' argument.
47334         * modules/regex-quote (Depends-on): Add stdbool.
47335         * tests/test-regex-quote.c (check): Update for new API. Add test for
47336         anchored results.
47337         * NEWS: Mention the API change.
47338         Reported by Reuben Thomas and Eric Blake.
47340 2011-03-06  Bruno Haible  <bruno@clisp.org>
47342         regex-quote: Fix creation of POSIX extended regular expressions.
47343         * lib/regex-quote.c (ere_special): Add grouping and alternation
47344         operators.
47346 2011-03-05  Bruno Haible  <bruno@clisp.org>
47348         doc: Improve doc regarding autopoint vs. gnulib.
47349         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
47350         disable autopoint while running autoreconf.
47351         Suggested by Ralf Wildenhues.
47353 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47355         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
47356         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
47358 2011-03-03  Bruce Korb  <bkorb@gnu.org>
47360         parse-duration: remove xalloc.h dependency
47361         * lib/parse-duration.c (parse_period): handle NULL return from
47362         strdup instead of calling xstrdup().
47363         * modules/parse-duration: remove "xalloc" dependency
47365 2011-03-03  Matthew Booth  <mbooth@redhat.com>
47367         bootstrap: honor m4_base when running aclocal
47368         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
47370 2011-03-02  Jim Meyering  <meyering@redhat.com>
47372         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
47373         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
47374         on request from Matt Booth.
47376 2011-03-01  Eric Blake  <eblake@redhat.com>
47378         test-link: work on Hurd
47379         * tests/test-link.h (test_link): Hurd rejects linking directories
47380         with EISDIR instead of the POSIX-mandated EPERM.
47382 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
47384         stdio: simplify by moving files to printf-posix, sigpipe
47385         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
47386         since this symbol is needed only if printf is replaced.
47387         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
47388         Require gl_ASM_SYMBOL_PREFIX.
47389         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
47390         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
47391         (Depends-on): Add 'raise'.
47392         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
47393         * modules/stdio (Files): Remove lib/stdio-write.c,
47394         m4/asm-underscore.m4.
47395         (Depends-on): Remove 'raise'.
47397         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
47398         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
47399         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
47400         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
47402 2011-02-28  Bruno Haible  <bruno@clisp.org>
47404         localcharset: Assume ANSI C behaviour of free().
47405         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
47406         calling free().
47407         Suggested by Simon Josefsson <simon@josefsson.org>.
47409 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
47410             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
47411             Bruno Haible  <bruno@clisp.org>  (tiny change)
47413         On Cygwin, use /proc file system instead of win32 API.
47414         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
47415         Win32 file names.
47416         (DllMain): Simplify by removing Cygwin specific code.
47417         (find_shared_library_fullname): Use Linux specific implementation also
47418         for Cygwin.
47419         (get_shared_library_fullname): Update accordingly.
47420         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
47421         Win32 file names.
47422         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
47423         Cygwin specific code.
47425 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
47426             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
47428         Fix OpenMP flag detection for various Fortran compilers.
47429         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
47430         OpenMP-conditional compilation construct, to force compile
47431         failure with missing OpenMP flag.
47432         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
47434 2011-02-25  Eric Blake  <eblake@redhat.com>
47436         strstr: expand test coverage
47437         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
47438         compilation.
47439         * tests/test-memmem.c (main): Duplicate tests.
47440         * tests/test-strcasestr.c (main): Likewise.
47441         * tests/test-c-strcasestr.c (main): Likewise.
47443 2011-02-25  Jim Meyering  <meyering@redhat.com>
47445         maint.mk: detect missing-NL-at-EOF, too
47446         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
47447         it also detects when a file lacks a newline at EOF.
47448         (require_exactly_one_NL_at_EOF_): Renamed from
47449         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
47450         since people may well have .x-sc_... file names tied to the
47451         existing name.  Suggested by Eric Blake.
47453 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
47455         dirname: move m4/dos.m4 functionality into lib/dosname.h
47457         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
47458         extracts symbols from it, puts them into config.h; but it's much
47459         easier to use the symbols directly.  filename.h already does this,
47460         but it disagrees with dos.m4 in some respects.  This patch
47461         introduces a different include file dosname.h that packages up
47462         dos.m4, and then later we can work on merging filename.h and
47463         dosname.h.  Applications that need only the easy-to-configure
47464         symbols should consider including dosname.h rather than dirname.h.
47465         * NEWS: Mention incompatible changes.
47466         * m4/dos.m4: Remove.
47467         * lib/dosname.h, modules/dosname: New files.
47468         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
47469         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
47470         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
47471         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
47472         Include dosname.h, not dirname.h.
47473         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
47474         Include dosname.h, for definitions of symbols like ISSLASH
47475         that used to be in config.h.
47476         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
47477         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
47478         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
47479         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
47480         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
47481         * modules/rmdir (Files): Likewise.
47482         * modules/stat (Files): Likewise.
47483         * modules/unlink (Files): Likewise.
47484         * modules/dirname-lgpl (Depends-on): Add dosname.
47485         * modules/lstat (Depends-on): Likewise.
47486         * modules/openat (Depends-on): Likewise.
47487         * modules/rmdir (Depends-on): Likewise.
47488         * modules/savewd (Depends-on): Likewise.
47489         * modules/stat (Depends-on): Likewise.
47490         * modules/unlink (Depends-on): Likewise.
47491         * modules/openat (Depends-on): Remove dirname-lgpl.
47492         * modules/savewd (Depends-on): Likewise.
47493         * tests/test-dirname.c: Do not use removed symbols like
47494         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
47495         the remaining symbols, e.g., ISSLASH ('\\').
47497 2011-02-25  Eric Blake  <eblake@redhat.com>
47499         strstr: revert patches that introduced bug and pessimization
47500         * lib/str-two-way.h: Add another reference.
47501         (two_way_short_needle, two_way_long_needle): Revert changes from
47502         2011-02-24; they pessimize search speed.
47503         (critical_factorization): Partially revert changes from
47504         2010-06-22; they violate the requirement that the left half of the
47505         needle be smaller than the period of the needle.
47507 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
47509         filenamecat: remove unnecessary dependency on dirname-lgpl
47510         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
47511         is no direct dependency, just an indirect one via filenamecat-lgpl.
47513         remove: remove unnecessary use of m4/dos.m4
47514         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
47515         * modules/remove (FILES): Remove m4/dos.m4.
47517         * lib/openat-proc.c: Don't include dirname.h; not needed.
47519         backupfile: remove unnecessary use of m4/dos.m4
47520         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
47521         of its symbols are used by the backupfile code.  backupfile.c does
47522         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
47523         for the rare case of programs that want all their backup file
47524         names to live within 8+3 limits, and dos.m4 doesn't address that.
47525         * modules/backupfile (Files): Remove m4/dos.m4.
47527 2011-02-24  Jim Meyering  <meyering@redhat.com>
47529         strstr: fix a bug whereby strstr would mistakenly return NULL
47530         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
47531         in period calculation.
47532         (two_way_long_needle): Likewise.
47533         The original problem was reported by Mike Stump in
47534         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
47535         Ralf Wildenhues provided the short needle and haystack.
47536         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
47537         Add a more involved test to trigger the bug in two_way_long_needle.
47539 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
47541         gnulib-tool: remove use of bold display in help screen
47542         * gnulib-tool (func_usage): Do not use bold display anymore in the
47543         help screen.  That was just meant to be a temporary emphasis for a
47544         backward-incompatible change.
47546 2011-02-23  Bruno Haible  <bruno@clisp.org>
47548         Fix misindentation of preprocessor directives.
47549         * lib/argp-namefrob.h: Reindent preprocessor directives.
47550         * lib/getopt_int.h (struct _getopt_data): Likewise.
47551         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
47552         * lib/vasnprintf.c (decode_long_double): Likewise.
47553         * tests/test-argmatch.c: Insert blank lines, for clarity.
47554         * tests/test-exclude.c: Likewise.
47556 2011-02-22  Bruno Haible  <bruno@clisp.org>
47558         ioctl: Fix for MacOS X in 64-bit mode.
47559         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
47560         value.
47561         Suggested by Eric Blake.
47562         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
47564 2011-02-22  Jim Meyering  <meyering@redhat.com>
47566         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
47567         * Makefile (sc_cpp_indent_check): Don't limit the check to files
47568         in lib/.
47570 2011-02-22  Eric Blake  <eblake@redhat.com>
47572         maint: avoid any CDPATH issue
47573         * Makefile (sc_cpp_indent_check): Anchor cd argument.
47575         maint: adjust cpp indentation for my modules, as well
47576         * Makefile (sc_cpp_indent_check): Add my name.
47577         * lib/fbufmode.c: Filter through cppi.
47578         * lib/fpurge.c: Likewise.
47579         * lib/freadable.c: Likewise.
47580         * lib/freading.c: Likewise.
47581         * lib/fwritable.c: Likewise.
47582         * lib/fwriting.c: Likewise.
47583         * lib/sigaction.c: Likewise.
47585 2011-02-22  Jim Meyering  <meyering@redhat.com>
47587         maint: adjust cpp indentation to reflect nesting depth
47588         I.e., in a block of code that begins with an unnested "#if",
47589         put one space between the "#" in column 1 and following token.
47590         For example,
47591         -#include <sys/vfs.h>
47592         +# include <sys/vfs.h>
47593         Do this only in .c files that are part of a module I maintain.
47594         * lib/linkat.c: Filter through cppi.
47595         * lib/nanosleep.c: Likewise.
47596         * lib/openat.c: Likewise.
47597         * lib/openat-die.c: Likewise.
47598         * lib/dup3.c: Likewise.
47599         * lib/fchownat.c: Likewise.
47600         * lib/flock.c: Likewise.
47601         * lib/fsync.c: Likewise.
47602         * lib/fts.c: Likewise.
47603         * lib/getpass.c: Likewise.
47604         * lib/gettimeofday.c: Likewise.
47605         * lib/userspec.c: Likewise.
47606         * Makefile (sc_cpp_indent_check): New rule, to check this.
47608 2011-02-22  Bruno Haible  <bruno@clisp.org>
47610         New module 'wctomb'.
47611         * lib/stdlib.in.h (wctomb): New declaration.
47612         * lib/wctomb.c: New file.
47613         * lib/wctomb-impl.h: New file.
47614         * m4/wctomb.m4: New file.
47615         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
47616         REPLACE_WCTOMB.
47617         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
47618         REPLACE_WCTOMB.
47619         * modules/wctomb: New file.
47620         * tests/test-stdlib-c++.cc: Test signature of wctomb.
47621         * doc/posix-functions/wctomb.texi: Mention the new module.
47622         * modules/wctob (Depends-on): Add wctomb.
47624 2011-02-22  Bruno Haible  <bruno@clisp.org>
47626         New module 'mbtowc'.
47627         * lib/stdlib.in.h (mbtowc): New declaration.
47628         * lib/mbtowc.c: New file.
47629         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
47630         * m4/mbtowc.m4: New file.
47631         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
47632         REPLACE_MBTOWC.
47633         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
47634         REPLACE_MBTOWC.
47635         * modules/mbtowc: New file.
47636         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
47637         * doc/posix-functions/mbtowc.texi: Mention the new module.
47638         * modules/btowc (Depends-on): Add mbtowc.
47640 2011-02-22  Bruno Haible  <bruno@clisp.org>
47642         wcrtomb: Add more tests for native Windows platforms.
47643         * tests/test-wcrtomb-w32-1.sh: New file.
47644         * tests/test-wcrtomb-w32-2.sh: New file.
47645         * tests/test-wcrtomb-w32-3.sh: New file.
47646         * tests/test-wcrtomb-w32-4.sh: New file.
47647         * tests/test-wcrtomb-w32-5.sh: New file.
47648         * tests/test-wcrtomb-w32.c: New file.
47649         * modules/wcrtomb-tests (Files): Add them.
47650         (Makefile.am): Arrange to run these tests.
47651         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
47652         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
47654 2011-02-20  Bruno Haible  <bruno@clisp.org>
47656         wcrtomb: Enhance test.
47657         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
47659 2011-02-20  Bruno Haible  <bruno@clisp.org>
47661         mbrtowc: Tiny optimization.
47662         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
47664 2011-02-20  Jim Meyering  <meyering@redhat.com>
47666         test-exclude.c: remove unmatched #endif
47667         * tests/test-exclude.c: Remove stray #endif, left over from
47668         the change of a week ago.
47670 2011-02-19  Jim Meyering  <meyering@redhat.com>
47672         git-version-gen: skip "-dirty" check when appropriate
47673         * build-aux/git-version-gen: Don't run any git commands when the
47674         version string comes from .tarball-version.  Prior to this, we
47675         would run git update-index --refresh even from a just-unpacked
47676         tarball directory, and that could affect a .git/ directory in a
47677         parent of the build directory.  Reported by Mike Frysinger.
47679 2011-02-19  Bruno Haible  <bruno@clisp.org>
47681         unictype/property-byname: Reduce the size of the 'data' segment.
47682         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
47684 2011-02-19  Bruno Haible  <bruno@clisp.org>
47686         unictype/scripts: Reduce the size of the 'data' segment.
47687         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
47688         '%pic'.
47689         * lib/unictype/scripts_byname.gperf: Regenerated.
47691 2011-02-19  Bruno Haible  <bruno@clisp.org>
47693         stdint: Update documentation.
47694         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
47696 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
47698         stdint: omit redundant check for wchar.h
47699         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
47700         always tests whether wchar.h exists, so remove the now-redundant test.
47702 2011-02-18  Bruno Haible  <bruno@clisp.org>
47704         stdint: Cut dependency to module 'wchar'.
47705         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
47706         include the necessary prerequisites.
47707         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
47708         * modules/stdint (Depends-on): Remove wchar.
47709         (Makefile.am): Substitute HAVE_WCHAR_H.
47710         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
47712 2011-02-18  Eric Blake  <eblake@redhat.com>
47714         longlong: skip, rather than fail, on cross-compilation
47715         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
47716         when cross-compiling; regression from 2011-02-16.
47718 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
47720         * NEWS: Mention 2011-02-08 change to stdlib.
47722 2011-02-17  Bruno Haible  <bruno@clisp.org>
47724         getloadavg: Add comments about platforms.
47725         * m4/getloadavg.m4: Add comment.
47726         * lib/getloadavg.c: Likewise.
47728 2011-02-17  Bruno Haible  <bruno@clisp.org>
47730         getloadavg: Fix link error on Solaris 2.6.
47731         * modules/getloadavg (Link): New section.
47732         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
47733         linking test-getloadavg.
47734         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
47735         getloadavg.
47737 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
47739         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
47740         It was 'int', but this doesn't match the IRIX 6.5 manual.
47741         Suggested by Bruno Haible in
47742         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00207.html>.
47744 2011-02-17  Bruno Haible  <bruno@clisp.org>
47746         havelib: Fix comments.
47747         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
47748         change.
47750 2011-02-17  Bruno Haible  <bruno@clisp.org>
47752         havelib: Update config.rpath.
47753         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
47755 2011-02-17  Bruno Haible  <bruno@clisp.org>
47757         getloadavg test: Add some plausibility checks.
47758         * tests/test-getloadavg.c (check_avg): Print a warning when the value
47759         is improbable.
47761 2011-02-16  Eric Blake  <eblake@redhat.com>
47763         maintainer-makefile: make syntax-check a no-op from tarballs
47764         * top/maint.mk (no-vc-detected): New rule.
47765         (local-checks-available): Use it to avoid hanging if someone tries
47766         'make syntax-check' from a tarball.  Also append to any non-syntax
47767         checks already defined in cfg.mk.
47769 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
47771         longlong: tune, particularly for common case of c99
47773         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
47774         or running anything if c99, or if unsigned long long int does not
47775         work.  In either case, we know the answer without further tests.
47776         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
47777         it at most once, and use its results for both long long int and
47778         unsigned long long int.  This is more likely to be efficient in
47779         the common case where the program wants to check for both long
47780         long int and unsigned long long int.
47781         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
47782         since the answer is already known.
47784 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
47786         getloadavg: set errno
47787         * lib/getloadavg.c: Set errno when returning -1.  If no other
47788         error number looks appropriate, set it to ENOSYS if the getloadavg
47789         looks like it can't possibly ever work, ENOTSUP otherwise.
47790         Suggested by Bruno Haible in
47791         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00187.html>.
47793         getloadavg: trim unused parts and speed up 'configure'
47794         * NEWS: Document this.
47795         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
47796         always compiled if getloadavg is absent.
47797         Move test code to ...
47798         * tests/test-getloadavg.c: New file, containing previous
47799         contents of test from lib/getloadavg.c.  It also contains
47800         suggestions by Bruno Haible in
47801         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00186.html>.
47802         * modules/getloadavg-tests: New file.
47803         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
47804         Do tests in the same order as they're needed for getloadavg.c.
47805         Omit setgid-related tests that generate symbols KMEM_GROUP,
47806         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
47807         Do only the tests that are needed to see whether the system has
47808         getloadavg, moving the other tests into ...
47809         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
47810         NLIST_NAME_UNION; nobody should be using it.  Do not define
47811         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
47812         relevant, as the user of this module shouldn't care how getloadavg
47813         is implemented.
47815         getloadavg: omit unused var
47816         * lib/getloadavg.c (getloadavg): Omit unused local variable.
47818 2011-02-15  Jim Meyering  <meyering@redhat.com>
47820         doc: update users.txt
47821         * users.txt: Update iwhd's URL.
47823 2011-02-13  Bruno Haible  <bruno@clisp.org>
47825         Consistent macro naming for macros that use GCC __attribute__.
47826         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
47827         _ATTRIBUTE_NONNULL_.
47828         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
47829         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
47830         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
47831         ATTRIBUTE_DEPRECATED.
47832         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
47833         ATTRIBUTE_NORETURN.
47834         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
47835         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
47836         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
47837         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
47838         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
47839         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
47840         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
47841         ATTRIBUTE_SENTINEL.
47842         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
47843         ATTRIBUTE_RETURN_CHECK.
47844         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
47845         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
47846         ATTRIBUTE_NORETURN.
47847         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
47848         Reported by Paul Eggert.
47850 2011-02-13  Bruno Haible  <bruno@clisp.org>
47852         Don't interfere with a program's definition of __attribute__.
47853         * lib/argp.h (__attribute__): Remove definition.
47854         (_GL_ATTRIBUTE_FORMAT): New macro.
47855         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
47856         * lib/argp-fmtstream.h (__attribute__): Remove definition.
47857         (_GL_ATTRIBUTE_FORMAT): New macro.
47858         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
47859         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
47860         GCC 3 or newer.
47861         * lib/error.h (__attribute__): Remove definition.
47862         (_GL_ATTRIBUTE_FORMAT): New macro.
47863         (error, error_at_line): Use it.
47864         * lib/hash.h (__attribute__): Remove definition.
47865         (ATTRIBUTE_WUR): Update definition. Define always.
47866         * lib/openat.h (__attribute__): Remove definition.
47867         (ATTRIBUTE_NORETURN): Update definition. Define always.
47868         * lib/sigpipe-die.h (__attribute__): Remove definition.
47869         (ATTRIBUTE_NORETURN): Update definition. Define always.
47870         * lib/vasnprintf.h (__attribute__): Remove definition.
47871         (_GL_ATTRIBUTE_FORMAT): New macro.
47872         (asnprintf, vasnprintf): Use it.
47873         * lib/xalloc.h (__attribute__): Remove definition.
47874         (ATTRIBUTE_NORETURN): Update definition. Define always.
47875         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
47876         * lib/xmemdup0.h (__attribute__): Remove definition.
47877         (ATTRIBUTE_NORETURN): Update definition. Define always.
47878         * lib/xprintf.h (__attribute__): Remove definition.
47879         (_GL_ATTRIBUTE_FORMAT): New macro.
47880         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
47881         * lib/xstrtol.h (__attribute__): Remove definition.
47882         (ATTRIBUTE_NORETURN): Update definition. Define always.
47883         * lib/xvasprintf.h (__attribute__): Remove definition.
47884         (_GL_ATTRIBUTE_FORMAT): New macro.
47885         (xasprintf, xvasprintf): Use it.
47886         * tests/test-argmatch.c (__attribute__): Remove definition.
47887         (ATTRIBUTE_NORETURN): Update definition. Define always.
47888         * tests/test-exclude.c (__attribute__): Remove definition.
47889         (ATTRIBUTE_NORETURN): Update definition. Define always.
47890         Reported by Paul Eggert.
47892 2011-02-13  Bruno Haible  <bruno@clisp.org>
47894         mbrtowc: Add more tests for native Windows platforms.
47895         * tests/test-mbrtowc-w32-1.sh: New file.
47896         * tests/test-mbrtowc-w32-2.sh: New file.
47897         * tests/test-mbrtowc-w32-3.sh: New file.
47898         * tests/test-mbrtowc-w32-4.sh: New file.
47899         * tests/test-mbrtowc-w32-5.sh: New file.
47900         * tests/test-mbrtowc-w32.c: New file.
47901         * modules/mbrtowc-tests (Files): Add them.
47902         (Makefile.am): Arrange to run these tests.
47903         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
47904         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
47906 2011-02-13  Bruno Haible  <bruno@clisp.org>
47908         mbrtowc: Work around native Windows bug.
47909         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
47910         guess when no suitable locale for testing was found.
47911         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
47913 2011-02-13  Bruno Haible  <bruno@clisp.org>
47915         mbsinit: Work around mingw bug.
47916         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
47917         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
47918         Windows.
47919         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
47921 2011-02-13  Bruno Haible  <bruno@clisp.org>
47923         mbsinit: Don't crash for a NULL argument.
47924         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
47925         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
47927 2011-02-13  Bruno Haible  <bruno@clisp.org>
47929         Don't interfere with a program's definition of __attribute__.
47930         * lib/stdio.in.h (__attribute__): Remove definition.
47931         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
47932         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
47933         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
47934         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
47935         * lib/string.in.h (__attribute__): Remove definition.
47936         Reported by Paul Eggert.
47938 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
47940         stdlib: don't get in the way of non-GCC __attribute__
47941         See thread starting at
47942         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00161.html>.
47943         Revert previous stdlib change, installing the following instead:
47944         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
47945         to get in the way of a non-GCC compiler that supports __attribute__.
47946         (_GL_ATTRIBUTE_RETURN): New macro.
47947         (_Exit): Use it instead of __attribute__.
47949 2011-02-12  Bruno Haible  <bruno@clisp.org>
47951         quotearg test: Avoid test failure on mingw.
47952         * tests/test-quotearg.sh: Convert the locale identifier from native
47953         Windows syntax to Unix syntax.
47955 2011-02-12  Bruno Haible  <bruno@clisp.org>
47957         setlocale: Prefer gnulib's override over libintl's override.
47958         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
47959         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
47960         GNULIB_defined_setlocale is set.
47962 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
47964         stdlib: support non-GCC __attribute__
47966         Fix a serious and tricky problem encountered when attempting to
47967         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
47968         5.5, but it crashed due to memory corruption on Solaris 10 with
47969         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
47970         bits that are otherwise zero.  This tagging is optional inside
47971         Emacs but is preferred and is used when __attribute__ ((__aligned
47972         (8))) works, as it does with both recent-enough GCC and with Sun C
47973         5.11.  However, Sun C 5.11 is not GCC and does not #define
47974         __GNUC__ and __GNUC_MINOR__.
47976         When I added the getloadavg module to Emacs, it brought in
47977         stdlib.in.h, which contained this fragment:
47979            #ifndef __attribute__
47980            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
47981            #  define __attribute__(Spec)   /* empty */
47982            # endif
47983            #endif
47985         When files that include <stdlib.h> were compiled with Sun C 5.11,
47986         the above code disabled __attribute__ ((__aligned (8))), which
47987         caused variables to not be properly aligned, which eventually led
47988         to the pointer corruption mentioned above.  (This was a bit hard
47989         to diagnose, unfortunately.)
47991         Several "#define __attribute__(X) /* empty */" code snippets need
47992         to be eradicated from Gnulib to work with non-GCC compilers that
47993         support __attribute__.  The Autoconf way to do this is to test for
47994         each kind of attribute that we want support for, and selectively
47995         enable that in source code.
47997         Fix this problem just for stdlib.h, by adding a test for the
47998         __noreturn__ attribute, and change stdlib.in.h to use that test
47999         when needed.  This technique can be easily generalized to the
48000         other *.in.h files and attributes, and a similar technique can be
48001         used for *.h and *.c files.  This patch is enough to solve the
48002         problem for Emacs + getloadavg, and I thought I'd publish it for
48003         feedback before undertaking further, similar fixes in other
48004         modules.
48006         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
48007         because it's not needed for stdlib.h.  It merely substitutes the
48008         value directly into stdlib.h.  We may well need to #define it, or
48009         similar symbols, for other modules, but it's nice to also have an
48010         option to not #define it for applications like Emacs that do not
48011         need it.
48013         * lib/stdlib.in.h (__attribute__): Do not #define.
48014         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
48015         be defined only if the _Exit module is also used.
48016         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
48017         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
48018         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
48019         platforms.
48020         * modules/_Exit (Files): Add m4/attribute.m4.
48021         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
48022         * m4/attribute.m4: New file.
48024 2011-02-12  Bruno Haible  <bruno@clisp.org>
48026         wcsrtombs: Work around bug on native Windows.
48027         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
48028         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
48029         instead of len.
48030         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
48032 2011-02-12  Bruno Haible  <bruno@clisp.org>
48034         mbsrtowcs: Work around bug on native Windows.
48035         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
48036         against mingw bug.
48037         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
48039 2011-02-12  Bruno Haible  <bruno@clisp.org>
48041         Avoid setlocale bugs in tests.
48042         * modules/btowc (Dependencies): Add setlocale.
48043         * modules/c-strcase (Dependencies): Likewise.
48044         * modules/mbmemcasecmp (Dependencies): Likewise.
48045         * modules/mbmemcasecoll (Dependencies): Likewise.
48046         * modules/mbrtowc (Dependencies): Likewise.
48047         * modules/mbscasecmp (Dependencies): Likewise.
48048         * modules/mbscasestr (Dependencies): Likewise.
48049         * modules/mbschr (Dependencies): Likewise.
48050         * modules/mbscspn (Dependencies): Likewise.
48051         * modules/mbsinit (Dependencies): Likewise.
48052         * modules/mbsncasecmp (Dependencies): Likewise.
48053         * modules/mbsnrtowcs (Dependencies): Likewise.
48054         * modules/mbspbrk (Dependencies): Likewise.
48055         * modules/mbspcasecmp (Dependencies): Likewise.
48056         * modules/mbsrchr (Dependencies): Likewise.
48057         * modules/mbsrtowcs (Dependencies): Likewise.
48058         * modules/mbsspn (Dependencies): Likewise.
48059         * modules/mbsstr (Dependencies): Likewise.
48060         * modules/nl_langinfo (Dependencies): Likewise.
48061         * modules/quotearg (Dependencies): Likewise.
48062         * modules/unicase/locale-language (Dependencies): Likewise.
48063         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
48064         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
48065         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
48066         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
48067         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
48068         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
48069         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
48070         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
48071         * modules/vasnprintf-posix (Dependencies): Likewise.
48072         * modules/wcrtomb (Dependencies): Likewise.
48073         * modules/wcsnrtombs (Dependencies): Likewise.
48074         * modules/wcsrtombs (Dependencies): Likewise.
48076 2011-02-12  Bruno Haible  <bruno@clisp.org>
48078         setlocale: Workaround native Windows bug.
48079         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
48080         succeeds but sets LC_CTYPE to "C", report a failure.
48081         * tests/test-setlocale2.sh: New file.
48082         * tests/test-setlocale2.c: New file.
48083         * modules/setlocale-tests (Files): Add the new files.
48084         (Makefile.am): Enable test-setlocale2.sh test.
48085         * doc/posix-functions/setlocale.texi: Mention workaround.
48087 2011-02-11  Bruno Haible  <bruno@clisp.org>
48089         Tests for module 'setlocale'.
48090         * modules/setlocale-tests: New file.
48091         * tests/test-setlocale1.sh: New file.
48092         * tests/test-setlocale1.c: New file.
48094         New module 'setlocale'.
48095         * lib/locale.in.h (setlocale): New declaration.
48096         * lib/setlocale.c: New file, based on
48097         gettext/gettext-runtime/intl/setlocale.c.
48098         * m4/setlocale.m4: New file.
48099         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
48100         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
48101         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
48102         REPLACE_SETLOCALE.
48103         * modules/setlocale: New file.
48104         * tests/test-locale-c++.cc: Test the declaration of setlocale.
48105         * doc/posix-functions/setlocale.texi: Mention the new module.
48107 2011-02-11  Bruno Haible  <bruno@clisp.org>
48109         Prepare for locale dependent tests on mingw.
48110         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
48111         because it has the wrong locale encoding.
48112         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
48113         French_France.1252 instead of "fr".
48114         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
48115         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
48116         because it has the wrong locale encoding.
48117         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
48118         native Windows, try Turkish_Turkey.65001.
48119         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
48120         Chinese_China.54936.
48122         Prepare for locale dependent tests on mingw.
48123         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
48124         differently.
48125         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
48126         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
48127         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
48128         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
48130 2011-02-11  Eric Blake  <eblake@redhat.com>
48132         strptime: avoid compiler warnings
48133         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
48134         compiler warnings about dead code.
48135         Reported by Daniel P. Berrange.
48137 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
48139         doc: update users.txt
48140         * users.txt: Add rcs.
48142 2011-02-10  John W. Eaton  <jwe@gnu.org>
48144         doc: update users.txt
48145         * users.txt: Add octave.
48147 2011-02-10  Jim Meyering  <meyering@redhat.com>
48149         doc: update users.txt
48150         * users.txt: Add iwhd.
48152 2011-02-09  Bruno Haible  <bruno@clisp.org>
48154         gnulib-tool: Make copyright notice adjustment more robust.
48155         * gnulib-tool (func_import): In sed_transform_main_lib_file,
48156         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
48157         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
48158         License".
48159         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
48161 2011-02-06  Bruno Haible  <bruno@clisp.org>
48163         New module 'towctrans'.
48164         * modules/towctrans: New file.
48165         * lib/wctype.in.h (towctrans): New declaration.
48166         * lib/towctrans.c: New file.
48167         * lib/towctrans-impl.h: New file.
48168         * m4/towctrans.m4: New file.
48169         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
48170         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
48171         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
48172         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
48173         * doc/posix-functions/towctrans.texi: Mention the new module.
48175 2011-02-06  Bruno Haible  <bruno@clisp.org>
48177         New module 'wctrans'.
48178         * modules/wctrans: New file.
48179         * lib/wctype.in.h (wctrans): New declaration.
48180         * lib/wctrans.c: New file.
48181         * lib/wctrans-impl.h: New file.
48182         * m4/wctrans.m4: New file.
48183         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
48184         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
48185         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
48186         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
48187         * doc/posix-functions/wctrans.texi: Mention the new module.
48189 2011-02-06  Bruno Haible  <bruno@clisp.org>
48191         New module 'iswctype'.
48192         * modules/iswctype: New file.
48193         * lib/wctype.in.h (iswctype): New declaration.
48194         * lib/iswctype.c: New file.
48195         * lib/iswctype-impl.h: New file.
48196         * m4/iswctype.m4: New file.
48197         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
48198         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
48199         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
48200         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
48201         * doc/posix-functions/iswctype.texi: Mention the new module and the
48202         HP-UX 11.00 problem.
48204 2011-02-06  Bruno Haible  <bruno@clisp.org>
48206         New module 'wctype'.
48207         * modules/wctype: Change to represent the wctype() substitute.
48208         * lib/wctype.in.h (wctype): New declaration.
48209         * lib/wctype.c: New file.
48210         * lib/wctype-impl.h: New file.
48211         * m4/wctype.m4: New file.
48212         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
48213         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
48214         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
48215         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
48216         * doc/posix-functions/wctype.texi: Mention the new module and the
48217         HP-UX 11.00 problem.
48219 2011-02-06  Bruno Haible  <bruno@clisp.org>
48221         wctype-h: Ensure wctype_t and wctrans_t are defined.
48222         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
48223         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
48224         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
48225         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
48226         HAVE_WCTRANS_T.
48227         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
48229 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
48231         flock: fix license typo
48233         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
48234         omitted.
48236 2011-02-08  Bruno Haible  <bruno@clisp.org>
48238         Split large sed scripts, for HP-UX sed.
48239         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
48240         to avoid HP-UX limit of 99 commands, in the near future.
48241         * modules/stdlib (Makefile.am): Likewise.
48242         * modules/unistd (Makefile.am): Likewise.
48243         * modules/wchar (Makefile.am): Likewise.
48244         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48245         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
48246         <http://lists.gnu.org/r/bug-gnulib/2010-01/msg00216.html>.
48248 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
48249             Bruno Haible  <bruno@clisp.org>
48251         stdlib: improve random_r modularization
48252         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
48253         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
48254         you also need the random_r module to get this material right.
48255         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
48256         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
48257         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
48259 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
48261         stdlib: don't depend on stdint
48262         * lib/stdlib.in.h: Don't include <stdint.h> merely because
48263         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
48264         be independent of whether stdint.h is needed.
48265         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
48266         here, instead of ...
48267         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
48268         struct random_data should be using the random_r module, not just
48269         the stdlib module (which wouldn't make sense: what package needs
48270         just struct random_data without also needing random_r?).
48271         * modules/stdlib (Depends-on): Remove stdint.
48273         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
48274         See the thread rooted at
48275         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00090.html>.
48276         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
48277         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
48278         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
48279         __VMS)); previously it was always included (via fcntl--.h).
48280         (getloadavg): Do not use c_strtod.  Instead, approximate it by
48281         hand; this is good enough for load averages.  Also, do not use
48282         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
48283         flags directly if available and don't bother otherwise.  (Packages
48284         that need the extra reliability should use the modules that define
48285         these flags on older platforms that lack them.)
48286         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
48287         fcntl-safer.
48289 2011-02-08  Jim Meyering  <meyering@redhat.com>
48291         di-set.h, ino-map.h: add multiple-inclusion guard
48292         Technically, the guard is required only for ino-map.h, due to its
48293         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
48294         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
48295         * lib/ino-map.h: Likewise.
48297 2011-02-06  Bruno Haible  <bruno@clisp.org>
48299         iswblank: Ensure declaration on glibc systems.
48300         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
48301         * modules/iswblank (Dependencies): Add 'extensions'.
48302         * doc/posix-functions/iswblank.texi: Document the glibc problem.
48304 2011-02-06  Bruno Haible  <bruno@clisp.org>
48306         New module 'iswblank'.
48307         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
48308         * modules/iswblank: New file.
48309         * modules/wctype-h (Files): Remove lib/iswblank.c.
48310         (Makefile.am): Substitute GNULIB_ISWBLANK.
48311         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
48312         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
48313         (gl_WCTYPE_H_DEFAULTS): New macro.
48314         (gl_WCTYPE_H): Require it. Remove iswblank related code.
48315         * modules/iswblank-tests: New file.
48316         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
48317         * tests/test-wctype-h.c (main): Remove iswblank tests.
48318         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
48319         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
48320         of 'wctype-h'.
48321         * NEWS: Mention the change.
48322         * modules/mbchar (Depends-on): Add iswblank.
48324 2011-02-08  Bruno Haible  <bruno@clisp.org>
48326         di-set tests: Refactor.
48327         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
48328         unnecessary includes.
48329         (ASSERT): Remove macro.
48330         (main): Make C90 compliant by avoiding variable declaration after
48331         statement.
48332         * modules/di-set-tests (Files): Add tests/macros.h.
48334 2011-02-08  Bruno Haible  <bruno@clisp.org>
48336         ino-map tests: Refactor.
48337         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
48338         unnecessary includes.
48339         (ASSERT): Remove macro.
48340         (main): Make C90 compliant by avoiding variable declaration after
48341         statement.
48342         * modules/ino-map-tests (Files): Add tests/macros.h.
48344 2011-02-08  Jim Meyering  <meyering@redhat.com>
48346         di-set: add "const" to a cast
48347         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
48348         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
48350 2011-02-06  Bruno Haible  <bruno@clisp.org>
48352         Rename module 'wctype' to 'wctype-h'.
48353         * modules/wctype-h: Renamed from modules/wctype.
48354         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
48355         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
48356         (Files, Depends-on, Makefile.am): Update.
48357         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
48358         (Files, Makefile.am): Update.
48359         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
48360         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
48361         * doc/posix-headers/wctype.texi: Update.
48362         * doc/posix-functions/iswalnum.texi: Update.
48363         * doc/posix-functions/iswalpha.texi: Update.
48364         * doc/posix-functions/iswblank.texi: Update.
48365         * doc/posix-functions/iswcntrl.texi: Update.
48366         * doc/posix-functions/iswdigit.texi: Update.
48367         * doc/posix-functions/iswgraph.texi: Update.
48368         * doc/posix-functions/iswlower.texi: Update.
48369         * doc/posix-functions/iswprint.texi: Update.
48370         * doc/posix-functions/iswpunct.texi: Update.
48371         * doc/posix-functions/iswspace.texi: Update.
48372         * doc/posix-functions/iswupper.texi: Update.
48373         * doc/posix-functions/iswxdigit.texi: Update.
48374         * doc/posix-functions/towlower.texi: Update.
48375         * doc/posix-functions/towupper.texi: Update.
48376         * NEWS: Mention the change.
48377         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
48378         * modules/mbchar (Dependencies): Likewise.
48379         * modules/mbswidth (Dependencies): Likewise.
48380         * modules/quotearg (Dependencies): Likewise.
48381         * modules/regex (Dependencies): Likewise.
48382         * modules/wcscasecmp (Dependencies): Likewise.
48383         * modules/wcsncasecmp (Dependencies): Likewise.
48384         * modules/wcwidth (Dependencies): Likewise.
48386 2011-02-06  Bruno Haible  <bruno@clisp.org>
48388         New module 'wcswidth'.
48389         * modules/wcswidth: New file.
48390         * lib/wchar.in.h (wcswidth): New declaration.
48391         * lib/wcswidth.c: New file.
48392         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
48393         * m4/wcswidth.m4: New file.
48394         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
48395         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
48396         REPLACE_WCSWIDTH.
48397         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
48398         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
48399         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
48400         * doc/posix-functions/wcswidth.texi: Mention the new module.
48402 2011-02-06  Bruno Haible  <bruno@clisp.org>
48404         New module 'wcstok'.
48405         * modules/wcstok: New file.
48406         * lib/wchar.in.h (wcstok): New declaration.
48407         * lib/wcstok.c: New file.
48408         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
48409         * m4/wcstok.m4: New file.
48410         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
48411         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
48412         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
48413         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
48414         * doc/posix-functions/wcstok.texi: Mention the new module.
48416 2011-02-06  Bruno Haible  <bruno@clisp.org>
48418         New module 'wcsstr'.
48419         * modules/wcsstr: New file.
48420         * lib/wchar.in.h (wcsstr): New declaration.
48421         * lib/wcsstr.c: New file.
48422         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
48423         * m4/wcsstr.m4: New file.
48424         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
48425         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
48426         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
48427         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
48428         * doc/posix-functions/wcsstr.texi: Mention the new module.
48430 2011-02-06  Bruno Haible  <bruno@clisp.org>
48432         New module 'wcspbrk'.
48433         * modules/wcspbrk: New file.
48434         * lib/wchar.in.h (wcspbrk): New declaration.
48435         * lib/wcspbrk.c: New file.
48436         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
48437         * m4/wcspbrk.m4: New file.
48438         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
48439         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
48440         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
48441         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
48442         * doc/posix-functions/wcspbrk.texi: Mention the new module.
48444 2011-02-06  Bruno Haible  <bruno@clisp.org>
48446         New module 'wcsspn'.
48447         * modules/wcsspn: New file.
48448         * lib/wchar.in.h (wcsspn): New declaration.
48449         * lib/wcsspn.c: New file.
48450         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
48451         * m4/wcsspn.m4: New file.
48452         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
48453         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
48454         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
48455         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
48456         * doc/posix-functions/wcsspn.texi: Mention the new module.
48458 2011-02-06  Bruno Haible  <bruno@clisp.org>
48460         New module 'wcscspn'.
48461         * modules/wcscspn: New file.
48462         * lib/wchar.in.h (wcscspn): New declaration.
48463         * lib/wcscspn.c: New file.
48464         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
48465         * m4/wcscspn.m4: New file.
48466         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
48467         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
48468         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
48469         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
48470         * doc/posix-functions/wcscspn.texi: Mention the new module.
48472 2011-02-06  Bruno Haible  <bruno@clisp.org>
48474         New module 'wcsrchr'.
48475         * modules/wcsrchr: New file.
48476         * lib/wchar.in.h (wcsrchr): New declaration.
48477         * lib/wcsrchr.c: New file.
48478         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
48479         * m4/wcsrchr.m4: New file.
48480         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
48481         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
48482         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
48483         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
48484         * doc/posix-functions/wcsrchr.texi: Mention the new module.
48486 2011-02-06  Bruno Haible  <bruno@clisp.org>
48488         New module 'wcschr'.
48489         * modules/wcschr: New file.
48490         * lib/wchar.in.h (wcschr): New declaration.
48491         * lib/wcschr.c: New file.
48492         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
48493         * m4/wcschr.m4: New file.
48494         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
48495         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
48496         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
48497         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
48498         * doc/posix-functions/wcschr.texi: Mention the new module.
48500 2011-02-06  Bruno Haible  <bruno@clisp.org>
48502         New module 'wcsdup'.
48503         * modules/wcsdup: New file.
48504         * lib/wchar.in.h (wcsdup): New declaration.
48505         * lib/wcsdup.c: New file.
48506         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
48507         * m4/wcsdup.m4: New file.
48508         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
48509         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
48510         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
48511         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
48512         * doc/posix-functions/wcsdup.texi: Mention the new module.
48514 2011-02-06  Bruno Haible  <bruno@clisp.org>
48516         New module 'wcsxfrm'.
48517         * modules/wcsxfrm: New file.
48518         * lib/wchar.in.h (wcsxfrm): New declaration.
48519         * lib/wcsxfrm.c: New file.
48520         * lib/wcsxfrm-impl.h: New file.
48521         * m4/wcsxfrm.m4: New file.
48522         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
48523         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
48524         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
48525         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
48526         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
48528 2011-02-06  Bruno Haible  <bruno@clisp.org>
48530         New module 'wcscoll'.
48531         * modules/wcscoll: New file.
48532         * lib/wchar.in.h (wcscoll): New declaration.
48533         * lib/wcscoll.c: New file.
48534         * lib/wcscoll-impl.h: New file.
48535         * m4/wcscoll.m4: New file.
48536         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
48537         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
48538         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
48539         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
48540         * doc/posix-functions/wcscoll.texi: Mention the new module.
48542 2011-02-06  Bruno Haible  <bruno@clisp.org>
48544         New module 'wcsncasecmp'.
48545         * modules/wcsncasecmp: New file.
48546         * lib/wchar.in.h (wcsncasecmp): New declaration.
48547         * lib/wcsncasecmp.c: New file.
48548         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
48549         * m4/wcsncasecmp.m4: New file.
48550         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
48551         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
48552         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
48553         HAVE_WCSNCASECMP.
48554         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
48555         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
48557 2011-02-06  Bruno Haible  <bruno@clisp.org>
48559         New module 'wcscasecmp'.
48560         * modules/wcscasecmp: New file.
48561         * lib/wchar.in.h (wcscasecmp): New declaration.
48562         * lib/wcscasecmp.c: New file.
48563         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
48564         * m4/wcscasecmp.m4: New file.
48565         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
48566         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
48567         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
48568         HAVE_WCSCASECMP.
48569         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
48570         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
48572 2011-02-05  Bruno Haible  <bruno@clisp.org>
48574         New module 'wcsncmp'.
48575         * modules/wcsncmp: New file.
48576         * lib/wchar.in.h (wcsncmp): New declaration.
48577         * lib/wcsncmp.c: New file.
48578         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
48579         * m4/wcsncmp.m4: New file.
48580         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
48581         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
48582         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
48583         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
48584         * doc/posix-functions/wcsncmp.texi: Mention the new module.
48586 2011-02-05  Bruno Haible  <bruno@clisp.org>
48588         New module 'wcscmp'.
48589         * modules/wcscmp: New file.
48590         * lib/wchar.in.h (wcscmp): New declaration.
48591         * lib/wcscmp.c: New file.
48592         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
48593         * m4/wcscmp.m4: New file.
48594         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
48595         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
48596         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
48597         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
48598         * doc/posix-functions/wcscmp.texi: Mention the new module.
48600 2011-02-05  Bruno Haible  <bruno@clisp.org>
48602         New module 'wcsncat'.
48603         * modules/wcsncat: New file.
48604         * lib/wchar.in.h (wcsncat): New declaration.
48605         * lib/wcsncat.c: New file.
48606         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
48607         * m4/wcsncat.m4: New file.
48608         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
48609         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
48610         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
48611         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
48612         * doc/posix-functions/wcsncat.texi: Mention the new module.
48614 2011-02-05  Bruno Haible  <bruno@clisp.org>
48616         New module 'wcscat'.
48617         * modules/wcscat: New file.
48618         * lib/wchar.in.h (wcscat): New declaration.
48619         * lib/wcscat.c: New file.
48620         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
48621         * m4/wcscat.m4: New file.
48622         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
48623         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
48624         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
48625         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
48626         * doc/posix-functions/wcscat.texi: Mention the new module.
48628 2011-02-05  Bruno Haible  <bruno@clisp.org>
48630         New module 'wcpncpy'.
48631         * modules/wcpncpy: New file.
48632         * lib/wchar.in.h (wcpncpy): New declaration.
48633         * lib/wcpncpy.c: New file.
48634         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
48635         * m4/wcpncpy.m4: New file.
48636         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
48637         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
48638         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
48639         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
48640         * doc/posix-functions/wcpncpy.texi: Mention the new module.
48642 2011-02-05  Bruno Haible  <bruno@clisp.org>
48644         New module 'wcsncpy'.
48645         * modules/wcsncpy: New file.
48646         * lib/wchar.in.h (wcsncpy): New declaration.
48647         * lib/wcsncpy.c: New file.
48648         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
48649         * m4/wcsncpy.m4: New file.
48650         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
48651         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
48652         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
48653         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
48654         * doc/posix-functions/wcsncpy.texi: Mention the new module.
48656 2011-02-05  Bruno Haible  <bruno@clisp.org>
48658         New module 'wcpcpy'.
48659         * modules/wcpcpy: New file.
48660         * lib/wchar.in.h (wcpcpy): New declaration.
48661         * lib/wcpcpy.c: New file.
48662         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
48663         * m4/wcpcpy.m4: New file.
48664         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
48665         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
48666         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
48667         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
48668         * doc/posix-functions/wcpcpy.texi: Mention the new module.
48670 2011-02-05  Bruno Haible  <bruno@clisp.org>
48672         New module 'wcscpy'.
48673         * modules/wcscpy: New file.
48674         * lib/wchar.in.h (wcscpy): New declaration.
48675         * lib/wcscpy.c: New file.
48676         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
48677         * m4/wcscpy.m4: New file.
48678         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
48679         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
48680         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
48681         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
48682         * doc/posix-functions/wcscpy.texi: Mention the new module.
48684 2011-02-05  Bruno Haible  <bruno@clisp.org>
48686         New module 'wcsnlen'.
48687         * modules/wcsnlen: New file.
48688         * lib/wchar.in.h (wcsnlen): New declaration.
48689         * lib/wcsnlen.c: New file.
48690         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
48691         * m4/wcsnlen.m4: New file.
48692         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
48693         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
48694         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
48695         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
48696         * doc/posix-functions/wcsnlen.texi: Mention the new module.
48698 2011-02-05  Bruno Haible  <bruno@clisp.org>
48700         New module 'wcslen'.
48701         * modules/wcslen: New file.
48702         * lib/wchar.in.h (wcslen): New declaration.
48703         * lib/wcslen.c: New file.
48704         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
48705         * m4/wcslen.m4: New file.
48706         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
48707         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
48708         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
48709         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
48710         * doc/posix-functions/wcslen.texi: Mention the new module.
48712 2011-02-05  Bruno Haible  <bruno@clisp.org>
48714         New module 'wmemset'.
48715         * modules/wmemset: New file.
48716         * lib/wchar.in.h (wmemset): New declaration.
48717         * lib/wmemset.c: New file.
48718         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
48719         * m4/wmemset.m4: New file.
48720         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
48721         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
48722         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
48723         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
48724         * doc/posix-functions/wmemset.texi: Mention the new module.
48726 2011-02-05  Bruno Haible  <bruno@clisp.org>
48728         New module 'wmemmove'.
48729         * modules/wmemmove: New file.
48730         * lib/wchar.in.h (wmemmove): New declaration.
48731         * lib/wmemmove.c: New file.
48732         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
48733         * m4/wmemmove.m4: New file.
48734         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
48735         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
48736         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
48737         HAVE_WMEMMOVE.
48738         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
48739         * doc/posix-functions/wmemmove.texi: Mention the new module.
48741 2011-02-05  Bruno Haible  <bruno@clisp.org>
48743         New module 'wmemcpy'.
48744         * modules/wmemcpy: New file.
48745         * lib/wchar.in.h (wmemcpy): New declaration.
48746         * lib/wmemcpy.c: New file.
48747         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
48748         * m4/wmemcpy.m4: New file.
48749         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
48750         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
48751         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
48752         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
48753         * doc/posix-functions/wmemcpy.texi: Mention the new module.
48755 2011-02-05  Bruno Haible  <bruno@clisp.org>
48757         New module 'wmemcmp'.
48758         * modules/wmemcmp: New file.
48759         * lib/wchar.in.h (wmemcmp): New declaration.
48760         * lib/wmemcmp.c: New file.
48761         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
48762         * m4/wmemcmp.m4: New file.
48763         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
48764         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
48765         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
48766         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
48767         * doc/posix-functions/wmemcmp.texi: Mention the new module.
48769 2011-02-07  Jim Meyering  <meyering@redhat.com>
48771         di-set, ino-map: new modules, from coreutils
48772         * lib/di-set.c: New file.
48773         * lib/di-set.h: Likewise.
48774         * lib/ino-map.c: Likewise.
48775         * lib/ino-map.h: Likewise.
48776         * modules/di-set: Likewise.
48777         * modules/di-set-tests: Likewise.
48778         * modules/ino-map: Likewise.
48779         * modules/ino-map-tests: Likewise.
48780         * tests/test-di-set.c: Likewise.
48781         * tests/test-ino-map.c: Likewise.
48783 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
48785         getloadavg: merge minor changes from Emacs
48787         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
48788         (getloadavg): Use memset, not bzero.
48790         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
48791         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
48792         clash (bug#86).
48794 2010-11-14  Bruno Haible  <bruno@clisp.org>
48796         Allow multiple gnulib generated replacements to coexist.
48797         * lib/getopt.in.h (struct option): Avoid identical redefinition.
48798         * lib/inttypes.in.h (imaxdiv_t): Likewise.
48799         * lib/langinfo.in.h (nl_item): Likewise.
48800         * lib/math.in.h (_NaN, NAN): Likewise.
48801         * lib/netdb.in.h (struct addrinfo): Likewise.
48802         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
48803         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
48804         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
48805         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
48806         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
48807         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
48808         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
48809         pthread_mutexattr_init, pthread_mutexattr_settype,
48810         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
48811         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
48812         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
48813         pthread_spin_trylock, pthread_spin_unlock): Likewise.
48814         * lib/sched.in.h (struct sched_param): Likewise.
48815         * lib/se-selinux.in.h (security_class_t, security_context_t,
48816         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
48817         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
48818         lsetfilecon, fsetfilecon, security_check_context,
48819         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
48820         Likewise.
48821         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
48822         Likewise.
48823         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
48824         _gl_function_taking_int_returning_void_t, union sigval,
48825         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
48826         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
48827         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
48828         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
48829         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
48830         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
48831         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
48832         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
48833         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
48834         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
48835         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
48836         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
48837         socklen_t, rpl_fd_isset): Likewise.
48838         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
48839         * lib/sys_time.in.h (struct timeval): Likewise.
48840         * lib/sys_times.in.h (struct tms): Likewise.
48841         * lib/sys_utsname.in.h (struct utsname):
48842         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
48843         * lib/unistd.in.h (getpagesize): Likewise.
48844         * lib/wchar.in.h (mbstate_t): Likewise.
48845         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
48846         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
48847         towlower, towupper): Likewise.
48848         Reported by Sam Steingold <sds@gnu.org>.
48850 2011-02-05  Eric Blake  <eblake@redhat.com>
48852         unsetenv: work around Haiku issues
48853         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
48854         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
48856 2010-12-30  Bruce Korb  <bkorb@gnu.org>
48858         libposix: avoid calling error() within libposix
48859         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
48860         is defined.
48862 2011-02-05  Eric Blake  <eblake@redhat.com>
48864         strerror_r-posix: port to cygwin
48865         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
48866         implementation.
48867         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
48868         * tests/test-strerror_r.c (main): Fix test.
48869         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
48870         issue.
48872 2011-02-05  Bruno Haible  <bruno@clisp.org>
48874         New module 'wmemchr'.
48875         * modules/wmemchr: New file.
48876         * lib/wchar.in.h (wmemchr): New declaration.
48877         * lib/wmemchr.c: New file.
48878         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
48879         * m4/wmemchr.m4: New file.
48880         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
48881         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
48882         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
48883         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
48884         * doc/posix-functions/wmemchr.texi: Mention the new module.
48886 2011-02-04  Eric Blake  <eblake@redhat.com>
48888         fdopendir: detect FreeBSD bug
48889         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
48890         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
48892 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
48894         stdbool: do not define HAVE_STDBOOL_H
48895         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
48896         AC_HEADER_STDBOOL.  All uses changed.  Do not define
48897         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
48898         imported from the latest Autoconf git.  It was motivated by Emacs,
48899         which uses gnulib but does not need HAVE_STDBOOL_H.
48901 2011-02-04  Bruno Haible  <bruno@clisp.org>
48903         wcsnrtombs: Prepare for new module wwcsnrtombs.
48904         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
48905         * lib/wcsnrtombs.c: Include it.
48906         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
48908         wcsrtombs: Prepare for new module wwcsrtombs.
48909         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
48910         * lib/wcsrtombs.c: Include it.
48911         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
48913         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
48914         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
48915         * lib/mbsnrtowcs.c: Include it.
48916         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
48918         mbsrtowcs: Prepare for new module mbsrtowwcs.
48919         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
48920         * lib/mbsrtowcs.c: Include it.
48921         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
48923 2011-02-04  Bruno Haible  <bruno@clisp.org>
48925         vasnprintf: Reduce use of malloc for small format strings.
48926         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
48927         (arguments): Add room for the first 7 arguments.
48928         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
48929         (char_directives, u8_directives, u16_directives, u32_directives): Add
48930         room for the first 7 directives.
48931         * lib/printf-parse.c: Include <string.h>.
48932         (PRINTF_PARSE): Change memory handling code so that it uses the first
48933         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
48934         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
48935         Reported by Pádraig Brady <P@draigbrady.com>.
48937 2011-01-31  Eric Blake  <eblake@redhat.com>
48939         dup2: work around Haiku bug
48940         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
48941         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
48942         * doc/posix-functions/dup2.texi (dup2): Document the bug.
48943         * tests/test-dup2.c (main): Enhance test.
48945 2011-01-31  Simon Josefsson  <simon@josefsson.org>
48947         doc: off_t is not available in eglibc 2.11.2 stdio.h.
48948         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
48949         declared by eglibc 2.11.2.
48950         * lib/stdio.in.h: Likewise.
48952 2011-01-31  Eric Blake  <eblake@redhat.com>
48954         ignore-value: add missing test dependency
48955         * tests/test-ignore-value.c: Revert previous change; stdio.h
48956         provides off_t.
48957         * modules/ignore-value-tests (Depends-on): Add missing dependency.
48959 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
48961         mktime: clarify long_int width checking
48962         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
48963         the top level, to make it clearer that the assumption about
48964         long_int width is being checked.  See
48965         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00554.html>.
48967 2011-01-30  Simon Josefsson  <simon@josefsson.org>
48969         ignore-value: Fix self-test.
48970         * tests/test-ignore-value.c: Include sys/types.h for off_t.
48972 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
48974         TYPE_MAXIMUM: avoid theoretically undefined behavior
48975         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
48976         negative number, which the C Standard says has undefined behavior.
48977         In practice this is not a problem, but might as well do it by the book.
48978         Reported by Rich Felker and Eric Blake; see
48979         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00493.html>.
48980         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
48981         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
48982         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
48983         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
48984         * m4/stdint.m4 (gl_STDINT_H): Likewise.
48985         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
48987         mktime: #undef mktime before #defining it
48988         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
48990         mktime: systematically normalize tm_isdst comparisons
48991         * lib/mktime.c (isdst_differ): New function.
48992         (__mktime_internal): Use it systematically for all isdst comparisons.
48993         This completes the fix for libc BZ #6723, and removes the need for
48994         normalizing tm_isdst.  See
48995         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
48996         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
48998         mktime: fix some integer overflow issues and sidestep the rest
49000         This was prompted by a bug report by Benjamin Lindner for MinGW
49001         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00472.html>.
49002         His bug is due to signed integer overflow (0 - INT_MIN), and I
49003         I scanned through mktime.c looking for other integer overflow
49004         problems, fixing all the bugs I found.
49006         Although the C Standard says the resulting code is still not safe
49007         in the presence of integer overflow, in practice it should be good
49008         enough for all real-world two's-complement implementations, except
49009         for debugging environments that deliberately trap on integer
49010         overflow (e.g., gcc -ftrapv).
49012         * lib/mktime.c (WRAPV): New macro.
49013         (SHR): Also check that long_int and time_t shift right in the
49014         usual way, before using the fast-but-unportable method.
49015         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
49016         used.  The code already assumed two's complement, so there's
49017         no need to test for alternatives.  All uses removed.
49018         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
49019         the C standard.  Problem reported by Rich Felker in
49020         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00488.html>.
49021         (twos_complement_arithmetic): Also check long_int and time_t.
49022         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
49023         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
49024         (__mktime_internal): Avoid integer overflow with unary subtraction
49025         in two instances where -1 - X is an adequate replacement for -X,
49026         since the calculations are approximate.
49028 2011-01-29  Eric Blake  <eblake@redhat.com>
49030         mktime: avoid infinite loop
49031         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
49032         type; behavior is still undefined but portable to all known targets.
49033         Reported by Rich Felker.
49035 2011-01-29  Simon Josefsson  <simon@josefsson.org>
49037         rename, unlink, same-inode: Relicense.
49038         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
49039         * modules/unlink (License): Likewise.
49040         * modules/same-inode (License): Likewise.
49042 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
49044         mktime: avoid problems on NetBSD 5 / i386
49045         * lib/mktime.c (long_int): New type.  This works around a problem
49046         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
49047         but time_t is 64 bits, and where I expect the existing code is
49048         wrong in some cases.
49049         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
49050         (ydhms_diff): Bring back the compile-time check for wide-enough
49051         year and yday.
49053         mktime: fix misspelling in comment
49054         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
49055         This merges all recent glibc changes of importance.
49057 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49059         move-if-change: cope with concurrent mv of identical file.
49060         * build-aux/move-if-change (CMPPROG): Accept environment
49061         variable as an override for `cmp'.
49062         (usage): Document CMPPROG.
49063         Adjust comparison to drop stdout.  Cope with failure of mv if
49064         the target file exists and is identical to the source, for
49065         parallel builds.
49066         Report from H.J. Lu against binutils in PR binutils/12283.
49068 2011-01-28  Bruce Korb  <bkorb@gnu.org>
49070         * users.txt: Mention sharutils.
49072 2011-01-28  Simon Josefsson  <simon@josefsson.org>
49074         * users.txt: Mention OATH Toolkit.
49076 2011-01-27  Bruno Haible  <bruno@clisp.org>
49078         Prepare for supporting FreeBSD 10.
49079         * build-aux/config.libpath: Remove handling of freebsd1*.
49081 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
49083         Prepare for supporting FreeBSD 10.
49084         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
49085         match FreeBSD 10.0.
49087 2011-01-27  Bruno Haible  <bruno@clisp.org>
49089         vma-iter, get-rusage-as: Add OpenBSD support.
49090         * modules/vma-iter (configure.ac): Test for mquery.
49091         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
49092         * lib/vma-iter.c: Include <sys/mman.h>.
49093         (vma_iterate): Add an implementation based on mquery().
49094         * lib/resource-ext.h (get_rusage_as): Update comments.
49095         * lib/get-rusage-as.c: Likewise.
49096         * lib/get-rusage-data.c: Likewise.
49098 2011-01-26  Karl Berry  <karl@gnu.org>
49100         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
49101         variables to make it easier to override the makeinfo program used.
49103 2011-01-26  Eric Blake  <eblake@redhat.com>
49105         fcntl: work around Haiku F_DUPFD bugs
49106         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
49107         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
49108         cloexec bit on duplication.
49109         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
49111 2011-01-26  Bruno Haible  <bruno@clisp.org>
49113         Enable memory leak tests on AIX.
49114         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
49115         * tests/test-fprintf-posix3.c (main): Likewise.
49117 2011-01-26  Bruno Haible  <bruno@clisp.org>
49119         Tests for module 'get-rusage-data'.
49120         * modules/get-rusage-data-tests: New file.
49121         * tests/test-get-rusage-data.c: New file.
49123         New module 'get-rusage-data'.
49124         * lib/resource-ext.h (get_rusage_data): New declaration.
49125         * lib/get-rusage-data.c: New file.
49126         * modules/get-rusage-data: New file.
49128 2011-01-25  Bruno Haible  <bruno@clisp.org>
49130         get-rusage-as: Allow for easier testing.
49131         * lib/resource-ext.h (get_rusage_as): Add comment.
49132         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
49133         (main): New function for interactive testing.
49135 2011-01-25  Bruno Haible  <bruno@clisp.org>
49137         vma-iter: Treat Haiku like BeOS.
49138         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
49139         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
49141 2011-01-25  Eric Blake  <eblake@redhat.com>
49143         c-stack: fix regression on cygwin when libsigsegv is present
49144         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
49146 2011-01-24  Bruno Haible  <bruno@clisp.org>
49148         vma-iter: Avoid empty intervals.
49149         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
49150         on an empty interval.
49152 2011-01-24  Jim Meyering  <meyering@redhat.com>
49154         u64: remove unnecessary #include
49155         * lib/u64.h: Don't include <stddef.h>.  It was not used.
49157 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
49159         Allow the user to avoid the HAVE_RAW_DECL_* macros.
49160         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
49162 2011-01-23  Bruno Haible  <bruno@clisp.org>
49164         New module 'vma-iter'.
49165         * lib/vma-iter.h: New file.
49166         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
49167         * modules/vma-iter: New file.
49168         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
49169         for get_rusage_as_via_iterator.
49170         (vma_iterate_callback): New function.
49171         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
49172         * modules/get-rusage-as (Depends-on): Add vma-iter.
49174 2011-01-23  Bruno Haible  <bruno@clisp.org>
49176         uninorm: Tweak includes.
49177         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
49178         Reported by Jim Meyering.
49180 2011-01-23  Bruno Haible  <bruno@clisp.org>
49182         get-rusage-as: Improve on NetBSD.
49183         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
49184         /proc, like on FreeBSD.
49186 2011-01-23  Jim Meyering  <meyering@redhat.com>
49188         xreadlink.h: remove unnecessary #include
49189         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
49191         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
49192         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
49194 2011-01-23  Bruno Haible  <bruno@clisp.org>
49196         get-rusage-as: Fix bug.
49197         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
49198         original limit when aborting the first loop.
49200 2011-01-23  Bruno Haible  <bruno@clisp.org>
49202         wctype: Ensure valid C syntax.
49203         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
49204         unconditionally, instead of gl_NEXT_HEADERS conditionally.
49206 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
49208         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
49209         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
49210         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
49211         as they are needed only for configure's test case.
49212         This removes two unnecessary symbols from config.h.
49214         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
49215         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
49216         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
49217         AC_CHECK_HEADERS_ONCE on a header that we also invoke
49218         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
49219         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
49220         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
49221         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
49222         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
49223         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
49224         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
49225         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
49226         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
49227         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
49228         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
49229         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
49230         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
49231         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
49233 2011-01-21  Eric Blake  <eblake@redhat.com>
49235         maintainer-makefile: work with older git for submodule check
49236         * top/maint.mk (public-submodule-commit): Rewrite to avoid
49237         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
49238         Reported by Matthias Bolte.
49240         bootstrap: minor portability fixes
49241         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
49242         (usage): Omit leading capital and trailing . on help phrases, per
49243         GNU Coding Standards.
49244         (check_versions, top level): Prefix messages with script name.
49246 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
49248         bootstrap: support --no-git option
49249         * build-aux/bootstrap: Add --no-git option, to be used when
49250         --gnulib-srcdir points to the exact desired checkout.
49252 2011-01-21  Eric Blake  <eblake@redhat.com>
49254         strerror_r-posix: work with glibc 2.13
49255         * lib/strerror_r.c (strerror_r): Fix return type.
49257 2011-01-21  Pádraig Brady  <P@draigBrady.com>
49258             Bruno Haible  <bruno@clisp.org>
49260         uN_strstr: New unit tests.
49261         * modules/unistr/u8-strstr-tests: New file.
49262         * modules/unistr/u16-strstr-tests: New file.
49263         * modules/unistr/u32-strstr-tests: New file.
49264         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
49265         * tests/unistr/test-u8-strstr.c: New file.
49266         * tests/unistr/test-u16-strstr.c: New file.
49267         * tests/unistr/test-u32-strstr.c: New file.
49269 2011-01-21  Pádraig Brady  <P@draigBrady.com>
49270             Bruno Haible  <bruno@clisp.org>
49272         Make uN_strstr functions O(n) worst-case.
49273         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
49274         16-bit and 32-bit unit cases, use the unibyte algorithm from
49275         lib/mbsstr.c.
49276         * lib/unistr/u8-strstr.c: Include <string.h>.
49277         (UNIT_IS_UINT8_T): New macro.
49278         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
49279         (U_STRLEN, U_STRNLEN): New macros.
49280         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
49281         (U_STRLEN, U_STRNLEN): New macros.
49282         * modules/unistr/u8-strstr (Depends-on): Add strstr.
49283         (configure.ac): Update required libunistring version.
49284         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
49285         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
49286         malloca.
49287         (configure.ac): Update required libunistring version.
49288         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
49289         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
49290         malloca.
49291         (configure.ac): Update required libunistring version.
49293 2011-01-21  Pádraig Brady  <P@draigBrady.com>
49294             Bruno Haible  <bruno@clisp.org>
49296         Prepare for faster uN_strstr functions.
49297         * lib/str-kmp.h: Support definable UNITs.
49298         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
49299         needle_len argument.
49300         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
49301         * lib/mbscasestr.c (mbscasestr): Likewise.
49303 2011-01-21  Pádraig Brady  <P@draigBrady.com>
49305         malloca-tests: make faster by unsetting MALLOC_PERTURB_
49306         * tests/test-malloca.c (main): Unset the environment variable
49307         to greatly speed up the test.
49308         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
49309         * modules/malloca-tests: Depend on unsetenv.
49311 2011-01-21  Pádraig Brady  <P@draigBrady.com>
49313         ignore-value: remove stdint dependency
49314         * lib/ignore-value.h: Remove <stdint.h>
49315         * modules/ignore-value: Remove stdint dependency.
49317 2011-01-21  Jim Meyering  <meyering@redhat.com>
49319         maint.mk: adjust variable name to be consistent with other gl_ vars
49320         * top/maint.mk (gl_public_submodule_commit): Rename the variable
49321         to be lower case.
49323 2011-01-20  Jim Meyering  <meyering@redhat.com>
49325         maint.mk: make "check" depend on public-submodule-commit by default
49326         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
49328 2011-01-20  Bruno Haible  <bruno@clisp.org>
49330         mbfile, mbiter: Complete change from 2008-12-21.
49331         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
49332         * m4/mbiter.m4 (gl_MBITER): Likewise.
49334 2011-01-20  Jim Meyering  <meyering@redhat.com>
49336         init.sh: insert space between each function name and "()"
49337         * tests/init.sh: Make it a little easier to see that a function's
49338         name is "warn_", and not "warn" when looking at the first part of
49339         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
49341 2011-01-20  Jim Meyering  <meyering@redhat.com>
49343         mountlist: clean up code formatting
49344         * lib/mountlist.c (read_file_system_list): Split a long line,
49345         correct bracing style, use NULL in place of "(struct statfs *)0",
49346         don't parenthesize return value, add spaces around "=" and after
49347         ";-in-for-stmt".
49349 2011-01-14  Markus Duft  <mduft@gentoo.org>
49351         mountlist: add support for Interix
49352         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
49353         Apply statvfs to all entries of /dev/fs.
49354         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
49355         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
49357 2011-01-20  Jim Meyering  <meyering@redhat.com>
49359         maint.mk: improve the public-submodule-commit rule
49360         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
49361         to suppress printing of its commands... unless V=1.
49362         Add git submodule's --quiet option to suppress printing of e.g.,
49363         "Entering gnulib" output.
49364         "cd" into $(srcdir) before running git submodule.
49366 2011-01-20  Bruno Haible  <bruno@clisp.org>
49368         include_next: Fix bug introduced on 2011-01-18.
49369         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
49370         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
49371         ac_cv_header_... variable if the second argument is not 'check'.
49372         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
49373         gl_NEXT_HEADERS_INTERNAL.
49375 2011-01-20  Bruno Haible  <bruno@clisp.org>
49377         Allow the user to avoid the GNULIB_TEST_* macros.
49378         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
49379         Suggested by Paul Eggert.
49381 2011-01-14  Jim Meyering  <meyering@redhat.com>
49383         bootstrap: avoid failure when there is no .gitmodules file
49384         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
49385         has been assigned to, even when its value is the empty string.
49386         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
49387         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
49388         Reported by John W. Eaton <jwe@gnu.org>.
49390 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
49392         assume <ctype.h>, ..., <time.h> exist
49393         For years gnulib has been assuming the existence of the headers
49394         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
49395         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
49396         them, since they don't appear to be needed.
49397         * README (Portability guidelines): Document this.
49398         * lib/flock.c: Assume <fcntl.h> exists.
49399         * lib/regex_internal.h: Assume <locale.h> exists.
49400         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
49401         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
49402         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
49403         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
49404         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
49405         * m4/regex.m4 (gl_REGEX): Likewise.
49406         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
49407         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
49408         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
49409         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
49410         * tests/test-argp.c: Likewise.
49411         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
49413         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
49414         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
49415         AA_APPLE_UNIVERSAL_BUILD.  See
49416         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00247.html>.
49417         * NEWS: Document this.
49419 2011-01-19  Eric Blake  <eblake@redhat.com>
49421         c-stack: assume stack overflow if SA_SIGINFO unsupported
49422         * lib/c-stack.c (SIGACTION_WORKS): Rename...
49423         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
49424         sigaction will work.
49425         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
49426         behavior match Linux.
49427         * tests/test-c-stack.c (main): Prefer NULL for pointers.
49429         stdbool-tests: accommodate Haiku
49430         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
49432         binary-io: fix O_TEXT on Haiku
49433         * modules/binary-io (Depends-on): Add fcntl-h.
49434         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
49435         than blindly undefining O_TEXT.
49436         Reported by Scott McCreary.
49438 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
49440         include_next: do not check for standard headers like stddef.h
49442         I found this problem when modifying Emacs to use gnulib.
49443         I noticed that it added HAVE_STDDEF_H to config.h, even though
49444         gnulib always assumes <stddef.h> exists as per README and this
49445         symbol is unnecessary.
49446         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
49447         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
49448         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
49449         faster for headers like stddef.h that are known to exist.
49450         (gl_CHECK_NEXT_HEADERS): Use it.
49451         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
49452         rather than gl_CHECK_NEXT_HEADERS.
49453         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
49454         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
49456 2011-01-18  Eric Blake  <eblake@redhat.com>
49458         ansi-c++-opt: skip C++ dependency style if C++ is unused
49459         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
49460         tests when we know C++ compilation is not desired.
49461         Reported by Scott McCreary.
49463 2011-01-18  Bruno Haible  <bruno@clisp.org>
49465         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
49466         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
49467         (main): Perform test also when getrlimit and setrlimit don't exist or
49468         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
49469         limiting the address space size using setrlimit, compare the address
49470         space size before and after the test.
49471         * tests/test-dprintf-posix2.c: Likewise.
49472         * tests/test-fprintf-posix3.sh: Update skip messages.
49473         * tests/test-dprintf-posix2.sh: Likewise.
49474         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
49475         * modules/dprintf-posix-tests (Depends-on): Likewise.
49476         Reported by Bruce Korb <bkorb@gnu.org> and
49477         Gary V. Vaughan <gary@gnu.org>.
49479 2011-01-18  Bruno Haible  <bruno@clisp.org>
49481         get-rusage-as: Improvement for Cygwin.
49482         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
49483         areas that are merely reserved.
49485 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
49487         strftime: remove dependencies on multibyte modules
49489         strftime depended on mbrlen, mbsinit, and wchar, but these modules
49490         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
49491         only if __osf__ is defined, and I suspect OSF doesn't need these
49492         other modules.  If my guess is wrong, we'll need to come up with a
49493         variant of strftime that doesn't need the multibyte modules.
49495         I discovered this problem when attempting modify Emacs to use the
49496         strftime module.  With the previous gnulib, this caused Emacs to
49497         need 31 new files, ranging from lib/config.charset to
49498         m4/wint_t.m4.  This was overkill and I expect would be offputting
49499         to the Emacs maintainers.  After this change, only 6 new files are
49500         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
49501         stdbool.m4, and tm_gmtoff.m4.
49503         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
49504         Suggested by Bruno Haible in
49505         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00238.html>.
49506         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
49507         and do not check for wchar.h.
49508         * modules/strftime (Files): Remove m4/mbstate_t.m4.
49509         (Depends-on): Remove mbrlen, mbsinit, wchar.
49511 2011-01-18  Bruno Haible  <bruno@clisp.org>
49513         Tests for module 'get-rusage-as'.
49514         * modules/get-rusage-as-tests: New file.
49515         * tests/test-get-rusage-as.c: New file.
49517         New module 'get-rusage-as'.
49518         * modules/get-rusage-as: New file.
49519         * lib/resource-ext.h: New file.
49520         * lib/get-rusage-as.c: New file.
49522 2011-01-17  Eric Blake  <eblake@redhat.com>
49524         sigaction: relax license from LGPLv3+ to LGPLv2+
49525         * modules/sigaction (License): Relax to LGPLv2+.
49527 2011-01-14  Bruno Haible  <bruno@clisp.org>
49529         filemode: Make function declarations usable in C++ mode.
49530         * lib/filemode.h: Enclose function declarations in extern "C" block.
49531         Reported by John W. Eaton <jwe@gnu.org>.
49533 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
49535         save-cwd: no longer include "xgetcwd.h"
49536         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
49537         This avoids a compilation failure in projects that use save-cwd
49538         without also using the xgetcwd module.
49540 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
49542         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
49543         This is so that a program like Emacs, which needs only dtoastr,
49544         does not have to bother with distributing and compiling ftoastr
49545         and ldtoastr.
49546         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
49547         * modules/dtoastr, modules/ldtoastr: New files.
49548         * modules/ftoastr: Now works just for 'float'.
49549         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
49550         (Makefile.am): Remove ftoastr.h (not needed and no effect),
49551         dtoastr.c, ldtoastr.c.
49553 2011-01-11  Jim Meyering  <meyering@redhat.com>
49555         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
49556         There is no need to work around the lack of the fchdir function,
49557         since gnulib can now provide a replacement when required.
49558         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
49559         * modules/save-cwd (Depends-on): Add fchdir.
49561 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
49563         openat, save-cwd: avoid xmalloc
49565         This removes a direct (but undocumented) dependency of openat on
49566         xalloc, along with an indirect dependency via save-cwd.  It also
49567         removes a dependency of save-cwd on xgetcwd, and thereby
49568         indirectly on xalloc.  This change causes the openat substitute
49569         to fall back on save_cwd when memory is tight, and for save_cwd to
49570         fail instead of dying when memory is tight, but that's good enough.
49571         Problem and initial idea for fix reported by Bastien Roucaries in
49572         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00170.html>.
49574         * lib/openat-proc.c: Include stdlib.h (for malloc), not
49575         xalloc.h (for xmalloc).
49576         (openat_proc_name): Use malloc, not xmalloc.
49577         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
49578         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
49580         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
49581         This avoids heap allocation for file names whose lengths are in
49582         the range 512..1023, with the upper bound increasing to at most
49583         4031 depending on the platform's PATH_MAX.  (We do not want
49584         pathmax.h here as it might supply a non-constant PATH_MAX.)
49585         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
49586         Perhaps they should be moved to malloca.h?
49587         (OPENAT_BUFFER_SIZE): Use them.
49589 2011-01-10  Bruno Haible  <bruno@clisp.org>
49591         doc: Update users.txt.
49592         * users.txt: Add recutils.
49594 2011-01-09  Karl Berry  <karl@gnu.org>
49596         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
49598         * doc/configmake.texi: New file.
49599         * doc/gnulib.texi: Include it.
49600         * modules/configmake: Move documentation from here.
49602 2011-01-09  Bruno Haible  <bruno@clisp.org>
49604         Update to Unicode 6.0.0.
49605         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
49606         (get_lbp): Update for Unicode 6.0.0.
49607         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
49608         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
49609         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
49610         U+11001, U+11038..U+11046. Remove U+06DE.
49611         (uc_width): Fix bounds of planes.
49612         * tests/uniwidth/test-uc_width2.sh: Same updates as in
49613         lib/uniwidth/width.c.
49614         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
49615         trailing whitespace removed.
49616         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
49617         without comments, but with the original copyright notice.
49618         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
49619         * lib/unicase/ignorable.h: Likewise.
49620         * lib/unicase/tocasefold.h: Likewise.
49621         * lib/unicase/tolower.h: Likewise.
49622         * lib/unicase/totitle.h: Likewise.
49623         * lib/unicase/toupper.h: Likewise.
49624         * lib/unictype/bidi_of.h: Likewise.
49625         * lib/unictype/blocks.h: Likewise.
49626         * lib/unictype/categ_C.h: Likewise.
49627         * lib/unictype/categ_Cn.h: Likewise.
49628         * lib/unictype/categ_L.h: Likewise.
49629         * lib/unictype/categ_Ll.h: Likewise.
49630         * lib/unictype/categ_Lm.h: Likewise.
49631         * lib/unictype/categ_Lo.h: Likewise.
49632         * lib/unictype/categ_Lu.h: Likewise.
49633         * lib/unictype/categ_M.h: Likewise.
49634         * lib/unictype/categ_Mc.h: Likewise.
49635         * lib/unictype/categ_Me.h: Likewise.
49636         * lib/unictype/categ_Mn.h: Likewise.
49637         * lib/unictype/categ_N.h: Likewise.
49638         * lib/unictype/categ_Nd.h: Likewise.
49639         * lib/unictype/categ_No.h: Likewise.
49640         * lib/unictype/categ_P.h: Likewise.
49641         * lib/unictype/categ_Po.h: Likewise.
49642         * lib/unictype/categ_S.h: Likewise.
49643         * lib/unictype/categ_Sc.h: Likewise.
49644         * lib/unictype/categ_Sk.h: Likewise.
49645         * lib/unictype/categ_Sm.h: Likewise.
49646         * lib/unictype/categ_So.h: Likewise.
49647         * lib/unictype/categ_of.h: Likewise.
49648         * lib/unictype/combining.h: Likewise.
49649         * lib/unictype/ctype_alnum.h: Likewise.
49650         * lib/unictype/ctype_alpha.h: Likewise.
49651         * lib/unictype/ctype_graph.h: Likewise.
49652         * lib/unictype/ctype_lower.h: Likewise.
49653         * lib/unictype/ctype_print.h: Likewise.
49654         * lib/unictype/ctype_punct.h: Likewise.
49655         * lib/unictype/ctype_upper.h: Likewise.
49656         * lib/unictype/decdigit.h: Likewise.
49657         * lib/unictype/digit.h: Likewise.
49658         * lib/unictype/numeric.h: Likewise.
49659         * lib/unictype/pr_alphabetic.h: Likewise.
49660         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
49661         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
49662         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
49663         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
49664         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
49665         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
49666         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
49667         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
49668         * lib/unictype/pr_case_ignorable.h: Likewise.
49669         * lib/unictype/pr_cased.h: Likewise.
49670         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
49671         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
49672         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
49673         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
49674         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
49675         * lib/unictype/pr_combining.h: Likewise.
49676         * lib/unictype/pr_composite.h: Likewise.
49677         * lib/unictype/pr_currency_symbol.h: Likewise.
49678         * lib/unictype/pr_decimal_digit.h: Likewise.
49679         * lib/unictype/pr_deprecated.h: Likewise.
49680         * lib/unictype/pr_format_control.h: Likewise.
49681         * lib/unictype/pr_grapheme_base.h: Likewise.
49682         * lib/unictype/pr_grapheme_extend.h: Likewise.
49683         * lib/unictype/pr_grapheme_link.h: Likewise.
49684         * lib/unictype/pr_id_continue.h: Likewise.
49685         * lib/unictype/pr_id_start.h: Likewise.
49686         * lib/unictype/pr_ideographic.h: Likewise.
49687         * lib/unictype/pr_lowercase.h: Likewise.
49688         * lib/unictype/pr_math.h: Likewise.
49689         * lib/unictype/pr_numeric.h: Likewise.
49690         * lib/unictype/pr_other_alphabetic.h: Likewise.
49691         * lib/unictype/pr_other_id_continue.h: Likewise.
49692         * lib/unictype/pr_other_math.h: Likewise.
49693         * lib/unictype/pr_punctuation.h: Likewise.
49694         * lib/unictype/pr_sentence_terminal.h: Likewise.
49695         * lib/unictype/pr_terminal_punctuation.h: Likewise.
49696         * lib/unictype/pr_unassigned_code_value.h: Likewise.
49697         * lib/unictype/pr_unified_ideograph.h: Likewise.
49698         * lib/unictype/pr_uppercase.h: Likewise.
49699         * lib/unictype/pr_xid_continue.h: Likewise.
49700         * lib/unictype/pr_xid_start.h: Likewise.
49701         * lib/unictype/scripts.h: Likewise.
49702         * lib/unictype/scripts_byname.gperf: Likewise.
49703         * lib/unictype/sy_java_ident.h: Likewise.
49704         * lib/unigbrk/gbrkprop.h: Likewise.
49705         * lib/unilbrk/lbrkprop1.h: Likewise.
49706         * lib/unilbrk/lbrkprop2.h: Likewise.
49707         * lib/uninorm/decomposition-table2.h: Likewise.
49708         * lib/uniwbrk/wbrkprop.h: Likewise.
49709         * tests/unicase/test-cased.c: Likewise.
49710         * tests/unicase/test-ignorable.c: Likewise.
49711         * tests/unicase/test-uc_tolower.c: Likewise.
49712         * tests/unicase/test-uc_totitle.c: Likewise.
49713         * tests/unicase/test-uc_toupper.c: Likewise.
49714         * tests/unictype/test-categ_C.c: Likewise.
49715         * tests/unictype/test-categ_Cn.c: Likewise.
49716         * tests/unictype/test-categ_L.c: Likewise.
49717         * tests/unictype/test-categ_Ll.c: Likewise.
49718         * tests/unictype/test-categ_Lm.c: Likewise.
49719         * tests/unictype/test-categ_Lo.c: Likewise.
49720         * tests/unictype/test-categ_Lu.c: Likewise.
49721         * tests/unictype/test-categ_M.c: Likewise.
49722         * tests/unictype/test-categ_Mc.c: Likewise.
49723         * tests/unictype/test-categ_Me.c: Likewise.
49724         * tests/unictype/test-categ_Mn.c: Likewise.
49725         * tests/unictype/test-categ_N.c: Likewise.
49726         * tests/unictype/test-categ_Nd.c: Likewise.
49727         * tests/unictype/test-categ_No.c: Likewise.
49728         * tests/unictype/test-categ_P.c: Likewise.
49729         * tests/unictype/test-categ_Po.c: Likewise.
49730         * tests/unictype/test-categ_S.c: Likewise.
49731         * tests/unictype/test-categ_Sc.c: Likewise.
49732         * tests/unictype/test-categ_Sk.c: Likewise.
49733         * tests/unictype/test-categ_Sm.c: Likewise.
49734         * tests/unictype/test-categ_So.c: Likewise.
49735         * tests/unictype/test-ctype_alnum.c: Likewise.
49736         * tests/unictype/test-ctype_alpha.c: Likewise.
49737         * tests/unictype/test-ctype_graph.c: Likewise.
49738         * tests/unictype/test-ctype_lower.c: Likewise.
49739         * tests/unictype/test-ctype_print.c: Likewise.
49740         * tests/unictype/test-ctype_punct.c: Likewise.
49741         * tests/unictype/test-ctype_upper.c: Likewise.
49742         * tests/unictype/test-decdigit.h: Likewise.
49743         * tests/unictype/test-digit.h: Likewise.
49744         * tests/unictype/test-numeric.h: Likewise.
49745         * tests/unictype/test-pr_alphabetic.c: Likewise.
49746         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
49747         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
49748         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
49749         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
49750         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
49751         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
49752         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
49753         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
49754         * tests/unictype/test-pr_case_ignorable.c: Likewise.
49755         * tests/unictype/test-pr_cased.c: Likewise.
49756         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
49757         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
49758         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
49759         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
49760         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
49761         * tests/unictype/test-pr_combining.c: Likewise.
49762         * tests/unictype/test-pr_composite.c: Likewise.
49763         * tests/unictype/test-pr_currency_symbol.c: Likewise.
49764         * tests/unictype/test-pr_decimal_digit.c: Likewise.
49765         * tests/unictype/test-pr_deprecated.c: Likewise.
49766         * tests/unictype/test-pr_format_control.c: Likewise.
49767         * tests/unictype/test-pr_grapheme_base.c: Likewise.
49768         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
49769         * tests/unictype/test-pr_grapheme_link.c: Likewise.
49770         * tests/unictype/test-pr_id_continue.c: Likewise.
49771         * tests/unictype/test-pr_id_start.c: Likewise.
49772         * tests/unictype/test-pr_ideographic.c: Likewise.
49773         * tests/unictype/test-pr_lowercase.c: Likewise.
49774         * tests/unictype/test-pr_math.c: Likewise.
49775         * tests/unictype/test-pr_numeric.c: Likewise.
49776         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
49777         * tests/unictype/test-pr_other_id_continue.c: Likewise.
49778         * tests/unictype/test-pr_other_math.c: Likewise.
49779         * tests/unictype/test-pr_punctuation.c: Likewise.
49780         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
49781         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
49782         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
49783         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
49784         * tests/unictype/test-pr_uppercase.c: Likewise.
49785         * tests/unictype/test-pr_xid_continue.c: Likewise.
49786         * tests/unictype/test-pr_xid_start.c: Likewise.
49787         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
49788         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
49789         changes.
49790         * lib/unictype/categ_Cc.h: Likewise.
49791         * lib/unictype/categ_Cf.h: Likewise.
49792         * lib/unictype/categ_Co.h: Likewise.
49793         * lib/unictype/categ_Cs.h: Likewise.
49794         * lib/unictype/categ_Lt.h: Likewise.
49795         * lib/unictype/categ_Nl.h: Likewise.
49796         * lib/unictype/categ_Pc.h: Likewise.
49797         * lib/unictype/categ_Pd.h: Likewise.
49798         * lib/unictype/categ_Pe.h: Likewise.
49799         * lib/unictype/categ_Pf.h: Likewise.
49800         * lib/unictype/categ_Pi.h: Likewise.
49801         * lib/unictype/categ_Ps.h: Likewise.
49802         * lib/unictype/categ_Z.h: Likewise.
49803         * lib/unictype/categ_Zl.h: Likewise.
49804         * lib/unictype/categ_Zp.h: Likewise.
49805         * lib/unictype/categ_Zs.h: Likewise.
49806         * lib/unictype/ctype_blank.h: Likewise.
49807         * lib/unictype/ctype_cntrl.h: Likewise.
49808         * lib/unictype/ctype_digit.h: Likewise.
49809         * lib/unictype/ctype_space.h: Likewise.
49810         * lib/unictype/ctype_xdigit.h: Likewise.
49811         * lib/unictype/mirror.h: Likewise.
49812         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
49813         * lib/unictype/pr_bidi_block_separator.h: Likewise.
49814         * lib/unictype/pr_bidi_common_separator.h: Likewise.
49815         * lib/unictype/pr_bidi_control.h: Likewise.
49816         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
49817         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
49818         * lib/unictype/pr_bidi_european_digit.h: Likewise.
49819         * lib/unictype/pr_bidi_pdf.h: Likewise.
49820         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
49821         * lib/unictype/pr_bidi_whitespace.h: Likewise.
49822         * lib/unictype/pr_dash.h: Likewise.
49823         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
49824         * lib/unictype/pr_diacritic.h: Likewise.
49825         * lib/unictype/pr_extender.h: Likewise.
49826         * lib/unictype/pr_hex_digit.h: Likewise.
49827         * lib/unictype/pr_hyphen.h: Likewise.
49828         * lib/unictype/pr_ids_binary_operator.h: Likewise.
49829         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
49830         * lib/unictype/pr_ignorable_control.h: Likewise.
49831         * lib/unictype/pr_iso_control.h: Likewise.
49832         * lib/unictype/pr_join_control.h: Likewise.
49833         * lib/unictype/pr_left_of_pair.h: Likewise.
49834         * lib/unictype/pr_line_separator.h: Likewise.
49835         * lib/unictype/pr_logical_order_exception.h: Likewise.
49836         * lib/unictype/pr_non_break.h: Likewise.
49837         * lib/unictype/pr_not_a_character.h: Likewise.
49838         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
49839         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
49840         * lib/unictype/pr_other_id_start.h: Likewise.
49841         * lib/unictype/pr_other_lowercase.h: Likewise.
49842         * lib/unictype/pr_other_uppercase.h: Likewise.
49843         * lib/unictype/pr_paired_punctuation.h: Likewise.
49844         * lib/unictype/pr_paragraph_separator.h: Likewise.
49845         * lib/unictype/pr_pattern_syntax.h: Likewise.
49846         * lib/unictype/pr_pattern_white_space.h: Likewise.
49847         * lib/unictype/pr_private_use.h: Likewise.
49848         * lib/unictype/pr_quotation_mark.h: Likewise.
49849         * lib/unictype/pr_radical.h: Likewise.
49850         * lib/unictype/pr_soft_dotted.h: Likewise.
49851         * lib/unictype/pr_space.h: Likewise.
49852         * lib/unictype/pr_titlecase.h: Likewise.
49853         * lib/unictype/pr_variation_selector.h: Likewise.
49854         * lib/unictype/pr_white_space.h: Likewise.
49855         * lib/unictype/pr_zero_width.h: Likewise.
49856         * lib/unictype/sy_c_ident.h: Likewise.
49857         * lib/unictype/sy_c_whitespace.h: Likewise.
49858         * lib/unictype/sy_java_whitespace.h: Likewise.
49859         * lib/uninorm/composition-table.gperf: Likewise.
49860         * lib/uninorm/decomposition-table1.h: Likewise.
49861         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
49862         LB8.
49863         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
49864         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
49865         * modules/unictype/*: Bump version number of expected libunistring
49866         version.
49868 2011-01-09  Bruno Haible  <bruno@clisp.org>
49870         Update to Unicode 5.2.0.
49871         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
49872         trailing whitespace removed.
49874 2011-01-09  Bruno Haible  <bruno@clisp.org>
49876         New Unicode character properties, from Unicode 5.2.0.
49877         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
49878         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
49879         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
49880         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
49881         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
49882         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
49883         uc_is_property_cased, uc_is_property_case_ignorable,
49884         uc_is_property_changes_when_lowercased,
49885         uc_is_property_changes_when_uppercased,
49886         uc_is_property_changes_when_titlecased,
49887         uc_is_property_changes_when_casefolded,
49888         uc_is_property_changes_when_casemapped): New declarations.
49889         * lib/unictype/pr_byname.gperf: Add the new properties.
49890         * modules/unictype/property-byname (Depends-on): Depend on the new
49891         properties modules.
49892         * modules/unictype/property-all (Depends-on): Likewise.
49893         * MODULES.html.sh (Unicode string functions): Add
49894         unictype/property-case-ignorable, unictype/property-cased,
49895         unictype/property-changes-when-casefolded,
49896         unictype/property-changes-when-casemapped,
49897         unictype/property-changes-when-lowercased,
49898         unictype/property-changes-when-titlecased,
49899         unictype/property-changes-when-uppercased.
49901         New module 'unictype/property-changes-when-casemapped'.
49902         * modules/unictype/property-changes-when-casemapped: New file.
49903         * lib/unictype/pr_changes_when_casemapped.c: New file.
49904         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
49905         generated by gen-uni-tables.
49906         * modules/unictype/property-changes-when-casemapped-tests: New file.
49907         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
49908         automatically generated by gen-uni-tables.
49910         New module 'unictype/property-changes-when-casefolded'.
49911         * modules/unictype/property-changes-when-casefolded: New file.
49912         * lib/unictype/pr_changes_when_casefolded.c: New file.
49913         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
49914         generated by gen-uni-tables.
49915         * modules/unictype/property-changes-when-casefolded-tests: New file.
49916         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
49917         automatically generated by gen-uni-tables.
49919         New module 'unictype/property-changes-when-titlecased'.
49920         * modules/unictype/property-changes-when-titlecased: New file.
49921         * lib/unictype/pr_changes_when_titlecased.c: New file.
49922         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
49923         generated by gen-uni-tables.
49924         * modules/unictype/property-changes-when-titlecased-tests: New file.
49925         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
49926         automatically generated by gen-uni-tables.
49928         New module 'unictype/property-changes-when-uppercased'.
49929         * modules/unictype/property-changes-when-uppercased: New file.
49930         * lib/unictype/pr_changes_when_uppercased.c: New file.
49931         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
49932         generated by gen-uni-tables.
49933         * modules/unictype/property-changes-when-uppercased-tests: New file.
49934         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
49935         automatically generated by gen-uni-tables.
49937         New module 'unictype/property-changes-when-lowercased'.
49938         * modules/unictype/property-changes-when-lowercased: New file.
49939         * lib/unictype/pr_changes_when_lowercased.c: New file.
49940         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
49941         generated by gen-uni-tables.
49942         * modules/unictype/property-changes-when-lowercased-tests: New file.
49943         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
49944         automatically generated by gen-uni-tables.
49946         New module 'unictype/property-case-ignorable'.
49947         * modules/unictype/property-case-ignorable: New file.
49948         * lib/unictype/pr_case_ignorable.c: New file.
49949         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
49950         by gen-uni-tables.
49951         * modules/unictype/property-case-ignorable-tests: New file.
49952         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
49953         generated by gen-uni-tables.
49955         New module 'unictype/property-cased'.
49956         * modules/unictype/property-cased: New file.
49957         * lib/unictype/pr_cased.c: New file.
49958         * lib/unictype/pr_cased.h: New file, automatically generated by
49959         gen-uni-tables.
49960         * modules/unictype/property-cased-tests: New file.
49961         * tests/unictype/test-pr_cased.c: New file, automatically generated by
49962         gen-uni-tables.
49964 2011-01-09  Bruno Haible  <bruno@clisp.org>
49966         Update to Unicode 5.2.0.
49967         * lib/gen-uni-tables.c (output_predicate, output_category,
49968         output_combclass, output_bidi_category, output_decimal_digit_test,
49969         output_decimal_digit, output_digit_test, output_digit,
49970         output_numeric_test, output_numeric, output_mirror, output_scripts,
49971         output_scripts_byname, output_blocks, output_ident_category): Fix
49972         comment header.
49973         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
49974         get_wbp.
49975         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
49976         items.
49977         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
49978         Changes_When_Lowercased, Changes_When_Uppercased,
49979         Changes_When_Titlecased, Changes_When_Casefolded,
49980         Changes_When_Casemapped.
49981         (is_property_alphabetic, is_property_default_ignorable_code_point):
49982         Update for Unicode 5.2.0.
49983         (is_property_cased, is_property_case_ignorable,
49984         is_property_changes_when_lowercased,
49985         is_property_changes_when_uppercased,
49986         is_property_changes_when_titlecased,
49987         is_property_changes_when_casefolded,
49988         is_property_changes_when_casemapped): New functions.
49989         (output_properties): Output also the properties cased, case_ignorable,
49990         changes_when_lowercased, changes_when_uppercased,
49991         changes_when_titlecased, changes_when_casefolded,
49992         changes_when_casemapped.
49993         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
49994         Unicode TR#11 revision 17 -> 19.
49995         (LBP_CP): New enumeration value.
49996         (LBP_*): Adjust values accordingly.
49997         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
49998         TR#14 revision 22 -> 24.
49999         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
50000         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
50001         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
50002         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
50003         is_WBP_MIDLETTER.
50004         (output_composition_tables): Allow for 24 bits instead of 16 bits in
50005         the code1 and code2 of each composition rule.
50006         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
50007         * lib/unicase/ignorable.h: Likewise.
50008         * lib/unicase/tocasefold.h: Likewise.
50009         * lib/unicase/tolower.h: Likewise.
50010         * lib/unicase/totitle.h: Likewise.
50011         * lib/unicase/toupper.h: Likewise.
50012         * lib/unictype/bidi_of.h: Likewise.
50013         * lib/unictype/blocks.h: Likewise.
50014         * lib/unictype/categ_C.h: Likewise.
50015         * lib/unictype/categ_Cf.h: Likewise.
50016         * lib/unictype/categ_Cn.h: Likewise.
50017         * lib/unictype/categ_L.h: Likewise.
50018         * lib/unictype/categ_Ll.h: Likewise.
50019         * lib/unictype/categ_Lm.h: Likewise.
50020         * lib/unictype/categ_Lo.h: Likewise.
50021         * lib/unictype/categ_Lu.h: Likewise.
50022         * lib/unictype/categ_M.h: Likewise.
50023         * lib/unictype/categ_Mc.h: Likewise.
50024         * lib/unictype/categ_Mn.h: Likewise.
50025         * lib/unictype/categ_N.h: Likewise.
50026         * lib/unictype/categ_Nd.h: Likewise.
50027         * lib/unictype/categ_Nl.h: Likewise.
50028         * lib/unictype/categ_No.h: Likewise.
50029         * lib/unictype/categ_P.h: Likewise.
50030         * lib/unictype/categ_Pd.h: Likewise.
50031         * lib/unictype/categ_Po.h: Likewise.
50032         * lib/unictype/categ_S.h: Likewise.
50033         * lib/unictype/categ_Sc.h: Likewise.
50034         * lib/unictype/categ_So.h: Likewise.
50035         * lib/unictype/categ_of.h: Likewise.
50036         * lib/unictype/combining.h: Likewise.
50037         * lib/unictype/ctype_alnum.h: Likewise.
50038         * lib/unictype/ctype_alpha.h: Likewise.
50039         * lib/unictype/ctype_graph.h: Likewise.
50040         * lib/unictype/ctype_lower.h: Likewise.
50041         * lib/unictype/ctype_print.h: Likewise.
50042         * lib/unictype/ctype_punct.h: Likewise.
50043         * lib/unictype/ctype_upper.h: Likewise.
50044         * lib/unictype/decdigit.h: Likewise.
50045         * lib/unictype/digit.h: Likewise.
50046         * lib/unictype/numeric.h: Likewise.
50047         * lib/unictype/pr_alphabetic.h: Likewise.
50048         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
50049         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
50050         * lib/unictype/pr_bidi_european_digit.h: Likewise.
50051         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
50052         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
50053         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
50054         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
50055         * lib/unictype/pr_combining.h: Likewise.
50056         * lib/unictype/pr_composite.h: Likewise.
50057         * lib/unictype/pr_currency_symbol.h: Likewise.
50058         * lib/unictype/pr_dash.h: Likewise.
50059         * lib/unictype/pr_decimal_digit.h: Likewise.
50060         * lib/unictype/pr_deprecated.h: Likewise.
50061         * lib/unictype/pr_diacritic.h: Likewise.
50062         * lib/unictype/pr_extender.h: Likewise.
50063         * lib/unictype/pr_grapheme_base.h: Likewise.
50064         * lib/unictype/pr_grapheme_extend.h: Likewise.
50065         * lib/unictype/pr_grapheme_link.h: Likewise.
50066         * lib/unictype/pr_id_continue.h: Likewise.
50067         * lib/unictype/pr_id_start.h: Likewise.
50068         * lib/unictype/pr_ideographic.h: Likewise.
50069         * lib/unictype/pr_ignorable_control.h: Likewise.
50070         * lib/unictype/pr_logical_order_exception.h: Likewise.
50071         * lib/unictype/pr_lowercase.h: Likewise.
50072         * lib/unictype/pr_numeric.h: Likewise.
50073         * lib/unictype/pr_other_alphabetic.h: Likewise.
50074         * lib/unictype/pr_punctuation.h: Likewise.
50075         * lib/unictype/pr_sentence_terminal.h: Likewise.
50076         * lib/unictype/pr_terminal_punctuation.h: Likewise.
50077         * lib/unictype/pr_unassigned_code_value.h: Likewise.
50078         * lib/unictype/pr_unified_ideograph.h: Likewise.
50079         * lib/unictype/pr_uppercase.h: Likewise.
50080         * lib/unictype/pr_xid_continue.h: Likewise.
50081         * lib/unictype/pr_xid_start.h: Likewise.
50082         * lib/unictype/pr_zero_width.h: Likewise.
50083         * lib/unictype/scripts.h: Likewise.
50084         * lib/unictype/scripts_byname.gperf: Likewise.
50085         * lib/unictype/sy_java_ident.h: Likewise.
50086         * lib/unigbrk/gbrkprop.h: Likewise.
50087         * lib/unilbrk/lbrkprop1.h: Likewise.
50088         * lib/unilbrk/lbrkprop2.h: Likewise.
50089         * lib/unilbrk/lbrktables.h: Likewise.
50090         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
50091         LBP_CP. Implement rule LB30.
50092         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
50093         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
50094         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
50095         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
50096         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
50097         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
50098         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
50099         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
50100         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
50101         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
50102         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
50103         bits instead of 16 bits in the code1 and code2 of each composition
50104         rule.
50105         (uc_composition): Update for Unicode 5.2.0.
50106         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
50107         * lib/uninorm/decomposition-table2.h: Likewise.
50108         * lib/uniwbrk/wbrkprop.h: Likewise.
50109         * tests/unicase/test-cased.c: Likewise.
50110         * tests/unicase/test-ignorable.c: Likewise.
50111         * tests/unicase/test-uc_tolower.c: Likewise.
50112         * tests/unicase/test-uc_totitle.c: Likewise.
50113         * tests/unicase/test-uc_toupper.c: Likewise.
50114         * tests/unictype/test-categ_C.c: Likewise.
50115         * tests/unictype/test-categ_Cf.c: Likewise.
50116         * tests/unictype/test-categ_Cn.c: Likewise.
50117         * tests/unictype/test-categ_L.c: Likewise.
50118         * tests/unictype/test-categ_Ll.c: Likewise.
50119         * tests/unictype/test-categ_Lm.c: Likewise.
50120         * tests/unictype/test-categ_Lo.c: Likewise.
50121         * tests/unictype/test-categ_Lu.c: Likewise.
50122         * tests/unictype/test-categ_M.c: Likewise.
50123         * tests/unictype/test-categ_Mc.c: Likewise.
50124         * tests/unictype/test-categ_Mn.c: Likewise.
50125         * tests/unictype/test-categ_N.c: Likewise.
50126         * tests/unictype/test-categ_Nd.c: Likewise.
50127         * tests/unictype/test-categ_Nl.c: Likewise.
50128         * tests/unictype/test-categ_No.c: Likewise.
50129         * tests/unictype/test-categ_P.c: Likewise.
50130         * tests/unictype/test-categ_Pd.c: Likewise.
50131         * tests/unictype/test-categ_Po.c: Likewise.
50132         * tests/unictype/test-categ_S.c: Likewise.
50133         * tests/unictype/test-categ_Sc.c: Likewise.
50134         * tests/unictype/test-categ_So.c: Likewise.
50135         * tests/unictype/test-ctype_alnum.c: Likewise.
50136         * tests/unictype/test-ctype_alpha.c: Likewise.
50137         * tests/unictype/test-ctype_graph.c: Likewise.
50138         * tests/unictype/test-ctype_lower.c: Likewise.
50139         * tests/unictype/test-ctype_print.c: Likewise.
50140         * tests/unictype/test-ctype_punct.c: Likewise.
50141         * tests/unictype/test-ctype_upper.c: Likewise.
50142         * tests/unictype/test-decdigit.h: Likewise.
50143         * tests/unictype/test-digit.h: Likewise.
50144         * tests/unictype/test-numeric.h: Likewise.
50145         * tests/unictype/test-pr_alphabetic.c: Likewise.
50146         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
50147         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
50148         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
50149         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
50150         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
50151         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
50152         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
50153         * tests/unictype/test-pr_combining.c: Likewise.
50154         * tests/unictype/test-pr_composite.c: Likewise.
50155         * tests/unictype/test-pr_currency_symbol.c: Likewise.
50156         * tests/unictype/test-pr_dash.c: Likewise.
50157         * tests/unictype/test-pr_decimal_digit.c: Likewise.
50158         * tests/unictype/test-pr_deprecated.c: Likewise.
50159         * tests/unictype/test-pr_diacritic.c: Likewise.
50160         * tests/unictype/test-pr_extender.c: Likewise.
50161         * tests/unictype/test-pr_grapheme_base.c: Likewise.
50162         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
50163         * tests/unictype/test-pr_grapheme_link.c: Likewise.
50164         * tests/unictype/test-pr_id_continue.c: Likewise.
50165         * tests/unictype/test-pr_id_start.c: Likewise.
50166         * tests/unictype/test-pr_ideographic.c: Likewise.
50167         * tests/unictype/test-pr_ignorable_control.c: Likewise.
50168         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
50169         * tests/unictype/test-pr_lowercase.c: Likewise.
50170         * tests/unictype/test-pr_numeric.c: Likewise.
50171         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
50172         * tests/unictype/test-pr_punctuation.c: Likewise.
50173         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
50174         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
50175         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
50176         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
50177         * tests/unictype/test-pr_uppercase.c: Likewise.
50178         * tests/unictype/test-pr_xid_continue.c: Likewise.
50179         * tests/unictype/test-pr_xid_start.c: Likewise.
50180         * tests/unictype/test-pr_zero_width.c: Likewise.
50181         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
50182         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
50183         changed behaviour: line breaking is now disallowed between a letter
50184         or '=' and '('.
50185         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
50186         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
50187         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
50188         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
50189         * tests/uniwidth/test-uc_width2.sh: Same updates as in
50190         lib/uniwidth/width.c.
50191         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
50192         without comments, but with the original copyright notice.
50193         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
50194         changes.
50195         * lib/unictype/categ_Cc.h: Likewise.
50196         * lib/unictype/categ_Co.h: Likewise.
50197         * lib/unictype/categ_Cs.h: Likewise.
50198         * lib/unictype/categ_Lt.h: Likewise.
50199         * lib/unictype/categ_Me.h: Likewise.
50200         * lib/unictype/categ_Pc.h: Likewise.
50201         * lib/unictype/categ_Pe.h: Likewise.
50202         * lib/unictype/categ_Pf.h: Likewise.
50203         * lib/unictype/categ_Pi.h: Likewise.
50204         * lib/unictype/categ_Ps.h: Likewise.
50205         * lib/unictype/categ_Sk.h: Likewise.
50206         * lib/unictype/categ_Sm.h: Likewise.
50207         * lib/unictype/categ_Z.h: Likewise.
50208         * lib/unictype/categ_Zl.h: Likewise.
50209         * lib/unictype/categ_Zp.h: Likewise.
50210         * lib/unictype/categ_Zs.h: Likewise.
50211         * lib/unictype/ctype_blank.h: Likewise.
50212         * lib/unictype/ctype_cntrl.h: Likewise.
50213         * lib/unictype/ctype_digit.h: Likewise.
50214         * lib/unictype/ctype_space.h: Likewise.
50215         * lib/unictype/ctype_xdigit.h: Likewise.
50216         * lib/unictype/mirror.h: Likewise.
50217         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
50218         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
50219         * lib/unictype/pr_bidi_block_separator.h: Likewise.
50220         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
50221         * lib/unictype/pr_bidi_common_separator.h: Likewise.
50222         * lib/unictype/pr_bidi_control.h: Likewise.
50223         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
50224         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
50225         * lib/unictype/pr_bidi_pdf.h: Likewise.
50226         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
50227         * lib/unictype/pr_bidi_whitespace.h: Likewise.
50228         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
50229         * lib/unictype/pr_format_control.h: Likewise.
50230         * lib/unictype/pr_hex_digit.h: Likewise.
50231         * lib/unictype/pr_hyphen.h: Likewise.
50232         * lib/unictype/pr_ids_binary_operator.h: Likewise.
50233         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
50234         * lib/unictype/pr_iso_control.h: Likewise.
50235         * lib/unictype/pr_join_control.h: Likewise.
50236         * lib/unictype/pr_left_of_pair.h: Likewise.
50237         * lib/unictype/pr_line_separator.h: Likewise.
50238         * lib/unictype/pr_math.h: Likewise.
50239         * lib/unictype/pr_non_break.h: Likewise.
50240         * lib/unictype/pr_not_a_character.h: Likewise.
50241         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
50242         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
50243         * lib/unictype/pr_other_id_continue.h: Likewise.
50244         * lib/unictype/pr_other_id_start.h: Likewise.
50245         * lib/unictype/pr_other_lowercase.h: Likewise.
50246         * lib/unictype/pr_other_math.h: Likewise.
50247         * lib/unictype/pr_other_uppercase.h: Likewise.
50248         * lib/unictype/pr_paired_punctuation.h: Likewise.
50249         * lib/unictype/pr_paragraph_separator.h: Likewise.
50250         * lib/unictype/pr_pattern_syntax.h: Likewise.
50251         * lib/unictype/pr_pattern_white_space.h: Likewise.
50252         * lib/unictype/pr_private_use.h: Likewise.
50253         * lib/unictype/pr_quotation_mark.h: Likewise.
50254         * lib/unictype/pr_radical.h: Likewise.
50255         * lib/unictype/pr_soft_dotted.h: Likewise.
50256         * lib/unictype/pr_space.h: Likewise.
50257         * lib/unictype/pr_titlecase.h: Likewise.
50258         * lib/unictype/pr_variation_selector.h: Likewise.
50259         * lib/unictype/pr_white_space.h: Likewise.
50260         * lib/unictype/sy_c_ident.h: Likewise.
50261         * lib/unictype/sy_c_whitespace.h: Likewise.
50262         * lib/unictype/sy_java_whitespace.h: Likewise.
50263         * modules/uni*/*: Bump version number of expected libunistring version.
50264         Reported by Simon Josefsson.
50266 2011-01-09  Karl Heuer  <kwzh@gnu.org>
50268         useless-if-before-free: fix typo in --help and make the internal,
50269         automatic version date update process work once again.
50270         --help output contained a NUL character instead of the
50271         backslash-zero that was intended.  Also, the "must lie within
50272         the first 8 lines" line is on line 9, and hence not getting
50273         automatically updated.
50274         * build-aux/useless-if-before-free: Fix the former by adding a
50275         backslash, and the latter by condensing the three lines of what-it-does
50276         to a single line, leaving one line of slack for the future.
50278 2011-01-09  Bruno Haible  <bruno@clisp.org>
50280         uniwidth/width: Fix width of U+1D173..U+1D17A.
50281         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
50282         symbolic_width, output_width_property_test): New functions.
50283         (main): Invoke output_nonspacing_property, output_width_property_test.
50284         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
50285         U+1D173..U+1D17A.
50286         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
50287         1.
50288         * modules/uniwidth/*: Bump version number of expected libunistring
50289         version.
50290         * modules/unilbrk/*: Likewise.
50292 2011-01-08  Bruno Haible  <bruno@clisp.org>
50294         uninorm tests: Preserve copyright of Unicode data file.
50295         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
50296         Mention modifications.
50298 2011-01-08  Bruno Haible  <bruno@clisp.org>
50300         gen-uni-tables: Prepare for Unicode 5.2.0.
50301         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
50302         (debug_output_lbp, output_lbp): Update.
50304 2011-01-08  Bruno Haible  <bruno@clisp.org>
50306         unilbrk: Clarify gen-uni-tables.c code.
50307         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
50308         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
50309         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
50311 2011-01-07  Bruno Haible  <bruno@clisp.org>
50313         strtod: Restore errno when successfully parsing Infinity or NaN.
50314         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
50315         restore the original errno.
50317 2011-01-07  Bruno Haible  <bruno@clisp.org>
50319         remove test: Avoid failure on HP-UX 11.
50320         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
50322 2011-01-07  Bruno Haible  <bruno@clisp.org>
50324         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
50325         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
50326         error code.
50328 2011-01-07  Pádraig Brady  <P@draigBrady.com>
50330         ignore-value: fixup comments, and add Eric Blake
50331         as an author since he rewrote the macros.
50332         * lib/ignore-value.h (ignore_value):  State that
50333         we now support aggregates.  Also specify exactly
50334         when the GCC warn_unused_result feature was added.
50336 2011-01-06  Eric Blake  <eblake@redhat.com>
50338         ignore-value: support aggregate types
50339         * lib/ignore-value.h (ignore_value): Provide separate gcc
50340         definition.
50341         * modules/ignore-value-tests: New test module.
50342         * tests/test-ignore-value.c: New test.
50344         maint.mk: improve sc_prohibit_strcmp regex
50345         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
50346         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
50347         definition of STRNEQ.
50349         signal: work around Haiku issue with SIGBUS
50350         * lib/siglist.h: Add comment.
50351         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
50352         strsignal's favoring of SIGSEGV.
50353         * tests/test-signal.c (main): Avoid test failure.
50354         * doc/posix-headers/signal.texi (signal.h): Document the issue.
50355         Reported by Scott McCreary.
50357         maint.mk: add pre-release check to ensure submodule commits are public
50358         * top/maint.mk (public-submodule-commit): New rule.
50359         (submodule-checks): New variable.
50360         (alpha beta stable): Depend on the variable.
50362 2011-01-05  Pádraig Brady  <P@draigBrady.com>
50363         and Jim Meyering  <meyering@redhat.com>
50365         ignore-value: make ignore_value more generic; deprecate ignore_ptr
50366         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
50367         (ATTRIBUTE_DEPRECATED): Define.
50368         (_ignore_case): New function.
50369         (ignore_value): New macro, to replace the old function.
50370         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
50371         * modules/ignore-value (Depends-on): Add stdint.
50373 2011-01-04  Eric Blake  <eblake@redhat.com>
50375         doc: regenerate INSTALL
50376         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
50377         @firstparagraphindent support, now that autoconf dropped it.
50378         (INSTALL_PRELUDE): Reinstate old macro.
50379         * doc/install.texi: Resync from autoconf.
50380         * doc/INSTALL: Reflect recent autoconf update.
50381         * doc/INSTALL.ISO: Likewise.
50382         * doc/INSTALL.UTF-8: Likewise.
50383         Reported by Karl Berry.
50385 2011-01-04  Bruce Korb  <address@hidden>
50387         git-version-gen: avoid a sub-shell
50388         * build-aux/git-version-gen: Redirect stderr in `...` via
50389         "exec 2>...", rather than via an added sub-shell.
50391 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
50393         git-version-gen: use (...) rather than sh -c '...'
50394         * build-aux/git-version-gen: Rather than hard-coding a shell's name
50395         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
50397 2011-01-03  Jim Meyering  <meyering@redhat.com>
50399         git-version-gen: convert leading TABs to spaces
50400         * build-aux/git-version-gen: Expand leading TABs.
50402         git-version-gen: handle failed "git rev-list"
50403         * build-aux/git-version-gen: Rather than leaking a "fatal" error
50404         from git and proceeding as if it had succeeded but printed no SHA1
50405         checksums, suppress the diagnostic and handle the failure.
50406         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
50408         git-version-gen: include command name in one more diagnostic
50409         * build-aux/git-version-gen: When the required .tarball-version file
50410         was missing or unreadable, you might see the diagnostic from "cat",
50411         but no trace of the name of the invoking script.  Now, you still see
50412         the diagnostic from cat, but also get one from "git-version-gen: ".
50413         Inspired by a patch from Bruce Korb.
50415         update-copyright: adjust test to match changed code
50416         * tests/test-update-copyright.sh: Change test's expected output
50417         to match new actual output.
50419 2011-01-02  Bruno Haible  <bruno@clisp.org>
50421         getlogin_r: Avoid test failure on HP-UX 11.
50422         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
50423         ERANGE when the second argument is zero.
50424         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
50425         portability problem.
50427 2011-01-02  Bruce Korb  <bkorb@gnu.org>
50429         * build-aux/update-copyright: doc Simon's changes
50431 2011-01-02  Simon Josefsson  <simon@josefsson.org>
50433         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
50434         environment variable.
50436 2011-01-02  Bruno Haible  <bruno@clisp.org>
50438         unigbrk: Avoid gcc warnings.
50439         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
50440         unused variable.
50441         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
50442         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
50443         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
50444         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
50445         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
50446         Change type of first argument to 'const char *'.
50447         (main): Remove unused variable.
50448         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
50449         type of first argument to 'const char *'.
50450         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
50451         Likewise.
50452         (main): Change type of variable 's'.
50453         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
50454         to 'int'.
50456 2011-01-02  Bruno Haible  <bruno@clisp.org>
50458         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
50459         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
50460         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
50461         bug.
50462         * lib/pwrite.c: Undo 2010-12-31 patch.
50463         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
50465 2011-01-02  Bruno Haible  <bruno@clisp.org>
50467         pread: Fix test whether it works.
50468         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
50470 2011-01-02  Bruno Haible  <bruno@clisp.org>
50472         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
50473         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
50474         ends in "6". Don't require a specific month name. Try also the locale
50475         names found on HP-UX 11 and Solaris 7.
50477 2011-01-02  Bruno Haible  <bruno@clisp.org>
50479         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
50480         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
50481         C linkage.
50482         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
50484 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
50486         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
50487         for consistency, since the "cluster" term is not used elsewhere.
50488         * lib/unigbrk.in.h: Update name.
50489         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
50490         * lib/unigbrk/u16-grapheme-next.c: Update name.
50491         * lib/unigbrk/u16-grapheme-prev.c: Update name.
50492         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
50493         * lib/unigbrk/u32-grapheme-next.c: Update name.
50494         * lib/unigbrk/u32-grapheme-prev.c: Update name.
50495         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
50496         * lib/unigbrk/u8-grapheme-next.c: Update name.
50497         * lib/unigbrk/u8-grapheme-prev.c: Update name.
50498         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
50499         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
50500         Suggested by Bruno Haible.
50502 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
50504         Remove module 'u8-grapheme-len' as too redundant with
50505         'u8-grapheme-next'.
50506         * modules/unigbrk/u8-grapheme-len: Delete file.
50507         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
50508         * lib/unigbrk.in.h: Remove prototype for deleted function.
50509         * lib/unigbrk/u8-grapheme-len.c: Delete file.
50510         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
50512         Remove module 'u16-grapheme-len' as too redundant with
50513         'u16-grapheme-next'.
50514         * modules/unigbrk/u16-grapheme-len: Delete file.
50515         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
50516         * lib/unigbrk.in.h: Remove prototype for deleted function.
50517         * lib/unigbrk/u16-grapheme-len.c: Delete file.
50518         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
50520         Remove module 'u32-grapheme-len' as too redundant with
50521         'u32-grapheme-next'.
50522         * modules/unigbrk/u32-grapheme-len: Delete file.
50523         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
50524         * lib/unigbrk.in.h: Remove prototype for deleted function.
50525         * lib/unigbrk/u32-grapheme-len.c: Delete file.
50526         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
50528         Suggested by Bruno Haible.
50530 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
50532         * unigbrk.in.h: Fix typo: "ben" => "been".
50533         Reported by Bruno Haible.
50535 2011-01-01  Jim Meyering  <meyering@redhat.com>
50537         maint: update almost all copyright ranges to include 2011
50538         Run the new "make update-copyright" rule.
50540 2011-01-01  Jim Meyering  <meyering@redhat.com>
50542         maint: update-copyright: exempt doc/INSTALL*
50543         * Makefile (update-copyright): Also exclude doc/INSTALL*,
50544         since they are generated.  Suggested by Bruno Haible.
50546 2011-01-01  Jim Meyering  <meyering@redhat.com>
50548         maint: refine the update-copyright rule
50549         * Makefile (update-copyright): Also exclude any file that includes
50550         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
50551         code that merely generates the comment.
50553 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
50555         New module 'u8-grapheme-len'.
50556         * modules/unigbrk/u8-grapheme-len: New file.
50557         * modules/unigbrk/u8-grapheme-len-tests: New file.
50558         * lib/unigbrk.in.h: Add prototype for new function.
50559         * lib/unigbrk/u8-grapheme-len.c: New file.
50560         * tests/unigbrk/test-u8-grapheme-len.c: New file.
50562         New module 'u16-grapheme-len'.
50563         * modules/unigbrk/u16-grapheme-len: New file.
50564         * modules/unigbrk/u16-grapheme-len-tests: New file.
50565         * lib/unigbrk.in.h: Add prototype for new function.
50566         * lib/unigbrk/u16-grapheme-len.c: New file.
50567         * tests/unigbrk/test-u16-grapheme-len.c: New file.
50569         New module 'u32-grapheme-len'.
50570         * modules/unigbrk/u32-grapheme-len: New file.
50571         * modules/unigbrk/u32-grapheme-len-tests: New file.
50572         * lib/unigbrk.in.h: Add prototype for new function.
50573         * lib/unigbrk/u32-grapheme-len.c: New file.
50574         * tests/unigbrk/test-u32-grapheme-len.c: New file.
50576         New module 'u8-grapheme-next'.
50577         * modules/unigbrk/u8-grapheme-next: New file.
50578         * modules/unigbrk/u8-grapheme-next-tests: New file.
50579         * lib/unigbrk.in.h: Add prototype for new function.
50580         * lib/unigbrk/u8-grapheme-next.c: New file.
50581         * tests/unigbrk/test-u8-grapheme-next.c: New file.
50583         New module 'u16-grapheme-next'.
50584         * modules/unigbrk/u16-grapheme-next: New file.
50585         * modules/unigbrk/u16-grapheme-next-tests: New file.
50586         * lib/unigbrk.in.h: Add prototype for new function.
50587         * lib/unigbrk/u16-grapheme-next.c: New file.
50588         * tests/unigbrk/test-u16-grapheme-next.c: New file.
50590         New module 'u32-grapheme-next'.
50591         * modules/unigbrk/u32-grapheme-next: New file.
50592         * modules/unigbrk/u32-grapheme-next-tests: New file.
50593         * lib/unigbrk.in.h: Add prototype for new function.
50594         * lib/unigbrk/u32-grapheme-next.c: New file.
50595         * tests/unigbrk/test-u32-grapheme-next.c: New file.
50597         New module 'u8-grapheme-prev'.
50598         * modules/unigbrk/u8-grapheme-prev: New file.
50599         * modules/unigbrk/u8-grapheme-prev-tests: New file.
50600         * lib/unigbrk.in.h: Add prototype for new function.
50601         * lib/unigbrk/u8-grapheme-prev.c: New file.
50602         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
50604         New module 'u16-grapheme-prev'.
50605         * modules/unigbrk/u16-grapheme-prev: New file.
50606         * modules/unigbrk/u16-grapheme-prev-tests: New file.
50607         * lib/unigbrk.in.h: Add prototype for new function.
50608         * lib/unigbrk/u16-grapheme-prev.c: New file.
50609         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
50611         New module 'u32-grapheme-prev'.
50612         * modules/unigbrk/u32-grapheme-prev: New file.
50613         * modules/unigbrk/u32-grapheme-prev-tests: New file.
50614         * lib/unigbrk.in.h: Add prototype for new function.
50615         * lib/unigbrk/u32-grapheme-prev.c: New file.
50616         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
50618         New module 'u8-grapheme-breaks'.
50619         * modules/unigbrk/u8-grapheme-breaks: New file.
50620         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
50621         * lib/unigbrk.in.h: Add prototype for new function.
50622         * lib/unigbrk/u8-grapheme-breaks.c: New file.
50623         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
50625         New module 'u16-grapheme-breaks'.
50626         * modules/unigbrk/u16-grapheme-breaks: New file.
50627         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
50628         * lib/unigbrk.in.h: Add prototype for new function.
50629         * lib/unigbrk/u16-grapheme-breaks.c: New file.
50630         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
50632         New module 'u32-grapheme-breaks'.
50633         * modules/unigbrk/u32-grapheme-breaks: New file.
50634         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
50635         * lib/unigbrk.in.h: Add prototype for new function.
50636         * lib/unigbrk/u32-grapheme-breaks.c: New file.
50637         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
50639         New module 'ulc-grapheme-breaks'.
50640         * modules/unigbrk/ulc-grapheme-breaks: New file.
50641         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
50642         * m4/locale-ar.m4: New file.
50643         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
50644         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
50645         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
50647 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
50649         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
50650         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
50651         modified how this file was generated before I initially submitted
50652         the module, but failed to regenerate it.  This meant that several
50653         of the level2 entries were wrong.
50654         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
50655         Remove the division-by-2 that is folded into the table now that
50656         gbrkprop.h has been regenerated properly.  Now -1 entries are
50657         handled correctly.
50659         New module 'unigbrk/uc-gbrk-prop-tests'.
50660         * modules/unigbrk/uc-gbrk-prop-tests: New file.
50661         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
50662         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
50663         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
50665 2011-01-01  Bruno Haible  <bruno@clisp.org>
50667         Avoid use of hexadecimal escapes.
50668         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
50669         instead of hexadecimal escapes.
50671 2011-01-01  Jim Meyering  <meyering@redhat.com>
50673         maint: new rule to update copyright year ranges
50674         * Makefile (update-copyright): New rule.
50676         maint: indent with TABs in Makefile
50677         * Makefile: Expand leading sequences of spaces to TABs
50679         version-etc: update the copyright year it reports
50680         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
50682 2010-12-31  Bruno Haible  <bruno@clisp.org>
50684         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
50685         * lib/isfinite.c (zerof, zerod, zerol): New variables.
50686         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
50687         zero.
50689 2010-12-31  Bruno Haible  <bruno@clisp.org>
50691         pwrite: Work around HP-UX 11.11 bug.
50692         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
50693         works and set REPLACE_PWRITE if not.
50694         * lib/pwrite.c (pwrite): Add an implementation that uses the system
50695         function.
50696         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
50698 2010-12-31  Bruno Haible  <bruno@clisp.org>
50700         pread: Work around HP-UX 11 bugs.
50701         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
50702         and set REPLACE_PREAD if not.
50703         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
50705 2010-12-31  Eric Blake  <eblake@redhat.com>
50707         nl_langinfo: fix YESEXPR on Irix 6.5
50708         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
50709         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
50710         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
50711         it.
50713 2010-12-31  Bruno Haible  <bruno@clisp.org>
50715         iconv: Document HP-UX 11 bug.
50716         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
50718 2010-12-31  Bruno Haible  <bruno@clisp.org>
50720         ldexpl: Fix link error on HP-UX 11.
50721         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
50722         LDEXPL_LIBM, using $ISNANL_LIBM.
50724 2010-12-31  Eric Blake  <eblake@redhat.com>
50726         ftello: avoid compilation failure with SunStudio c89
50727         * lib/ftello.c (ftello): Use lseek, not llseek.
50729         tests: avoid failing coreutils tests on cygwin
50730         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
50731         (create_exe_shims_): Return 0 when skipping.
50733 2010-12-31  Bruno Haible  <bruno@clisp.org>
50735         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
50736         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
50738 2010-12-31  Bruno Haible  <bruno@clisp.org>
50740         waitpid: Fix link error in C++ mode.
50741         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
50743 2010-12-31  Bruno Haible  <bruno@clisp.org>
50745         isnan: Use GCC built-ins when possible.
50746         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
50747         __builtin_isnan.
50748         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
50749         (isnan): Define using GCC built-ins for GCC >= 4.0.
50751 2010-12-31  Bruno Haible  <bruno@clisp.org>
50753         isnand: Fix mistake.
50754         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
50755         __builtin_isnand.
50757 2010-12-31  Bruno Haible  <bruno@clisp.org>
50759         open: Avoid C++ error on HP-UX 11.
50760         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
50762 2010-12-31  Bruno Haible  <bruno@clisp.org>
50764         time_r: Add missing declarations on HP-UX 11.
50765         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
50766         instead of HAVE_LOCALTIME_R.
50767         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
50768         HAVE_LOCALTIME_R always.
50769         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
50770         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
50771         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
50772         HAVE_LOCALTIME_R.
50773         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
50774         * doc/posix-functions/localtime_r.texi: Likewise.
50776 2010-12-29  Eric Blake  <eblake@redhat.com>
50778         mountlist: tweak previous commit
50779         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
50780         Reported by Paul Eggert.
50782         mountlist: fix local drive detection on cygwin
50783         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
50784         that works for cygwin.
50786 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
50788         ftoastr, snprintf: ftoastr + snprintf module
50789         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
50790         since the snprintf module now should be good enough here.
50791         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
50792         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
50793         and gl_MODULE_INDICATOR([snprintf]), but the former enables
50794         GNULIB_SNPRINTF only for the test directory, and the latter
50795         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
50796         seems to suffice by itself.
50798 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
50800         alloca: one step towards thread-safety
50801         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
50802         need for a static variable.  All callers changed.  This does not
50803         make the alloca replacement thread-safe, but it's one step.
50805         tests: minor indenting change
50806         * tests/init.sh: Sync from coreutils housekeeping patch
50807         <http://lists.gnu.org/r/coreutils/2010-12/msg00116.html>
50808         to keep lines within 80 columns.
50810 2010-12-28  Jim Meyering  <meyering@redhat.com>
50812         regex: don't infloop on persistent failing calloc
50813         * lib/regexec.c (build_trtable): Return failure indication upon
50814         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
50815         In glibc, this was fixed for version 2.13:
50816         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
50818 2010-12-28  Bruno Haible  <bruno@clisp.org>
50819             Paul Eggert <eggert@cs.ucla.edu>
50821         linkat: Make implementation robust against system behaviour variations.
50822         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
50823         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
50824         way, and to -2 if it needs a generic runtime test.
50825         * lib/linkat.c (solaris_optimized_link_immediate,
50826         solaris_optimized_link_follow): New functions.
50827         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
50828         (check_same_link): Use it.
50830 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
50832         New module 'unigbrk/base'.
50833         * modules/unigbrk/base: New file.
50834         * lib/unigbrk.in.h: New file.
50836         New module 'unigbrk/uc-gbrk-prop'.
50837         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
50838         * modules/unigbrk/uc-gbrk-prop: New file.
50839         * lib/unigbrk/gbrkprop.h: New file.
50840         * lib/unigbrk/uc-gbrk-prop.c: New file.
50842         New module 'unigbrk/uc-is-grapheme-break'.
50843         * modules/unigbrk/uc-is-grapheme-break: New file.
50844         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
50845         * lib/unigbrk/uc-is-grapheme-break.c: New file.
50846         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
50847         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
50848         * tests/unigbrk/GraphemeBreakTest.txt: New file.
50850         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
50852 2010-12-27  Bruno Haible  <bruno@clisp.org>
50854         linkat test: Avoid failure on Solaris 11 2010-11.
50855         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
50857 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
50859         utimens: work around glibc rounding bug on more platforms
50860         * lib/utimens.c (fdutimens): Work around rounding bug even if
50861         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
50862         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00298.html>.
50864 2010-12-27  Bruno Haible  <bruno@clisp.org>
50866         select tests: Improve comments.
50867         * tests/test-select.c (do_select): Add comments.
50869 2010-12-27  Bruno Haible  <bruno@clisp.org>
50871         select tests: Safer way of handling timeout.
50872         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
50873         at every invocation.
50875 2010-12-27  Bruno Haible  <bruno@clisp.org>
50877         select tests: Use 'bool' where appropriate.
50878         * tests/test-select.c (connect_to_socket): Change argument type to
50879         'bool'.
50881 2010-12-27  Bruno Haible  <bruno@clisp.org>
50883         select tests: Use existing modules.
50884         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
50885         (configure.ac): Don't test for unistd.h.
50886         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
50887         declared in <unistd.h>.
50889 2010-12-27  Bruno Haible  <bruno@clisp.org>
50891         mbrtowc: Work around a Solaris 7 bug.
50892         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
50893         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
50894         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
50895         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
50896         MBRTOWC_NULL_ARG1_BUG.
50897         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
50898         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
50899         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
50900         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
50902 2010-12-27  Jim Meyering  <meyering@redhat.com>
50904         read-file.c: tweak syntax
50905         * lib/read-file.c (fread_file): Remove space after "*" in function
50906         definitions.
50908 2010-12-27  Bruno Haible  <bruno@clisp.org>
50910         times test: Avoid gcc warnings on OSF/1.
50911         * tests/test-times.c (main): Cast printf arguments from clock_t to
50912         'long int'.
50914 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
50916         utimens: work around glibc rounding bug on older Linux kernels
50917         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
50918         on Linux with a glibc whose utimes might not work, then work
50919         around a longstanding glibc bug involving rounding rather than
50920         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
50921         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
50923 2010-12-26  Bruno Haible  <bruno@clisp.org>
50925         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
50926         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
50927         _GL_CXXALIAS_SYS.
50928         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
50930 2010-12-26  Bruno Haible  <bruno@clisp.org>
50932         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
50933         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
50934         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
50935         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
50936         looking for the declaration.
50937         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
50938         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
50939         problem.
50940         * doc/posix-functions/inet_pton.texi: Likewise.
50942 2010-12-26  Bruno Haible  <bruno@clisp.org>
50944         arpa_inet: Use the common idioms with C++ support.
50945         * lib/arpa_inet.in.h: Include c++defs.h.
50946         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
50947         support.
50948         * modules/arpa_inet (Depends-on): Add c++defs.
50949         (Makefile.am): Substitute the contents of c++defs.h.
50950         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
50951         * modules/arpa_inet-c++-tests: New file.
50952         * tests/test-arpa_inet-c++.cc: New file.
50954 2010-12-25  Bruno Haible  <bruno@clisp.org>
50956         Fix more C++ link errors on Solaris 8.
50957         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
50958         $(LIB_EACCESS).
50959         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
50960         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
50961         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
50962         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
50963         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
50965 2010-12-25  Bruno Haible  <bruno@clisp.org>
50967         printf-posix: Fix link error when a non-GCC compiler is used.
50968         * lib/stdio.in.h (printf): When not using GCC, override printf
50969         correctly.
50970         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
50972 2010-12-25  Bruno Haible  <bruno@clisp.org>
50974         strerror_r-posix: Update doc.
50975         * doc/posix-functions/strerror_r.texi: Update doc about the return
50976         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
50978 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
50980         utimens: simplify the logic of the previous change
50981         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
50982         This should not affect whether the test succeeds or fails.
50984         utimens: configure better on hosts with NFS clock skew
50985         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
50986         uses the clock of the local host.  It might use the clock of the
50987         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
50988         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
50990 2010-12-25  Bruno Haible  <bruno@clisp.org>
50992         ptsname test: Avoid failure on Solaris.
50993         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
50994         open a pseudo-terminal; don't use BSD-style ptys.
50995         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
50997 2010-12-25  Bruno Haible  <bruno@clisp.org>
50999         ptsname: Avoid ERANGE failure on some systems.
51000         * lib/ptsname.c (buffer): Increase size.
51002 2010-12-25  Bruno Haible  <bruno@clisp.org>
51004         rename, renameat: Avoid test failures at NFS mounted locations.
51005         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
51006         so that subsequent mkdir calls succeed.
51008 2010-12-25  Bruno Haible  <bruno@clisp.org>
51010         iswblank: Fix C++ link error on Solaris 8.
51011         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
51012         _GL_FUNCDECL_SYS.
51014 2010-12-25  Bruno Haible  <bruno@clisp.org>
51016         unistd: Fix C++ link error on Solaris 8.
51017         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
51019 2010-12-25  Bruno Haible  <bruno@clisp.org>
51021         readlink doc: Mention an old glibc bug.
51022         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
51024 2010-12-25  Bruno Haible  <bruno@clisp.org>
51026         fcntl-h: Fix for use of C++ on glibc systems.
51027         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
51028         also on glibc systems in C++ mode.
51029         Reported by Gary V. Vaughan <gary@gnu.org>.
51031 2010-12-25  Bruno Haible  <bruno@clisp.org>
51033         roundl-ieee: Make it work on OSF/1 5.1 with cc.
51034         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
51036 2010-12-25  Bruno Haible  <bruno@clisp.org>
51038         truncl-ieee: Make it work on OSF/1 5.1 with cc.
51039         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
51040         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
51041         test whether truncl works according to ISO C 99 with IEC 60559.
51042         * m4/truncl-ieee.m4: New file.
51043         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
51044         m4/signbit.m4.
51045         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
51047 2010-12-25  Bruno Haible  <bruno@clisp.org>
51049         ceill-ieee: Make it work on OSF/1 5.1 with cc.
51050         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
51051         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
51052         test whether ceill works according to ISO C 99 with IEC 60559.
51053         * m4/ceill-ieee.m4: New file.
51054         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
51055         m4/signbit.m4.
51056         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
51058 2010-12-25  Bruno Haible  <bruno@clisp.org>
51060         Ensure all prerequisites of <wchar.h> are included.
51061         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
51062         before <wchar.h>.
51063         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
51064         gl_MBRLEN_NUL_RETVAL): Likewise.
51065         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
51066         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
51067         AC_FUNC_MBRTOWC): Likewise.
51068         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
51069         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
51070         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
51071         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
51072         Likewise.
51073         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
51074         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
51075         (gl_WCHAR_H): Improve comments.
51076         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
51078 2010-12-25  Bruno Haible  <bruno@clisp.org>
51080         strtok_r: Fix C syntax error in autoconf macro.
51081         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
51082         characters in test program.
51084 2010-12-24  Bruno Haible  <bruno@clisp.org>
51086         ceil, trunc, round: Fix gcc warnings.
51087         * lib/ceil.c (MIN): Undefine before redefining.
51088         * lib/trunc.c (MIN): Likewise.
51089         * lib/round.c (MIN): Likewise.
51090         Include <math.h> first.
51092 2010-12-24  Bruno Haible  <bruno@clisp.org>
51094         select tests: Avoid failures on OSF/1 5.1.
51095         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
51096         failure of closing the last socket; it may fail with ECONNRESET.
51098 2010-12-24  Eric Blake  <eblake@redhat.com>
51100         stdint: avoid HP-UX 10.20 preprocessor bug
51101         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
51102         than #if.
51103         * tests/test-floor2.c (main): Likewise.
51104         Reported by Peter O'Gorman.
51106         pipe: make obsoletion transition easier
51107         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
51108         * modules/pipe (Files): Include revived file.
51109         (Include): Drop reference, to mirror getdate's behavior.
51111 2010-12-24  Bruno Haible  <bruno@clisp.org>
51113         sys_socket: Hide mismatch of declarations on NonStop Kernel.
51114         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
51115         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
51116         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
51118 2010-12-24  Bruno Haible  <bruno@clisp.org>
51120         gethostname: Ensure declaration on NonStop Kernel.
51121         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
51122         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
51124 2010-12-24  Bruno Haible  <bruno@clisp.org>
51126         sys_select: Ensure all necessary types on NonStop Kernel.
51127         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
51128         include <sys/time.h>.
51129         * doc/posix-headers/sys_select.texi: Mention that it's missing on
51130         NonStop Kernel.
51131         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
51133 2010-12-24  Bruno Haible  <bruno@clisp.org>
51135         sys_select: Remove unneeded include.
51136         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
51137         have <sys/select.h>.
51139 2010-12-24  Bruno Haible  <bruno@clisp.org>
51141         gethostname: Provide a fallback for HOST_NAME_MAX.
51142         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
51143         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
51144         instead.
51145         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
51147 2010-12-24  Bruno Haible  <bruno@clisp.org>
51149         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
51150         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
51151         (SA_RESTART): Likewise.
51152         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
51154 2010-12-24  Bruno Haible  <bruno@clisp.org>
51156         signal: Define NSIG.
51157         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
51158         * tests/test-signal.c (nsig): New variable.
51159         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
51161 2010-12-24  Bruno Haible  <bruno@clisp.org>
51163         rename, renameat: Avoid test failures on OSF/1 5.1.
51164         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
51165         alternative error codes.
51166         * tests/test-renameat.c (main): Likewise.
51168 2010-12-24  Bruno Haible  <bruno@clisp.org>
51170         *printf: Detect large precisions bug on Solaris 10/SPARC.
51171         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
51172         by Paul Eggert.
51173         * tests/test-snprintf-posix.h (test_function): Add this test code here
51174         too.
51175         * tests/test-sprintf-posix.h (test_function): Likewise.
51176         * tests/test-vasnprintf-posix.c (test_function): Likewise.
51177         * tests/test-vasprintf-posix.c (test_function): Likewise.
51178         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
51179         around by gnulib.
51180         * doc/posix-functions/printf.texi: Likewise.
51181         * doc/posix-functions/snprintf.texi: Likewise.
51182         * doc/posix-functions/sprintf.texi: Likewise.
51183         * doc/posix-functions/vfprintf.texi: Likewise.
51184         * doc/posix-functions/vprintf.texi: Likewise.
51185         * doc/posix-functions/vsnprintf.texi: Likewise.
51186         * doc/posix-functions/vsprintf.texi: Likewise.
51187         * doc/posix-functions/dprintf.texi: Undo last commit.
51188         * doc/posix-functions/vdprintf.texi: Likewise.
51190 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
51192         tests: port test-fdutimensat.c to Solaris 8
51193         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
51194         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
51195         On Solaris 8, it fails with errno == ENOSYS, because there is no
51196         futimens (so it can't use the fd), and there is no lutimens (so it
51197         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
51199         vsnprintf: make more consistent with snprintf; doc fixes
51201         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
51202         the byte count return problem was promoted from the snprintf-posix
51203         to the snprintf module.
51204         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
51205         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
51206         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
51207         * tests/test-snprintf.c (main): Check the byte count returned.
51208         * tests/test-vsnprintf.c (main): Likewise.
51210 2010-12-23  Eric Blake  <eblake@redhat.com>
51212         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
51213         * modules/sigpipe (License): Relax license.
51215 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
51217         doc: document Solaris printf bug with large float precisions
51218         * doc/posix-functions/dprintf.texi (dprintf):
51219         * doc/posix-functions/fprintf.texi (fprintf):
51220         * doc/posix-functions/printf.texi (printf):
51221         * doc/posix-functions/snprintf.texi (snprintf):
51222         * doc/posix-functions/sprintf.texi (sprintf):
51223         * doc/posix-functions/vdprintf.texi (vdprintf):
51224         * doc/posix-functions/vfprintf.texi (vfprintf):
51225         * doc/posix-functions/vprintf.texi (vprintf):
51226         * doc/posix-functions/vsnprintf.texi (vsnprintf):
51227         * doc/posix-functions/vsprintf.texi (vsprintf):
51228         Mention that these functions mishandle large floating point
51229         precisions on Solaris 10.  The same bug is also present in Solaris
51230         8, and I assume earlier.  This causes "cd gnulib-tests; make
51231         check" to fail on Solaris 8 (and I assume, later) when building
51232         the latest coreutils, in test-vasprintf-posix's call to
51233         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
51234         the wide flavors (e.g., wprintf) so this patch just updates the
51235         documentation for the narrow ones.
51237         test-posixtm.c: add two tests
51238         * tests/test-posixtm.c: Add two tests, to highlight the
51239         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
51240         around this bug; this is merely to document it.
51242 2010-12-22  Bruno Haible  <bruno@clisp.org>
51244         getlogin_r: Work around portability problem on OSF/1.
51245         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
51246         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
51247         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
51248         test for a truncated result.
51249         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
51250         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
51251         * modules/getlogin_r (Depends-on): Add memchr.
51252         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
51254 2010-12-22  Bruno Haible  <bruno@clisp.org>
51256         ptsname: Avoid test failure on OSF/1 5.1.
51257         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
51258         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
51259         (same_slave): New function.
51260         (main): Use it to compare ptsname's result with the expected file name.
51262 2010-12-22  Bruno Haible  <bruno@clisp.org>
51264         Port extended stdio modules to HP NonStop Kernel.
51265         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
51266         macros.
51267         * lib/fbufmode.c: Update comments.
51268         * lib/fflush.c: Likewise.
51269         * lib/fpurge.c: Likewise.
51270         * lib/freadable.c: Likewise.
51271         * lib/freadahead.c: Likewise.
51272         * lib/freading.c: Likewise.
51273         * lib/freadptr.c: Likewise.
51274         * lib/freadseek.c: Likewise.
51275         * lib/fseeko.c: Likewise.
51276         * lib/fseterr.c: Likewise.
51277         * lib/fwritable.c: Likewise.
51278         * lib/fwriting.c: Likewise.
51279         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
51281 2010-12-22  Bruno Haible  <bruno@clisp.org>
51283         ttyname_r: Work around bug on OSF/1 5.1.
51284         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
51285         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
51286         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
51287         present.
51288         * lib/ttyname_r.c (ttyname_r): Update comments.
51290 2010-12-22  Bruno Haible  <bruno@clisp.org>
51292         round: Implement result sign according to IEEE 754.
51293         * lib/round.c (MIN, MINUS_ZERO): New macros.
51294         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
51295         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
51296         * tests/test-round-ieee.c (main): Likewise.
51297         * tests/test-roundl-ieee.c (main): Likewise.
51299         trunc: Implement result sign according to IEEE 754.
51300         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
51301         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
51302         * tests/test-trunc2.c: Include minus-zero.h.
51303         (MINUS_ZERO): New macro.
51304         (trunc_reference): Keep in sync with lib/trunc.c.
51305         * tests/test-truncf2.c: Include minus-zero.h.
51306         (MINUS_ZERO): New macro.
51307         (truncf_reference): Keep in sync with lib/trunc.c.
51308         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
51309         * tests/test-trunc-ieee.c (main): Likewise.
51310         * tests/test-truncl-ieee.c (main): Likewise.
51312         ceil: Implement result sign according to IEEE 754.
51313         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
51314         (FUNC): Return -0.0 for -1 < x < 0.
51315         * tests/test-ceil2.c: Include minus-zero.h.
51316         (MINUS_ZERO): New macro.
51317         (ceil_reference): Keep in sync with lib/ceil.c.
51318         * tests/test-ceilf2.c: Include minus-zero.h.
51319         (MINUS_ZERO): New macro.
51320         (ceilf_reference): Keep in sync with lib/ceil.c.
51321         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
51322         * tests/test-ceil-ieee.c (main): Likewise.
51323         * tests/test-ceill-ieee.c (main): Likewise.
51325         floor: Implement result sign according to IEEE 754.
51326         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
51327         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
51328         * tests/test-floorf2.c (floorf_reference): Likewise.
51329         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
51330         * tests/test-floor-ieee.c (main): Likewise.
51331         * tests/test-floorl-ieee.c (main): Likewise.
51333 2010-12-22  Bruno Haible  <bruno@clisp.org>
51335         getaddrinfo: Update doc.
51336         * doc/posix-functions/gai_strerror.texi: Return type is also different
51337         on AIX and HP-UX.
51339 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
51341         getaddrinfo, inet_ntop: Update doc for Solaris.
51342         * doc/posix-functions/gai_strerror.texi: Return type is also an
51343         issue on Solaris 9 and earlier.
51344         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
51345         on Solaris 10 and earlier.
51347 2010-12-21  Bruno Haible  <bruno@clisp.org>
51349         New module 'roundl-ieee'.
51350         * modules/roundl-ieee: New file.
51351         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
51352         test whether roundl works according to ISO C 99 with IEC 60559.
51353         * m4/roundl-ieee.m4: New file.
51354         * modules/roundl-ieee-tests: New file.
51355         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
51356         * tests/test-roundl.c (main): Remove signbit tests.
51357         * modules/roundl-tests (Depends-on): Remove signbit.
51358         * doc/posix-functions/roundl.texi: Mention the new module.
51360 2010-12-21  Bruno Haible  <bruno@clisp.org>
51362         New module 'truncl-ieee'.
51363         * modules/truncl-ieee: New file.
51364         * modules/truncl-ieee-tests: New file.
51365         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
51366         * tests/test-truncl.c (main): Remove signbit tests.
51367         * modules/truncl-tests (Depends-on): Remove signbit.
51368         * doc/posix-functions/truncl.texi: Mention the new module.
51370 2010-12-21  Bruno Haible  <bruno@clisp.org>
51372         New module 'ceill-ieee'.
51373         * modules/ceill-ieee: New file.
51374         * modules/ceill-ieee-tests: New file.
51375         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
51376         * tests/test-ceill.c (main): Remove signbit tests.
51377         * modules/ceill-tests (Depends-on): Remove signbit.
51378         * doc/posix-functions/ceill.texi: Mention the new module.
51380 2010-12-21  Bruno Haible  <bruno@clisp.org>
51382         New module 'floorl-ieee'.
51383         * modules/floorl-ieee: New file.
51384         * modules/floorl-ieee-tests: New file.
51385         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
51386         * tests/test-floorl.c (main): Remove signbit tests.
51387         * modules/floorl-tests (Depends-on): Remove signbit.
51388         * doc/posix-functions/floorl.texi: Mention the new module.
51390 2010-12-21  Bruno Haible  <bruno@clisp.org>
51392         New module 'round-ieee'.
51393         * modules/round-ieee: New file.
51394         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
51395         whether round works according to ISO C 99 with IEC 60559.
51396         * m4/round-ieee.m4: New file.
51397         * modules/round-ieee-tests: New file.
51398         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
51399         * tests/test-round1.c (main): Remove signbit tests.
51400         * modules/round-tests (Depends-on): Remove 'signbit'.
51401         * doc/posix-functions/round.texi: Mention the new module.
51403 2010-12-21  Bruno Haible  <bruno@clisp.org>
51405         New module 'trunc-ieee'.
51406         * modules/trunc-ieee: New file.
51407         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
51408         whether trunc works according to ISO C 99 with IEC 60559.
51409         * m4/trunc-ieee.m4: New file.
51410         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
51411         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
51412         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
51413         * modules/trunc-ieee-tests: New file.
51414         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
51415         * tests/test-trunc1.c (main): Remove signbit tests.
51416         * modules/trunc-tests (Depends-on): Remove 'signbit'.
51417         * doc/posix-functions/trunc.texi: Mention the new module.
51419 2010-12-21  Bruno Haible  <bruno@clisp.org>
51421         New module 'ceil-ieee'.
51422         * modules/ceil-ieee: New file.
51423         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
51424         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
51425         ISO C 99 with IEC 60559.
51426         * m4/ceil-ieee.m4: New file.
51427         * modules/ceil (Files): Add lib/ceil.c.
51428         (Depends-on): Add 'float'.
51429         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
51430         * lib/math.in.h (ceil): New declaration.
51431         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
51432         REPLACE_CEIL.
51433         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
51434         * modules/ceil-ieee-tests: New file.
51435         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
51436         * tests/test-math-c++.cc: Check the signature of 'ceil'.
51437         * doc/posix-functions/ceil.texi: Mention the new module.
51439 2010-12-21  Bruno Haible  <bruno@clisp.org>
51441         New module 'floor-ieee'.
51442         * modules/floor-ieee: New file.
51443         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
51444         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
51445         ISO C 99 with IEC 60559.
51446         * m4/floor-ieee.m4: New file.
51447         * modules/floor (Files): Add lib/floor.c.
51448         (Depends-on): Add 'float'.
51449         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
51450         * lib/math.in.h (floor): New declaration.
51451         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
51452         REPLACE_FLOOR.
51453         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
51454         * modules/floor-ieee-tests: New file.
51455         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
51456         * tests/test-math-c++.cc: Check the signature of 'floor'.
51457         * doc/posix-functions/floor.texi: Mention the new module.
51459 2010-12-21  Bruno Haible  <bruno@clisp.org>
51461         New module 'roundf-ieee'.
51462         * modules/roundf-ieee: New file.
51463         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
51464         test whether roundf works according to ISO C 99 with IEC 60559.
51465         * m4/roundf-ieee.m4: New file.
51466         * modules/roundf-ieee-tests: New file.
51467         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
51468         * tests/test-roundf1.c (main): Remove signbit tests.
51469         * modules/roundf-tests (Depends-on): Remove 'signbit'.
51470         * doc/posix-functions/roundf.texi: Mention the new module.
51472 2010-12-21  Bruno Haible  <bruno@clisp.org>
51474         New module 'truncf-ieee'.
51475         * modules/truncf-ieee: New file.
51476         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
51477         test whether truncf works according to ISO C 99 with IEC 60559.
51478         * m4/truncf-ieee.m4: New file.
51479         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
51480         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
51481         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
51482         * modules/truncf-ieee-tests: New file.
51483         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
51484         * tests/test-truncf1.c (main): Remove signbit tests.
51485         * modules/truncf-tests (Depends-on): Remove 'signbit'.
51486         * doc/posix-functions/truncf.texi: Mention the new module.
51488 2010-12-21  Bruno Haible  <bruno@clisp.org>
51490         New module 'ceilf-ieee'.
51491         * modules/ceilf-ieee: New file.
51492         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
51493         test whether ceilf works according to ISO C 99 with IEC 60559.
51494         * m4/ceilf-ieee.m4: New file.
51495         * modules/ceilf-ieee-tests: New file.
51496         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
51497         * tests/test-ceilf1.c (main): Remove signbit tests.
51498         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
51499         * doc/posix-functions/ceilf.texi: Mention the new module.
51501 2010-12-21  Bruno Haible  <bruno@clisp.org>
51503         New module 'floorf-ieee'.
51504         * modules/floorf-ieee: New file.
51505         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
51506         test whether floorf works according to ISO C 99 with IEC 60559.
51507         * m4/floorf-ieee.m4: New file.
51508         * modules/floorf-ieee-tests: New file.
51509         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
51510         * tests/test-floorf1.c (main): Remove signbit tests.
51511         * modules/floorf-tests (Depends-on): Remove 'signbit'.
51512         * doc/posix-functions/floorf.texi: Mention the new module.
51514 2010-12-21  Bruno Haible  <bruno@clisp.org>
51516         Support for minus zero in autoconf macros.
51517         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
51518         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
51519         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
51520         * tests/minus-zero.h: Update comments.
51522 2010-12-21  Bruno Haible  <bruno@clisp.org>
51524         Tests for module 'ceil'.
51525         * modules/ceil-tests: New file.
51526         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
51527         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
51529 2010-12-21  Bruno Haible  <bruno@clisp.org>
51531         Tests for module 'floor'.
51532         * modules/floor-tests: New file.
51533         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
51534         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
51536 2010-12-21  Bruno Haible  <bruno@clisp.org>
51538         math: Fix indentation.
51539         * lib/math.in.h (floorf): Fix indentation.
51541 2010-12-21  Bruno Haible  <bruno@clisp.org>
51543         Fix cross-compilation guesses on Solaris.
51544         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
51545         not match "solaris2.10".
51546         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
51547         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
51548         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
51550 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
51552         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
51553         This fixes a problem observed with the latest coreutils snapshot
51554         that caused a test to fail on Solaris 8.  src/csplit.c's call
51555         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
51556         earlier, instead of returning the number of bytes that would have
51557         been generated; this causes csplit to incorrectly report memory
51558         exhaustion.
51559         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
51560         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
51561         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
51562         comments to match.
51563         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
51564         Fix typo in matching older versions of Solaris: "solaris2.10"
51565         is matched by the shell pattern "solaris2.[0-9]*".  This matters
51566         only for guessing while cross-compiling.
51567         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
51569 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
51571         ftoastr: fix comment again
51572         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
51573         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00149.html>.
51574         Also, simplify example a bit by using flags = 0.
51576 2010-12-20  Bruno Haible  <bruno@clisp.org>
51578         round*, trunc*: Update documentation regarding glibc.
51579         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
51580         * doc/posix-functions/round.texi: Likewise.
51581         * doc/posix-functions/roundl.texi: Likewise.
51582         * doc/posix-functions/truncf.texi: Likewise.
51583         * doc/posix-functions/trunc.texi: Likewise.
51584         * doc/posix-functions/truncl.texi: Likewise.
51586 2010-12-20  Bruno Haible  <bruno@clisp.org>
51588         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
51589         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
51590         * doc/posix-functions/round.texi: Likewise.
51591         * doc/posix-functions/roundl.texi: Likewise.
51593 2010-12-20  Bruno Haible  <bruno@clisp.org>
51595         ttyname_r: Add missing declaration on HP-UX 11.
51596         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
51597         HAVE_TTYNAME_R.
51598         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
51599         declared. Set HAVE_TTYNAME_R always.
51600         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51601         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
51602         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
51603         HAVE_TTYNAME_R.
51604         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
51606 2010-12-20  Bruno Haible  <bruno@clisp.org>
51608         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
51609         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
51610         * doc/posix-functions/getlogin_r.texi: Likewise.
51611         * tests/test-getlogin.c: Include <errno.h>.
51612         (main): Avoid test failure on HP-UX 11.11.
51613         * tests/test-getlogin_r.c (main): Likewise.
51615 2010-12-20  Bruno Haible  <bruno@clisp.org>
51617         getlogin_r: Add missing declaration on HP-UX 11.
51618         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
51619         declared also when it exists as a function.
51620         * doc/posix-functions/getlogin_r.texi: Document this workaround.
51622 2010-12-20  Bruno Haible  <bruno@clisp.org>
51624         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
51625         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
51626         through wcrtomb.
51628 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
51630         ftoastr: fix comment
51631         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
51632         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00130.html>.
51634 2010-12-19  Bruno Haible  <bruno@clisp.org>
51636         isnan: Ensure it is a macro.
51637         * lib/math.in.h (isnan): Define as a macro if not already a macro.
51638         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
51639         Solaris.
51641 2010-12-19  Bruno Haible  <bruno@clisp.org>
51643         ldexpl test: Fix link error on OSF/1 5.1.
51644         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
51646 2010-12-19  Bruno Haible  <bruno@clisp.org>
51648         wctype: Make it work in C++ mode on OSF/1 5.1.
51649         * lib/wctype.in.h (iswblank): Declare but not define here.
51650         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
51651         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
51652         * modules/wctype (Files): Add lib/iswblank.c.
51654 2010-12-19  Bruno Haible  <bruno@clisp.org>
51656         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
51657         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
51658         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
51660 2010-12-19  Bruno Haible  <bruno@clisp.org>
51662         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
51663         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
51664         _POSIX_PII_SOCKET.
51665         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
51666         * doc/posix-functions/recvfrom.texi: Likewise.
51667         * doc/posix-functions/send.texi: Likewise.
51668         * doc/posix-functions/sendto.texi: Likewise.
51670 2010-12-19  Bruno Haible  <bruno@clisp.org>
51672         tcgetsid: Add missing declaration on OSF/1 5.1.
51673         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
51674         HAVE_TCGETSID.
51675         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
51676         Don't set HAVE_TCGETSID.
51677         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
51678         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
51679         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
51680         HAVE_TCGETSID.
51681         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
51683 2010-12-19  Bruno Haible  <bruno@clisp.org>
51685         stdio: Fix problem with popen() declaration on OSF/1 5.1.
51686         * lib/stdio.in.h: During the include_next statement, let recursive
51687         includes of this file include only the system header file.
51689 2010-12-19  Bruno Haible  <bruno@clisp.org>
51691         iconv_open: Fix regression from 2010-12-04.
51692         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
51693         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
51695 2010-12-19  Bruno Haible  <bruno@clisp.org>
51697         stdbool test: Avoid a gcc warning.
51698         * tests/test-stdbool.c (main): Fail if e1 is false.
51699         Reported by Jim Meyering.
51701 2010-12-19  Jim Meyering  <meyering@redhat.com>
51703         setenv: restore to working order
51704         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
51705         mistakenly removed.
51706         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
51707         HAVE_SETENV.
51708         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
51709         HAVE_SETENV.
51711 2010-12-19  Bruno Haible  <bruno@clisp.org>
51713         Document some different function declarations on OSF/1 5.1.
51714         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
51715         * doc/posix-functions/inet_ntop.texi: Likewise.
51716         * doc/posix-functions/gethostname.texi: Likewise.
51717         * lib/unistd.in.h (gethostname): Update comment.
51719 2010-12-19  Bruno Haible  <bruno@clisp.org>
51721         doc: Mention vasprintf-posix module.
51722         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
51723         the 'vasprintf-posix' module.
51724         * doc/glibc-functions/vasprintf.texi: Likewise.
51726 2010-12-19  Bruno Haible  <bruno@clisp.org>
51728         unsetenv: Add missing declaration on OSF/1 5.1.
51729         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
51730         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
51731         Don't set HAVE_UNSETENV. In the test program, set _BSD.
51732         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
51733         not HAVE_UNSETENV.
51734         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
51735         HAVE_UNSETENV.
51736         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
51738 2010-12-19  Bruno Haible  <bruno@clisp.org>
51740         setenv: Add missing declaration on OSF/1 5.1.
51741         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
51742         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
51743         declared. Don't set HAVE_SETENV.
51744         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
51745         not HAVE_SETENV.
51746         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
51747         HAVE_SETENV.
51748         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
51750 2010-12-19  Bruno Haible  <bruno@clisp.org>
51752         nl_langinfo tests: Avoid gcc warning.
51753         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
51755 2010-12-19  Bruno Haible  <bruno@clisp.org>
51757         mknod: Avoid error in C++ mode on OSF/1 with GCC.
51758         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
51759         _GL_CXXALIAS_SYS.
51761 2010-12-19  Bruno Haible  <bruno@clisp.org>
51763         stdbool: Relax test.
51764         * tests/test-stdbool.c (e): Don't require that casts from a variable's
51765         address to 'bool' work in static initializer, for compilers other than
51766         GCC.
51768 2010-12-19  Bruno Haible  <bruno@clisp.org>
51770         ftello: Add missing declaration on OSF/1 5.1.
51771         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
51772         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
51773         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
51774         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
51775         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
51777 2010-12-19  Bruno Haible  <bruno@clisp.org>
51779         fseeko: Add missing declaration on OSF/1 5.1.
51780         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
51781         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
51782         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
51783         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
51784         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
51786 2010-12-19  Bruno Haible  <bruno@clisp.org>
51788         fchdir: Add missing declaration on OSF/1 5.1.
51789         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
51790         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
51791         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
51792         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
51793         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
51795 2010-12-19  Bruno Haible  <bruno@clisp.org>
51797         relocatable-prog-wrapper: Separate from relocatable-prog.
51798         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
51799         uninstall-relocwrapper rule here.
51800         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
51801         Reported by Ian Beckwith <ianb@erislabs.net>.
51803 2010-12-19  Bruno Haible  <bruno@clisp.org>
51805         unistr/u8-mbsnlen: Add missing dependency.
51806         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
51807         Reported by Ian Beckwith <ianb@erislabs.net>.
51809 2010-12-19  Bruno Haible  <bruno@clisp.org>
51811         iconv: Make it possible again to use this module without 'iconv-h'.
51812         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
51813         if it is not defined.
51814         Reported by Ian Beckwith <ianb@erislabs.net>.
51816 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
51818         acl: port to Solaris 8 when copying from tmpfs to ufs
51819         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
51820         error number.  Problem observed on Solaris 8 with latest
51821         coreutils, with "mv A B", where A is on a tmpfs file system and B
51822         is on a ufs file system.  This caused coreutils' mv/part-symlink
51823         test to fail.
51825         tests: set fail=0 at start
51826         * tests/init.sh (setup_): Move fail=0 initialization here ...
51827         (mktempd_): ... from here, so that tests can rely on fail being
51828         set to 0 initially.  This fixes a problem in coreutils; see:
51829         http://lists.gnu.org/r/coreutils/2010-12/msg00083.html
51831 2010-12-18  Bruno Haible  <bruno@clisp.org>
51833         memmem-simple: Stylistic changes.
51834         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
51835         Fix preprocessor directive indentation.
51837 2010-12-15  Pádraig Brady  <P@draigBrady.com>
51839         memmem, memmem-simple: reorganize and expand empty needle check
51840         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
51841         functional checks to memmem-simple so that one has a fully functional
51842         memmem by using just this module.
51843         Restrict the performance only check to the memmem module.
51844         Also expand the empty needle check to ensure the correct
51845         pointer is returned, not just a non NULL pointer.
51846         * doc/glibc-functions/memmem.texi: Rearrange the portability
51847         documentation to correlate with the rearranged checks.
51848         Clarify exactly how the memmem and memmem-simple modules
51849         relate to each other.
51851 2010-12-15  Pádraig Brady  <P@draigBrady.com>
51852             Bruno Haible  <bruno@clisp.org>
51854         Improve cross-compilation guesses for uClibc.
51855         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
51856         that uClibc does not have the glibc bug.
51857         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
51858         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
51860 2010-12-14  Eric Blake  <eblake@redhat.com>
51862         configmake: provide fallbacks for oldest supported autotools
51863         * m4/configmake.m4: New file.
51864         * modules/configmake (Files): Ship it.
51865         (configure.ac): Use it to guarantee fallbacks.
51867 2010-12-13  Pádraig Brady  <P@draigBrady.com>
51869         read-file: Improve handling of large files
51870         * lib/read-file.c (fread_file): Minimize realloc()s
51871         for regular files, and better manage sizes around SIZE_MAX.
51873 2010-12-13  Eric Blake  <eblake@redhat.com>
51875         cloexec, fcntl: relax license
51876         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
51877         consent from all contributors.
51878         * modules/fcntl (License): Likewise.
51880 2010-12-10  Bruno Haible  <bruno@clisp.org>
51882         Tests for module 'pipe-posix'.
51883         * modules/pipe-posix-tests: New file.
51884         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
51886 2010-12-10  Bruno Haible  <bruno@clisp.org>
51888         pipe-posix: Make it work in C++ mode.
51889         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
51890         (pipe): Use common idiom, not a macro definition.
51891         * lib/pipe.c: New file.
51892         * m4/pipe.m4: New file.
51893         * modules/pipe-posix (Description): Enhance.
51894         (Files): Add lib/pipe.c, m4/pipe.m4.
51895         (configure.ac): Invoke gl_FUNC_PIPE.
51896         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
51897         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
51898         * tests/test-unistd-c++.cc: Check the signature of pipe.
51900 2010-12-10  Bruno Haible  <bruno@clisp.org>
51902         Rename module 'pipe' to 'spawn-pipe'.
51903         * modules/spawn-pipe: New file, renamed from modules/pipe.
51904         (Files, configure.ac, Makefile.am): Update.
51905         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
51906         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
51907         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
51908         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
51909         "spawn-pipe.h" instead of "pipe.h".
51910         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
51911         to gl_SPAWN_PIPE.
51912         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
51913         (Files, Makefile.am): Update.
51914         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
51915         Update.
51916         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
51917         Include "spawn-pipe.h" instead of "pipe.h".
51918         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
51919         * lib/javacomp.c: Likewise.
51920         * lib/javaversion.c: Likewise.
51921         * lib/pipe-filter-gi.c: Likewise.
51922         * lib/pipe-filter-ii.c: Likewise.
51923         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
51924         * modules/javacomp (Depends-on): Likewise.
51925         * modules/javaversion (Depends-on): Likewise.
51926         * modules/pipe-filter-gi (Depends-on): Likewise.
51927         * modules/pipe-filter-ii (Depends-on): Likewise.
51928         * MODULES.html.sh (Executing programs): Update.
51929         * NEWS: Mention the change.
51931 2010-12-10  Eric Blake  <eblake@redhat.com>
51933         pipe-posix: new module
51934         * modules/pipe-posix: New file.
51935         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
51936         (gl_UNISTD_H): Check for declaration.
51937         * modules/unistd (Makefile.am): Substitute it.
51938         * lib/unistd.in.h (pipe): Provide it for mingw.
51939         * doc/posix-functions/pipe.texi (pipe): Update documentation.
51940         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
51942 2010-12-07  Bruno Haible  <bruno@clisp.org>
51944         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
51945         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
51946         u8_strcmp_gnu.
51947         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
51949 2010-12-06  Bruno Haible  <bruno@clisp.org>
51951         Update internal documentation.
51952         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
51954 2010-12-04  Bruno Haible  <bruno@clisp.org>
51956         Put more information about failed tests into the test return codes.
51957         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
51958         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
51959         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
51960         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
51961         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
51962         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
51963         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
51964         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
51965         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
51966         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
51967         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
51968         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
51969         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
51970         * m4/stdint.m4 (gl_STDINT_H): Likewise.
51971         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
51972         returns a bit mask.
51973         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
51974         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
51975         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
51976         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
51977         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
51978         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
51979         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
51980         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
51981         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
51982         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
51983         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
51984         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
51985         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
51986         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
51987         * m4/link.m4 (gl_FUNC_LINK): Likewise.
51988         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
51989         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
51990         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
51991         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
51992         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
51993         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
51994         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
51995         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
51996         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
51997         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
51998         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
51999         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
52000         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
52001         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
52002         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
52003         gl_PRINTF_PRECISION): Likewise.
52004         * m4/regex.m4 (gl_REGEX): Likewise.
52005         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
52006         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
52007         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
52008         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
52009         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
52010         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
52011         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
52012         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
52013         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
52014         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
52015         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
52016         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
52017         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
52018         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
52019         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
52020         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
52021         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
52022         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
52023         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
52024         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
52025         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
52026         enumerated value.
52027         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
52029 2010-12-04  Bruno Haible  <bruno@clisp.org>
52031         Update for Solaris 11 2010-11.
52032         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
52033         Express, released in November 2010.
52035 2010-12-04  Bruno Haible  <bruno@clisp.org>
52037         nproc: Relax license.
52038         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
52039         and Paul Eggert.
52040         Requested by Ludovic Courtès <ludo@gnu.org>.
52042 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
52044         utimecmp: fine-grained src to nearby coarse-grained dest
52046         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
52047         and the source is on a file system with higher-resolution time
52048         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
52049         not work, and the time stamps are close together, the algorithm to
52050         determine the exact resolution from the read-back mtime was buggy:
52051         it had a "!=" where it should have had an "==".  This bug has been
52052         in the code ever since it was introduced to gnulib.
52053         Problem reported by Dan Jacobson in
52054         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
52056 2010-11-30  Bruno Haible  <bruno@clisp.org>
52058         strerror_r-posix: Fix autoconf test.
52059         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
52061 2010-11-28  Bruno Haible  <bruno@clisp.org>
52062             Paul Eggert  <eggert@cs.ucla.edu>
52064         Tests for module 'getdomainname'.
52065         * modules/getdomainname-tests: New file.
52066         * tests/test-getdomainname.c: New file, based on
52067         tests/test-gethostname.c.
52069 2010-11-28  Bruno Haible  <bruno@clisp.org>
52070             Paul Eggert  <eggert@cs.ucla.edu>
52072         getdomainname: Use the system function when possible.
52073         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
52074         (getdomainname): Replace if needed. Provide the declaration if it is
52075         missing. Don't use _GL_CXXALIAS_SYS_CAST.
52076         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
52077         (getdomainname): When the system has getdomainname, call the system
52078         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
52079         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
52080         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
52081         found in libnsl. Look for the declaration also in <netdb.h>. Replace
52082         the function if its second argument is of type 'int' or if it is found
52083         in libnsl.
52084         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
52085         <sys/systeminfo.h> and sysinfo().
52086         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
52087         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52088         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
52089         HAVE_GETDOMAINNAME.
52090         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
52091         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
52092         * doc/glibc-functions/getdomainname.texi: Document the problems with
52093         the getdomainname declaration.
52095 2010-11-28  Bruno Haible  <bruno@clisp.org>
52097         sys_socket: Ensure ss_family field on AIX.
52098         * lib/sys_socket.in.h (ss_family): New macro definition.
52099         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
52100         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
52101         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
52102         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
52103         * modules/sys_socket (Makefile.am): Substitute
52104         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
52105         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
52107 2010-11-27  Bruno Haible  <bruno@clisp.org>
52109         readline: Improve configure output.
52110         * m4/readline.m4 (gl_FUNC_READLINE): Make the
52111         "checking for readline..." result understandable.
52113 2010-11-27  Bruno Haible  <bruno@clisp.org>
52115         *printf-posix: Detect a bug on Solaris 10/x86.
52116         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
52117         for floating-point output.
52118         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
52119         directive.
52120         * tests/test-snprintf-posix.h (test_function): Likewise.
52121         * tests/test-sprintf-posix.h (test_function): Likewise.
52122         * tests/test-vasprintf-posix.c (test_function): Likewise.
52123         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
52124         * doc/posix-functions/printf.texi: Likewise.
52125         * doc/posix-functions/snprintf.texi: Likewise.
52126         * doc/posix-functions/sprintf.texi: Likewise.
52127         * doc/posix-functions/vfprintf.texi: Likewise.
52128         * doc/posix-functions/vprintf.texi: Likewise.
52129         * doc/posix-functions/vsnprintf.texi: Likewise.
52130         * doc/posix-functions/vsprintf.texi: Likewise.
52131         * doc/glibc-functions/obstack_printf.texi: Likewise.
52132         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
52134 2010-11-27  Bruno Haible  <bruno@clisp.org>
52136         Fix link error when module libunistring-optional is in use.
52137         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
52138         * modules/striconveha-tests (Makefile.am): Likewise.
52140 2010-11-27  Bruno Haible  <bruno@clisp.org>
52142         regex: Mention link dependencies.
52143         * modules/regex (Link): New section.
52144         * modules/rpmatch (Link): Likewise.
52145         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
52147 2010-11-27  Bruno Haible  <bruno@clisp.org>
52149         ftoastr: Fix compilation error on Solaris.
52150         * lib/ftoastr.c: Include <config.h>.
52152 2010-11-27  Bruno Haible  <bruno@clisp.org>
52154         getloadavg: Update documentation.
52155         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
52157 2010-11-27  Bruno Haible  <bruno@clisp.org>
52159         sys_socket: Fix test whether the functions are declared.
52160         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
52161         not <sys/select.h>.
52163 2010-11-27  Bruno Haible  <bruno@clisp.org>
52165         getpass: Make sure to get system declaration on some platforms.
52166         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
52167         gl_USE_SYSTEM_EXTENSIONS.
52168         * modules/getpass (Depends-on): Add extensions.
52170 2010-11-26  Bruno Haible  <bruno@clisp.org>
52172         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
52173         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
52174         'iconv' module is present.
52175         (ICONV_CONST): New macro.
52176         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
52177         ICONV_CONST.
52178         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
52179         set ICONV_CONST.
52180         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
52181         here.
52182         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
52183         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
52184         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
52185         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
52186         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
52187         present.
52189 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
52191         ftoastr: comment fix
52192         * lib/ftoastr.c: "little" -> "little or no" in comment
52194 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
52196         stdint: port to GCC 4.3 + OSX + Octave
52197         On this platform, stdint.h is buggy and defines int64_t to long
52198         long int.  The replacement defined it to long int, causing
52199         problems with C++ style name mangling.  Instead, trust the system
52200         definition if INT64_MAX is defined, and likewise for the unsigned
52201         variant.   Problem reported by Jarno Rajahalme in
52202         <http://lists.gnu.org/r/bug-gnulib/2010-04/msg00143.html>.
52203         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
52204         and don't mess with int64_t and INT64_MAX in this case.
52205         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
52207 2010-11-24  Bruno Haible  <bruno@clisp.org>
52209         doc: Corrections regarding MacOS X 10.4 and 10.5.
52210         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
52211         MacOS X.
52212         Reported by Simon Josefsson.
52214 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
52216         Uninstall ".bin" files installed by relocwrapper.
52217         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
52218         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
52219         unless it is already there.
52221 2010-11-21  Bruno Haible  <bruno@clisp.org>
52223         Update for NetBSD 5.0.
52224         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
52225         NetBSD; the test fails on NetBSD 5.0.
52226         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
52227         about NetBSD.
52229 2010-11-21  Bruno Haible  <bruno@clisp.org>
52231         Update for HP-UX 11.23 and HP-UX 11.31.
52232         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
52233         HP-UX.
52235 2010-11-21  Bruno Haible  <bruno@clisp.org>
52237         Update for MacOS X 10.5.
52238         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
52239         MacOS X; the test fails on MacOS X 10.5.8.
52240         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
52241         about MacOS X.
52243 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
52245         bootstrap: add bootstrap_sync option.
52246         See discussion at
52247         <http://lists.gnu.org/r/bug-gnulib/2010-10/msg00369.html>,
52248         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00200.html>.
52249         * build-aux/bootstrap: Accept --bootstrap-sync to update
52250         bootstrap if it is not identical to the local gnulib's
52251         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
52252         enable this by default.  Accept --no-bootstrap-sync to disable
52253         it.
52255 2010-11-20  Bruno Haible  <bruno@clisp.org>
52257         Ensure that <features.h> is included before __GLIBC__ is tested.
52258         * lib/printf-parse.h: Include <features.h>.
52259         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
52260         Reported by Mike Frysinger <vapier@gentoo.org>.
52262         Ensure that <features.h> is included before __GLIBC__ is tested.
52263         * lib/wchar.in.h: Include <features.h>.
52264         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
52265         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
52266         Reported by Mike Frysinger <vapier@gentoo.org>.
52268         Ensure that <features.h> is included before __GLIBC__ is tested.
52269         * lib/arpa_inet.in.h: Include <features.h>.
52270         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
52271         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
52272         Reported by Mike Frysinger <vapier@gentoo.org>.
52274         Ensure that <features.h> is included before __GLIBC__ is tested.
52275         * build-aux/link-warning.h: Include <features.h>.
52276         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
52277         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
52278         Reported by Mike Frysinger <vapier@gentoo.org>.
52280         Ensure that <features.h> is included before __GLIBC__ is tested.
52281         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
52282         Reported by Mike Frysinger <vapier@gentoo.org>.
52284 2010-11-20  Bruno Haible  <bruno@clisp.org>
52286         memmem: Fix autoconf test.
52287         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
52289 2010-11-20  Bruno Haible  <bruno@clisp.org>
52291         Port to uClibc.
52292         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
52293         * lib/fcntl.in.h: Likewise.
52294         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
52295         * lib/mbrtowc.c (mbrtowc): Likewise.
52296         * lib/relocatable.c (find_shared_library_fullname): Likewise.
52297         * lib/strerror_r.c: Likewise.
52298         * lib/unistr/u8-strnlen.c: Likewise.
52299         * lib/vasnprintf.c (decimal_point_char): Likewise.
52300         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
52301         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
52302         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
52303         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
52304         * tests/test-sigaction.c (handler, main): Likewise.
52305         * lib/freading.h: Treat uClibc like a non-glibc platform.
52306         * lib/freading.c: Likewise.
52307         * lib/gettext.h: Likewise.
52308         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
52309         Likewise.
52310         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
52311         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
52312         * lib/propername.c (proper_name_utf8): Likewise.
52313         * lib/spawn.in.h: Likewise.
52314         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
52315         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
52316         mem_cd_iconveh_internal): Likewise.
52317         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
52318         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
52319         strstr, strcasestr): Likewise.
52320         * lib/unicodeio.c (unicode_to_mb): Likewise.
52321         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
52322         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
52323         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
52324         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
52325         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
52326         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
52327         * lib/unistr/u8-stpncpy.c: Likewise.
52328         * lib/vasnprintf.c (VASNPRINTF): Likewise.
52329         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
52330         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
52331         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
52332         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
52333         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
52334         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
52335         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
52336         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
52337         Likewise.
52338         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
52339         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
52340         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
52341         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
52342         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
52343         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
52344         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
52345         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
52346         * tests/test-getopt.h (OPTIND_MIN): Likewise.
52347         * tests/test-striconveha.c (main): Likewise.
52348         * tests/test-vasnprintf-posix.c (test_function): Likewise.
52349         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
52350         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
52351         * doc/posix-functions/getline.texi: Likewise.
52352         Reported by Mike Frysinger <vapier@gentoo.org>.
52354 2010-11-20  Bruno Haible  <bruno@clisp.org>
52356         nproc: Fix condition.
52357         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
52358         HAVE_PTHREAD_AFFINITY_NP.
52360 2010-11-20  Bruno Haible  <bruno@clisp.org>
52362         Fix a comment.
52363         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
52365 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
52367         ftoastr: don't assume snprintf
52368         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
52369         Implement a subset of snprintf here, by using sprintf safely.
52370         * modules/ftoastr (Depends-on): Remove snprintf.
52372 2010-11-19  Jim Meyering  <meyering@redhat.com>
52374         test-rename.h: fix compilation failure
52375         * tests/test-rename.h (test_rename): Add omitted "}".
52377 2010-11-17  Jim Meyering  <meyering@redhat.com>
52379         maint.mk: add a URL discussing the no-@acronym policy
52380         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
52382 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
52384         ftoastr: depend on snprintf, improve comments
52385         * lib/ftoastr.c: Also mention Loitsch's draft.
52386         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
52387         needed in the current implementation, but it might simplify
52388         speeding up the code later.
52389         * modules/ftoastr: Depend on snprintf; this improves portability.
52390         Suggested by Bruno Haible in the same email.
52392         ftoastr: port to hosts lacking strtof and strtold
52393         Problem reported by Bruno Haible in
52394         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00242.html>.
52395         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
52396         environment and strtold (and presumably strtof) are not available.
52397         * modules/ftoastr (Files): Add m4/c-strtod.m4.
52398         (configure.ac): Require gl_C99_STRTOLD.
52400 2010-11-18  Bruno Haible  <bruno@clisp.org>
52402         c-strtold: Avoid link error on AIX 7.
52403         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
52404         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
52405         (gl_C_STRTOLD): Test whether strtold_l exists.
52406         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
52408 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
52410         intprops: new macro INT_BITS_STRLEN_BOUND
52411         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
52412         ftoastr.h.  This exposes an internal of intprops.h that was formerly
52413         not exposed.  Also, it uses a slightly tighter bound than before;
52414         though this makes no practical difference, we might as well be as
52415         tight as we easily can.
52417         ftoastr: new module, for lossless conversion of floats to short strings
52418         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
52419         * modules/ftoastr: New files.
52421 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
52423         bootstrap: port to Solaris sed
52424         * build-aux/bootstrap (get_version): Port to Solaris sed.
52425         See Ralf Wildenhues's note in
52426         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00156.html>.
52428 2010-11-14  Jim Meyering  <meyering@redhat.com>
52430         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
52431         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
52432         and move definition closer to sole use.
52434 2010-11-13  Jim Meyering  <meyering@redhat.com>
52436         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
52437         Now we require at least autoconf-2.59, which means the work-around
52438         is no longer needed.
52439         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
52440         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
52441         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
52442         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
52443         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
52445 2010-11-13  Bruno Haible  <bruno@clisp.org>
52447         rename, renameat: Avoid test failures at NFS mounted locations.
52448         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
52449         functions.
52450         (test_rename): Use assert_nonexistent.
52451         * tests/test-rename.c: Include <dirent.h>.
52452         * tests/test-renameat.c: Likewise.
52453         Reported by Gary V. Vaughan <gary@gnu.org>.
52455         rename, renameat: Document Linux bug with NFS
52456         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00154.html>.
52457         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
52458         * doc/posix-functions/renameat.texi: Likewise.
52459         Suggested by Eric Blake.
52461 2010-11-13  Bruno Haible  <bruno@clisp.org>
52463         rename test: Add comments.
52464         * tests/test-rename.h (test_rename): Add structure and comments.
52466 2010-11-13  Eric Blake  <eblake@redhat.com>
52468         maintainer-makefile: cover a few more files
52469         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
52470         scripts generated within C files, for libvirt.
52472 2010-11-13  Bruno Haible  <bruno@clisp.org>
52474         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
52475         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
52476         character, return the number of bytes that belong together, not always
52477         1.
52478         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
52479         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
52480         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
52481         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
52482         number of bytes of an invalid character.
52483         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
52484         (main): Invoke it.
52485         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
52486         results.
52487         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
52488         malformed byte sequences.
52489         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
52490         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
52491         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
52492         Reported by Ben Pfaff and Paolo Bonzini.
52494 2010-11-13  Bruno Haible  <bruno@clisp.org>
52496         openat: Work around glibc bug with fchownat() and empty file names.
52497         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
52498         (gl_FUNC_FCHOWNAT): Invoke it.
52499         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
52500         * doc/posix-functions/fchownat.texi: Document the glibc bug.
52501         Reported by Gary V. Vaughan <gary@gnu.org>.
52503 2010-11-13  Bruno Haible  <bruno@clisp.org>
52505         openat: Ensure autoconf macro ordering.
52506         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
52507         gl_USE_SYSTEM_EXTENSIONS.
52508         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
52510 2010-11-13  Bruno Haible  <bruno@clisp.org>
52512         Update comments.
52513         * lib/unistr/u8-check.c: Update file name in comments.
52514         * lib/unistr/u8-mblen.c: Likewise.
52515         * lib/unistr/u8-prev.c: Likewise.
52516         * lib/unistr/u8-strmblen.c: Likewise.
52517         * lib/unistr/u8-strmbtouc.c: Likewise.
52519 2010-11-13  Jim Meyering  <meyering@redhat.com>
52521         tests: avoid test failure on Solaris 10 due to lack of PATH export
52522         * tests/test-update-copyright.sh: Don't forget to export PATH.
52524         init.sh: ensure that IFS is defined, just in case...
52525         * tests/init.sh (setup_): Ensure that IFS is defined,
52526         so that saving and restoring it works as expected.  This
52527         appears to be useful at least for an old version of dash
52528         from a long time ago (RH 6).  See here for details:
52529         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
52531         maint.mk: tighten "test a == b" check
52532         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
52533         test to files that contain something like #!/bin/sh.
52534         Without this, coreutils would get two false positives in
52535         the comments of C source files.
52537 2010-11-12  Eric Blake  <eblake@redhat.com>
52539         bootstrap: fix typo in previous attempt
52540         * build-aux/bootstrap (buildreq): Correct the grouping.
52541         Reported by Paul Eggert.
52543         maintainer-makefile: prohibit test x == x
52544         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
52545         Based on a report by Matthias Bolte.
52547         bootstrap: allow FreeBSD gzip
52548         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
52549         which has no '.' and goes to stderr.
52550         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
52551         Reported by Matthias Bolte.
52553         maintainer-makefile: check for i18n setup
52554         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
52555         will likely work.
52557 2010-11-12  Bruno Haible  <bruno@clisp.org>
52559         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
52560         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
52561         * lib/nanosleep.c (nanosleep): Likewise.
52563 2010-11-11  Bruno Haible  <bruno@clisp.org>
52565         fcntl-h: Fix for use of C++ on glibc systems.
52566         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
52567         also on glibc systems in C++ mode.
52568         Reported by Gary V. Vaughan <gary@gnu.org>.
52570 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
52572         mknod: avoid false failure with dash
52573         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
52575 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
52577         unlink: Fix "is it should" typo in diagnostic.
52578         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
52579         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00106.html>.
52581 2010-11-11  Bruno Haible  <bruno@clisp.org>
52583         Tests for module 'strerror_r-posix'.
52584         * modules/strerror_r-posix-tests: New file.
52585         * tests/test-strerror_r.c: New file.
52586         * tests/test-string-c++.cc: Check the signature of strerror_r.
52588         New module 'strerror_r-posix'.
52589         * lib/string.in.h (strerror_r): New declaration.
52590         * lib/strerror_r.c: New file.
52591         * m4/strerror_r.m4: New file.
52592         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
52593         of strerror_r.
52594         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
52595         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
52596         * modules/strerror_r-posix: New file.
52597         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
52598         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
52599         * doc/posix-functions/strerror_r.texi: Mention the new module and the
52600         portability problems.
52602 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
52604         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
52605         line is also considered for output. Quoted function name in shell
52606         command, so temporary files for functions like MyClass::operator()
52607         are removed correctly without errors.
52609 2010-11-09  Bruno Haible  <bruno@clisp.org>
52611         * doc/posix-functions/strerror.texi: List more failing platforms.
52613         * doc/posix-functions/strerror.texi: Add a comment.
52615 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
52617         fdopendir: fix bug on MacOS X when low on file descriptors
52619         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
52620         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
52621         All callers changed.
52622         (fdopendir): Invoke save_cwd at the top level, not after using
52623         multiple dup() calls to use up file descriptors.  Then retry
52624         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
52625         less than the maximum number of open file descriptors, because
52626         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
52627         on Mac OS X 10.6.4 for tar 1.24
52628         <http://lists.gnu.org/r/bug-tar/2010-10/msg00084.html>
52629         <http://lists.gnu.org/r/bug-tar/2010-11/msg00000.html>
52630         and for tar 1.25
52631         <http://lists.gnu.org/r/bug-tar/2010-11/msg00038.html>.
52633 2010-11-07  Bruno Haible  <bruno@clisp.org>
52635         vasnprintf: Support I flag on glibc systems.
52636         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
52637         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
52638         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
52639         snprintf function.
52640         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
52641         glibc systems.
52642         * tests/test-vasnprintf-posix3.c: New file.
52643         * modules/vasnprintf-posix-tests (Files): Add it.
52644         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
52646 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
52648         [html] Fix copy/paste bug: Use unique name for compiler warnings.
52649         * MODULES.html.sh: For compiler warnings, use name
52650         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
52652 2010-11-05  Eric Blake  <eblake@redhat.com>
52654         ceil, floor: avoid spurious failure with icc
52655         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
52656         [denormals-as-zero] when optimizing without -mieee-fp option.
52657         * tests/test-floorf2.c (floorf_reference): Likewise.
52658         * tests/test-ceilf1.c (dummy): New function.
52659         (main): Use it to outsmart icc's optimization.
52660         * tests/test-floorf1.c (dummy, main): Likewise.
52662         tests: require working signbit
52663         * modules/ceilf-tests (Depends-on): Add signbit.
52664         * modules/ceill-tests (Depends-on): Likewise.
52665         * modules/floorf-tests (Depends-on): Likewise.
52666         * modules/floorl-tests (Depends-on): Likewise.
52667         * modules/round-tests (Depends-on): Likewise.
52668         * modules/roundf-tests (Depends-on): Likewise.
52669         * modules/roundl-tests (Depends-on): Likewise.
52670         * modules/trunc-tests (Depends-on): Likewise.
52671         * modules/truncf-tests (Depends-on): Likewise.
52672         * modules/truncl-tests (Depends-on): Likewise.
52674         strtod: work around icc bug
52675         * lib/strtod.c (minus_zero): Define to working value.
52676         (strtod): Use it to avoid icc bug.
52678         copysign: enhance tests
52679         * modules/copysign-tests (Files): Add minus-zero.h.
52680         * tests/test-copysign.c (main): Also test zeros.
52682 2010-11-04  Eric Blake  <eblake@redhat.com>
52684         ceil, floor, round, trunc: enhance tests of -0
52685         * tests/test-ceilf1.c (main): Ensure correct sign of result.
52686         * tests/test-ceill.c (main): Likewise.
52687         * tests/test-floorf1.c (main): Likewise.
52688         * tests/test-floorl.c (main): Likewise.
52689         * tests/test-round1.c (main): Likewise.
52690         * tests/test-roundf1.c (main): Likewise.
52691         * tests/test-roundl.c (main): Likewise.
52692         * tests/test-trunc1.c (main): Likewise.
52693         * tests/test-truncf1.c (main): Likewise.
52694         * tests/test-truncl.c (main): Likewise.
52696 2010-11-04  Eric Blake  <eblake@redhat.com>
52698         frexp, tests: work around ICC bug with -zero
52699         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
52700         works with more compilers.
52701         * tests/minus-zero.h: New file.
52702         * modules/ceilf-tests (Files): Include it.
52703         * modules/ceill-tests (Files): Likewise.
52704         * modules/floorf-tests (Files): Likewise.
52705         * modules/floorl-tests (Files): Likewise.
52706         * modules/frexp-nolibm-tests (Files): Likewise.
52707         * modules/frexp-tests (Files): Likewise.
52708         * modules/frexpl-nolibm-tests (Files): Likewise.
52709         * modules/frexpl-tests (Files): Likewise.
52710         * modules/isnan-tests (Files): Likewise.
52711         * modules/isnand-nolibm-tests (Files): Likewise.
52712         * modules/isnand-tests (Files): Likewise.
52713         * modules/isnanf-nolibm-tests (Files): Likewise.
52714         * modules/isnanf-tests (Files): Likewise.
52715         * modules/isnanl-nolibm-tests (Files): Likewise.
52716         * modules/isnanl-tests (Files): Likewise.
52717         * modules/round-tests (Files): Likewise.
52718         * modules/roundf-tests (Files): Likewise.
52719         * modules/roundl-tests (Files): Likewise.
52720         * modules/ldexpl-tests (Files): Likewise.
52721         * modules/signbit-tests (Files): Likewise.
52722         * modules/snprintf-posix-tests (Files): Likewise.
52723         * modules/sprintf-posix-tests (Files): Likewise.
52724         * modules/strtod-tests (Files): Likewise.
52725         * modules/trunc-tests (Files): Likewise.
52726         * modules/truncf-tests (Files): Likewise.
52727         * modules/truncl-tests (Files): Likewise.
52728         * modules/vsnprintf-posix-tests (Files): Likewise.
52729         * modules/vsprintf-posix-tests (Files): Likewise.
52730         * modules/vasnprintf-posix-tests (Files): Likewise.
52731         * modules/vasprintf-posix-tests (Files): Likewise.
52732         * tests/test-ceilf1.c (main): Use it.
52733         * tests/test-ceill.c (main): Likewise.
52734         * tests/test-floorf1.c (main): Likewise.
52735         * tests/test-floorl.c (main): Likewise.
52736         * tests/test-frexp.c (main): Likewise.
52737         * tests/test-frexpl.c (main): Likewise.
52738         * tests/test-isnan.c (main): Likewise.
52739         * tests/test-isnand.h (main): Likewise.
52740         * tests/test-isnanf.h (main): Likewise.
52741         * tests/test-isnanl.h (main): Likewise.
52742         * tests/test-ldexpl.c (main): Likewise.
52743         * tests/test-round.c (main): Likewise.
52744         * tests/test-roundf.c (main): Likewise.
52745         * tests/test-roundl.c (main): Likewise.
52746         * tests/test-signbit.c (test_signbitf, test_signbitd)
52747         (test_signbitl): Likewise.
52748         * tests/test-snprintf-posix.h (test_function): Likewise.
52749         * tests/test-sprintf-posix.h (test_function): Likewise.
52750         * tests/test-strtod.c (main): Likewise.
52751         * tests/test-trunc1.c (main): Likewise.
52752         * tests/test-truncf1.c (main): Likewise.
52753         * tests/test-truncl.c (main): Likewise.
52755         isnanl: work around icc bug
52756         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
52758 2010-11-03  Eric Blake  <eblake@redhat.com>
52760         tests: fix compiler warnings
52761         * tests/test-getopt.h (test_getopt): Fix condition.
52762         * tests/test-getopt_long.h (test_getopt_long): Likewise.
52763         * tests/test-pipe2.c (main): Likewise.
52764         * tests/test-quotearg-simple.c (main): Avoid icc warning.
52766         utimens: fix broken m4 test
52767         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
52769 2010-10-28  Bruno Haible  <bruno@clisp.org>
52771         posix_spawn*, getdtablesize: Relax license.
52772         * modules/posix_spawn (License): Change to LGPLv2+.
52773         * modules/posix_spawnp (License): Likewise.
52774         * modules/posix_spawn-internal (License): Likewise.
52775         * modules/posix_spawnattr_init (License): Likewise.
52776         * modules/posix_spawnattr_getflags (License): Likewise.
52777         * modules/posix_spawnattr_setflags (License): Likewise.
52778         * modules/posix_spawnattr_getpgroup (License): Likewise.
52779         * modules/posix_spawnattr_setpgroup (License): Likewise.
52780         * modules/posix_spawnattr_getschedparam (License): Likewise.
52781         * modules/posix_spawnattr_setschedparam (License): Likewise.
52782         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
52783         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
52784         * modules/posix_spawnattr_getsigdefault (License): Likewise.
52785         * modules/posix_spawnattr_setsigdefault (License): Likewise.
52786         * modules/posix_spawnattr_getsigmask (License): Likewise.
52787         * modules/posix_spawnattr_setsigmask (License): Likewise.
52788         * modules/posix_spawnattr_destroy (License): Likewise.
52789         * modules/posix_spawn_file_actions_init (License): Likewise.
52790         * modules/posix_spawn_file_actions_addclose (License): Likewise.
52791         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
52792         * modules/posix_spawn_file_actions_addopen (License): Likewise.
52793         * modules/posix_spawn_file_actions_destroy (License): Likewise.
52794         * modules/getdtablesize (License): Likewise.
52795         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
52797 2010-10-26  Bruno Haible  <bruno@clisp.org>
52799         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
52800         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
52801         Cygwin and mingw.
52802         Suggested by Eric Blake.
52804 2010-10-26  Bruno Haible  <bruno@clisp.org>
52806         stdio: Work around compilation error due to renameat() on Solaris 10.
52807         * lib/stdio.in.h: Include <unistd.h> on Solaris.
52808         * lib/renameat.c: Don't include <unistd.h> here.
52809         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
52810         Reported by Paul Eggert and Eric Blake.
52812 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
52814         renameat: port to Solaris 10, which declares renameat in unistd.h
52816         * lib/renameat.c: Include unistd.h before stdio.h, because
52817         Solaris 10 declares renameat in unistd.h.  Problem encountered
52818         when building GNU tar 1.24 on Solaris 10.
52820 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
52822         fdopendir: fix C89 compilation
52823         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
52824         compilers.
52826 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
52828         inttostr: simplify by removing unnecessary redundancy
52829         * lib/anytostr.c: Don't include verify.h.
52830         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
52831         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
52832         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
52833         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
52834         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
52835         Likewise.
52836         * modules/inttostr (Depends-on): Remove 'verify'.
52838 2010-10-23  Bruno Haible  <bruno@clisp.org>
52840         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
52841         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
52842         Reported by Eric Blake.
52844 2010-10-23  Bruno Haible  <bruno@clisp.org>
52846         Tests: Fix LOCALE_JA on MirBSD 10.
52847         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
52848         to an UTF-8 locale.
52849         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
52850         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
52851         Reported by Eric Blake.
52853 2010-10-21  Bruno Haible  <bruno@clisp.org>
52855         nl_langinfo test: Avoid test failure on NetBSD 5.
52856         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
52857         Reported by Eric Blake.
52859 2010-10-21  Eric Blake  <eblake@redhat.com>
52861         c-stack: work around libsigsegv 2.8 bug
52862         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
52863         overflow on at least PowerPC64.
52865 2010-10-17  Bruno Haible  <bruno@clisp.org>
52867         userspec: Drop redundant file.
52868         * modules/userspec (Files): Remove lib/inttostr.h.
52870 2010-10-17  Bruno Haible  <bruno@clisp.org>
52872         nl_langinfo tests: Silence some warnings.
52873         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
52874         Reported by Jim Meyering.
52876 2010-10-17  Bruno Haible  <bruno@clisp.org>
52878         Make use of GCC's attribute __alloc_size__.
52879         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
52880         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
52881         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
52882         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
52883         __alloc_size__.
52884         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
52885         Suggested by Jim Meyering.
52887 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
52889         bootstrap: anchor .gitignore entries.
52890         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
52891         with...
52892         (insert_vc_ignore): ... this new function, which prepends `/' to
52893         all .gitignore entries before passing them to
52894         insert_sorted_if_absent.
52896 2010-10-16  Bruno Haible  <bruno@clisp.org>
52898         nextafter: Fix configure check.
52899         * modules/nextafter (configure.ac): Correct expected prototype.
52901 2010-10-16  Bruno Haible  <bruno@clisp.org>
52903         termios: Update documentation.
52904         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
52906 2010-10-16  Bruno Haible  <bruno@clisp.org>
52908         tests: Make them compile with TinyCC.
52909         * tests/test-strstr.c (main): Remove parentheses around array
52910         initializer.
52912 2010-10-15  Eric Blake  <eblake@redhat.com>
52914         ignore-value: make header idempotent
52915         * lib/ignore-value.h: Add double-inclusion guards.
52916         Reported by Stefan Berger.
52918 2010-10-15  Jim Meyering  <meyering@redhat.com>
52920         GNUmakefile: handle "stable" target, not "major"
52921         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
52922         lists in maint.mk and announce-gen.  Without this, "make stable"
52923         would fail to ensure that $(VERSION) is up to date.
52925 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
52927         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
52928         & co.
52930 2010-10-14  Bruno Haible  <bruno@clisp.org>
52932         vasnprintf: Don't set errno to 0.
52933         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
52934         block that sets it to 0.
52935         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
52937 2010-10-14  Bruno Haible  <bruno@clisp.org>
52939         socketlib: Fix.
52940         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
52941         gl_PREREQ_SYS_H_WINSOCK2.
52942         Reported by Ian Beckwith <ianb@erislabs.net>.
52944 2010-10-13  Jim Meyering  <meyering@redhat.com>
52946         test-select-stdin.c: avoid warn_unused_result warnings
52947         * tests/test-select-stdin.c: Include "macros.h".
52948         ASSERT that read and fflush succeed.
52950 2010-10-13  Jim Meyering  <meyering@redhat.com>
52952         git-version-gen: do require git-VC'd files in cwd
52953         * build-aux/git-version-gen: Reject a git version string
52954         if there are no commits associated with the current directory.
52955         This avoids an unlikely false-positive (unrelated dir whose parent
52956         repository also contains a tag matching v*), as pointed out
52957         by Giuseppe Scrivano in
52958         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
52960 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
52962         argv-iter: omit nonconforming declaration
52963         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
52964         enum arg_iter_err declaration, which doesn't conform to C99.
52965         Solaris 10 cc warns about this.
52967 2010-10-13  Eric Blake  <eblake@redhat.com>
52969         termios: fix compilation on mingw
52970         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
52971         (gl_TERMIOS_H): Adjust it on mingw.
52972         * modules/termios (Makefile.am): Substitute new key.
52973         * lib/termios.in.h (includes): Make include_next conditional.
52974         * doc/posix-headers/termios.texi (termios.h): Update
52975         documentation.
52976         Reported by Daniel P. Berrange.
52978 2010-10-13  Jim Meyering  <meyering@redhat.com>
52980         git-version-gen: don't require that .git/ be in the current dir
52981         * build-aux/git-version-gen: Adjust this script so that it works
52982         when run from any working directory beneath the top-level .git/-
52983         containing directory.  Inspired by a patch from Giuseppe Scrivano,
52984         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
52986         test-select: avoid warn_unused_result warnings
52987         * tests/test-select.c: Include "macros.h".
52988         ASSERT that each call to read, write, and pipe succeeds.
52989         While not technically required, also check each "close".
52990         * modules/select-tests (Files): Add tests/macros.h.
52992         test-symlinkat: remove declaration of unused local
52993         * tests/test-symlinkat.c (main): Remove unused local, "buf".
52995         test-inttostr: avoid shadowing warnings
52996         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
52997         and use malloc rather than the stack for the same reason as
52998         mentioned in the comment justifying the other allocation.
53000 2010-10-11  Bruno Haible  <bruno@clisp.org>
53002         stdlib: Allow multiple gnulib generated replacements to coexist.
53003         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
53004         Reported by Sam Steingold <sds@gnu.org>.
53006 2010-10-11  Jim Meyering  <meyering@redhat.com>
53008         fix a documentation typo
53009         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
53011 2010-10-11  Eric Blake  <eblake@redhat.com>
53013         futimens: work around Solaris 11 bug
53014         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
53015         * tests/test-futimens.h (test_futimens): Enhance, rather than
53016         weaken test.
53017         * doc/posix-functions/futimens.texi (futimens): Document the bug.
53019 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
53021         Indentation.
53022         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
53023         higher-level operators more to the left.
53025 2010-10-11  Jim Meyering  <meyering@redhat.com>
53027         test-futimens: avoid unwarranted test failure on Solaris 5.11
53028         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
53029         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
53030         because it tries to dereference the NULL name argument.
53032 2010-10-11  Bruno Haible  <bruno@clisp.org>
53034         Indentation.
53035         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
53036         indentation.
53038 2010-10-11  Jim Meyering  <meyering@redhat.com>
53040         spawn.in.h: make indentation consistent with parentheses
53041         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
53042         Make indentation consistent with parentheses.
53044 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
53046         Fix mismatched parens in previous commit
53047         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
53048         parens.
53050 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
53052         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
53054         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
53055         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
53056         * lib/malloca.c: Include "verify.h".
53057         (verify1): Remove, replacing with a verify call.
53058         * lib/relocwrapper.c (verify1): Likewise.
53059         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
53060         Likewise.
53061         * modules/malloca (Depends-on): Add 'verify'.
53062         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
53063         * modules/vasnprintf (Depends-on): Add 'verify'.
53064         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
53065         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
53066         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
53067         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
53068         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
53069         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
53070         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
53072         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
53074         Formerly the style was sometimes 2*X - 1, because the C standard
53075         was wrongly thought to disallow ?: in integral constant expressions.
53076         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
53077         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
53078         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
53079         * lib/stdint.in.h (_verify_intmax_size): Likewise.
53080         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
53081         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
53082         verify that time_t cannot be floating.
53084 2010-10-08  Eric Blake  <eblake@redhat.com>
53086         time: enforce recent POSIX ruling that time_t is integral
53087         * lib/time.in.h (__time_t_must_be_integral): Detect any
53088         problematic systems, allowing the rest of gnulib to assume POSIX.
53090 2010-10-08  Jim Meyering  <meyering@redhat.com>
53092         fdopendir: fix a bug on systems lacking openat and /proc support
53093         OpenBSD 4.7 is one such system.  The most noticeable effect was
53094         failure of any application making nontrivial use of fts: rm, du,
53095         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
53096           ./rm: traversal failed: `a': Bad file descriptor
53097         Debugging that, you see that even though FD 6 was closed just
53098         prior to the opendir call in fd_clone_opendir, its resulting
53099         dir->dd_fd was 8, rather than the expected value of 6:
53101         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
53102         93                close (fd);
53103         (gdb) n
53104         94                dir = fd_clone_opendir (dupfd);
53105         (gdb) n
53106         95                saved_errno = errno;
53107         (gdb) p dir->dd_fd
53108         $11 = 8
53110         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
53111         The problem is that on OpenBSD, fd_clone_opendir has to resort
53112         to using the old-style save/restore CWD mechanism, due to its
53113         lack of openat/proc support, and *that* would steal the FD (6)
53114         that opendir was supposed to use.
53116         The fix is to squirrel away the desired FD so that save_cwd uses a
53117         different one, and then free the dest FD right before calling opendir.
53118         That guarantees opendir will use the required file descriptor.
53120         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
53122 2010-10-08  Bruno Haible  <bruno@clisp.org>
53124         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
53125         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
53127 2010-10-08  Bruno Haible  <bruno@clisp.org>
53129         nanosleep: Make replacement POSIX compliant.
53130         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
53131         is out of range.
53132         Reported by Jim Meyering.
53134 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
53136         bootstrap: add hook for altering gnulib.mk, for Bison
53137         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
53138         the Bison bootstrapping process can rewrite file names and variables
53139         in this file before later parts of 'bootstrap' use the file.
53140         Bison wants to include lib/gnulib.mk from the top-level makefile,
53141         so it needs the file names in this file to be relative to the top
53142         level, not relative to lib; plus it needs variable names to be
53143         rewritten.
53144         (slurp): Use the new function.
53146         bootstrap: reformat for readability
53147         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
53149 2010-10-08  Eric Blake  <eblake@redhat.com>
53151         docs: update cygwin progress
53152         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
53153         1.7.7.
53154         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
53155         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
53156         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
53157         * doc/posix-functions/carg.texi (carg): Likewise.
53158         * doc/posix-functions/cargf.texi (cargf): Likewise.
53159         * doc/posix-functions/casin.texi (casin): Likewise.
53160         * doc/posix-functions/casinf.texi (casinf): Likewise.
53161         * doc/posix-functions/casinh.texi (casinh): Likewise.
53162         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
53163         * doc/posix-functions/catan.texi (catan): Likewise.
53164         * doc/posix-functions/catanf.texi (catanf): Likewise.
53165         * doc/posix-functions/catanh.texi (catanh): Likewise.
53166         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
53167         * doc/posix-functions/ccos.texi (ccos): Likewise.
53168         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
53169         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
53170         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
53171         * doc/posix-functions/cexp.texi (cexp): Likewise.
53172         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
53173         * doc/posix-functions/cimag.texi (cimag): Likewise.
53174         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
53175         * doc/posix-functions/clog.texi (clog): Likewise.
53176         * doc/posix-functions/clogf.texi (clogf): Likewise.
53177         * doc/posix-functions/conj.texi (conj): Likewise.
53178         * doc/posix-functions/conjf.texi (conjf): Likewise.
53179         * doc/posix-functions/cpow.texi (cpow): Likewise.
53180         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
53181         * doc/posix-functions/cproj.texi (cproj): Likewise.
53182         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
53183         * doc/posix-functions/creal.texi (creal): Likewise.
53184         * doc/posix-functions/crealf.texi (crealf): Likewise.
53185         * doc/posix-functions/csin.texi (csin): Likewise.
53186         * doc/posix-functions/csinf.texi (csinf): Likewise.
53187         * doc/posix-functions/csinh.texi (csinh): Likewise.
53188         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
53189         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
53190         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
53191         * doc/posix-functions/ctan.texi (ctan): Likewise.
53192         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
53193         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
53194         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
53195         * doc/posix-headers/complex.texi (complex.h): Likewise.
53197 2010-10-07  Jim Meyering  <meyering@redhat.com>
53199         parse-datetime: avoid compilation failure on OpenBSD 4.7
53200         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
53201         This works around a compilation failure on OpenBSD 4.7:
53202         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
53204 2010-10-07  Eric Blake  <eblake@redhat.com>
53206         docs: update cygwin progress
53207         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
53208         1.7.6.
53209         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
53210         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
53211         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
53212         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
53213         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
53214         Likewise.
53215         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
53216         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
53217         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
53218         Likewise.
53219         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
53220         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
53221         Likewise.
53222         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
53223         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
53224         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
53225         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
53226         Likewise.
53227         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
53228         Likewise.
53229         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
53231         docs: update parse-datetime history
53232         * doc/parse-datetime.texi (Authors of parse_datetime): Better
53233         documentation of this function's history and alternatives.
53235         cygwin: use more robust version check
53236         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
53237         exclude an eventual cygwin 1.9.1.
53238         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
53239         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
53240         (gl_FUNC_STRCASESTR): Likewise.
53241         Reported by Bruno Haible.
53243 2010-10-06  Bruno Haible  <bruno@clisp.org>
53245         string, sys_select: Avoid #including large headers unless necessary.
53246         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
53247         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
53248         OSF/1, BeOS, Haiku.
53249         Reported by Jim Meyering.
53251 2010-10-05  Eric Blake  <eblake@redhat.com>
53253         memmem, strstr, strcasestr: fix bug with long periodic needle
53254         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
53255         periodic needle having false positive.
53256         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
53257         and cygwin 1.7.7.
53258         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
53259         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
53260         (gl_FUNC_STRCASESTR): Likewise.
53261         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
53262         * tests/test-memmem.c (main): Expose the bug.
53263         * tests/test-strcasestr.c (main): Likewise.
53264         * tests/test-strstr.c (main): Likewise.
53265         * tests/test-c-strcasestr.c (main): Likewise.
53266         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
53267         * doc/posix-functions/strstr.texi (strstr): Likewise.
53268         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
53269         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
53271 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
53273         parse-datetime: do some more renaming
53274         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
53275         parse_datetime, not get_date.  Mention the renaming.
53276         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
53277         in comments.
53278         * m4/bison.m4: Likewise.
53280 2010-10-05  Eric Blake  <eblake@redhat.com>
53282         parse-datetime: better name than get_date
53283         * NEWS: Reword the deprecation notice.
53284         * modules/get_date: Rename to modules/parse-datetime.
53285         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
53286         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
53287         * lib/get_date.y: Rename to lib/parse-datetime.y.
53288         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
53289         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
53290         * doc/getdate.texi: Provide fallback wrapper.
53291         * lib/getdate.h: Move guts, and wrap...
53292         * lib/parse-datetime.h: ...new file.
53293         * lib/parse-datetime.y (get_date): Rename...
53294         (parse_datetime): ...to this.
53295         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
53296         (gl_PARSE_DATETIME): ...to this.
53297         * doc/posix-functions/getdate.texi (get_date): Provide fallback
53298         documentation.
53299         * modules/getdate (Files): Provide fallback docs and header.
53300         (Notice, Depends-on): Update references.
53301         * tests/test-parse-datetime.c: Likewise.
53302         * DEPENDENCIES: Likewise.
53303         * MODULES.html.sh (Date and time <time.h>): Likewise.
53304         * doc/parse-datetime.texi (Date input formats)
53305         (Authors of parse_datetime): Likewise.
53306         * modules/parse-datetime (Files, configure.ac, Makefile.am)
53307         (Include): Likewise.
53308         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
53309         * gnulib-tool: Likewise.
53310         * m4/bison.m4 (gl_BISON): Likewise.
53311         Suggested by Bruno Haible.
53313 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
53315         more ports to Solaris tr, which needs [] around ranges
53316         * gnulib-tool: Solaris tr needs [] around ranges.
53317         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
53318         * tests/test-pipe-filter-gi1.c (main): Likewise.
53319         * tests/test-pipe-filter-ii1.c (main): Likewise.
53321 2010-10-05  Eric Blake  <eblake@redhat.com>
53323         bootstrap: fix Solaris regression
53324         * build-aux/bootstrap (check_versions): Solaris tr still needs []
53325         around ranges.
53326         Reported by Pádraig Brady.
53328         bootstrap: work with pkg-config
53329         * build-aux/bootstrap (check_versions): Also transliterate - in
53330         prerequisite name.
53331         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
53332         prerequisites that were already found, to avoid confusion.
53333         Reported by Justin Clift.
53335         faccessat: remove unused wrappers
53336         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
53337         presence of these wrappers dragged in -lgen on Solaris.
53338         Reported by Clemens Brogi; fix suggested by Paul Eggert.
53340 2010-10-05  Jim Meyering  <meyering@redhat.com>
53342         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
53343         * Makefile (sc_pragma_columns): New syntax-check rule.
53345 2010-10-04  Bruno Haible  <bruno@clisp.org>
53347         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
53348         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
53349         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
53350         Reported by Bruce Korb and Eric Blake.
53352 2010-10-04  Bruno Haible  <bruno@clisp.org>
53354         threadlib: Make option --with-libpth-prefix work.
53355         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
53356         use $LIBPTH, not just -lpth.
53358 2010-10-04  Bruno Haible  <bruno@clisp.org>
53360         Avoid line length limitation from HP NonStop system header files.
53361         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
53362         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
53363         * lib/ctype.in.h: Likewise.
53364         * lib/dirent.in.h: Likewise.
53365         * lib/errno.in.h: Likewise.
53366         * lib/fcntl.in.h: Likewise.
53367         * lib/float.in.h: Likewise.
53368         * lib/getopt.in.h: Likewise.
53369         * lib/iconv.in.h: Likewise.
53370         * lib/inttypes.in.h: Likewise.
53371         * lib/langinfo.in.h: Likewise.
53372         * lib/locale.in.h: Likewise.
53373         * lib/math.in.h: Likewise.
53374         * lib/netdb.in.h: Likewise.
53375         * lib/netinet_in.in.h: Likewise.
53376         * lib/poll.in.h: Likewise.
53377         * lib/pthread.in.h: Likewise.
53378         * lib/pty.in.h: Likewise.
53379         * lib/sched.in.h: Likewise.
53380         * lib/se-selinux.in.h: Likewise.
53381         * lib/search.in.h: Likewise.
53382         * lib/signal.in.h: Likewise.
53383         * lib/spawn.in.h: Likewise.
53384         * lib/stdarg.in.h: Likewise.
53385         * lib/stddef.in.h: Likewise.
53386         * lib/stdint.in.h: Likewise.
53387         * lib/stdio.in.h: Likewise.
53388         * lib/stdlib.in.h: Likewise.
53389         * lib/string.in.h: Likewise.
53390         * lib/strings.in.h: Likewise.
53391         * lib/sys_file.in.h: Likewise.
53392         * lib/sys_ioctl.in.h: Likewise.
53393         * lib/sys_select.in.h: Likewise.
53394         * lib/sys_socket.in.h: Likewise.
53395         * lib/sys_stat.in.h: Likewise.
53396         * lib/sys_time.in.h: Likewise.
53397         * lib/sys_times.in.h: Likewise.
53398         * lib/sys_utsname.in.h: Likewise.
53399         * lib/sys_wait.in.h: Likewise.
53400         * lib/sysexits.in.h: Likewise.
53401         * lib/termios.in.h: Likewise.
53402         * lib/time.in.h: Likewise.
53403         * lib/unistd.in.h: Likewise.
53404         * lib/wchar.in.h: Likewise.
53405         * lib/wctype.in.h: Likewise.
53406         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
53407         * modules/ctype (Makefile.am): Likewise.
53408         * modules/dirent (Makefile.am): Likewise.
53409         * modules/errno (Makefile.am): Likewise.
53410         * modules/fcntl-h (Makefile.am): Likewise.
53411         * modules/float (Makefile.am): Likewise.
53412         * modules/getopt-posix (Makefile.am): Likewise.
53413         * modules/iconv-h (Makefile.am): Likewise.
53414         * modules/inttypes (Makefile.am): Likewise.
53415         * modules/langinfo (Makefile.am): Likewise.
53416         * modules/locale (Makefile.am): Likewise.
53417         * modules/math (Makefile.am): Likewise.
53418         * modules/netdb (Makefile.am): Likewise.
53419         * modules/netinet_in (Makefile.am): Likewise.
53420         * modules/poll-h (Makefile.am): Likewise.
53421         * modules/pthread (Makefile.am): Likewise.
53422         * modules/pty (Makefile.am): Likewise.
53423         * modules/sched (Makefile.am): Likewise.
53424         * modules/search (Makefile.am): Likewise.
53425         * modules/selinux-h (Makefile.am): Likewise.
53426         * modules/signal (Makefile.am): Likewise.
53427         * modules/spawn (Makefile.am): Likewise.
53428         * modules/stdarg (Makefile.am): Likewise.
53429         * modules/stddef (Makefile.am): Likewise.
53430         * modules/stdint (Makefile.am): Likewise.
53431         * modules/stdio (Makefile.am): Likewise.
53432         * modules/stdlib (Makefile.am): Likewise.
53433         * modules/string (Makefile.am): Likewise.
53434         * modules/strings (Makefile.am): Likewise.
53435         * modules/sys_file (Makefile.am): Likewise.
53436         * modules/sys_ioctl (Makefile.am): Likewise.
53437         * modules/sys_select (Makefile.am): Likewise.
53438         * modules/sys_socket (Makefile.am): Likewise.
53439         * modules/sys_stat (Makefile.am): Likewise.
53440         * modules/sys_time (Makefile.am): Likewise.
53441         * modules/sys_times (Makefile.am): Likewise.
53442         * modules/sys_utsname (Makefile.am): Likewise.
53443         * modules/sys_wait (Makefile.am): Likewise.
53444         * modules/sysexits (Makefile.am): Likewise.
53445         * modules/termios (Makefile.am): Likewise.
53446         * modules/time (Makefile.am): Likewise.
53447         * modules/unistd (Makefile.am): Likewise.
53448         * modules/wchar (Makefile.am): Likewise.
53449         * modules/wctype (Makefile.am): Likewise.
53451 2010-10-04  Bruno Haible  <bruno@clisp.org>
53453         read-file tests: Avoid a test failure on NonStop Kernel.
53454         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
53455         a regular file.
53456         Reported by Joachim Schmitz <schmitz@hp.com>.
53458 2010-10-03  Bruno Haible  <bruno@clisp.org>
53460         gnulib-tool: Fixes for --create-testdir with --libtool.
53461         * gnulib-tool (func_get_automake_snippet): Don't augment
53462         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
53463         an executable.
53464         (func_create_testdir): Handle module 'alloca' like func_import.
53465         Reported by Bruce Korb <bruce.korb@gmail.com>.
53467 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
53469         Avoid some lines longer than 80 characters.
53470         * lib/stdint.in.h: Break long comment lines.
53471         * lib/math.in.h: Likewise.
53472         (_GL_NUM_UINT_WORDS): New macro, for readability.
53473         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
53474         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
53475         * lib/stdlib.in.h: Likewise.
53476         * lib/spawn.in.h: Likewise.
53477         * lib/sys_socket.in.h: Update an URL.
53478         * lib/sys_stat.in.h: Break long line.
53480 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
53482         Improve pmccabe2html.
53483         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
53484         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
53485         when the sources change. Remove the line in the HTML about "Used
53486         ranges" (which implied that there might be other unused ranges),
53487         rename "Resume" to "Summary" (easier to understand for more users).
53488         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
53489         styles, and some unnecessary blank lines.
53491 2010-10-03  Bruno Haible  <bruno@clisp.org>
53492             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
53494         acl: Add support for ACLs on NonStop Kernel.
53495         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
53496         Check whether the function aclsort() exists.
53497         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
53498         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
53499         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
53500         (acl_nontrivial [HAVE_ACLSORT]: New function.
53501         (file_has_acl): Implement for NonStop Kernel.
53502         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
53503         (qset_acl): Implement for NonStop Kernel.
53504         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
53505         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
53506         (main): Implement for NonStop Kernel.
53507         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
53508         Kernel. Handle this flavor.
53509         * tests/test-set-mode-acl.sh: Likewise.
53510         * tests/test-copy-acl.sh: Likewise.
53511         * tests/test-copy-file.sh: Likewise.
53513 2010-10-03  Bruno Haible  <bruno@clisp.org>
53515         Info about ACLs on NonStop Kernel.
53516         * doc/acl-resources.txt: Add info about NonStop Kernel.
53517         References by Joachim Schmitz <schmitz@hp.com>.
53519 2010-10-02  Bruno Haible  <bruno@clisp.org>
53521         Define missing EDQUOT on NonStop Kernel.
53522         * lib/errno.in.h (EDQUOT): Assign a value if missing.
53523         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
53524         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
53525         missing.
53526         * doc/posix-headers/errno.texi: Mention the NSK bug.
53527         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
53528         Reported by Joachim Schmitz <schmitz@hp.com>.
53530 2010-10-02  Bruno Haible  <bruno@clisp.org>
53532         Update doc for POSIX:2008.
53533         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
53534         Update URL of POSIX specification.
53536 2010-10-02  Bruno Haible  <bruno@clisp.org>
53538         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
53539         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
53540         from gnulib, not from Automake.
53542 2010-10-02  Bruno Haible  <bruno@clisp.org>
53544         New module 'system-posix'.
53545         * modules/system-posix: New file.
53546         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
53547         module is present.
53548         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
53549         GNULIB_SYSTEM_POSIX.
53550         * modules/stdlib (Depends-on): Remove sys_wait.
53551         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
53552         * doc/posix-functions/system.texi: Mention the new module.
53553         * doc/posix-headers/stdlib.texi: Likewise.
53554         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
53555         define test_sys_wait_macros to a no-op.
53556         Reported by Sam Steingold <sds@gnu.org>.
53558 2010-09-30  Bruno Haible  <bruno@clisp.org>
53560         More renaming from 'getdate' to 'get_date'.
53561         * doc/get_date.texi: Renamed from doc/getdate.texi.
53562         * modules/get_date (Files): Update.
53563         * MODULES.html.sh (Date and time <time.h>): Update.
53564         * DEPENDENCIES: Update.
53565         * gnulib-tool: Update comment.
53566         * m4/bison.m4 (gl_BISON): Likewise.
53567         * m4/get_date.m4 (gl_GET_DATE): Likewise.
53569 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
53571         bootstrap: support ACLOCAL_FLAGS during aclocal
53572         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
53573         can add additional -I dir for third-party .m4 files.
53575 2010-09-30  Eric Blake  <eblake@redhat.com>
53577         bootstrap: use glibtoolize on MacOS
53578         * build-aux/bootstrap (check_versions): Convert libtool into
53579         libtoolize.
53580         (tool search): Move libtool check earlier, and look for
53581         glibtoolize for MacOS.
53582         (gnulib_tool_options): Auto-add --libtool when appropriate.
53583         Reported by Justin Clift.
53585         poll: fix typo that broke test on MacOS
53586         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
53587         Reported by Justin Clift.
53589         getdate: rename to get_date
53590         Note: getdate.h is not renamed, to minimize client impact.
53591         * modules/getdate: Mark obsolete.  Move old contents...
53592         * modules/get_date: ...to new module name.
53593         * modules/getdate-tests: Move...
53594         * modules/get_date-tests: ...here.
53595         * m4/getdate.m4: Move...
53596         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
53597         * lib/getdate.y: Move...
53598         * lib/get_date.y: ...here.
53599         * tests/test-getdate.c: Move...
53600         * tests/test-get_date.c: ...here.
53601         * doc/posix-functions/getdate.texi (getdate): Update name.
53602         * NEWS: Mention the change.
53604 2010-09-29  Bruno Haible  <bruno@clisp.org>
53606         Separate the module 'waitpid' from the module 'sys_wait'.
53607         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
53608         present.
53609         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
53610         gl_MODULE_INDICATOR_FOR_TESTS.
53611         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
53612         * modules/sys_wait (Depends-on): Remove waitpid.
53613         (Makefile.am): Substitute GNULIB_WAITPID.
53614         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
53615         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
53616         signature only if the 'waitpid' module is present.
53617         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
53618         * NEWS: Mention the change.
53619         * modules/grantpt (Depends-on): Add waitpid.
53620         * modules/wait-process (Depends-on): Likewise.
53622 2010-09-29  Bruno Haible  <bruno@clisp.org>
53624         More tests for module 'sys_wait'.
53625         * modules/sys_wait-c++-tests: New file.
53626         * tests/test-sys_wait-c++.cc: New file.
53627         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
53628         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
53630 2010-09-29  Bruno Haible  <bruno@clisp.org>
53632         New module 'waitpid'.
53633         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
53634         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
53635         Don't include <process.h>.
53636         (waitpid): Declare only, using modern idiom.
53637         * m4/waitpid.m4: New file.
53638         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
53639         * modules/waitpid: New file.
53640         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
53641         (Makefile.am): Update.
53642         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
53644 2010-09-28  Bruno Haible  <bruno@clisp.org>
53646         poll: Assume ANSI C.
53647         * lib/poll.c (poll): Use an ANSI C declaration.
53649 2010-09-28  Bruno Haible  <bruno@clisp.org>
53651         poll-h: Create poll.h on all platforms.
53652         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
53653         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
53654         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
53655         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
53656         (gl_REPLACE_POLL_H): Don't set POLL_H.
53657         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
53658         * modules/poll-h (Depends-on): Add include_next.
53659         (Makefile.am): Create poll.h unconditionally. Substitute also
53660         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
53662 2010-09-28  Bruno Haible  <bruno@clisp.org>
53664         Tests for module 'poll-h'.
53665         * modules/poll-h-c++-tests: New file.
53666         * tests/test-poll-h-c++.cc: New file.
53668         Tests for module 'poll-h'.
53669         * modules/poll-h-tests: New file.
53670         * tests/test-poll-h.c: New file.
53672 2010-09-28  Bruno Haible  <bruno@clisp.org>
53674         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
53675         * modules/poll-h (Depends-on): Add 'extensions'.
53677 2010-09-28  Bruno Haible  <bruno@clisp.org>
53679         New module 'poll-h'.
53680         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
53681         (poll): Use modern idiom.
53682         * modules/poll-h: New file.
53683         * modules/poll (Files): Remove lib/poll.in.h.
53684         (Depends-on): Add poll-h.
53685         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
53686         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
53687         * m4/poll_h.m4: New file.
53688         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
53689         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
53690         and invoke gl_REPLACE_POLL_H.
53691         * lib/poll.c: Use common idiom.
53692         * tests/test-poll.c: Likewise.
53693         * doc/posix-headers/poll.texi: Mention the poll-h module.
53694         Suggested by Eric Blake.
53696 2010-09-26  Bruno Haible  <bruno@clisp.org>
53698         sys_wait: Implement WSTOPSIG.
53699         * lib/sys_wait.in.h (WSTOPSIG): New macro.
53700         Reported by Simon Josefsson.
53702 2010-09-26  Simon Josefsson  <simon@josefsson.org>
53704         stdlib, sys_wait: Avoid compilation error on mingw.
53705         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
53707 2010-09-26  Bruno Haible  <bruno@clisp.org>
53709         stdlib tests: Avoid code duplication.
53710         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
53711         * modules/sys_wait-tests (Files): Likewise.
53712         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
53713         * tests/test-stdlib.c: Include test-sys_wait.h.
53714         (main): Invoke test_sys_wait_macros.
53715         * tests/test-sys_wait.c: Include test-sys_wait.h.
53716         (main): Invoke test_sys_wait_macros.
53718 2010-09-25  Simon Josefsson  <simon@josefsson.org>
53720         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
53721         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
53722         sure Windows sockets are working before calling getaddrinfo.
53723         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
53724         * doc/gnulib.texi (Windows sockets): Fix typo.
53726 2010-09-25  Bruno Haible  <bruno@clisp.org>
53728         Tests for module 'regex-quote'.
53729         * modules/regex-quote-tests: New file.
53730         * tests/test-regex-quote.c: New file.
53732         New module 'regex-quote'.
53733         * lib/regex-quote.h: New file.
53734         * lib/regex-quote.c: New file.
53735         * modules/regex-quote: New file.
53736         Suggested by Reuben Thomas <rrt@sc3d.org>.
53738 2010-09-24  Bruno Haible  <bruno@clisp.org>
53740         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
53741         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
53743 2010-09-23  Bruno Haible  <bruno@clisp.org>
53745         setenv: Relax license.
53746         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
53747         Blake.
53748         Requested by Eric Blake.
53750 2010-09-22  Bruno Haible  <bruno@clisp.org>
53752         termios: Relax license.
53753         * modules/termios (License): Change to LGPLv2+.
53754         Requested by Eric Blake.
53756 2010-09-22  Bruno Haible  <bruno@clisp.org>
53758         threadlib: Allow the package to change the default to 'no'.
53759         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
53760         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
53761         Reported by Paul Eggert.
53763 2010-09-22  Pádraig Brady  <P@draigbrady.com>
53764             Bruno Haible  <bruno@clisp.org>
53766         Fix endless loop in mbmemcasecoll.
53767         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
53768         byte.
53769         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
53771 2010-09-22  Bruno Haible  <bruno@clisp.org>
53773         Tests for module 'memcoll'.
53774         * modules/memcoll-tests: New file.
53775         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
53777         memcoll, xmemcoll: Clarify size vs. length.
53778         * modules/memcoll.c (memcoll0): Clarify specification.
53779         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
53780         passed to collate_error.
53782 2010-09-22  Bruno Haible  <bruno@clisp.org>
53784         Tests for module 'memcasecmp'.
53785         * modules/memcasecmp-tests: New file.
53786         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
53788 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
53790         * lib/pthread.in.h: Add split double-inclusion guard, and include
53791         system <pthread.h> if there is one.  Use @@-style as in other
53792         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
53793         pthread.h doesn't.
53794         (pthread_mutexattr_destroy, pthread_mutexattr_init):
53795         (pthread_mutexattr_settype, pthread_mutex_trylock):
53796         New static inline functions, if there's no system <pthread.h>.
53797         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
53798         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
53799         Approximate with mutexes if the system lacks spinlocks, as in
53800         MacOS.
53801         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
53802         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
53803         @@-style.  Check for spinlocks separately.
53804         (gl_PTHREAD_DEFAULTS): New macro.
53805         * modules/pthread: Redo to use a more typical style for in.h files.
53807 2010-09-21  Eric Blake  <eblake@redhat.com>
53809         net_if: enhance tests
53810         * tests/test-net_if.c (main): Move signature checks earlier.
53811         Print failures to stderr.
53812         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
53813         Document the bug that we do not yet fix.
53815 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
53817         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
53818         about gnulib, not GSS.
53820 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
53822         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
53823         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
53824         for Emacs.
53825         * build-aux/pmccabe2html: Make Makefile.am example code more
53826         cut-and-paste friendly.
53828 2010-09-21  Simon Josefsson  <simon@josefsson.org>
53830         * tests/test-net_if.c: New file.
53831         * modules/net_if-tests: New file.
53833 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
53835         pthread: add pthread_spin_destroy
53836         * lib/pthread.in.h (pthread_spin_destroy): New function.
53838 2010-09-19  Bruno Haible  <bruno@clisp.org>
53840         gnulib-tool: Fix --help output.
53841         * gnulib-tool (func_usage): Fix help message.
53842         Reported by Reuben Thomas <rrt@sc3d.org>.
53844 2010-09-18  Jim Meyering  <meyering@redhat.com>
53846         maint.mk: avoid unexpanded \n in two diagnostics
53847         * top/maint.mk (sc_prohibit_always_true_header_tests):
53848         Don't use a literal \n in a halt=... assignment.  It would not be
53849         expanded, and the two \n bytes would appear in the diagnostic output
53850         rather than the desired newline.  Use halt=$$(printf ... instead.
53851         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
53853 2010-09-18  Bruno Haible  <bruno@clisp.org>
53855         netinet_in: Doc tweak.
53856         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
53857         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
53859 2010-09-18  Jim Meyering  <meyering@redhat.com>
53861         init.sh: correct an outdated comment
53862         * tests/init.sh (create_exe_shims_):  s/function/alias/
53864         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
53865         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
53866         a file named "*.exe" is removed between the glob expansion and the
53867         processing of that oddly named file.
53869 2010-09-17  Eric Blake  <eblake@redhat.com>
53871         mirbsd: add some more support
53872         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
53873         in BSD family.
53874         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
53875         devices as OpenBSD.
53876         * m4/host-os.m4 (mirbsd): Add MirBSD.
53878         tests: fix unportable assumption on sys/wait.h
53879         * tests/test-sys_wait.c (main): Relax test.
53880         * tests/test-stdlib.c (main): Likewise.
53882         init.sh: accommodate directory with no .exes
53883         * tests/init.sh: Accomodate directory containing only scripts.
53885         tests: avoid compiler warning
53886         * tests/test-stdlib.c (main): Use the variable.
53888         fdutimens, fdutimensat: update signature, again
53889         * lib/utimens.h (gl_futimens): Delete, and move signature...
53890         (fdutimens): ...here.
53891         (fdutimensat): Rearrange signature.
53892         (lutimensat): Rename variable for clarity.
53893         * lib/fdutimensat.c (fdutimensat): Update signature.
53894         * lib/utimens.c (fdutimens): Likewise.
53895         (gl_futimens): Delete.
53896         (utimens, lutimens): Update callers.
53897         * lib/futimens.c (futimens): Likewise.
53898         * tests/test-fdutimensat.c: Likewise.
53899         * tests/test-utimens.c: Likewise.
53900         * tests/test-futimens.h: Update comment.
53901         * NEWS: Mention this.
53902         Suggested by Paul Eggert.
53904 2010-09-17  Bruno Haible  <bruno@clisp.org>
53906         Take over the maintenance of some older macros from Autoconf.
53907         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
53908         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
53909         GNU Autoconf.
53910         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
53911         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
53913 2010-09-17  Eric Blake  <eblake@redhat.com>
53915         fdutimensat: drop atflag validation
53916         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
53917         with valid fd, to close a race scenario where futimens is
53918         unsupported and FILE was replaced by a symlink.
53919         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
53920         accordingly.
53921         Suggested by Paul Eggert.
53923 2010-09-16  Bruno Haible  <bruno@clisp.org>
53925         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
53926         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
53928 2010-09-16  Bruno Haible  <bruno@clisp.org>
53930         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
53931         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
53932         login_tty exists.
53933         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
53935 2010-09-16  Bruno Haible  <bruno@clisp.org>
53937         login_tty: Make the replacement code work on BSD systems.
53938         * lib/login_tty.c: Include <sys/ioctl.h>.
53939         (login_tty): Use ioctl TIOCSCTTY when available.
53940         * modules/login_tty (Depends-on): Add sys_ioctl.
53941         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
53943 2010-09-16  Bruno Haible  <bruno@clisp.org>
53945         login_tty: Stricter unit test.
53946         * modules/login_tty-tests (Depends-on): Add tcgetsid.
53947         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
53948         and tcgetsid() after login_tty.
53949         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
53951 2010-09-16  Bruno Haible  <bruno@clisp.org>
53953         New module 'tcgetsid'.
53954         * lib/tcgetsid.c: New file.
53955         * m4/tcgetsid.m4: New file.
53956         * modules/tcgetsid: New file.
53957         * modules/termios (Depends-on): Add c++defs, warn-on-use.
53958         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
53959         GNULIB_TCGETSID, HAVE_TCGETSID.
53960         * lib/termios.in.h: Include <sys/types.h>.
53961         (tcgetsid): New declaration.
53962         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
53963         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
53964         * doc/posix-functions/tcgetsid.texi: Mention the new module.
53965         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
53967 2010-09-16  Bruno Haible  <bruno@clisp.org>
53969         Tests for module 'termios'.
53970         * modules/termios-c++-tests: New file.
53971         * modules/termios-tests: New file.
53972         * tests/test-termios-c++.cc: New file.
53973         * tests/test-termios.c: New file.
53975         New module 'termios'.
53976         * modules/termios: New file.
53977         * lib/termios.in.h: New file.
53978         * m4/termios_h.m4: New file.
53979         * doc/posix-headers/termios.texi: Mention the new module.
53981 2010-09-16  Eric Blake  <eblake@redhat.com>
53983         fdutimensat: add an atflag parameter
53984         * lib/fdutimensat.c (fdutimensat): Add new parameter.
53985         * lib/utimens.h (fdutimensat): Update prototype.
53986         * tests/test-fdutimensat.c: Adjust test to match.
53987         * NEWS: Document the change.
53988         Suggested by Paul Eggert.
53990 2010-09-16  Bruno Haible  <bruno@clisp.org>
53992         Fix typos in comments.
53993         * lib/striconveh.h: Fix typo in comment.
53994         * lib/login_tty.c (login_tty): Likewise.
53996 2010-09-15  Bruno Haible  <bruno@clisp.org>
53998         stdlib: clarify MirBSD WEXITSTATUS bug
53999         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
54000         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
54002 2010-09-15  Eric Blake  <eblake@redhat.com>
54004         stdlib: work around MirBSD WEXITSTATUS bug
54005         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
54006         * modules/stdlib (Depends-on): Add sys_wait.
54007         * tests/test-sys_wait.c (main): Enhance test.
54008         * tests/test-stdlib.c (main): Likewise.
54009         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
54011         docs: mention MacOS issue with WEXITSTATUS(constant)
54012         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
54013         issue.
54014         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
54016         strnlen: add tests
54017         * modules/strnlen-tests: New file.
54018         * tests/test-strnlen.c: Likewise.
54020 2010-09-14  Bruno Haible  <bruno@clisp.org>
54022         unistr/base: Avoid link errors when module 'libunistring' is also used.
54023         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
54024         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
54025         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
54026         Declare also when HAVE_LIBUNISTRING is set.
54027         Reported by Pádraig Brady <P@draigbrady.com>.
54029 2010-09-14  Eric Blake  <eblake@redhat.com>
54031         test-rawmemchr: make more robust
54032         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
54033         (Depends-on, configure.ac): Add needed prerequisites to use it.
54034         * modules/memchr-tests (Files, Depends-on, configure.ac):
54035         Likewise, to avoid implicit reliance on memchr module prereqs.
54036         * tests/test-memchr.c (main): Ensure proper masking.
54037         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
54038         reads.
54040         memchr: detect glibc Alpha bug
54041         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
54042         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
54043         Alpha.
54044         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
54045         * tests/test-memchr.c (main): Enhance test.
54046         Reported by Nelson H. F. Beebe.
54048 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
54050         fts, getcwd, glob: audit for dirfd returning -1
54051         * lib/fts.c (opendir): Remove #define; no longer used.
54052         (opendirat): New arg PDIR_FD.  All callers changed.
54053         (fts_build, _opendir2): Use new opendirat to avoid the need for
54054         dirfd, or for checking whether dirfd returns a negative value.
54055         Don't use opendir; always use openat followed by fdopendir.
54056         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
54057         it.
54058         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
54059         returns -1 here.
54060         * modules/fts (Depends-on): Remove dirfd.
54061         * modules/getcwd (Depends-on): Likewise.
54063 2010-09-13  Eric Blake  <eblake@redhat.com>
54065         float: fix broken MirBSD header
54066         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
54067         * doc/posix-headers/float.texi (float.h): Document it.
54069 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
54071         fts: use O_NOFOLLOW to avoid race condition when opening a directory
54072         * lib/fts.c (opendirat): New arg extra_flags.
54073         (__opendir2): Use it to avoid following symlinks when opening
54074         a directory, if symlinks are not supposed to be followed.  See
54075         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00213.html>.
54077         fdopendir: preserve argument fd before returning
54078         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
54079         (fdopendir_with_dup, fd_clone_opendir): New static functions.
54080         (fdopendir): Use them, arranging for FD to be open to the same
54081         directory that it was when it started.  (It might be temporarily
54082         closed while fdopendir is running, so this not thread- or
54083         signal-safe.)  Be careful to do the right thing even when file
54084         descriptors are scarce and dup fails with errno == EMFILE.  See
54085         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00208.html>.
54087 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
54089         regex: Pass the system regex if its only problem is 32-bit regoff_t.
54090         * NEWS: Document change.
54091         * m4/regex.m4: Disable test for regoff_t size.
54093 2010-09-13  Jim Meyering  <meyering@redhat.com>
54095         fts: don't operate on an invalid file descriptor after failed dup
54096         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
54097         negative file descriptor.
54099 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
54101         savedir: add streamsavedir, deprecate fdsavedir
54102         * NEWS: Mention deprecation of fdsavedir.
54103         * lib/savedir.c (streamsavedir): New extern function, whose name
54104         ends in "savedir" to be consistent with the others.  This differs
54105         from savedirstream in that it doesn't close its argument.  The
54106         next version of GNU tar will use this instead of fdsavedir, to
54107         avoid some race conditions and conserve file descriptors.
54108         (savedirstream): Reimplement as a wrapper around streamsavedir.
54109         (fdsavedir): Add a comment deprecating this function.  As far as
54110         I know, only GNU tar used it, and GNU tar doesn't need it any more.
54111         * lib/savedir.h (streamsavedir): New decl.
54112         (fdsavedir): Add a comment deprecating this.
54114 2010-09-10  Bruno Haible  <bruno@clisp.org>
54116         langinfo: Fix last commit.
54117         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
54118         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
54119         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
54121 2010-09-10  Bruno Haible  <bruno@clisp.org>
54123         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
54124         * lib/progreloc.c (O_EXEC): Define fallback.
54126 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
54128         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
54129         * NEWS: Document recent changes to fcntl-h.
54130         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
54131         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
54132         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
54133         Similarly for O_SEARCH; this last was already true, but not documented.
54134         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
54135         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
54136         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
54137         Likewise.
54138         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
54139         is zero, not whether it is defined.
54140         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
54141         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
54142         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
54144 2010-09-10  Bruno Haible  <bruno@clisp.org>
54146         langinfo, nl_langinfo: Fix for IRIX 5.3.
54147         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
54148         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
54149         HAVE_LANGINFO_YESEXPR.
54150         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
54151         HAVE_LANGINFO_YESEXPR.
54152         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
54153         HAVE_LANGINFO_T_FMT_AMPM is 0.
54154         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
54155         HAVE_LANGINFO_YESEXPR is 0.
54156         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
54157         NOEXPR.
54158         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
54159         * doc/posix-functions/nl_langinfo.texi: Likewise.
54160         Reported by Eric Blake.
54162 2010-09-10  Bruno Haible  <bruno@clisp.org>
54164         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
54165         * doc/glibc-functions/login_tty.texi: Mention the include file problem
54166         on FreeBSD 8.0 and OpenBSD 4.6.
54167         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
54168         * m4/pty_h.m4 (gl_PTY_H): Likewise.
54169         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
54170         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
54171         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
54172         ac_includes_default.
54173         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
54175 2010-09-09  Eric Blake  <eblake@redhat.com>
54177         strsignal: work around NetBSD bug
54178         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
54179         * lib/string.in.h (includes): Likewise.
54180         * doc/posix-functions/strsignal.texi (strsignal): Document the
54181         bug.
54182         Reported by Nelson H. F. Beebe.
54184         gnulib-tool: work with NetBSD /bin/sh
54185         * gnulib-tool (func_cache_var, func_cache_lookup_module)
54186         (func_get_description, func_get_comment, func_get_status)
54187         (func_get_notice, func_get_applicability, func_get_filelist)
54188         (func_get_dependencies, func_get_autoconf_early_snippet)
54189         (func_get_autoconf_snippet, func_get_automake_snippet)
54190         (func_get_include_directive, func_get_link_directive)
54191         (func_get_license, func_get_maintainer, func_import): Avoid
54192         shell syntax errors from parsing syntax extensions.
54194 2010-09-09  Bruno Haible  <bruno@clisp.org>
54196         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
54197         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
54198         a reliable way to determine whether the 'alias' command works.
54200 2010-09-08  Jim Meyering  <meyering@redhat.com>
54202         init.sh: penalize a set-x-impaired shell; don't disqualify it
54203         * tests/init.sh: Too many shells corrupt application stderr when
54204         you set -x, so we can't afford to disqualify them, since at least
54205         on Irix-6.5, that would disqualify all bourne shells.
54206         Instead, use a two-pass approach.
54207         On the first pass, try to find a shell that meets the stricter
54208         condition that set -x does not corrupt stderr.
54209         If no shell meets the stricter condition, retest each candidate
54210         shell, but without that extra condition.  Finally, when
54211         VERBOSE=yes is requested and set -x might cause trouble, simply
54212         issue a warning and refrain from enabling debug output.
54214 2010-09-08  Eric Blake  <eblake@redhat.com>
54216         unsetenv: fix OpenBSD bug
54217         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
54218         * doc/posix-functions/unsetenv.texi (unsetenv): Update
54219         documentation.
54220         Reported by Jim Meyering.
54222         strtod: work around IRIX 6.5 bug
54223         * lib/strtod.c (strtod): Reparse number on shorter string if
54224         exponent parse was invalid.
54225         * tests/test-strtod.c (main): Add check for "0x1p 2".
54226         Reported by Tom G. Christensen.
54228         getopt: optimize previous patch
54229         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
54230         empty variable.  Speed up awk script.
54231         Reported by Paolo Bonzini.
54233 2010-09-08  Jim Meyering  <meyering@redhat.com>
54235         test.sh: disqualify shells for which set -x corrupts stderr
54236         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
54237         and OpenBSD 4.7.  They make it so with "set -x", environment settings
54238         appear in stderr output.  For example, this command:
54239             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
54240         prints "P=1" on those two systems:
54242 2010-09-08  Bruno Haible  <bruno@clisp.org>
54244         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
54245         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
54246         commands, because some shells ignore redirections when there is an
54247         error in the command lookup.
54248         Reported by Eric Blake.
54250 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
54252         * lib/regex.h: Fix a mention of `regex_compile' (should be
54253         `re_compile_pattern').
54254         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
54255         (re_set_registers): Correct name of parameter in comment.
54257         * doc/regex.texi: Add documentation for missing syntax flags.
54258         Remove commented-out documentation of defunct syntax option
54259         RE_NO_EMPTY_ALTS.
54260         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
54261         Add documentation of re_set_registers.
54262         Document trick to re-use a pattern buffer by setting fastmap manually.
54263         Update documentation of struct re_pattern_buffer per public members.
54264         Uncomment documentation of equivalence class operators and
54265         collating symbol operators, since they are now implemented,
54266         Explain leftmost-longest matching in relation to alternatives.
54267         Tidy documentation of substring matching.
54268         Remove POSIX documentation, which is done better in
54269         glibc, and refer the reader there. Keep BSD API documentation, as
54270         that is not readily available elsewhere.
54272 2010-09-07  Eric Blake  <eblake@redhat.com>
54274         getopt: handle POSIXLY_CORRECT set but not exported
54275         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
54276         export state of POSIXLY_CORRECT, due to bash set -o posix.
54277         Reported by Dustin J. Mitchell.
54279 2010-09-05  Bruno Haible  <bruno@clisp.org>
54281         gnulib-tool: Highlight the changed options.
54282         * gnulib-tool (func_usage): Display the --import, --add-import,
54283         --remove-import explanations in bold font.
54285 2010-09-06  Karl Berry  <karl@gnu.org>
54287         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
54289 2010-09-05  Bruno Haible  <bruno@clisp.org>
54291         uniwidth/width: Update comment.
54292         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
54293         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
54295 2010-09-05  Bruno Haible  <bruno@clisp.org>
54297         isinf, isnan: Relax license.
54298         * modules/isinf (License): Change from GPL to LGPL, with consent from
54299         Ben Pfaff.
54300         * modules/isnan (License): Likewise.
54301         Requested by Ludovic Courtès.
54303 2010-09-04  Bruno Haible  <bruno@clisp.org>
54305         gnulib-tool: Help migration from --import to --add-import or --update.
54306         * gnulib-tool: Emit a verbose error message when --import is used
54307         without any module name.
54309 2010-09-04  Bruno Haible  <bruno@clisp.org>
54311         Update doc about gnulib-tool.
54312         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
54313         'gnulib-tool --update' in more detail.
54314         Reported by Eric Blake.
54316 2010-09-04  Bruno Haible  <bruno@clisp.org>
54318         gnulib-tool: Change --import. New options --add/remove-import.
54319         * gnulib-tool: New options --add-import, --remove-import.
54320         (func_usage): Document them.
54321         (have_associative): Define always.
54322         (func_import): In import mode, don't merge the specified settings with
54323         the cached settings. Implement remove-import mode.
54324         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
54325         Explain when to use them versus --import.
54326         (Simple update): Use --add-import instead of --import.
54327         * NEWS: Mention the change.
54329 2010-09-04  Bruno Haible  <bruno@clisp.org>
54331         * doc/gnulib-tool.texi (Initial import): Update paragraph about
54332         separate gnulib.mk.
54334 2010-09-04  Bruno Haible  <bruno@clisp.org>
54336         gnulib-tool: Don't talk about CVS any more.
54337         * gnulib-tool (func_usage, func_import): Write "version control"
54338         instead of CVS.
54340 2010-09-04  Jim Meyering  <meyering@redhat.com>
54342         maint.mk: avoid obscure sc_copyright_check failure in coreutils
54343         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
54344         false positives (whose names may be ill-chosen) when searching
54345         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
54346         would cause a false-positive.
54348         avoid coreutils "make distcheck" failure
54349         Coreutils tests with an absolute build directory name that contains
54350         a space.  Not quoting this directory name caused a failure.
54351         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
54352         * tests/test-vc-list-files-cvs.sh: Likewise.
54354 2010-09-04  Bruno Haible  <bruno@clisp.org>
54356         gnulib-tool: Avoid error when run in a package without Makefile.am.
54357         * gnulib-tool: When collecting the m4dirs in a package that does not
54358         have a Makefile.am, eliminate those directories that contain no
54359         gnulib-cache.m4. Fix expression that counts these directories.
54361 2010-09-04  Bruno Haible  <bruno@clisp.org>
54363         update-copyright test: Improve output when perl is missing or too old.
54364         * tests/test-update-copyright.sh: Move test of Perl version down after
54365         the test whether Perl exists. Provide an explanation relating Perl's
54366         error message to Automake's SKIP: message.
54368 2010-09-04  Bruno Haible  <bruno@clisp.org>
54370         Don't augment PATH in TESTS_ENVIRONMENT.
54371         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
54372         set abs_aux_dir instead of augmenting PATH.
54373         * modules/vc-list-files-tests (Makefile.am): Likewise.
54374         * tests/test-update-copyright.sh: Augment PATH here.
54375         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
54376         path_prepend_.
54377         * tests/test-vc-list-files-git.sh: Likewise.
54379 2010-09-04  Jim Meyering  <meyering@redhat.com>
54381         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
54382         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
54384 2010-09-04  Bruno Haible  <bruno@clisp.org>
54386         strdup: Fix compilation error in C++ mode.
54387         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
54388         the macro.
54390 2010-09-04  Bruno Haible  <bruno@clisp.org>
54392         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
54393         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
54394         macro into a function.
54395         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
54397 2010-09-04  Bruno Haible  <bruno@clisp.org>
54399         Set PATH_SEPARATOR the same way autoconf does.
54400         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
54401         the value of PATH_SEPARATOR the same way autoconf-generated configure
54402         scripts do.
54403         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
54404         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
54406 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
54408         Set PATH_SEPARATOR the same way autoconf does.
54409         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
54410         the same way autoconf-generated configure scripts do.
54411         * posix-modules: Likewise.
54413 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
54415         hash: fix safe_hasher const typo
54416         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
54417         const; otherwise, there is a type error later.
54419 2010-09-02  Jim Meyering  <meyering@redhat.com>
54421         test-update-copyright.sh: require perl 5.8.0
54422         * tests/test-update-copyright.sh: Require 5.8.0,
54423         which Tom G. Christensen has confirmed is adequate,
54424         while 5.6.1 is not.
54426 2010-09-02  Eric Blake  <eblake@redhat.com>
54428         tests: init.sh improvements for re-exec'ing with zsh
54429         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
54430         -vx through shell re-exec.
54431         Reported by Tom G. Christensen.
54433         wctype: fix typo in previous commit
54434         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
54435         Reported by Ludovic Courtès.
54437 2010-09-02  Jim Meyering  <meyering@redhat.com>
54439         test-update-copyright.sh: skip test if Perl is too old
54440         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
54441         Reported by Tom G. Christensen.
54443 2010-09-02  Bruno Haible  <bruno@clisp.org>
54445         wctype: Avoid compilation error on IRIX 6.5.30.
54446         * lib/wctype.in.h (iswblank): Declare with a replacement if
54447         REPLACE_ISWBLANK is set.
54448         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
54449         declared. Set REPLACE_ISWBLANK.
54450         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
54451         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
54452         * doc/posix-headers/wctype.texi: Likewise.
54453         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
54455 2010-09-01  Bruno Haible  <bruno@clisp.org>
54457         New module 'socketlib'.
54458         * modules/socketlib: New file.
54459         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
54460         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
54461         * modules/sockets (Depends-on): Add socketlib.
54462         Suggested by Sam Steingold <sds@gnu.org>.
54464 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
54466         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
54468         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
54469         when one needs search access to a directory but not read access.
54470         On systems where it is available, it works in some cases where
54471         O_RDONLY does not, namely on directories that are searchable but
54472         not readable, and which need only to be searchable.  If O_SEARCH
54473         is not available, fall back to the traditional method of using
54474         O_RDONLY.
54476         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
54477         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
54478         when opening a directory that needs only to be searchable.
54479         * lib/chdir-safer.c (chdir_no_follow): Likewise.
54480         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
54481         * lib/openat-proc.c (openat_proc_name): Likewise.
54482         * lib/openat.c (openat_needs_fchdir): Likewise.
54483         * lib/save-cwd.c (save_cwd): Likewise.
54484         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
54486 2010-08-28  Bruno Haible  <bruno@clisp.org>
54488         New module 'host-cpu-c-abi'.
54489         * modules/host-cpu-c-abi: New file.
54490         * m4/host-cpu-c-abi.m4: New file, based on part of
54491         clisp/src/m4/general.m4.
54492         Requested by Sam Steingold <sds@gnu.org>.
54494 2010-08-31  Eric Blake  <eblake@redhat.com>
54495         and Jim Meyering  <meyering@redhat.com>
54497         hash: factor, and guard against misbehaving hasher function
54498         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
54499         of table->hasher's return value.  Also protect against a hash value
54500         so large that adding it to table->bucket results in a NULL pointer.
54501         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
54502         Use it in place of open-coded check-and-abort.
54504 2010-08-30  Bruno Haible  <bruno@clisp.org>
54506         hash: silence spurious clang warning
54507         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
54508         Reported by Eric Blake.
54510 2010-08-30  Eric Blake  <eblake@redhat.com>
54512         strstr, memmem, strcasestr: avoid leaked shell message
54513         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
54514         FreeBSD.
54515         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54516         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
54518         tests: silence clang warning
54519         * tests/test-malloca.c (do_allocation): Avoid dead store.
54521 2010-08-29  Bruno Haible  <bruno@clisp.org>
54523         gettext: Fix recent mistake.
54524         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
54526 2010-08-29  Bruno Haible  <bruno@clisp.org>
54528         selinux-h: Offer a --without-selinux option.
54529         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
54530         --without-selinux was specified, skip all tests and define
54531         HAVE_SELINUX_SELINUX_H to 0.
54532         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
54533         set LIB_SELINUX to empty.
54534         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
54535         gl_LIBSELINUX. If --without-selinux was specified, replace
54536         selinux/context.h.
54537         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
54539 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54540             Bruno Haible  <bruno@clisp.org>
54542         Make the module 'realloc-gnu' work again on AIX and OSF/1.
54543         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
54544         of HAVE_REALLOC.
54545         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
54546         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
54547         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
54548         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
54550 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54551             Bruno Haible  <bruno@clisp.org>
54553         Make the module 'calloc-gnu' work again on AIX and OSF/1.
54554         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
54555         HAVE_CALLOC.
54556         * lib/xmalloc.c: Update accordingly.
54557         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
54558         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
54559         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
54561 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54562             Bruno Haible  <bruno@clisp.org>
54564         Make the module 'malloc-gnu' work again on AIX and OSF/1.
54565         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
54566         HAVE_MALLOC.
54567         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
54568         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
54569         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
54571 2010-08-29  Bruno Haible  <bruno@clisp.org>
54573         Update modules list.
54574         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
54575         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
54576         (String handling <string.h>): Add astrxfrm.
54577         (File system functions): Add readlinkat.
54579 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54581         Tests for module 'realloc-gnu'.
54582         * modules/realloc-gnu-tests: New file.
54583         * tests/test-realloc-gnu.c: New file.
54585         Tests for module 'calloc-gnu'.
54586         * modules/calloc-gnu-tests: New file.
54587         * tests/test-calloc-gnu.c: New file.
54589         Tests for module 'malloc-gnu'.
54590         * modules/malloc-gnu-tests: New file.
54591         * tests/test-malloc-gnu.c: New file.
54593 2010-08-28  Bruno Haible  <bruno@clisp.org>
54595         Rename module 'realloc' -> 'realloc-gnu'.
54596         * modules/realloc-gnu: New file, copied from modules/realloc.
54597         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
54598         obsolete.
54599         * modules/mgetgroups (Depends-on): Update.
54600         * doc/posix-functions/realloc.texi: Update.
54601         * NEWS: Mention the change.
54603         Rename module 'calloc' -> 'calloc-gnu'.
54604         * modules/calloc-gnu: New file, copied from modules/calloc.
54605         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
54606         obsolete.
54607         * doc/posix-functions/calloc.texi: Update.
54608         * NEWS: Mention the change.
54610         Rename module 'malloc' -> 'malloc-gnu'.
54611         * modules/malloc-gnu: New file, copied from modules/malloc.
54612         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
54613         obsolete.
54614         * modules/argp (Depends-on): Update.
54615         * modules/regex (Depends-on): Update.
54616         * doc/posix-functions/malloc.texi: Update.
54617         * NEWS: Mention the change.
54619 2010-08-28  Eric Blake  <eblake@redhat.com>
54621         pread, pwrite: add missing dependency
54622         * modules/pread (Depends-on): Add extensions.
54623         * modules/pwrite (Depends-on): Likewise.
54625 2010-08-28  Bruno Haible  <bruno@clisp.org>
54627         unistr/u*-strchr: Fix tests dependencies.
54628         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
54629         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
54630         Reported by Ian Beckwith <ianb@erislabs.net>.
54632 2010-08-28  Bruno Haible  <bruno@clisp.org>
54634         read-file: Don't occupy too much unused memory.
54635         * lib/read-file.c (fread_file): Shrink the buffer at the end.
54637 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
54638             Eric Blake  <eblake@redhat.com>
54639             Bruno Haible  <bruno@clisp.org>
54641         read-file: Avoid memory reallocations with regular files.
54642         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
54643         (fread_file): With regular files, use the remaining length as the
54644         initial buffer size.  Check against overflow.
54645         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
54646         sys_stat.
54648 2010-08-28  Bruno Haible  <bruno@clisp.org>
54650         ftello: Relax license.
54651         * modules/ftello (License): Relax to LGPLv2+.
54652         Reported by Eric Blake.
54654 2010-08-28  Bruno Haible  <bruno@clisp.org>
54656         Avoid relocwrapper link errors due to gnulib replacement functions.
54657         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
54658         function.
54659         Reported by Ben Pfaff <blp@cs.stanford.edu>.
54661 2010-08-28  Bruno Haible  <bruno@clisp.org>
54663         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
54664         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
54665         defined.
54666         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
54667         Suggested by Eric Blake.
54669 2010-08-28  Bruno Haible  <bruno@clisp.org>
54671         sys_socket, netdb: Ensure socklen_t gets defined.
54672         * modules/sys_socket (Depends-on): Add socklen.
54673         * modules/netdb (Depends-on): Likewise.
54674         * modules/getaddrinfo (Depends-on): Remove socklen.
54675         * modules/getsockopt (Depends-on): Likewise.
54676         * modules/setsockopt (Depends-on): Likewise.
54677         * tests/test-sys_socket.c: Check that socklen_t is defined.
54678         * tests/test-netdb.c: Likewise.
54679         * m4/socklen.m4: Update comments.
54680         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54682 2010-08-27  Eric Blake  <eblake@redhat.com>
54684         login_tty: add missing dependency
54685         * modules/login_tty (Depends-on): Add pty.
54687 2010-08-26  Eric Blake  <eblake@redhat.com>
54689         lib-symbol-versions: fix m4 quoting
54690         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
54691         format for AC_LINK_IFELSE.
54693         glob: fix compile test
54694         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
54696         btowc: fix missing file
54697         * modules/btowc (Files): Also ship locale-fr.m4.
54699         lseek: fix link test
54700         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
54701         AC_LINK_IFELSE.
54703         include_next: silence autoconf 2.68 warning
54704         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
54705         AC_COMPILE_IFELSE as special.
54706         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
54707         autoconf < 2.68.
54709         acl: fix compilation test
54710         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
54711         AC_COMPILE_IFELSE.
54713 2010-08-26  Bruno Haible  <bruno@clisp.org>
54715         Modernize AC_TRY_RUN invocations.
54716         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
54717         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
54718         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
54719         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
54720         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
54721         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
54722         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
54723         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
54724         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
54725         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
54726         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
54727         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
54728         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
54729         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
54730         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
54731         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
54732         gl_MBRLEN_NUL_RETVAL): Likewise.
54733         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
54734         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
54735         Likewise.
54736         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
54737         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
54738         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
54739         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
54740         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
54741         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
54742         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
54743         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
54744         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
54745         Likewise.
54746         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
54747         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
54748         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
54749         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
54750         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
54751         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
54752         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
54753         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
54754         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
54755         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
54757 2010-08-26  Bruno Haible  <bruno@clisp.org>
54759         Modernize AC_TRY_LINK invocations.
54760         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
54761         AC_TRY_LINK.
54762         * m4/argp.m4 (gl_ARGP): Likewise.
54763         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
54764         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
54765         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
54766         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
54767         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
54768         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
54769         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
54770         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
54771         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
54772         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
54773         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
54774         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
54775         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
54776         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
54777         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
54778         * m4/hostent.m4 (gl_HOSTENT): Likewise.
54779         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
54780         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
54781         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
54782         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
54783         Likewise.
54784         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
54785         Likewise.
54786         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
54787         Likewise.
54788         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
54789         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
54790         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
54791         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
54792         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
54793         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
54794         * m4/servent.m4 (gl_SERVENT): Likewise.
54795         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
54796         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
54797         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
54798         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
54799         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
54800         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
54801         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
54802         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
54803         * modules/tsearch-tests (configure.ac): Likewise.
54805 2010-08-26  Bruno Haible  <bruno@clisp.org>
54807         Modernize AC_TRY_COMPILE invocations.
54808         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
54809         AC_TRY_COMPILE.
54810         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
54811         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
54812         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
54813         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
54814         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
54815         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
54816         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
54817         * m4/lock.m4 (gl_LOCK): Likewise.
54818         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
54819         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
54820         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
54821         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
54822         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
54823         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
54824         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
54825         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
54826         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
54827         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
54828         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
54829         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
54830         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
54831         extraneous semicolon.
54833 2010-08-26  Jim Meyering  <meyering@redhat.com>
54835         stat-time: relax license LGPL
54836         * modules/stat-time (License): Change from GPL to LGPL,
54837         with consent from all contributors, for use in libguile.
54838         Requested by Ludovic Courtès.
54840 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
54842         poll: return immediately on POLLHUP.
54843         * lib/poll.c (poll): Always set timeout before wait_timeout is
54844         computed.
54846 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54848         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
54849         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
54850         rmdir ("dir/.//"), unlinkat.
54852 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
54854         stdbool: avoid spurious failure with modern xlc
54855         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
54857 2010-08-24  Bruno Haible  <bruno@clisp.org>
54859         getloadavg: simplify code
54860         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
54861         gl_have_func. Update comments.
54863 2010-08-24  Eric Blake  <eblake@redhat.com>
54865         getloadavg: don't define SVR4 on cygwin
54866         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
54867         only define SVR4 when -lkvm is required.
54868         Reported by Yaakov Selkowitz.
54870 2010-08-24  Bruno Haible  <bruno@clisp.org>
54872         priv-set: fix comment
54873         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
54875 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
54877         priv-set: fix comments
54878         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
54879         to match code, as suggested by David Bartley in:
54880         http://lists.gnu.org/r/bug-tar/2010-08/msg00018.html
54882 2010-08-23  Eric Blake  <eblake@redhat.com>
54884         stdbool: avoid rejecting clang
54885         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
54886         * tests/test-stdbool.c: Enable more tests if using the system
54887         <stdbool.h> instead of the gnulib replacement.
54888         (main): Move xlc bug test to a runtime test for all compilers.
54889         Reported by Anders Kaseorg.
54891         argz: fix shell quoting issue
54892         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
54893         Reported by Charles Wilson.
54895 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
54896             Erik Faye-Lund <kusmabite@gmail.com>
54898         poll, select: handle ERROR_BROKEN_PIPE.
54899         * lib/poll.c (win32_compute_revents): Return POLLHUP when
54900         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
54901         * lib/select.c (win32_compute_revents): Do not mark a pipe
54902         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
54904 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
54906         fts: allow compilation with C++
54907         * lib/fts_.h: Specify extern "C" linkage with C++.
54909 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54911         Fix gnulib-tool sed script de-commentation for AIX sed.
54912         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
54913         sed.
54915 2010-08-17  Eric Blake  <eblake@redhat.com>
54917         test-stddef: test for (some) offsetof bugs
54918         * tests/test-stddef.c: Enhance test to ensure correct type of
54919         offsetof.
54920         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
54921         that we are not fixing at this time.
54923 2010-08-15  Bruno Haible  <bruno@clisp.org>
54925         stpncpy: Allow stpncpy to be defined as a macro.
54926         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
54927         if it's already correctly declared.
54928         * lib/string.in.h (stpncpy): Undefine before redefining.
54929         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
54931 2010-08-14  Bruno Haible  <bruno@clisp.org>
54933         Rename module 'memxfrm' to 'amemxfrm'.
54934         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
54935         (amemxfrm): Renamed from memxfrm.
54936         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
54937         (amemxfrm): Renamed from memxfrm.
54938         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
54939         * NEWS: Mention the change.
54940         * MODULES.html.sh (String handling <string.h>): Update.
54941         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
54942         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
54943         * lib/unicase/u16-casexfrm.c: Likewise.
54944         * lib/unicase/u32-casexfrm.c: Likewise.
54945         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
54946         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
54947         * lib/uninorm/u16-normxfrm.c: Likewise.
54948         * lib/uninorm/u32-normxfrm.c: Likewise.
54949         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
54950         memxfrm.
54951         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
54952         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
54953         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
54954         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
54955         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
54956         Suggested by Paul Eggert.
54958 2010-08-14  Bruno Haible  <bruno@clisp.org>
54960         Tests for module 'astrxfrm'.
54961         * modules/astrxfrm-tests: New file.
54962         * tests/test-astrxfrm.c: New file.
54964         New module 'astrxfrm'.
54965         * lib/astrxfrm.h: New file.
54966         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
54967         * modules/astrxfrm: New file.
54969 2010-08-14  Reuben Thomas  <rrt@sc3d.org>
54971         regex: Tweak doc.
54972         * doc/regex.texi (Overview): Don't mention regex.c.
54973         (GNU Regular Expression Compiling): Likewise.
54974         (Match-end-of-line Operator): Mention 'not_eol'.
54976 2010-08-14  Brian Gough  <bjg@gnu.org>
54977             Bruno Haible  <bruno@clisp.org>
54979         git-merge-changelog: add doc relating to use with bzr and hg.
54980         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
54982 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
54984         pthread: fix pthread.h creation for srcdir != builddir
54985         * modules/pthread (Makefile.am): Fix the rule to work also in a
54986         non-srcdir build.
54988 2010-08-13  Karl Berry  <karl@gnu.org>
54990         * doc/regex.texi (Predefined Syntaxes): @smallexample.
54991         * doc/posix-*/*: force line break before @url of POSIX
54992         specifications.
54993         Suggested by Werner Lemberg.
54995 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
54997         strtod: fix const diagnostic
54998         * lib/strtod.c (strtod): Don't assign const char * to char *,
54999         as this elicits a warning from GCC when warnings are enabled.
55001 2010-08-10  Pádraig Brady  <P@draigbrady.com>
55002         and Eric Blake  <eblake@redhat.com>
55004         copy-acl: ignore ENOTSUP on HP-UX
55005         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
55006         so that it is available for HP-UX.
55007         * lib/copy-acl.c (qcopy_acl): Use it.
55008         Reported by Patrick M. Callahan.
55010 2010-08-10  Eric Blake  <eblake@redhat.com>
55012         open, chown: relax license
55013         * modules/open (License): Change to LGPLv2+, with consent by all
55014         authors, for use in augeas.
55015         * modules/chown (License): Likewise.
55016         * modules/lchown (Likewise): Likewise.
55017         Requested by Adam Stokes.
55019 2010-08-09  Karl Berry  <karl@gnu.org>
55021         * build-aux/ar-lib: new file, import from Automake.
55022         * config/srclist.txt: autocheck for updates.
55024 2010-08-09  Eric Blake  <eblake@redhat.com>
55026         readlinkat: adjust client modules
55027         * modules/areadlinkat (Depends-on): Use readlinkat, not
55028         symlinkat.
55029         * modules/areadlinkat-with-size (Depends-on): Likewise.
55031         mknod: be more vocal about danger of running tests as root
55032         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
55033         root, since that is just asking for problems.
55034         Suggested by Bruno Haible, based on a report by Rainer Tammer.
55036         readlinkat: split into its own module
55037         * modules/symlinkat: Split readlinkat...
55038         * modules/readlinkat: ...into separate module.
55039         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
55040         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
55041         * lib/symlinkat.c (readlinkat): Move...
55042         * lib/readlinkat.c: ...into new file.
55043         * modules/symlinkat-tests: Split readlinkat test...
55044         * modules/readlinkat-tests: ...into separate module.
55045         * tests/test-symlinkat.c: Split...
55046         * tests/test-readlinkat.c: ...into new file.
55047         * NEWS: Document the split.
55048         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
55049         * lib/unistd.in.h (readlinkat): Likewise.
55050         Suggested by Bruno Haible.
55052 2010-08-08  Bruno Haible  <bruno@clisp.org>
55054         memxfrm: Speed up.
55055         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
55056         that usually only one call to strxfrm is necessary for each string
55057         part.
55058         Reported by Paul Eggert <eggert@cs.ucla.edu>.
55060 2010-08-07  Karl Berry  <karl@gnu.org>
55062         * doc/posix-headers/limits.texi,
55063         * doc/posix-functions/malloc.texi,
55064         * doc/posix-functions/strsignal.texi: missing @item.
55065         * doc/ld-version-script.texi: spurious leading i.
55066         * doc/regex.texi (Interval Operators): no commas inside @var.
55068 2010-08-01  Bruno Haible  <bruno@clisp.org>
55070         Integrate the regex documentation.
55071         * doc/gnulib.texi: Define 'cn' index.
55072         (Regular expressions): New a chapter that includes regex.texi and
55073         regexprops-generic.texi.
55074         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
55075         syntax.
55077         Whitespace cleanup.
55078         * doc/regex.texi: Remove trailing spaces.
55080         Add regex documentation.
55081         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
55082         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
55083         Written by Kathy A. Hargreaves and Karl Berry.
55085 2010-08-01  Bruno Haible  <bruno@clisp.org>
55087         link: Update documentation.
55088         * doc/posix-functions/link.texi: Update regarding Solaris.
55090 2010-07-31  Bruno Haible  <bruno@clisp.org>
55092         Update modules list.
55093         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
55094         (String handling <string.h>): Add memcmp2, memxfrm.
55095         (Container data structures): Add xlist, xsublist, xoset.
55096         (Core language properties): Add alignof, unused-parameter.
55097         (Process control, Numeric conversion functions <stdlib.h>): Renamed
55098         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
55099         (Unibyte characters <ctype.h>): New section.
55100         (String handling <string.h>): New section.
55101         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
55102         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
55103         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
55104         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
55105         tan, tanh, tanl, y0, y1, yn.
55106         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
55107         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
55108         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
55109         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
55110         unlockpt, vdprintf, vdprintf-posix.
55111         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
55112         (File system functions): Add concat-filename, sys_file, sys_ioctl,
55113         xconcat-filename.
55114         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
55115         getdtablesize, pipe2, pipe2-safer.
55116         (Security): New section.
55117         (Networking functions): Add accept4.
55118         (Signal handling): Add sigpipe.
55119         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
55120         mbmemcasecoll.
55121         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
55122         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
55123         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
55124         pipe-filter-ii.
55125         (Misc): Add argp-version-etc, login_tty, parse-duration.
55127 2010-07-31  Bruno Haible  <bruno@clisp.org>
55129         Improve doc in MODULES.html.
55130         * modules/linkat (Description): Add the word "function".
55131         * modules/mkfifo (Description): Likewise.
55132         * modules/mknod (Description): Likewise.
55133         * modules/remove (Description): Likewise.
55134         * modules/renameat (Description): Likewise.
55135         * modules/stat (Description): Likewise.
55136         * modules/symlink (Description): Likewise.
55137         * modules/unlink (Description): Likewise.
55139 2010-07-31  Bruno Haible  <bruno@clisp.org>
55141         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
55142         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
55143         option --enable/disable-c++ instead of --enable/disable-cxx.
55144         * NEWS: Mention the change.
55146 2010-07-31  Bruno Haible  <bruno@clisp.org>
55148         readlink, areadlink: Relax test a bit.
55149         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
55150         alternative to ENOTDIR.
55151         * tests/test-areadlink.h (test_areadlink): Likewise.
55152         Reported by Rainer Tammer.
55154 2010-07-31  Bruno Haible  <bruno@clisp.org>
55156         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
55157         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
55158         character, perform the search using U_STRCHR.
55159         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
55160         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
55161         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
55162         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
55163         Suggested by Paolo Bonzini.
55165 2010-07-31  Bruno Haible  <bruno@clisp.org>
55167         unistr/u*-strstr: Fix dependencies.
55168         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
55169         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
55170         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
55172 2010-07-31  Bruno Haible  <bruno@clisp.org>
55174         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
55175         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
55176         the beginning of the loop.
55177         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
55178         cases in 'switch' statement.
55180         unistr/u8-strchr: Fix several bugs.
55181         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
55182         the string. When not found, return NULL, not a pointer near the end.
55184         More tests for unistr/u8-strchr.
55185         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
55186         that the function does not read past the first occurrence of the byte
55187         being searched.
55188         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
55189         * tests/unistr/test-u16-strchr.c (main): New function.
55190         * tests/unistr/test-u32-strchr.c (main): New function.
55192 2010-07-31  Bruno Haible  <bruno@clisp.org>
55194         posix-modules: Ignore backup files of documentation files.
55195         * posix-modules: grep only through files named *.texi.
55197 2010-07-31  Bruno Haible  <bruno@clisp.org>
55199         symlinkat: Fix documentation.
55200         * doc/posix-functions/readlinkat.texi: Fix module name.
55202 2010-07-31  Bruno Haible  <bruno@clisp.org>
55204         fchownat: Replace also when chown has the trailing slash bug.
55205         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
55206         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
55207         introduced on 2010-04-10.
55208         Reported by Rainer Tammer.
55210 2010-07-31  Bruno Haible  <bruno@clisp.org>
55212         linkat: Work around AIX 7.1 bug.
55213         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
55214         whether linkat handles trailing slash correctly. If not, replace linkat
55215         and define LINKAT_TRAILING_SLASH_BUG.
55216         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
55217         check whether (fd1,file1) points to a directory if file1 or file2 ends
55218         in a slash. Code taken from lib/link.c.
55219         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
55220         Reported by Rainer Tammer.
55222 2010-07-31  Bruno Haible  <bruno@clisp.org>
55224         Correctly determine whether pow is available in libc on AIX 7 with xlc.
55225         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
55226         This disables an xlc optimization that was causing wrong test results.
55227         Reported by Rainer Tammer.
55229 2010-07-31  Bruno Haible  <bruno@clisp.org>
55231         iconv: Work around AIX 6.1..7.1 bug.
55232         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
55233         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
55234         cross-compiling, guess no on all versions of AIX.
55235         Reported by Rainer Tammer.
55237 2010-07-31  Bruno Haible  <bruno@clisp.org>
55239         readlink: Relax test a bit.
55240         * tests/test-readlink.h (test_readlink): Allow different errno value
55241         when readlink is called with a file name that ends in / and refers to
55242         a file.
55243         Suggested by Eric Blake.
55244         Reported by Rainer Tammer.
55246 2010-07-31  Bruno Haible  <bruno@clisp.org>
55248         copysign: Does not require -lm on glibc systems.
55249         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
55250         gl_COMMON_DOUBLE_MATHFUNC.
55251         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
55253 2010-07-31  Bruno Haible  <bruno@clisp.org>
55255         duplocale: Work around AIX 7.1 bug.
55256         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
55257         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
55258         * lib/duplocale.c (rpl_duplocale): Update comment.
55259         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
55260         Reported by Rainer Tammer.
55262 2010-07-30  Bruno Haible  <bruno@clisp.org>
55264         dirfd: Avoid link error on AIX 7.1.
55265         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
55266         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
55267         exist, set REPLACE_DIRFD.
55268         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
55269         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
55270         * doc/posix-functions/dirfd.texi: Update.
55271         Reported by Rainer Tammer.
55273 2010-07-30  Eric Blake  <eblake@redhat.com>
55275         strtod: next round of AIX fixes
55276         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
55277         exponent.
55278         * tests/test-strtod.c (main): Enhance tests.
55279         * doc/posix-functions/strtod.texi (strtod): Document next bug.
55280         Reported by Rainer Tammer.
55282         futimens: fix configure check
55283         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
55284         Reported by Bruno Haible.
55286 2010-07-30  Bruno Haible  <bruno@clisp.org>
55288         getline: Update regarding AIX.
55289         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
55290         Reported by Rainer Tammer.
55292 2010-07-30  Bruno Haible  <bruno@clisp.org>
55294         wcwidth: Drop replacement on AIX 7.
55295         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
55296         AIX 7.
55297         Reported by Rainer Tammer.
55299 2010-07-30  Bruno Haible  <bruno@clisp.org>
55301         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
55302         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
55303         a 'char *'.
55304         Reported by Rainer Tammer.
55306 2010-07-30  Bruno Haible  <bruno@clisp.org>
55308         unlink: Update regarding AIX.
55309         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
55310         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
55311         Reported by Rainer Tammer.
55313 2010-07-30  Bruno Haible  <bruno@clisp.org>
55315         symlink: Update regarding AIX.
55316         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
55317         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
55318         Reported by Rainer Tammer.
55320 2010-07-30  Bruno Haible  <bruno@clisp.org>
55322         strndup: Update regarding AIX.
55323         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
55324         AIX 7.
55325         Reported by Rainer Tammer.
55327 2010-07-30  Bruno Haible  <bruno@clisp.org>
55329         stat: Update regarding AIX.
55330         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
55331         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
55332         Reported by Rainer Tammer.
55334 2010-07-30  Bruno Haible  <bruno@clisp.org>
55336         truncl: Fix autoconf test.
55337         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
55338         whether truncl works.
55339         Reported by Rainer Tammer.
55341 2010-07-30  Bruno Haible  <bruno@clisp.org>
55343         round: Update regarding AIX.
55344         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
55345         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
55346         Reported by Rainer Tammer.
55348 2010-07-30  Bruno Haible  <bruno@clisp.org>
55350         rename: Update regarding AIX.
55351         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
55352         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
55353         Reported by Rainer Tammer.
55355 2010-07-30  Bruno Haible  <bruno@clisp.org>
55357         printf.m4: Update regarding AIX.
55358         * m4/printf.m4: Update comments regarding AIX.
55359         Reported by Rainer Tammer.
55361 2010-07-30  Bruno Haible  <bruno@clisp.org>
55363         iconv: Update regarding AIX.
55364         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
55365         AIX 7.
55366         Reported by Rainer Tammer.
55368 2010-07-30  Bruno Haible  <bruno@clisp.org>
55370         getopt: Update regarding AIX.
55371         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
55372         no on AIX.
55373         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
55374         Reported by Rainer Tammer.
55376 2010-07-30  Bruno Haible  <bruno@clisp.org>
55378         ldexpl; Update regarding AIX.
55379         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
55380         on AIX 7.
55381         Reported by Rainer Tammer.
55383 2010-07-30  Bruno Haible  <bruno@clisp.org>
55385         frexpl: Update regarding AIX.
55386         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
55387         on AIX 7.
55388         Reported by Rainer Tammer.
55390 2010-07-30  Bruno Haible  <bruno@clisp.org>
55392         open, fopen: Update regarding AIX.
55393         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
55394         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
55395         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
55396         * doc/posix-functions/fopen.texi: Likewise.
55397         Reported by Rainer Tammer.
55399 2010-07-30  Bruno Haible  <bruno@clisp.org>
55401         chown: Update doc regarding AIX.
55402         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
55403         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
55404         Reported by Rainer Tammer.
55406 2010-07-30  Eric Blake  <eblake@redhat.com>
55408         strtod: fix bug in replacement function on AIX
55409         * lib/strtod.c (strtod): Special case broken "0x" parse in
55410         underlying strtod.
55411         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
55412         * doc/posix-functions/strtod.texi (strtod): Likewise.
55413         Reported by Rainer Tammer.
55415 2010-07-30  Bruno Haible  <bruno@clisp.org>
55417         mbrlen: Fix cross-compilation guess for AIX.
55418         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
55419         guess. Leftover from 2008-12-22.
55421 2010-07-30  Bruno Haible  <bruno@clisp.org>
55423         mbrtowc: Fix cross-compilation guess for AIX.
55424         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
55425         guess. Leftover from 2008-12-21.
55427 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
55429         init.sh: work around trap limitation of some shells
55430         * tests/init.sh (setup_): Move exit trap outside of shell function.
55432 2010-07-29  Eric Blake  <eblake@redhat.com>
55434         strtod: aid debugging
55435         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
55436         understanding why strtod is rejected.
55438 2010-07-28  Bruno Haible  <bruno@clisp.org>
55440         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
55441         * lib/unistr/u8-chr.c: Include <string.h>.
55442         * tests/unistr/test-u8-chr.c: Likewise.
55443         * tests/unistr/test-u16-chr.c: Likewise.
55444         * tests/unistr/test-u32-chr.c: Likewise.
55445         * tests/unistr/test-u8-strchr.c: Likewise.
55446         * tests/unistr/test-u16-strchr.c: Likewise.
55447         * tests/unistr/test-u32-strchr.c: Likewise.
55448         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
55449         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
55450         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
55451         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
55453 2010-07-28  Bruno Haible  <bruno@clisp.org>
55455         Use spaces for indentation, not tabs.
55456         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
55458 2010-07-27  Bruno Haible  <bruno@clisp.org>
55460         mbspcasecmp: Fix function specification.
55461         * lib/string.in.h (mbspcasecmp): Fix specification comment.
55462         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
55463         Reported by Eric Blake <eblake@redhat.com>.
55465 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
55467         timespec: use cast and not conditional, as truncation isn't possible
55468         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
55469         instead of a conditional.  Comment about the situation in more detail.
55470         This undoes most of the 2009-10-29 patch.
55472 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
55474         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
55475         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
55476         * lib/unistr/u8-strchr.c: Likewise.
55477         * modules/unistr/u8-chr: Depend on memchr.
55479         unistr/u*-strchr: add tests
55480         * modules/unistr/u8-strchr-tests: New file.
55481         * modules/unistr/u16-strchr-tests: New file.
55482         * modules/unistr/u32-strchr-tests: New file.
55483         * tests/unistr/test-strchr.h: New file.
55484         * tests/unistr/test-u8-strchr.c: New file.
55485         * tests/unistr/test-u16-strchr.c: New file.
55486         * tests/unistr/test-u32-strchr.c: New file.
55488         unistr/u*-chr: test multibyte sequences more
55489         * tests/unistr/test-chr.h: Do complete testing of the characters in the
55490         test vector.
55491         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
55492         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
55493         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
55495         unistr/u*-chr: test multibyte sequences
55496         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
55498         unistr/u*-chr: prepare for multibyte tests
55499         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
55500         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
55501         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
55502         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
55503         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
55504         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
55506 2010-07-18  Bruno Haible  <bruno@clisp.org>
55508         unistr/u8-strchr: Optimize non-ASCII argument case.
55509         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
55510         because the first byte often matches anyway.
55511         Reported by Pádraig Brady <P@draigbrady.com>.
55513 2010-07-15  Karl Berry  <karl@gnu.org>
55515         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
55517 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
55519         getcwd: on Solaris, work better if ancestors are inaccessible
55520         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
55521         buffer and size, try again with a large buffer.  This works better
55522         on Solaris, since its getcwd succeeds even if the path to the root
55523         is inaccessible, and this is helpful in common cases such as .zfs
55524         hidden directories.  Problem reported by J Chapman Flack in
55525         http://lists.gnu.org/r/bug-tar/2010-06/msg00000.html
55526         Use system getcwd if it's declared, not merely if it's partly
55527         working; use the partly-working test only to avoid needless effort
55528         if the system getcwd fails.
55529         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
55530         comment that was already obsolete and is now even more obsolete.
55531         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
55532         now might call strdup.
55534 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
55536         pthread: Add enough so that coreutils/src/sort.c compiles.
55537         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
55538         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
55539         gnulib. Include <sched.h> and <time.h>, as per POSIX.
55540         Include <sys/types.h>, in case it defines pthread_t.
55541         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
55542         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
55543         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
55544         (pthread_rwlockattr_t, pthread_spinlock_t):
55545         New typedefs, if HAVE_PTHREAD_T is not defined.
55546         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
55547         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
55548         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
55549         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
55550         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
55551         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
55552         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
55553         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
55554         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
55555         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
55556         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
55557         New macros.
55558         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
55559         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
55560         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
55561         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
55562         (pthread_spin_unlock): New dummy functions.
55563         (pthread_create): Return EAGAIN; don't set errno.
55564         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
55565         require AC_C_INLINE.
55566         * modules/pthread (Depends-on): Add sched, time.
55567         (pthread.h): Use AM_V_GEN.
55569 2010-07-13  Bruno Haible  <bruno@clisp.org>
55571         striconveh: Don't malloc memory if the result buffer is sufficient.
55572         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
55573         buffer if its size is sufficient.
55574         Reported by Ludovic Courtès <ludo@gnu.org>.
55576 2010-07-13  Bruno Haible  <bruno@clisp.org>
55578         strtod: Add safety check.
55579         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
55581 2010-07-12  Bruno Haible  <bruno@clisp.org>
55583         Unify tests that set gl_cv_func_ldexpl_no_libm.
55584         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
55585         gl_FUNC_LDEXPL.
55586         (gl_FUNC_LDEXPL): Invoke it.
55587         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
55589 2010-07-12  Bruno Haible  <bruno@clisp.org>
55591         Unify tests that set gl_cv_func_ldexp_no_libm.
55592         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
55593         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
55594         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
55595         (configure.ac): Simply invoke gl_FUNC_LDEXP.
55596         * modules/strtod (Files): Add m4/ldexp.m4.
55598 2010-07-12  Bruno Haible  <bruno@clisp.org>
55600         Unify tests that set gl_cv_func_frexpl_no_libm.
55601         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
55602         gl_FUNC_FREXPL_NO_LIBM.
55603         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
55604         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
55606 2010-07-12  Bruno Haible  <bruno@clisp.org>
55608         Unify tests that set gl_cv_func_frexp_no_libm.
55609         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
55610         gl_FUNC_FREXP_NO_LIBM.
55611         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
55612         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
55614 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
55616         memcoll: clarify sizes versus lengths, document better, and tweak perf
55617         * lib/memcoll.c (strcoll_loop, memcoll0):
55618         Improve quality of descriptive comments.  Name variables
55619         consistently as to whether they are lengths (which do not include
55620         terminating null) versus sizes (which do).
55621         * lib/xmemcoll.c (xmemcoll0): Likewise.
55622         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
55623         returned when s1size == 0; this is easier to compile and saves
55624         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
55626 2010-07-12  Bruno Haible  <bruno@clisp.org>
55628         Tests for module '_Exit'.
55629         * modules/_Exit-tests: New file.
55630         * tests/test-_Exit.sh: New file.
55631         * tests/test-_Exit.c: New file.
55633         New module '_Exit'.
55634         * lib/stdlib.in.h (__attribute__): New macro.
55635         (_Exit): New declaration.
55636         * lib/_Exit.c: New file.
55637         * m4/_Exit.m4: New file.
55638         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
55639         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
55640         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
55641         * modules/_Exit: New file.
55642         * tests/test-stdlib-c++.cc (_Exit): Check signature.
55643         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
55645 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
55647         strtod: make it more-accurate typically, and don't require libm
55648         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
55649         Include limits.h.  Don't include string.h.
55650         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
55651         (locale_isspace): New function, so that no casts are needed to
55652         check whether *s is a space.
55653         (ldexp): Provide an unused dummy if not available.
55654         (scale_radix_exp, parse_number, underlying_strtod): New functions.
55655         (strtod): Use them.  This implementation prefers to use the
55656         underlying strtod if available, falling back on our own code
55657         only to fix known bugs.  This is more likely to produce an
55658         accurate result.  Also, it avoids the use of libm functions.
55659         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
55660         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
55661         was absent, but it caused a test failure with coreutils.
55662         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
55663         with libm.
55664         * modules/strtod (Makefile.am, Link): libm is no longer needed.
55665         * modules/strtod-tests (Makefile.am): Likewise.
55667 2010-07-11  Pádraig Brady  <P@draigBrady.com>
55668             Bruno Haible  <bruno@clisp.org>
55670         unistr/u8-strchr: Optimize ASCII argument case.
55671         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
55673 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
55675         (x)memcoll: minor tweaks
55676         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
55677         is after the type that it qualifies.
55678         (memcoll0): Likewise.
55679         * lib/memcoll.h (memcoll0): Likewise.
55680         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
55681         * lib/xmemcoll.h (xmemcoll0): Likewise.
55682         * lib/memcoll.c (memcoll0): Correct the comment.  This function
55683         differs from memcoll in that the NUL byte is part of the argument.
55684         Omit the abort-checks, as performance is a real issue here.  Plus,
55685         the checks were wrong anyway (an off-by-one error).  Omit local
55686         variable 'diff', as it's a bit clearer that way.
55687         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
55688         no longer needed.
55690 2010-07-08  Chen Guo  <chenguo4@yahoo.com>
55692         (x)memcoll: speedup when input is known to be NUL delimited
55693         * lib/memcoll.c: Include stdlib.
55694         (memcoll0): New function.
55695         (strcoll_loop): New function, refactored for use in both memcoll
55696         and memcoll0.
55697         * lib/memcoll.h (memcoll0): Add prototype.
55698         * lib/xmemcoll.c (xmemcoll0): New function.
55699         (collate_error): New function, refactored for use in both xmemcoll
55700         and xmemcoll0.
55701         * lib/xmemcoll.h (xmemcoll0): Add prototype.
55702         * m4/memcoll.m4: add inline invocation.
55704 2010-07-06  Pádraig Brady  <P@draigBrady.com>
55706         * build-aux/bootstrap: Remove any local translations
55707         from the translation project synchronization directory,
55708         so that local only translations are not distributed.
55710 2010-07-04  Bruno Haible  <bruno@clisp.org>
55712         fsusage: Clarify which code applies to which platforms.
55713         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
55714         platform.
55715         * lib/fsusage.c (get_fs_usage): Likewise.
55717 2010-07-04  Bruno Haible  <bruno@clisp.org>
55719         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
55720         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
55721         Reported by Martin Lambers <marlam@marlam.de>.
55723 2010-07-04  Jim Meyering  <meyering@redhat.com>
55725         hash: once again explicitly disallow insertion of NULL
55726         * lib/hash.c (hash_insert0): Reinstate just-removed test:
55727         inserting a NULL pointer cannot work with these functions.
55728         Add a comment with details.
55729         This reverts part of the 2010-07-01 commit, 5bef1a35
55730         "hash: extend module to deal with non-pointer keys".
55732 2010-07-01  Bruno Haible  <bruno@clisp.org>
55734         stdbool: Update doc.
55735         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
55736         Info from Christian Weisgerber <naddy@mips.inka.de>.
55738 2010-07-01  Jim Meyering  <meyering@redhat.com>
55740         hash: extend module to deal with non-pointer keys
55741         * lib/hash.c (hash_insert0): New interface, much like hash_insert
55742         but that allows insertion of non-pointer entries.
55743         Do not disallow an ENTRY value of NULL.
55744         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
55745         * lib/hash.h (hash_insert0): Declare.
55747 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
55749         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
55750         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
55751         not present (i.e. with autoconf 2.59 and when using gettextize, not
55752         gnulib), require AC_GNU_SOURCE instead.
55754 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
55756         idpriv-drop: Fix tests.
55757         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
55758         not to the test-idpriv-droptemp program.
55760 2010-06-29  Bruno Haible  <bruno@clisp.org>
55762         string: Fix syntax error with g++ 2.96.
55763         * lib/string.in.h (__pure__): Remove definition.
55764         (_GL_ATTRIBUTE_PURE): New macro.
55765         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
55766         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
55767         Reported by Christian Weisgerber <naddy@mips.inka.de>.
55769 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
55771         unitypes: Fix bug introduced on 2010-05-18.
55772         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
55774 2010-06-22  Eric Blake  <eblake@redhat.com>
55776         memmem: slight optimization
55777         * lib/str-two-way.h (critical_factorization): Update comments.
55778         Reduce work during factorization phase.
55779         Reported by Carlos Bueno <carlos@bueno.org>.
55781 2010-06-21  Bruno Haible  <bruno@clisp.org>
55783         Fix HAVE_CALLOC_POSIX misnomer.
55784         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
55785         !HAVE_CALLOC_POSIX.
55786         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
55787         HAVE_CALLOC_POSIX.
55788         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
55789         instead of HAVE_CALLOC_POSIX.
55790         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
55791         HAVE_CALLOC_POSIX.
55793         Use modern idiom for calloc() replacement.
55794         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
55795         AC_FUNC_CALLOC.
55796         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
55797         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
55798         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
55799         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
55800         (gl_REPLACE_CALLOC): New macro.
55802 2010-06-21  Bruno Haible  <bruno@clisp.org>
55804         Fix HAVE_REALLOC_POSIX misnomer.
55805         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
55806         !HAVE_REALLOC_POSIX.
55807         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
55808         HAVE_REALLOC_POSIX.
55809         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
55810         instead of HAVE_REALLOC_POSIX.
55811         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
55812         HAVE_REALLOC_POSIX.
55814         Use modern idiom for realloc() replacement.
55815         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
55816         AC_FUNC_REALLOC.
55817         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
55818         Autoconf's AC_FUNC_REALLOC.
55819         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
55820         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
55821         (gl_REPLACE_REALLOC): New macro.
55822         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
55824 2010-06-21  Bruno Haible  <bruno@clisp.org>
55826         Fix HAVE_MALLOC_POSIX misnomer.
55827         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
55828         !HAVE_MALLOC_POSIX.
55829         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
55830         HAVE_MALLOC_POSIX.
55831         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
55832         instead of HAVE_MALLOC_POSIX.
55833         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
55834         HAVE_MALLOC_POSIX.
55836         Use modern idiom for malloc() replacement.
55837         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
55838         AC_FUNC_MALLOC.
55839         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
55840         Autoconf's AC_FUNC_MALLOC.
55841         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
55842         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
55843         (gl_REPLACE_MALLOC): New macro.
55844         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
55846 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
55848         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
55849         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
55850         This macro takes 3 arguments, not 4.
55852 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
55854         ipv6: fix detection under mingw
55855         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
55856         in6_addr.
55858 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
55860         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
55861         that strtod() works when cross-compiling to a glibc version known
55862         to work.
55864 2010-06-15  Bruno Haible  <bruno@clisp.org>
55866         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
55868 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
55870         select: Correct timeout.
55871         * lib/select.c (rpl_select): Compute wait_timeout correctly.
55873 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
55875         git-version-gen: init shell var to avoid env var influence
55876         * build-aux/git-version-gen (v): Init shell var to empty.
55878 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
55880         priv-set: Don't assume that priv.h exists merely because getppriv does.
55881         See Jan Andersen's bug report about AIX 5L in
55882         http://lists.gnu.org/r/bug-tar/2010-06/msg00019.html
55883         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
55884         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
55885         * lib/priv-set.h: Likewise.
55886         * tests/test-priv-set.c: Likewise.
55888 2010-06-13  Bruno Haible  <bruno@clisp.org>
55890         relocatable: Make it easier to test whether to install wrappers.
55891         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
55892         RELOCATABLE_VIA_WRAPPER.
55894 2010-06-13  Bruno Haible  <bruno@clisp.org>
55896         gnulib-tool: Display specified modules and dependencies differently.
55897         * gnulib-tool (func_show_module_list): New function.
55898         (func_import, func_create_testdir): Invoke it.
55899         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
55901 2010-06-13  Bruno Haible  <bruno@clisp.org>
55903         gnulib-tool: Align code of func_import and func_create_testdir.
55904         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
55905         specified_modules.
55907 2010-06-12  Jim Meyering  <meyering@redhat.com>
55909         test-inttostr: avoid spurious failure on Solaris 9
55910         * tests/test-inttostr.c (main): Skip the test when snprintf fails
55911         to accept "%ju".  Reported by Bruno Haible.
55913 2010-06-11  Jim Meyering  <meyering@redhat.com>
55915         test-sys_socket: mark variables as used more readably
55916         * tests/test-sys_socket.c (main): Mark otherwise unused variables
55917         as "used" explicitly via (void) statement casts.  This is more
55918         readable than using them in an artificial return expression.
55919         Suggestion from Bruno Haible.
55921 2010-06-11  Bruno Haible  <bruno@clisp.org>
55923         Avoid some more warnings from "gcc -Wwrite-strings".
55924         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
55925         to 'const char *'.
55926         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
55927         * tests/test-c-strcasestr.c (main): Likewise.
55928         * tests/test-mbscasestr1.c (main): Likewise.
55929         * tests/test-mbscasestr2.c (main): Likewise.
55930         * tests/test-memmem.c (main): Likewise.
55931         * tests/test-strstr.c (main): Likewise.
55932         * tests/test-strcasestr.c (main): Likewise.
55934 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55936         init.sh: change framework_failure_ to fail with status 99, not 1
55937         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
55938         automake's parallel-tests rule that this is an unexpected failure,
55939         even if the test is listed in XFAIL_TESTS.
55941 2010-06-11  Jim Meyering  <meyering@redhat.com>
55943         test-inttostr: avoid warnings about 4-6KB literal strings
55944         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
55945         Include "macros.h", for its definition of ASSERT.
55946         (CK): s/assert/ASSERT/
55947         * modules/inttostr-tests (Files): Add macros.h.
55949         init.sh: don't use $ME_ or skip_ before they are defined
55950         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
55951         their first uses.  Also hoist their companions: warn_, fail_,
55952         framework_failure_, $stderr_fileno.  Prompted by a patch from
55953         Stefano Lattarini.
55955         test-sys_socket: avoid set-but-not-used warnings from gcc
55956         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
55957         avoid warning about set-but-not-used variables.
55959         test-xvasprintf: avoid 'const' discard warnings
55960         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
55961         "const" when assigning from literal strings.
55962         (test_xasprintf): Add "void" in function argument list to placate
55963         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
55965         tests: avoid compilation warnings in argmatch and exclude tests...
55966         in packages that define ARGMATCH_DIE_DECL, like coreutils.
55967         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
55968         Since it always exits, declare with the "noreturn" attribute.
55969         * tests/test-argmatch.c: Likewise.
55971         tests: avoid 'const' discard warnings in mbsstr tests
55972         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
55973         * tests/test-mbsstr2.c (main): Likewise.
55975         test-verify: avoid warning from gcc's -Wmissing-declarations
55976         * tests/test-verify.c (function): Declare to be static.
55978         test-inttostr.c: include <string.h> for use of strcmp
55979         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
55981         test-linkat: avoid failed assertion on "other" architectures
55982         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
55983         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
55984         sparc: https://bugs.launchpad.net/bugs/591968
55986 2010-06-11  Jim Meyering  <meyering@redhat.com>
55988         printf.m4: avoid autoconf's "Expanded Before Required" warning
55989         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
55990         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
55991         autoconf warning.
55993 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
55995         Replacement header templates are now named with ".in", not "_".
55996         * doc/gnulib-intro.texi: Correct.
55998 2010-06-10  Jim Meyering  <meyering@redhat.com>
56000         inttostr-tests: depend on snprintf, not snprintf-posix
56001         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
56002         snprintf-posix, to avoid this aclocal failure:
56003           missing file gnulib-tests/vasnprintf.c
56004           configure.ac:45: error: expected source file, required through \
56005           AC_LIBSOURCES, not found
56007 2010-06-10  Jim Meyering  <meyering@redhat.com>
56009         inttostr: add a new function, inttostr, and tests
56010         The namesake function was not available.  The existence of the
56011         template file, inttostr.c makes its addition nontrivial.
56012         * lib/anytostr.c: Rename from inttostr.c.
56013         (anytostr): Rename from inttostr.
56014         * lib/inttostr.c: New file.
56015         * modules/inttostr (Files): Add anytostr.c.
56016         (Makefile.am): Set lib_SOURCES instead of ...
56017         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
56018         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
56019         * lib/offtostr.c: Likewise.
56020         * lib/uinttostr.c: Likewise.
56021         * lib/umaxtostr.c: Likewise.
56022         * modules/inttostr-tests: New file.
56023         * tests/test-inttostr.c: New file.  Test these functions.
56025 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
56026             Bruno Haible  <bruno@clisp.org>
56028         Add "Extending Gnulib" chapter to manual.
56029         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
56030         chapter.
56031         (Extending Gnulib): New chapter.
56032         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
56033         chapter.
56035 2010-06-09  Bruno Haible  <bruno@clisp.org>
56037         Avoid relocwrapper link errors due to gnulib replacement functions.
56038         * lib/areadlink.c: Use the system's malloc, realloc functions.
56039         (areadlink): Set errno to ENOMEM explicitly.
56040         * modules/areadlink (Depends-on): Remove malloc-posix.
56041         Reported by Ben Pfaff <blp@cs.stanford.edu>.
56043 2010-06-09  Bruno Haible  <bruno@clisp.org>
56045         Avoid relocwrapper link errors due to gnulib replacement functions.
56046         * lib/canonicalize-lgpl.c: Use the system's malloc function.
56047         * lib/malloca.c: Likewise.
56048         * lib/relocatable.c: Likewise.
56049         * lib/progreloc.c: Use the system's malloc, sprintf functions.
56050         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
56051         * lib/setenv.c: Use the system's malloc, realloc functions.
56052         * lib/strerror.c: Use the system's sprintf function.
56053         Reported by Ben Pfaff <blp@cs.stanford.edu>.
56055 2010-06-04  Bruno Haible  <bruno@clisp.org>
56057         Prefer documented low-level autoconf macro names.
56058         * m4/lib-link.m4: Use m4_translit instead of translit.
56059         * m4/environ.m4: Likewise.
56060         * m4/mathfunc.m4: Likewise.
56061         * m4/onceonly.m4: Likewise.
56062         * m4/stdint.m4: Likewise.
56063         Suggested by Eric Blake.
56065 2010-06-04  Martin Lambers  <marlam@marlam.de>
56066             Bruno Haible  <bruno@clisp.org>
56068         havelib: Allow library names with '+' characters.
56069         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
56070         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
56072 2010-06-09  Bruno Haible  <bruno@clisp.org>
56074         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
56075         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
56076         realloc failed.
56078 2010-06-08  Peter Simons  <simons@cryp.to>
56080         maint.mk: make the news-check rule more configurable
56081         * top/maint.mk (news-check-lines-spec): New variable.
56082         (news-check): Use "sed -n 1,10p" in place of "head".
56084 2010-06-07  Jim Meyering  <meyering@redhat.com>
56086         do-release-commit-and-tag: fix typo in --help
56087         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
56089         regex: avoid new dead-code warning with gcc-4.6.0
56090         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
56091         if-block containing a while-loop.  It's been unused for at least
56092         5 years.
56094 2010-06-05  Bruno Haible  <bruno@clisp.org>
56096         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
56097         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
56099 2010-06-04  Bruno Haible  <bruno@clisp.org>
56101         Update to GNU gettext 0.18.1.
56102         * modules/gettext (configure.ac): Require gettext infrastructure from
56103         version 0.18.1.
56105 2010-06-03  Bruno Haible  <bruno@clisp.org>
56107         Don't use AC_LIBOBJ with file names in subdirectories.
56108         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
56109         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
56110         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
56111         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
56112         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
56113         gl_LIBUNISTRING_LIBSOURCE.
56114         (Makefile.am): Augment lib_SOURCES here, conditionally.
56115         * NEWS: Drop requirement for Automake option 'subdir-objects'.
56117 2010-06-03  Bruno Haible  <bruno@clisp.org>
56119         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
56120         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
56121         expansion does not end with a newline.
56122         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
56123         unnecessary newline.
56125 2010-06-03  Bruno Haible  <bruno@clisp.org>
56127         Reduce dependencies.
56128         * tests/test-quotearg.h: New file, extracted from
56129         tests/test-quotearg.c.
56130         * tests/test-quotearg-simple.c: New file, extracted from
56131         tests/test-quotearg.c.
56132         * tests/test-quotearg.c: Don't include <ctype.h>.
56133         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
56134         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
56135         use_quote_double_quotes, use_quotearg_colon): Moved to
56136         tests/test-quotearg.h.
56137         (results_g, flag_results, custom_quotes, custom_results): Moved
56138         to tests/test-quotearg-simple.c.
56139         (main): Moved the part that does not depend on gettext to
56140         tests/test-quotearg-simple.c. Return 77 if the test cannot be
56141         performed.
56142         * modules/quotearg-simple: New file.
56143         * modules/quotearg-simple-tests: New file.
56144         * modules/quotearg (Depends-on): Add quotearg-simple.
56145         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
56146         (Files): Add tests/test-quotearg.h.
56147         Reported by Paolo Bonzini.
56149 2010-06-03  Bruno Haible  <bruno@clisp.org>
56151         Reduce dependencies.
56152         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
56154 2010-06-03  Bruno Haible  <bruno@clisp.org>
56156         time: Undefine more broken macros.
56157         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
56158         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
56159         Reported by Eric Blake.
56161 2010-06-03  Bruno Haible  <bruno@clisp.org>
56163         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
56164         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
56165         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
56166         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
56167         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
56168         Reported by Ludovic Courtès <ludo@gnu.org>.
56170 2010-06-02  Eric Blake  <eblake@redhat.com>
56172         time: work with mingw + pthreads-win32 library
56173         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
56174         if timespec is defined only in pthread.h.
56175         * modules/time (Makefile.am): Substitute it.
56176         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
56177         <pthread.h>, when needed.
56178         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
56179         from the library.
56181 2010-05-31  Bruno Haible  <bruno@clisp.org>
56183         Avoid expanding two macros in the wrong order.
56184         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
56185         gl_LIBUNISTRING if it is defined.
56186         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
56187         autoconf >= 2.64.
56188         Reported by Ludovic Courtès <ludo@gnu.org>.
56190 2010-05-27  Jim Meyering  <meyering@redhat.com>
56192         maint.mk: also prohibit "#undef" of always-defined symbols
56193         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
56194         Allow more than one space before the symbol name.
56195         (sc_prohibit_always-defined_macros): Use grep's -E, now that
56196         the regexp uses alternation.
56198 2010-05-26  Eric Blake  <eblake@redhat.com>
56200         maint.mk: avoid echo -e
56201         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
56202         Convert all uses of echo -* to printf.
56203         Reported by Matthias Bolte.
56205 2010-05-25  Bruno Haible  <bruno@clisp.org>
56207         Update to GNU gettext 0.18, part 2.
56208         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
56209         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
56211 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56213         Add missing include in test-pwrite.c.
56214         * tests/test-pwrite.c: Include string.h, for strcmp.
56216 2010-05-24  Bruno Haible  <bruno@clisp.org>
56218         * NEWS: Mention requirement for Automake option 'subdir-objects'.
56220 2010-05-24  Bruno Haible  <bruno@clisp.org>
56222         Don't use conversion with transliteration in u{8,16,32}_strcoll.
56223         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
56224         iconveh_error argument.
56225         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
56226         U_STRCONV_TO_LOCALE.
56227         * lib/unistr/u16-strcoll.c: Likewise.
56228         * lib/unistr/u32-strcoll.c: Likewise.
56229         * modules/unistr/u8-strcoll (Depends-on): Add
56230         uniconv/u8-strconv-to-enc, localcharset. Remove
56231         uniconv/u8-strconv-to-locale.
56232         (configure.ac): Bump version number.
56233         * modules/unistr/u16-strcoll (Depends-on): Add
56234         uniconv/u16-strconv-to-enc, localcharset. Remove
56235         uniconv/u16-strconv-to-locale.
56236         (configure.ac): Bump version number.
56237         * modules/unistr/u32-strcoll (Depends-on): Add
56238         uniconv/u32-strconv-to-enc, localcharset. Remove
56239         uniconv/u32-strconv-to-locale.
56240         (configure.ac): Bump version number.
56242 2010-05-24  Bruno Haible  <bruno@clisp.org>
56244         Avoid a test failure on NetBSD 5.0.
56245         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
56246         an iconv() bug.
56248 2010-05-24  Bruno Haible  <bruno@clisp.org>
56250         Adjust #include directive style.
56251         * modules/regex (Includes): Recommend to write <regex.h>.
56253 2010-05-24  Bruno Haible  <bruno@clisp.org>
56255         regex: Don't require alloca.
56256         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
56257         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
56258         only inside if (0).
56260 2010-05-23  Jim Meyering  <meyering@redhat.com>
56262         test-renameat.c: include <sys/stat.h>
56263         * tests/test-renameat.c: Include <sys/stat.h>; required for
56264         definition of S_IS* macros.
56266 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
56268         Update maintainer documentation for 'relocatable-prog' module.
56269         * doc/relocatable-maint.texi: Update.
56270         Comments by Bruno Haible.
56272 2010-05-23  Bruno Haible  <bruno@clisp.org>
56274         git-merge-changelog: Enable --split-merged-entry by default.
56275         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
56276         (usage): Don't mention this option any more.
56277         Reported by Ralf Wildenhues.
56279 2010-05-23  Jim Meyering  <meyering@redhat.com>
56281         test-pwrite: do not leave behind a test file named "out"
56282         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
56283         The trivial-looking use of init.sh is really necessary.
56284         It ensures that the temporary file, "out", is created in
56285         a temporary directory, and removed upon termination.
56286         * tests/test-pwrite.sh: Re-add file.
56287         * modules/pwrite-tests: Reference it.
56289 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56291         Fix output redirection buglet in init.sh.
56292         * tests/init.sh: Fix redirection of stderr.
56294 2010-05-20  Simon Josefsson  <simon@josefsson.org>
56296         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
56298 2010-05-17  Simon Josefsson  <simon@josefsson.org>
56300         * modules/valgrind-tests: New file.
56301         * m4/valgrind-tests.m4: New file.
56302         * doc/valgrind-tests.texi: New file.
56303         * doc/gnulib.texi (Running self-tests under valgrind): New
56304         section.
56306 2010-05-19  Bruno Haible  <bruno@clisp.org>
56308         Clean up dead code in recent commit.
56309         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
56310         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
56311         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
56312         Suggested by Paolo Bonzini.
56314 2010-05-19  Bruno Haible  <bruno@clisp.org>
56316         Avoid valgrind error reports from libunistring.
56317         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
56318         * modules/libunistring (Files): Add it.
56319         * modules/libunistring-optional (Files): Likewise.
56321 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
56322             Bruno Haible  <bruno@clisp.org>
56324         New module 'libunistring-optional'.
56325         * modules/libunistring-optional: New file.
56326         * m4/libunistring-base.m4: New file.
56327         * m4/libunistring-optional.m4: New file.
56328         * lib/unicase.in.h: Renamed from lib/unicase.h.
56329         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
56330         * lib/unictype.in.h: Renamed from lib/unictype.h.
56331         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
56332         * lib/uniname.in.h: Renamed from lib/uniname.h.
56333         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
56334         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
56335         * lib/unistr.in.h: Renamed from lib/unistr.h.
56336         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
56337         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
56338         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
56339         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
56340         gl_LIBUNISTRING. If the library was found, determine the installed
56341         version and set LIBUNISTRING_VERSION.
56342         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
56343         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
56344         handle a configuration option --with-included-libunistring.
56345         * modules/libunistring (Files): Add m4/absolute-header.m4.
56346         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
56347         Add m4/libunistring-base.m4.
56348         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
56349         (Makefile.am): Build unicase.h from unicase.in.h.
56350         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
56351         Add m4/libunistring-base.m4.
56352         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
56353         (Makefile.am): Build uniconv.h from uniconv.in.h.
56354         * modules/unictype/base (Files): Use unictype.in.h instead of
56355         unictype.h. Add m4/libunistring-base.m4.
56356         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
56357         (Makefile.am): Build unictype.h from unictype.in.h.
56358         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
56359         Add m4/libunistring-base.m4.
56360         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
56361         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
56362         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
56363         Add m4/libunistring-base.m4.
56364         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
56365         (Makefile.am): Build uniname.h from uniname.in.h.
56366         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
56367         Add m4/libunistring-base.m4.
56368         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
56369         (Makefile.am): Build uninorm.h from uninorm.in.h.
56370         * modules/unistdio/base (Files): Use unistdio.in.h instead of
56371         unistdio.h. Add m4/libunistring-base.m4.
56372         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
56373         (Makefile.am): Build unistdio.h from unistdio.in.h.
56374         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
56375         Add m4/libunistring-base.m4.
56376         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
56377         (Makefile.am): Build unistr.h from unistr.in.h.
56378         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
56379         Add m4/libunistring-base.m4.
56380         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
56381         (Makefile.am): Build unitypes.h from unitypes.in.h.
56382         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
56383         Add m4/libunistring-base.m4.
56384         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
56385         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
56386         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
56387         uniwidth.h. Add m4/libunistring-base.m4.
56388         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
56389         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
56390         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
56391         instead of augmenting lib_SOURCES.
56392         * modules/unicase/empty-suffix-context: Likewise.
56393         * modules/unicase/locale-language: Likewise.
56394         * modules/unicase/tolower: Likewise.
56395         * modules/unicase/totitle: Likewise.
56396         * modules/unicase/toupper: Likewise.
56397         * modules/unicase/u8-casecmp: Likewise.
56398         * modules/unicase/u8-casecoll: Likewise.
56399         * modules/unicase/u8-casefold: Likewise.
56400         * modules/unicase/u8-casexfrm: Likewise.
56401         * modules/unicase/u8-ct-casefold: Likewise.
56402         * modules/unicase/u8-ct-tolower: Likewise.
56403         * modules/unicase/u8-ct-totitle: Likewise.
56404         * modules/unicase/u8-ct-toupper: Likewise.
56405         * modules/unicase/u8-is-cased: Likewise.
56406         * modules/unicase/u8-is-casefolded: Likewise.
56407         * modules/unicase/u8-is-lowercase: Likewise.
56408         * modules/unicase/u8-is-titlecase: Likewise.
56409         * modules/unicase/u8-is-uppercase: Likewise.
56410         * modules/unicase/u8-prefix-context: Likewise.
56411         * modules/unicase/u8-suffix-context: Likewise.
56412         * modules/unicase/u8-tolower: Likewise.
56413         * modules/unicase/u8-totitle: Likewise.
56414         * modules/unicase/u8-toupper: Likewise.
56415         * modules/unicase/u16-casecmp: Likewise.
56416         * modules/unicase/u16-casecoll: Likewise.
56417         * modules/unicase/u16-casefold: Likewise.
56418         * modules/unicase/u16-casexfrm: Likewise.
56419         * modules/unicase/u16-ct-casefold: Likewise.
56420         * modules/unicase/u16-ct-tolower: Likewise.
56421         * modules/unicase/u16-ct-totitle: Likewise.
56422         * modules/unicase/u16-ct-toupper: Likewise.
56423         * modules/unicase/u16-is-cased: Likewise.
56424         * modules/unicase/u16-is-casefolded: Likewise.
56425         * modules/unicase/u16-is-lowercase: Likewise.
56426         * modules/unicase/u16-is-titlecase: Likewise.
56427         * modules/unicase/u16-is-uppercase: Likewise.
56428         * modules/unicase/u16-prefix-context: Likewise.
56429         * modules/unicase/u16-suffix-context: Likewise.
56430         * modules/unicase/u16-tolower: Likewise.
56431         * modules/unicase/u16-totitle: Likewise.
56432         * modules/unicase/u16-toupper: Likewise.
56433         * modules/unicase/u32-casecmp: Likewise.
56434         * modules/unicase/u32-casecoll: Likewise.
56435         * modules/unicase/u32-casefold: Likewise.
56436         * modules/unicase/u32-casexfrm: Likewise.
56437         * modules/unicase/u32-ct-casefold: Likewise.
56438         * modules/unicase/u32-ct-tolower: Likewise.
56439         * modules/unicase/u32-ct-totitle: Likewise.
56440         * modules/unicase/u32-ct-toupper: Likewise.
56441         * modules/unicase/u32-is-cased: Likewise.
56442         * modules/unicase/u32-is-casefolded: Likewise.
56443         * modules/unicase/u32-is-lowercase: Likewise.
56444         * modules/unicase/u32-is-titlecase: Likewise.
56445         * modules/unicase/u32-is-uppercase: Likewise.
56446         * modules/unicase/u32-prefix-context: Likewise.
56447         * modules/unicase/u32-suffix-context: Likewise.
56448         * modules/unicase/u32-tolower: Likewise.
56449         * modules/unicase/u32-totitle: Likewise.
56450         * modules/unicase/u32-toupper: Likewise.
56451         * modules/unicase/ulc-casecmp: Likewise.
56452         * modules/unicase/ulc-casecoll: Likewise.
56453         * modules/unicase/ulc-casexfrm: Likewise.
56454         * modules/uniconv/u8-conv-from-enc: Likewise.
56455         * modules/uniconv/u8-conv-to-enc: Likewise.
56456         * modules/uniconv/u8-strconv-from-enc: Likewise.
56457         * modules/uniconv/u8-strconv-from-locale: Likewise.
56458         * modules/uniconv/u8-strconv-to-enc: Likewise.
56459         * modules/uniconv/u8-strconv-to-locale: Likewise.
56460         * modules/uniconv/u16-conv-from-enc: Likewise.
56461         * modules/uniconv/u16-conv-to-enc: Likewise.
56462         * modules/uniconv/u16-strconv-from-enc: Likewise.
56463         * modules/uniconv/u16-strconv-from-locale: Likewise.
56464         * modules/uniconv/u16-strconv-to-enc: Likewise.
56465         * modules/uniconv/u16-strconv-to-locale: Likewise.
56466         * modules/uniconv/u32-conv-from-enc: Likewise.
56467         * modules/uniconv/u32-conv-to-enc: Likewise.
56468         * modules/uniconv/u32-strconv-from-enc: Likewise.
56469         * modules/uniconv/u32-strconv-from-locale: Likewise.
56470         * modules/uniconv/u32-strconv-to-enc: Likewise.
56471         * modules/uniconv/u32-strconv-to-locale: Likewise.
56472         * modules/unictype/bidicategory-byname: Likewise.
56473         * modules/unictype/bidicategory-name: Likewise.
56474         * modules/unictype/bidicategory-of: Likewise.
56475         * modules/unictype/bidicategory-test: Likewise.
56476         * modules/unictype/block-list: Likewise.
56477         * modules/unictype/block-test: Likewise.
56478         * modules/unictype/category-C: Likewise.
56479         * modules/unictype/category-Cc: Likewise.
56480         * modules/unictype/category-Cf: Likewise.
56481         * modules/unictype/category-Cn: Likewise.
56482         * modules/unictype/category-Co: Likewise.
56483         * modules/unictype/category-Cs: Likewise.
56484         * modules/unictype/category-L: Likewise.
56485         * modules/unictype/category-Ll: Likewise.
56486         * modules/unictype/category-Lm: Likewise.
56487         * modules/unictype/category-Lo: Likewise.
56488         * modules/unictype/category-Lt: Likewise.
56489         * modules/unictype/category-Lu: Likewise.
56490         * modules/unictype/category-M: Likewise.
56491         * modules/unictype/category-Mc: Likewise.
56492         * modules/unictype/category-Me: Likewise.
56493         * modules/unictype/category-Mn: Likewise.
56494         * modules/unictype/category-N: Likewise.
56495         * modules/unictype/category-Nd: Likewise.
56496         * modules/unictype/category-Nl: Likewise.
56497         * modules/unictype/category-No: Likewise.
56498         * modules/unictype/category-P: Likewise.
56499         * modules/unictype/category-Pc: Likewise.
56500         * modules/unictype/category-Pd: Likewise.
56501         * modules/unictype/category-Pe: Likewise.
56502         * modules/unictype/category-Pf: Likewise.
56503         * modules/unictype/category-Pi: Likewise.
56504         * modules/unictype/category-Po: Likewise.
56505         * modules/unictype/category-Ps: Likewise.
56506         * modules/unictype/category-S: Likewise.
56507         * modules/unictype/category-Sc: Likewise.
56508         * modules/unictype/category-Sk: Likewise.
56509         * modules/unictype/category-Sm: Likewise.
56510         * modules/unictype/category-So: Likewise.
56511         * modules/unictype/category-Z: Likewise.
56512         * modules/unictype/category-Zl: Likewise.
56513         * modules/unictype/category-Zp: Likewise.
56514         * modules/unictype/category-Zs: Likewise.
56515         * modules/unictype/category-and: Likewise.
56516         * modules/unictype/category-and-not: Likewise.
56517         * modules/unictype/category-byname: Likewise.
56518         * modules/unictype/category-name: Likewise.
56519         * modules/unictype/category-none: Likewise.
56520         * modules/unictype/category-of: Likewise.
56521         * modules/unictype/category-or: Likewise.
56522         * modules/unictype/category-test: Likewise.
56523         * modules/unictype/combining-class: Likewise.
56524         * modules/unictype/ctype-alnum: Likewise.
56525         * modules/unictype/ctype-alpha: Likewise.
56526         * modules/unictype/ctype-blank: Likewise.
56527         * modules/unictype/ctype-cntrl: Likewise.
56528         * modules/unictype/ctype-digit: Likewise.
56529         * modules/unictype/ctype-graph: Likewise.
56530         * modules/unictype/ctype-lower: Likewise.
56531         * modules/unictype/ctype-print: Likewise.
56532         * modules/unictype/ctype-punct: Likewise.
56533         * modules/unictype/ctype-space: Likewise.
56534         * modules/unictype/ctype-upper: Likewise.
56535         * modules/unictype/ctype-xdigit: Likewise.
56536         * modules/unictype/decimal-digit: Likewise.
56537         * modules/unictype/digit: Likewise.
56538         * modules/unictype/mirror: Likewise.
56539         * modules/unictype/numeric: Likewise.
56540         * modules/unictype/property-alphabetic: Likewise.
56541         * modules/unictype/property-ascii-hex-digit: Likewise.
56542         * modules/unictype/property-bidi-arabic-digit: Likewise.
56543         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
56544         * modules/unictype/property-bidi-block-separator: Likewise.
56545         * modules/unictype/property-bidi-boundary-neutral: Likewise.
56546         * modules/unictype/property-bidi-common-separator: Likewise.
56547         * modules/unictype/property-bidi-control: Likewise.
56548         * modules/unictype/property-bidi-embedding-or-override: Likewise.
56549         * modules/unictype/property-bidi-eur-num-separator: Likewise.
56550         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
56551         * modules/unictype/property-bidi-european-digit: Likewise.
56552         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
56553         * modules/unictype/property-bidi-left-to-right: Likewise.
56554         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
56555         * modules/unictype/property-bidi-other-neutral: Likewise.
56556         * modules/unictype/property-bidi-pdf: Likewise.
56557         * modules/unictype/property-bidi-segment-separator: Likewise.
56558         * modules/unictype/property-bidi-whitespace: Likewise.
56559         * modules/unictype/property-byname: Likewise.
56560         * modules/unictype/property-combining: Likewise.
56561         * modules/unictype/property-composite: Likewise.
56562         * modules/unictype/property-currency-symbol: Likewise.
56563         * modules/unictype/property-dash: Likewise.
56564         * modules/unictype/property-decimal-digit: Likewise.
56565         * modules/unictype/property-default-ignorable-code-point: Likewise.
56566         * modules/unictype/property-deprecated: Likewise.
56567         * modules/unictype/property-diacritic: Likewise.
56568         * modules/unictype/property-extender: Likewise.
56569         * modules/unictype/property-format-control: Likewise.
56570         * modules/unictype/property-grapheme-base: Likewise.
56571         * modules/unictype/property-grapheme-extend: Likewise.
56572         * modules/unictype/property-grapheme-link: Likewise.
56573         * modules/unictype/property-hex-digit: Likewise.
56574         * modules/unictype/property-hyphen: Likewise.
56575         * modules/unictype/property-id-continue: Likewise.
56576         * modules/unictype/property-id-start: Likewise.
56577         * modules/unictype/property-ideographic: Likewise.
56578         * modules/unictype/property-ids-binary-operator: Likewise.
56579         * modules/unictype/property-ids-trinary-operator: Likewise.
56580         * modules/unictype/property-ignorable-control: Likewise.
56581         * modules/unictype/property-iso-control: Likewise.
56582         * modules/unictype/property-join-control: Likewise.
56583         * modules/unictype/property-left-of-pair: Likewise.
56584         * modules/unictype/property-line-separator: Likewise.
56585         * modules/unictype/property-logical-order-exception: Likewise.
56586         * modules/unictype/property-lowercase: Likewise.
56587         * modules/unictype/property-math: Likewise.
56588         * modules/unictype/property-non-break: Likewise.
56589         * modules/unictype/property-not-a-character: Likewise.
56590         * modules/unictype/property-numeric: Likewise.
56591         * modules/unictype/property-other-alphabetic: Likewise.
56592         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
56593         * modules/unictype/property-other-grapheme-extend: Likewise.
56594         * modules/unictype/property-other-id-continue: Likewise.
56595         * modules/unictype/property-other-id-start: Likewise.
56596         * modules/unictype/property-other-lowercase: Likewise.
56597         * modules/unictype/property-other-math: Likewise.
56598         * modules/unictype/property-other-uppercase: Likewise.
56599         * modules/unictype/property-paired-punctuation: Likewise.
56600         * modules/unictype/property-paragraph-separator: Likewise.
56601         * modules/unictype/property-pattern-syntax: Likewise.
56602         * modules/unictype/property-pattern-white-space: Likewise.
56603         * modules/unictype/property-private-use: Likewise.
56604         * modules/unictype/property-punctuation: Likewise.
56605         * modules/unictype/property-quotation-mark: Likewise.
56606         * modules/unictype/property-radical: Likewise.
56607         * modules/unictype/property-sentence-terminal: Likewise.
56608         * modules/unictype/property-soft-dotted: Likewise.
56609         * modules/unictype/property-space: Likewise.
56610         * modules/unictype/property-terminal-punctuation: Likewise.
56611         * modules/unictype/property-test: Likewise.
56612         * modules/unictype/property-titlecase: Likewise.
56613         * modules/unictype/property-unassigned-code-value: Likewise.
56614         * modules/unictype/property-unified-ideograph: Likewise.
56615         * modules/unictype/property-uppercase: Likewise.
56616         * modules/unictype/property-variation-selector: Likewise.
56617         * modules/unictype/property-white-space: Likewise.
56618         * modules/unictype/property-xid-continue: Likewise.
56619         * modules/unictype/property-xid-start: Likewise.
56620         * modules/unictype/property-zero-width: Likewise.
56621         * modules/unictype/scripts: Likewise.
56622         * modules/unictype/syntax-c-ident: Likewise.
56623         * modules/unictype/syntax-c-whitespace: Likewise.
56624         * modules/unictype/syntax-java-ident: Likewise.
56625         * modules/unictype/syntax-java-whitespace: Likewise.
56626         * modules/unilbrk/u8-possible-linebreaks: Likewise.
56627         * modules/unilbrk/u8-width-linebreaks: Likewise.
56628         * modules/unilbrk/u16-possible-linebreaks: Likewise.
56629         * modules/unilbrk/u16-width-linebreaks: Likewise.
56630         * modules/unilbrk/u32-possible-linebreaks: Likewise.
56631         * modules/unilbrk/u32-width-linebreaks: Likewise.
56632         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
56633         * modules/unilbrk/ulc-width-linebreaks: Likewise.
56634         * modules/uniname/uniname: Likewise.
56635         * modules/uninorm/canonical-decomposition: Likewise.
56636         * modules/uninorm/composition: Likewise.
56637         * modules/uninorm/decomposing-form: Likewise.
56638         * modules/uninorm/decomposition: Likewise.
56639         * modules/uninorm/filter: Likewise.
56640         * modules/uninorm/nfc: Likewise.
56641         * modules/uninorm/nfd: Likewise.
56642         * modules/uninorm/nfkc: Likewise.
56643         * modules/uninorm/nfkd: Likewise.
56644         * modules/uninorm/u8-normalize: Likewise.
56645         * modules/uninorm/u8-normcmp: Likewise.
56646         * modules/uninorm/u8-normcoll: Likewise.
56647         * modules/uninorm/u8-normxfrm: Likewise.
56648         * modules/uninorm/u16-normalize: Likewise.
56649         * modules/uninorm/u16-normcmp: Likewise.
56650         * modules/uninorm/u16-normcoll: Likewise.
56651         * modules/uninorm/u16-normxfrm: Likewise.
56652         * modules/uninorm/u32-normalize: Likewise.
56653         * modules/uninorm/u32-normcmp: Likewise.
56654         * modules/uninorm/u32-normcoll: Likewise.
56655         * modules/uninorm/u32-normxfrm: Likewise.
56656         * modules/unistdio/u8-asnprintf: Likewise.
56657         * modules/unistdio/u8-asprintf: Likewise.
56658         * modules/unistdio/u8-snprintf: Likewise.
56659         * modules/unistdio/u8-sprintf: Likewise.
56660         * modules/unistdio/u8-u8-asnprintf: Likewise.
56661         * modules/unistdio/u8-u8-asprintf: Likewise.
56662         * modules/unistdio/u8-u8-snprintf: Likewise.
56663         * modules/unistdio/u8-u8-sprintf: Likewise.
56664         * modules/unistdio/u8-u8-vasnprintf: Likewise.
56665         * modules/unistdio/u8-u8-vasprintf: Likewise.
56666         * modules/unistdio/u8-u8-vsnprintf: Likewise.
56667         * modules/unistdio/u8-u8-vsprintf: Likewise.
56668         * modules/unistdio/u8-vasnprintf: Likewise.
56669         * modules/unistdio/u8-vasprintf: Likewise.
56670         * modules/unistdio/u8-vsnprintf: Likewise.
56671         * modules/unistdio/u8-vsprintf: Likewise.
56672         * modules/unistdio/u16-asnprintf: Likewise.
56673         * modules/unistdio/u16-asprintf: Likewise.
56674         * modules/unistdio/u16-snprintf: Likewise.
56675         * modules/unistdio/u16-sprintf: Likewise.
56676         * modules/unistdio/u16-u16-asnprintf: Likewise.
56677         * modules/unistdio/u16-u16-asprintf: Likewise.
56678         * modules/unistdio/u16-u16-snprintf: Likewise.
56679         * modules/unistdio/u16-u16-sprintf: Likewise.
56680         * modules/unistdio/u16-u16-vasnprintf: Likewise.
56681         * modules/unistdio/u16-u16-vasprintf: Likewise.
56682         * modules/unistdio/u16-u16-vsnprintf: Likewise.
56683         * modules/unistdio/u16-u16-vsprintf: Likewise.
56684         * modules/unistdio/u16-vasnprintf: Likewise.
56685         * modules/unistdio/u16-vasprintf: Likewise.
56686         * modules/unistdio/u16-vsnprintf: Likewise.
56687         * modules/unistdio/u16-vsprintf: Likewise.
56688         * modules/unistdio/u32-asnprintf: Likewise.
56689         * modules/unistdio/u32-asprintf: Likewise.
56690         * modules/unistdio/u32-snprintf: Likewise.
56691         * modules/unistdio/u32-sprintf: Likewise.
56692         * modules/unistdio/u32-u32-asnprintf: Likewise.
56693         * modules/unistdio/u32-u32-asprintf: Likewise.
56694         * modules/unistdio/u32-u32-snprintf: Likewise.
56695         * modules/unistdio/u32-u32-sprintf: Likewise.
56696         * modules/unistdio/u32-u32-vasnprintf: Likewise.
56697         * modules/unistdio/u32-u32-vasprintf: Likewise.
56698         * modules/unistdio/u32-u32-vsnprintf: Likewise.
56699         * modules/unistdio/u32-u32-vsprintf: Likewise.
56700         * modules/unistdio/u32-vasnprintf: Likewise.
56701         * modules/unistdio/u32-vasprintf: Likewise.
56702         * modules/unistdio/u32-vsnprintf: Likewise.
56703         * modules/unistdio/u32-vsprintf: Likewise.
56704         * modules/unistdio/ulc-asnprintf: Likewise.
56705         * modules/unistdio/ulc-asprintf: Likewise.
56706         * modules/unistdio/ulc-fprintf: Likewise.
56707         * modules/unistdio/ulc-snprintf: Likewise.
56708         * modules/unistdio/ulc-sprintf: Likewise.
56709         * modules/unistdio/ulc-vasnprintf: Likewise.
56710         * modules/unistdio/ulc-vasprintf: Likewise.
56711         * modules/unistdio/ulc-vfprintf: Likewise.
56712         * modules/unistdio/ulc-vsnprintf: Likewise.
56713         * modules/unistdio/ulc-vsprintf: Likewise.
56714         * modules/unistr/u8-check: Likewise.
56715         * modules/unistr/u8-chr: Likewise.
56716         * modules/unistr/u8-cmp: Likewise.
56717         * modules/unistr/u8-cmp2: Likewise.
56718         * modules/unistr/u8-cpy: Likewise.
56719         * modules/unistr/u8-cpy-alloc: Likewise.
56720         * modules/unistr/u8-endswith: Likewise.
56721         * modules/unistr/u8-mblen: Likewise.
56722         * modules/unistr/u8-mbsnlen: Likewise.
56723         * modules/unistr/u8-mbtouc: Likewise.
56724         * modules/unistr/u8-mbtouc-unsafe: Likewise.
56725         * modules/unistr/u8-mbtoucr: Likewise.
56726         * modules/unistr/u8-move: Likewise.
56727         * modules/unistr/u8-next: Likewise.
56728         * modules/unistr/u8-prev: Likewise.
56729         * modules/unistr/u8-set: Likewise.
56730         * modules/unistr/u8-startswith: Likewise.
56731         * modules/unistr/u8-stpcpy: Likewise.
56732         * modules/unistr/u8-stpncpy: Likewise.
56733         * modules/unistr/u8-strcat: Likewise.
56734         * modules/unistr/u8-strchr: Likewise.
56735         * modules/unistr/u8-strcmp: Likewise.
56736         * modules/unistr/u8-strcoll: Likewise.
56737         * modules/unistr/u8-strcpy: Likewise.
56738         * modules/unistr/u8-strcspn: Likewise.
56739         * modules/unistr/u8-strdup: Likewise.
56740         * modules/unistr/u8-strlen: Likewise.
56741         * modules/unistr/u8-strmblen: Likewise.
56742         * modules/unistr/u8-strmbtouc: Likewise.
56743         * modules/unistr/u8-strncat: Likewise.
56744         * modules/unistr/u8-strncmp: Likewise.
56745         * modules/unistr/u8-strncpy: Likewise.
56746         * modules/unistr/u8-strnlen: Likewise.
56747         * modules/unistr/u8-strpbrk: Likewise.
56748         * modules/unistr/u8-strrchr: Likewise.
56749         * modules/unistr/u8-strspn: Likewise.
56750         * modules/unistr/u8-strstr: Likewise.
56751         * modules/unistr/u8-strtok: Likewise.
56752         * modules/unistr/u8-to-u16: Likewise.
56753         * modules/unistr/u8-to-u32: Likewise.
56754         * modules/unistr/u8-uctomb: Likewise.
56755         * modules/unistr/u16-check: Likewise.
56756         * modules/unistr/u16-chr: Likewise.
56757         * modules/unistr/u16-cmp: Likewise.
56758         * modules/unistr/u16-cmp2: Likewise.
56759         * modules/unistr/u16-cpy: Likewise.
56760         * modules/unistr/u16-cpy-alloc: Likewise.
56761         * modules/unistr/u16-endswith: Likewise.
56762         * modules/unistr/u16-mblen: Likewise.
56763         * modules/unistr/u16-mbsnlen: Likewise.
56764         * modules/unistr/u16-mbtouc: Likewise.
56765         * modules/unistr/u16-mbtouc-unsafe: Likewise.
56766         * modules/unistr/u16-mbtoucr: Likewise.
56767         * modules/unistr/u16-move: Likewise.
56768         * modules/unistr/u16-next: Likewise.
56769         * modules/unistr/u16-prev: Likewise.
56770         * modules/unistr/u16-set: Likewise.
56771         * modules/unistr/u16-startswith: Likewise.
56772         * modules/unistr/u16-stpcpy: Likewise.
56773         * modules/unistr/u16-stpncpy: Likewise.
56774         * modules/unistr/u16-strcat: Likewise.
56775         * modules/unistr/u16-strchr: Likewise.
56776         * modules/unistr/u16-strcmp: Likewise.
56777         * modules/unistr/u16-strcoll: Likewise.
56778         * modules/unistr/u16-strcpy: Likewise.
56779         * modules/unistr/u16-strcspn: Likewise.
56780         * modules/unistr/u16-strdup: Likewise.
56781         * modules/unistr/u16-strlen: Likewise.
56782         * modules/unistr/u16-strmblen: Likewise.
56783         * modules/unistr/u16-strmbtouc: Likewise.
56784         * modules/unistr/u16-strncat: Likewise.
56785         * modules/unistr/u16-strncmp: Likewise.
56786         * modules/unistr/u16-strncpy: Likewise.
56787         * modules/unistr/u16-strnlen: Likewise.
56788         * modules/unistr/u16-strpbrk: Likewise.
56789         * modules/unistr/u16-strrchr: Likewise.
56790         * modules/unistr/u16-strspn: Likewise.
56791         * modules/unistr/u16-strstr: Likewise.
56792         * modules/unistr/u16-strtok: Likewise.
56793         * modules/unistr/u16-to-u32: Likewise.
56794         * modules/unistr/u16-to-u8: Likewise.
56795         * modules/unistr/u16-uctomb: Likewise.
56796         * modules/unistr/u32-check: Likewise.
56797         * modules/unistr/u32-chr: Likewise.
56798         * modules/unistr/u32-cmp: Likewise.
56799         * modules/unistr/u32-cmp2: Likewise.
56800         * modules/unistr/u32-cpy: Likewise.
56801         * modules/unistr/u32-cpy-alloc: Likewise.
56802         * modules/unistr/u32-endswith: Likewise.
56803         * modules/unistr/u32-mblen: Likewise.
56804         * modules/unistr/u32-mbsnlen: Likewise.
56805         * modules/unistr/u32-mbtouc: Likewise.
56806         * modules/unistr/u32-mbtouc-unsafe: Likewise.
56807         * modules/unistr/u32-mbtoucr: Likewise.
56808         * modules/unistr/u32-move: Likewise.
56809         * modules/unistr/u32-next: Likewise.
56810         * modules/unistr/u32-prev: Likewise.
56811         * modules/unistr/u32-set: Likewise.
56812         * modules/unistr/u32-startswith: Likewise.
56813         * modules/unistr/u32-stpcpy: Likewise.
56814         * modules/unistr/u32-stpncpy: Likewise.
56815         * modules/unistr/u32-strcat: Likewise.
56816         * modules/unistr/u32-strchr: Likewise.
56817         * modules/unistr/u32-strcmp: Likewise.
56818         * modules/unistr/u32-strcoll: Likewise.
56819         * modules/unistr/u32-strcpy: Likewise.
56820         * modules/unistr/u32-strcspn: Likewise.
56821         * modules/unistr/u32-strdup: Likewise.
56822         * modules/unistr/u32-strlen: Likewise.
56823         * modules/unistr/u32-strmblen: Likewise.
56824         * modules/unistr/u32-strmbtouc: Likewise.
56825         * modules/unistr/u32-strncat: Likewise.
56826         * modules/unistr/u32-strncmp: Likewise.
56827         * modules/unistr/u32-strncpy: Likewise.
56828         * modules/unistr/u32-strnlen: Likewise.
56829         * modules/unistr/u32-strpbrk: Likewise.
56830         * modules/unistr/u32-strrchr: Likewise.
56831         * modules/unistr/u32-strspn: Likewise.
56832         * modules/unistr/u32-strstr: Likewise.
56833         * modules/unistr/u32-strtok: Likewise.
56834         * modules/unistr/u32-to-u16: Likewise.
56835         * modules/unistr/u32-to-u8: Likewise.
56836         * modules/unistr/u32-uctomb: Likewise.
56837         * modules/uniwbrk/u8-wordbreaks: Likewise.
56838         * modules/uniwbrk/u16-wordbreaks: Likewise.
56839         * modules/uniwbrk/u32-wordbreaks: Likewise.
56840         * modules/uniwbrk/ulc-wordbreaks: Likewise.
56841         * modules/uniwbrk/wordbreak-property: Likewise.
56842         * modules/uniwidth/u8-strwidth: Likewise.
56843         * modules/uniwidth/u8-width: Likewise.
56844         * modules/uniwidth/u16-strwidth: Likewise.
56845         * modules/uniwidth/u16-width: Likewise.
56846         * modules/uniwidth/u32-strwidth: Likewise.
56847         * modules/uniwidth/u32-width: Likewise.
56848         * modules/uniwidth/width: Likewise.
56849         * modules/unicase/cased-tests (Makefile.am): Link all test programs
56850         with $(LIBUNISTRING).
56851         * modules/unicase/ignorable-tests: Likewise.
56852         * modules/unicase/locale-language-tests: Likewise.
56853         * modules/unicase/tolower-tests: Likewise.
56854         * modules/unicase/totitle-tests: Likewise.
56855         * modules/unicase/toupper-tests: Likewise.
56856         * modules/unicase/u8-casecmp-tests: Likewise.
56857         * modules/unicase/u8-casecoll-tests: Likewise.
56858         * modules/unicase/u8-casefold-tests: Likewise.
56859         * modules/unicase/u8-is-cased-tests: Likewise.
56860         * modules/unicase/u8-is-casefolded-tests: Likewise.
56861         * modules/unicase/u8-is-lowercase-tests: Likewise.
56862         * modules/unicase/u8-is-titlecase-tests: Likewise.
56863         * modules/unicase/u8-is-uppercase-tests: Likewise.
56864         * modules/unicase/u8-tolower-tests: Likewise.
56865         * modules/unicase/u8-totitle-tests: Likewise.
56866         * modules/unicase/u8-toupper-tests: Likewise.
56867         * modules/unicase/u16-casecmp-tests: Likewise.
56868         * modules/unicase/u16-casecoll-tests: Likewise.
56869         * modules/unicase/u16-casefold-tests: Likewise.
56870         * modules/unicase/u16-is-cased-tests: Likewise.
56871         * modules/unicase/u16-is-casefolded-tests: Likewise.
56872         * modules/unicase/u16-is-lowercase-tests: Likewise.
56873         * modules/unicase/u16-is-titlecase-tests: Likewise.
56874         * modules/unicase/u16-is-uppercase-tests: Likewise.
56875         * modules/unicase/u16-tolower-tests: Likewise.
56876         * modules/unicase/u16-totitle-tests: Likewise.
56877         * modules/unicase/u16-toupper-tests: Likewise.
56878         * modules/unicase/u32-casecmp-tests: Likewise.
56879         * modules/unicase/u32-casecoll-tests: Likewise.
56880         * modules/unicase/u32-casefold-tests: Likewise.
56881         * modules/unicase/u32-is-cased-tests: Likewise.
56882         * modules/unicase/u32-is-casefolded-tests: Likewise.
56883         * modules/unicase/u32-is-lowercase-tests: Likewise.
56884         * modules/unicase/u32-is-titlecase-tests: Likewise.
56885         * modules/unicase/u32-is-uppercase-tests: Likewise.
56886         * modules/unicase/u32-tolower-tests: Likewise.
56887         * modules/unicase/u32-totitle-tests: Likewise.
56888         * modules/unicase/u32-toupper-tests: Likewise.
56889         * modules/unicase/ulc-casecmp-tests: Likewise.
56890         * modules/unicase/ulc-casecoll-tests: Likewise.
56891         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
56892         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
56893         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
56894         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
56895         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
56896         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
56897         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
56898         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
56899         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
56900         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
56901         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
56902         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
56903         * modules/unictype/bidicategory-byname-tests: Likewise.
56904         * modules/unictype/bidicategory-name-tests: Likewise.
56905         * modules/unictype/bidicategory-of-tests: Likewise.
56906         * modules/unictype/bidicategory-test-tests: Likewise.
56907         * modules/unictype/block-list-tests: Likewise.
56908         * modules/unictype/block-of-tests: Likewise.
56909         * modules/unictype/block-test-tests: Likewise.
56910         * modules/unictype/category-C-tests: Likewise.
56911         * modules/unictype/category-Cc-tests: Likewise.
56912         * modules/unictype/category-Cf-tests: Likewise.
56913         * modules/unictype/category-Cn-tests: Likewise.
56914         * modules/unictype/category-Co-tests: Likewise.
56915         * modules/unictype/category-Cs-tests: Likewise.
56916         * modules/unictype/category-L-tests: Likewise.
56917         * modules/unictype/category-Ll-tests: Likewise.
56918         * modules/unictype/category-Lm-tests: Likewise.
56919         * modules/unictype/category-Lo-tests: Likewise.
56920         * modules/unictype/category-Lt-tests: Likewise.
56921         * modules/unictype/category-Lu-tests: Likewise.
56922         * modules/unictype/category-M-tests: Likewise.
56923         * modules/unictype/category-Mc-tests: Likewise.
56924         * modules/unictype/category-Me-tests: Likewise.
56925         * modules/unictype/category-Mn-tests: Likewise.
56926         * modules/unictype/category-N-tests: Likewise.
56927         * modules/unictype/category-Nd-tests: Likewise.
56928         * modules/unictype/category-Nl-tests: Likewise.
56929         * modules/unictype/category-No-tests: Likewise.
56930         * modules/unictype/category-P-tests: Likewise.
56931         * modules/unictype/category-Pc-tests: Likewise.
56932         * modules/unictype/category-Pd-tests: Likewise.
56933         * modules/unictype/category-Pe-tests: Likewise.
56934         * modules/unictype/category-Pf-tests: Likewise.
56935         * modules/unictype/category-Pi-tests: Likewise.
56936         * modules/unictype/category-Po-tests: Likewise.
56937         * modules/unictype/category-Ps-tests: Likewise.
56938         * modules/unictype/category-S-tests: Likewise.
56939         * modules/unictype/category-Sc-tests: Likewise.
56940         * modules/unictype/category-Sk-tests: Likewise.
56941         * modules/unictype/category-Sm-tests: Likewise.
56942         * modules/unictype/category-So-tests: Likewise.
56943         * modules/unictype/category-Z-tests: Likewise.
56944         * modules/unictype/category-Zl-tests: Likewise.
56945         * modules/unictype/category-Zp-tests: Likewise.
56946         * modules/unictype/category-Zs-tests: Likewise.
56947         * modules/unictype/category-and-not-tests: Likewise.
56948         * modules/unictype/category-and-tests: Likewise.
56949         * modules/unictype/category-byname-tests: Likewise.
56950         * modules/unictype/category-name-tests: Likewise.
56951         * modules/unictype/category-none-tests: Likewise.
56952         * modules/unictype/category-of-tests: Likewise.
56953         * modules/unictype/category-or-tests: Likewise.
56954         * modules/unictype/category-test-withtable-tests: Likewise.
56955         * modules/unictype/combining-class-tests: Likewise.
56956         * modules/unictype/ctype-alnum-tests: Likewise.
56957         * modules/unictype/ctype-alpha-tests: Likewise.
56958         * modules/unictype/ctype-blank-tests: Likewise.
56959         * modules/unictype/ctype-cntrl-tests: Likewise.
56960         * modules/unictype/ctype-digit-tests: Likewise.
56961         * modules/unictype/ctype-graph-tests: Likewise.
56962         * modules/unictype/ctype-lower-tests: Likewise.
56963         * modules/unictype/ctype-print-tests: Likewise.
56964         * modules/unictype/ctype-punct-tests: Likewise.
56965         * modules/unictype/ctype-space-tests: Likewise.
56966         * modules/unictype/ctype-upper-tests: Likewise.
56967         * modules/unictype/ctype-xdigit-tests: Likewise.
56968         * modules/unictype/decimal-digit-tests: Likewise.
56969         * modules/unictype/digit-tests: Likewise.
56970         * modules/unictype/mirror-tests: Likewise.
56971         * modules/unictype/numeric-tests: Likewise.
56972         * modules/unictype/property-alphabetic-tests: Likewise.
56973         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
56974         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
56975         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
56976         * modules/unictype/property-bidi-block-separator-tests: Likewise.
56977         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
56978         * modules/unictype/property-bidi-common-separator-tests: Likewise.
56979         * modules/unictype/property-bidi-control-tests: Likewise.
56980         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
56981         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
56982         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
56983         * modules/unictype/property-bidi-european-digit-tests: Likewise.
56984         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
56985         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
56986         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
56987         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
56988         * modules/unictype/property-bidi-pdf-tests: Likewise.
56989         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
56990         * modules/unictype/property-bidi-whitespace-tests: Likewise.
56991         * modules/unictype/property-byname-tests: Likewise.
56992         * modules/unictype/property-combining-tests: Likewise.
56993         * modules/unictype/property-composite-tests: Likewise.
56994         * modules/unictype/property-currency-symbol-tests: Likewise.
56995         * modules/unictype/property-dash-tests: Likewise.
56996         * modules/unictype/property-decimal-digit-tests: Likewise.
56997         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
56998         * modules/unictype/property-deprecated-tests: Likewise.
56999         * modules/unictype/property-diacritic-tests: Likewise.
57000         * modules/unictype/property-extender-tests: Likewise.
57001         * modules/unictype/property-format-control-tests: Likewise.
57002         * modules/unictype/property-grapheme-base-tests: Likewise.
57003         * modules/unictype/property-grapheme-extend-tests: Likewise.
57004         * modules/unictype/property-grapheme-link-tests: Likewise.
57005         * modules/unictype/property-hex-digit-tests: Likewise.
57006         * modules/unictype/property-hyphen-tests: Likewise.
57007         * modules/unictype/property-id-continue-tests: Likewise.
57008         * modules/unictype/property-id-start-tests: Likewise.
57009         * modules/unictype/property-ideographic-tests: Likewise.
57010         * modules/unictype/property-ids-binary-operator-tests: Likewise.
57011         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
57012         * modules/unictype/property-ignorable-control-tests: Likewise.
57013         * modules/unictype/property-iso-control-tests: Likewise.
57014         * modules/unictype/property-join-control-tests: Likewise.
57015         * modules/unictype/property-left-of-pair-tests: Likewise.
57016         * modules/unictype/property-line-separator-tests: Likewise.
57017         * modules/unictype/property-logical-order-exception-tests: Likewise.
57018         * modules/unictype/property-lowercase-tests: Likewise.
57019         * modules/unictype/property-math-tests: Likewise.
57020         * modules/unictype/property-non-break-tests: Likewise.
57021         * modules/unictype/property-not-a-character-tests: Likewise.
57022         * modules/unictype/property-numeric-tests: Likewise.
57023         * modules/unictype/property-other-alphabetic-tests: Likewise.
57024         * modules/unictype/property-other-default-ignorable-code-point-tests:
57025         Likewise.
57026         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
57027         * modules/unictype/property-other-id-continue-tests: Likewise.
57028         * modules/unictype/property-other-id-start-tests: Likewise.
57029         * modules/unictype/property-other-lowercase-tests: Likewise.
57030         * modules/unictype/property-other-math-tests: Likewise.
57031         * modules/unictype/property-other-uppercase-tests: Likewise.
57032         * modules/unictype/property-paired-punctuation-tests: Likewise.
57033         * modules/unictype/property-paragraph-separator-tests: Likewise.
57034         * modules/unictype/property-pattern-syntax-tests: Likewise.
57035         * modules/unictype/property-pattern-white-space-tests: Likewise.
57036         * modules/unictype/property-private-use-tests: Likewise.
57037         * modules/unictype/property-punctuation-tests: Likewise.
57038         * modules/unictype/property-quotation-mark-tests: Likewise.
57039         * modules/unictype/property-radical-tests: Likewise.
57040         * modules/unictype/property-sentence-terminal-tests: Likewise.
57041         * modules/unictype/property-soft-dotted-tests: Likewise.
57042         * modules/unictype/property-space-tests: Likewise.
57043         * modules/unictype/property-terminal-punctuation-tests: Likewise.
57044         * modules/unictype/property-test-tests: Likewise.
57045         * modules/unictype/property-titlecase-tests: Likewise.
57046         * modules/unictype/property-unassigned-code-value-tests: Likewise.
57047         * modules/unictype/property-unified-ideograph-tests: Likewise.
57048         * modules/unictype/property-uppercase-tests: Likewise.
57049         * modules/unictype/property-variation-selector-tests: Likewise.
57050         * modules/unictype/property-white-space-tests: Likewise.
57051         * modules/unictype/property-xid-continue-tests: Likewise.
57052         * modules/unictype/property-xid-start-tests: Likewise.
57053         * modules/unictype/property-zero-width-tests: Likewise.
57054         * modules/unictype/scripts-tests: Likewise.
57055         * modules/unictype/syntax-c-ident-tests: Likewise.
57056         * modules/unictype/syntax-c-whitespace-tests: Likewise.
57057         * modules/unictype/syntax-java-ident-tests: Likewise.
57058         * modules/unictype/syntax-java-whitespace-tests: Likewise.
57059         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
57060         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
57061         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
57062         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
57063         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
57064         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
57065         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
57066         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
57067         * modules/uniname/uniname-tests: Likewise.
57068         * modules/uninorm/canonical-decomposition-tests: Likewise.
57069         * modules/uninorm/compat-decomposition-tests: Likewise.
57070         * modules/uninorm/composition-tests: Likewise.
57071         * modules/uninorm/decomposing-form-tests: Likewise.
57072         * modules/uninorm/decomposition-tests: Likewise.
57073         * modules/uninorm/filter-tests: Likewise.
57074         * modules/uninorm/nfc-tests: Likewise.
57075         * modules/uninorm/nfd-tests: Likewise.
57076         * modules/uninorm/nfkc-tests: Likewise.
57077         * modules/uninorm/nfkd-tests: Likewise.
57078         * modules/uninorm/u8-normcmp-tests: Likewise.
57079         * modules/uninorm/u8-normcoll-tests: Likewise.
57080         * modules/uninorm/u16-normcmp-tests: Likewise.
57081         * modules/uninorm/u16-normcoll-tests: Likewise.
57082         * modules/uninorm/u32-normcmp-tests: Likewise.
57083         * modules/uninorm/u32-normcoll-tests: Likewise.
57084         * modules/unistdio/u8-asnprintf-tests: Likewise.
57085         * modules/unistdio/u8-vasnprintf-tests: Likewise.
57086         * modules/unistdio/u8-vasprintf-tests: Likewise.
57087         * modules/unistdio/u8-vsnprintf-tests: Likewise.
57088         * modules/unistdio/u8-vsprintf-tests: Likewise.
57089         * modules/unistdio/u16-asnprintf-tests: Likewise.
57090         * modules/unistdio/u16-vasnprintf-tests: Likewise.
57091         * modules/unistdio/u16-vasprintf-tests: Likewise.
57092         * modules/unistdio/u16-vsnprintf-tests: Likewise.
57093         * modules/unistdio/u16-vsprintf-tests: Likewise.
57094         * modules/unistdio/u32-asnprintf-tests: Likewise.
57095         * modules/unistdio/u32-vasnprintf-tests: Likewise.
57096         * modules/unistdio/u32-vasprintf-tests: Likewise.
57097         * modules/unistdio/u32-vsnprintf-tests: Likewise.
57098         * modules/unistdio/u32-vsprintf-tests: Likewise.
57099         * modules/unistdio/ulc-asnprintf-tests: Likewise.
57100         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
57101         * modules/unistdio/ulc-vasprintf-tests: Likewise.
57102         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
57103         * modules/unistdio/ulc-vsprintf-tests: Likewise.
57104         * modules/unistr/u8-check-tests: Likewise.
57105         * modules/unistr/u8-chr-tests: Likewise.
57106         * modules/unistr/u8-cmp-tests: Likewise.
57107         * modules/unistr/u8-cmp2-tests: Likewise.
57108         * modules/unistr/u8-cpy-alloc-tests: Likewise.
57109         * modules/unistr/u8-cpy-tests: Likewise.
57110         * modules/unistr/u8-mblen-tests: Likewise.
57111         * modules/unistr/u8-mbsnlen-tests: Likewise.
57112         * modules/unistr/u8-mbtouc-tests: Likewise.
57113         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
57114         * modules/unistr/u8-mbtoucr-tests: Likewise.
57115         * modules/unistr/u8-move-tests: Likewise.
57116         * modules/unistr/u8-next-tests: Likewise.
57117         * modules/unistr/u8-prev-tests: Likewise.
57118         * modules/unistr/u8-set-tests: Likewise.
57119         * modules/unistr/u8-stpcpy-tests: Likewise.
57120         * modules/unistr/u8-stpncpy-tests: Likewise.
57121         * modules/unistr/u8-strcat-tests: Likewise.
57122         * modules/unistr/u8-strcmp-tests: Likewise.
57123         * modules/unistr/u8-strcoll-tests: Likewise.
57124         * modules/unistr/u8-strcpy-tests: Likewise.
57125         * modules/unistr/u8-strdup-tests: Likewise.
57126         * modules/unistr/u8-strlen-tests: Likewise.
57127         * modules/unistr/u8-strmblen-tests: Likewise.
57128         * modules/unistr/u8-strmbtouc-tests: Likewise.
57129         * modules/unistr/u8-strncat-tests: Likewise.
57130         * modules/unistr/u8-strncmp-tests: Likewise.
57131         * modules/unistr/u8-strncpy-tests: Likewise.
57132         * modules/unistr/u8-strnlen-tests: Likewise.
57133         * modules/unistr/u8-to-u16-tests: Likewise.
57134         * modules/unistr/u8-to-u32-tests: Likewise.
57135         * modules/unistr/u8-uctomb-tests: Likewise.
57136         * modules/unistr/u16-check-tests: Likewise.
57137         * modules/unistr/u16-chr-tests: Likewise.
57138         * modules/unistr/u16-cmp-tests: Likewise.
57139         * modules/unistr/u16-cmp2-tests: Likewise.
57140         * modules/unistr/u16-cpy-alloc-tests: Likewise.
57141         * modules/unistr/u16-cpy-tests: Likewise.
57142         * modules/unistr/u16-mblen-tests: Likewise.
57143         * modules/unistr/u16-mbsnlen-tests: Likewise.
57144         * modules/unistr/u16-mbtouc-tests: Likewise.
57145         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
57146         * modules/unistr/u16-mbtoucr-tests: Likewise.
57147         * modules/unistr/u16-move-tests: Likewise.
57148         * modules/unistr/u16-next-tests: Likewise.
57149         * modules/unistr/u16-prev-tests: Likewise.
57150         * modules/unistr/u16-set-tests: Likewise.
57151         * modules/unistr/u16-stpcpy-tests: Likewise.
57152         * modules/unistr/u16-stpncpy-tests: Likewise.
57153         * modules/unistr/u16-strcat-tests: Likewise.
57154         * modules/unistr/u16-strcmp-tests: Likewise.
57155         * modules/unistr/u16-strcoll-tests: Likewise.
57156         * modules/unistr/u16-strcpy-tests: Likewise.
57157         * modules/unistr/u16-strdup-tests: Likewise.
57158         * modules/unistr/u16-strlen-tests: Likewise.
57159         * modules/unistr/u16-strmblen-tests: Likewise.
57160         * modules/unistr/u16-strmbtouc-tests: Likewise.
57161         * modules/unistr/u16-strncat-tests: Likewise.
57162         * modules/unistr/u16-strncmp-tests: Likewise.
57163         * modules/unistr/u16-strncpy-tests: Likewise.
57164         * modules/unistr/u16-strnlen-tests: Likewise.
57165         * modules/unistr/u16-to-u32-tests: Likewise.
57166         * modules/unistr/u16-to-u8-tests: Likewise.
57167         * modules/unistr/u16-uctomb-tests: Likewise.
57168         * modules/unistr/u32-check-tests: Likewise.
57169         * modules/unistr/u32-chr-tests: Likewise.
57170         * modules/unistr/u32-cmp-tests: Likewise.
57171         * modules/unistr/u32-cmp2-tests: Likewise.
57172         * modules/unistr/u32-cpy-alloc-tests: Likewise.
57173         * modules/unistr/u32-cpy-tests: Likewise.
57174         * modules/unistr/u32-mblen-tests: Likewise.
57175         * modules/unistr/u32-mbsnlen-tests: Likewise.
57176         * modules/unistr/u32-mbtouc-tests: Likewise.
57177         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
57178         * modules/unistr/u32-mbtoucr-tests: Likewise.
57179         * modules/unistr/u32-move-tests: Likewise.
57180         * modules/unistr/u32-next-tests: Likewise.
57181         * modules/unistr/u32-prev-tests: Likewise.
57182         * modules/unistr/u32-set-tests: Likewise.
57183         * modules/unistr/u32-stpcpy-tests: Likewise.
57184         * modules/unistr/u32-stpncpy-tests: Likewise.
57185         * modules/unistr/u32-strcat-tests: Likewise.
57186         * modules/unistr/u32-strcmp-tests: Likewise.
57187         * modules/unistr/u32-strcoll-tests: Likewise.
57188         * modules/unistr/u32-strcpy-tests: Likewise.
57189         * modules/unistr/u32-strdup-tests: Likewise.
57190         * modules/unistr/u32-strlen-tests: Likewise.
57191         * modules/unistr/u32-strmblen-tests: Likewise.
57192         * modules/unistr/u32-strmbtouc-tests: Likewise.
57193         * modules/unistr/u32-strncat-tests: Likewise.
57194         * modules/unistr/u32-strncmp-tests: Likewise.
57195         * modules/unistr/u32-strncpy-tests: Likewise.
57196         * modules/unistr/u32-strnlen-tests: Likewise.
57197         * modules/unistr/u32-to-u16-tests: Likewise.
57198         * modules/unistr/u32-to-u8-tests: Likewise.
57199         * modules/unistr/u32-uctomb-tests: Likewise.
57200         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
57201         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
57202         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
57203         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
57204         * modules/uniwidth/u8-strwidth-tests: Likewise.
57205         * modules/uniwidth/u8-width-tests: Likewise.
57206         * modules/uniwidth/u16-strwidth-tests: Likewise.
57207         * modules/uniwidth/u16-width-tests: Likewise.
57208         * modules/uniwidth/u32-strwidth-tests: Likewise.
57209         * modules/uniwidth/u32-width-tests: Likewise.
57210         * modules/uniwidth/width-tests: Likewise.
57212 2010-05-18  Richard Jones  <rjones@redhat.com>
57214         doc: users.txt: list hivex
57215         * users.txt: Add hivex.
57217 2010-05-18  Richard Jones  <rjones@redhat.com>
57219         doc: users.txt: list febootstrap
57220         * users.txt: Add febootstrap.
57222 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
57224         bootstrap: fix an error when gnulib is not used as a git submodule
57225         * build-aux/bootstrap (gnulib_path): If its length is zero then
57226         assign "gnulib" to it.
57227         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
57229 2010-05-16  Bruno Haible  <bruno@clisp.org>
57231         Avoid autoconf warnings about AM_ICONV.
57232         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
57233         2.64.
57235 2010-05-16  Bruno Haible  <bruno@clisp.org>
57237         absolute-header: Make the macro usable in more situations.
57238         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
57239         from gl_ABSOLUTE_HEADER.
57240         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
57242 2010-05-16  James Youngman  <jay@gnu.org>
57244         doc: update users.txt
57245         * users.txt: Add CSSC.
57247 2010-05-16  Jim Meyering  <meyering@redhat.com>
57249         init.sh: fix an error in the previous change; add more comments
57250         * tests/init.sh: Compare exit code in loop against 9, not 2.
57251         Patch by Bruno Haible.
57252         Make the two tests more similar by adding an empty "then" clause.
57253         Add comments.
57255         init.sh: avoid unnecessary shell re-exec
57256         * tests/init.sh: Improve the re-exec-required check to first test the
57257         current shell.  If it passes the test, do not search for a shell that
57258         does pass, and do not re-exec.  This test is particularly contorted to
57259         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
57260         of $(...) evokes a syntax error and causes immediate shell exit with
57261         status 2.  Bruno Haible reported that the re-exec made it impossible
57262         to single-step through any init.sh-using script.
57264 2010-05-16  Bruno Haible  <bruno@clisp.org>
57266         Fix collision between gnulib's and libintl's printf replacements.
57267         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
57268         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
57269         (printf): When using GNU C, map the __printf__ function to rpl_printf
57270         via __asm__. When not using GNU C, define rpl_printf instead of
57271         __printf__.
57272         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
57273         commit.
57274         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
57275         commit.
57276         * m4/asm-underscore.m4: New file.
57277         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
57278         * modules/stdio (Files): Add m4/asm-underscore.m4.
57279         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
57280         Reported by Ben Pfaff.
57282 2010-05-16  Bruno Haible  <bruno@clisp.org>
57284         verify: Avoid skipping the test on openSUSE 11.0.
57285         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
57287 2010-05-13  Bruno Haible  <bruno@clisp.org>
57289         Avoid useless warnings from G++.
57290         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
57291         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
57292         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
57294 2010-05-11  Jim Meyering  <meyering@redhat.com>
57296         maint.mk: tweak preceding change
57297         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
57298         regexps tighter by anchoring at EOL, and make the new group "shy"
57299         for slightly decreased overhead.
57301 2010-05-11  Eric Blake  <eblake@redhat.com>
57303         maint.mk: gnulib doesn't guarantee NSIG
57304         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
57306 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
57308         test-pwrite.c: Remove unused variable declaration.
57309         * tests/test-pwrite.c (main): Remove read_buf declaration.
57311         Remove useless test-pwrite.sh file.
57312         * tests/test-pwrite.sh: Delete file.
57313         * modules/pwrite-tests: Remove references.
57314         Reported by Bruno Haible.
57316 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
57318         init.sh: fix a typo
57319         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
57321 2010-05-10  Jim Meyering  <meyering@redhat.com>
57323         maint.mk: avoid using a temporary file in the always-defined-macros check
57324         * top/maint.mk (.re-defmac): Remove rule.
57325         (gl_trap_): Remove definition.
57326         (sc_prohibit_always-defined_macros): Rewrite not to create and
57327         depend on a temporary file.  Instead, depend on GNU grep's ability
57328         to read a list of regular expressions from stdin when given "-f -".
57330 2010-05-09  Bruno Haible  <bruno@clisp.org>
57332         Update to GNU gettext 0.18, part 1.
57333         * m4/gettext.m4: Update to GNU gettext 0.18.
57334         * m4/intl.m4: Likewise.
57335         * m4/po.m4: Likewise.
57336         * modules/gettext (Files): Add m4/fcntl-o.m4.
57337         (configure.ac): Require gettext infrastructure from version 0.18.
57339 2010-05-09  Jim Meyering  <meyering@redhat.com>
57341         init.sh: enable MALLOC_PERTURB_
57342         * tests/init.sh: Enable glibc's malloc-perturbing option.
57344         maint.mk: improve sc_cross_check_PATH_usage_in_tests
57345         With my recent change in init.sh from the two-line form:
57346             -#   : ${srcdir=.}
57347             -#   . "$srcdir/init.sh"; path_prepend_ .
57348             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
57349         I noticed that using the one-line form would cause this test
57350         to fail with a false-positive, or to stop working altogether,
57351         depending on whether help-version changed or all the tests did.
57352         * top/maint.mk (_hv_regex): Remove this definition.
57353         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
57354         (_hv_regex_strong): Use a stronger regex to check for conformance.
57355         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
57356         Give a separate diagnostic for lack of conforming use.
57358         maint.mk: prohibit definition of symbols defined by gnulib
57359         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
57360         definition of symbols defined by gnulib.
57362 2010-05-09  Bruno Haible  <bruno@clisp.org>
57364         acl: Avoid test failure on Cygwin-hosted mingw.
57365         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
57367 2010-05-09  Bruno Haible  <bruno@clisp.org>
57369         error: Use system's fcntl function.
57370         * lib/error.c (fcntl): Undefine.
57372 2010-05-09  Jim Meyering  <meyering@redhat.com>
57374         verify: adjust formatting to be more consistent
57375         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
57376         argument-list '('s, and after one comma.
57378 2010-05-09  Bruno Haible  <bruno@clisp.org>
57380         error: More reliable output on mingw.
57381         * lib/error.c: Include <windows.h>.
57382         (is_open): New function.
57383         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
57384         defined.
57386 2010-05-09  Bruno Haible  <bruno@clisp.org>
57388         vasnprintf: Fix syntax errors in libintl build on mingw.
57389         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
57390         pad_ourselves and prec_ourselves after use.
57392 2010-05-08  Bruno Haible  <bruno@clisp.org>
57394         * lib/config.charset: Update comments for Cygwin 1.7.
57395         * lib/localcharset.c: Likewise.
57397 2010-05-07  Jim Meyering  <meyering@redhat.com>
57399         init.sh: improve comments
57400         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
57401         . "${srcdir=.}/init.sh"; path_prepend_ .
57402         Add a note about path_prepend_ and the alternative of using
57403         TESTS_ENVIRONMENT.
57405 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
57407         exclude: Unescape hashed patterns in wildcard mode.
57408         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
57409         to the hash list.
57410         * tests/test-exclude8.sh: New test case.
57411         * modules/exclude-tests: Add new test.
57413 2010-05-05  Eric Blake  <eblake@redhat.com>
57415         verify: automate tests
57416         * modules/verify-tests: New module.
57417         * tests/test-verify.sh: New file.
57418         * tests/test-verify.c: Guard each negative test with a unique id.
57419         Also avoid warning about unused left hand of comma expressions.
57421 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
57423         Further improvements to verify.h, suggested by Eric Blake.
57424         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
57425         the GL_* versions, to avoid collision with OpenGL.
57426         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
57427         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
57428         than testing merely whether it's defined.
57430         Modify verify.h to pacify gcc -Wredundant_decls.
57431         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
57432         These use the prefix "GL_" since they're likely to be useful elsewhere.
57433         We may need to break them out into a different .h file.
57434         (__COUNTER__): Define to 0 if the compiler doesn't support it.
57435         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
57436         of verify_function__.
57438 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
57440         Tests for module pwrite.
57441         * modules/pwrite-tests: New file.
57442         * tests/test-pwrite.sh: New file.
57443         * tests/test-pwrite.c: New file.
57445         New module pwrite.
57446         * lib/unistd.in.h (pwrite): New declaration.
57447         * lib/pwrite.c: New file, from glibc with modifications.
57448         * m4/pwrite.m4: New file.
57449         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
57450         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
57451         REPLACE_PWRITE.
57452         * modules/pwrite: New file.
57453         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
57454         REPLACE_PWRITE.
57455         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
57456         * doc/posix-functions/pwrite.texi: Mention the new module.
57458 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
57460         pread: Update documentation.
57461         * doc/posix-functions/pread.texi: Mention the 'pread' module.
57463 2010-05-04  Eric Blake  <eblake@redhat.com>
57465         docs: update cygwin progress
57466         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
57467         this bug.
57468         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
57469         Added in cygwin 1.7.2.
57470         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
57471         Likewise.
57472         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
57473         Likewise.
57474         * doc/glibc-functions/dup3.texi (dup3): Likewise.
57475         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
57476         * doc/glibc-functions/accept4.texi (accept4): Likewise.
57477         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
57478         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
57479         Mention nproc module.
57480         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
57481         bug in cygwin 1.7.5 addition.
57482         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
57483         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
57484         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
57485         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
57486         1.7.5.
57487         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
57488         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
57489         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
57490         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
57491         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
57492         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
57493         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
57494         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
57495         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
57496         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
57497         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
57498         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
57499         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
57500         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
57501         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
57502         Likewise.
57503         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
57504         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
57505         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
57506         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
57507         Likewise.
57508         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
57509         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
57510         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
57511         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
57512         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
57513         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
57514         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
57515         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
57516         Likewise.
57517         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
57518         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
57519         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
57520         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
57521         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
57522         Likewise.
57523         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
57524         Likewise.
57525         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
57526         Likewise.
57527         * doc/glibc-functions/xdrrec_endofrecord.texi
57528         (xdrrec_endofrecord): Likewise.
57529         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
57530         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
57531         Likewise.
57532         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
57533         Likewise.
57535 2010-05-04  Jim Meyering  <meyering@redhat.com>
57537         gendocs.sh: make its "-s FILE" option more useful
57538         * build-aux/gendocs.sh: When honoring the -s FILE option, update
57539         $PACKAGE to reflect the probably-different basename of "FILE".
57541 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
57543         bootstrap: don't ignore download_po_files failure
57544         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
57545         failure.
57547 2010-05-03  Jim Meyering  <meyering@redhat.com>
57549         maint.mk: allow to pass options to gendocs.sh
57550         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
57551         (gendocs_options_): New overridable variable.
57553         gnu-web-doc-update: don't ignore configure or build failure
57554         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
57556         announce-gen: backslash-escape '@'s in --help output
57557         * build-aux/announce-gen: Fix syntax errors.
57559         maint.mk, announce-gen: allow project-specific announcement mail headers
57560         * top/maint.mk (translation_project_): Define default.
57561         (announcement_Cc_, announcement_mail_headers_): Likewise.
57562         (announcement): Invoke announce-gen with new --mail-headers option.
57563         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
57565         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
57566         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
57567         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
57568         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
57569         line in the "err2" output file when running "make check" in verbose
57570         mode (i.e., with set -x enabled).
57572 2010-05-03  Bruno Haible  <bruno@clisp.org>
57574         wctob: Fix for weird platforms.
57575         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
57576         argument value.
57578 2010-05-03  Jim Meyering  <meyering@redhat.com>
57580         maint.mk: prohibit unwarranted use of <strings.h>
57581         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
57582         strings.h in a file that does not also use strcasecmp, strncasecmp,
57583         ffs or ffsll.
57585         maint.mk: remove obsolete comments
57586         * top/maint.mk: Remove stale, commented-out rules.
57588 2010-05-02  Bruno Haible  <bruno@clisp.org>
57590         wcwidth: Declare also when it's aliased.
57591         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
57592         macro.
57594 2010-05-02  Bruno Haible  <bruno@clisp.org>
57596         Fix regression from 2010-04-25.
57597         * gnulib-tool (func_modules_transitive_closure): Check the status of
57598         all modules, not only of the tests that are of the form foo-tests where
57599         foo is a module.
57601 2010-05-02  Bruno Haible  <bruno@clisp.org>
57603         wctob: Work around nasty Cygwin 1.7.2 bug.
57604         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
57605         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
57607 2010-05-01  Bruno Haible  <bruno@clisp.org>
57609         fpurge: Sharper test.
57610         * tests/test-fpurge.c (main): Add one more ftell check.
57611         * modules/fpurge-tests (Depends-on): Add ftell.
57612         Suggested by Eric Blake.
57614 2010-05-01  Bruno Haible  <bruno@clisp.org>
57616         ftello: Another test.
57617         * tests/test-ftello3.c: New file.
57618         * modules/ftello-tests (Files): Add it.
57619         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
57620         MOSTLYCLEANFILES.
57622         ftell: Another test.
57623         * tests/test-ftell3.c: New file.
57624         * modules/ftell-tests (Files): Add it.
57625         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
57626         MOSTLYCLEANFILES.
57628 2010-05-01  Bruno Haible  <bruno@clisp.org>
57630         ftell, ftello: Work around Solaris bug.
57631         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
57632         * lib/ftello.c: Include stdio-impl.h.
57633         (ftello): On Solaris, when _IOWRT is set, compute the result without
57634         looking at _IOREAD.
57635         * modules/ftello (Files): Add lib/stdio-impl.h.
57636         * doc/posix-functions/ftell.texi: Mention Solaris bug.
57637         * doc/posix-functions/ftello.texi: Likewise.
57638         Reported by Eric Blake.
57640 2010-05-01  Bruno Haible  <bruno@clisp.org>
57642         freading: Adapt to special meaning of _IOREAD flag on Solaris.
57643         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
57644         the _IOWRT flag is also set.
57646 2010-05-01  Bruno Haible  <bruno@clisp.org>
57648         Fix doc about a HP-UX stdio bug.
57649         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
57650         * doc/posix-functions/ftello.texi: Likewise.
57652 2010-05-01  Bruno Haible  <bruno@clisp.org>
57654         lseek test: Fix failure on Solaris.
57655         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
57656         output.
57658 2010-04-30  Jim Meyering  <meyering@redhat.com>
57660         bootstrap: don't ignore failure to generate po*/Makevars
57661         * build-aux/bootstrap (with_gettext): Don't ignore failure
57662         to create po/Makevars or runtime-po/Makevars.
57664 2010-04-29  Eric Blake  <eblake@redhat.com>
57666         headers: relax license to LGPLv2+
57667         * modules/fcntl-h (License): Relax license.
57668         * modules/getopt-posix (License): Likewise.
57669         * modules/locale (License): Likewise.
57670         * modules/math (License): Likewise.
57671         * modules/pty (License): Likewise.
57672         * modules/sched (License): Likewise.
57673         * modules/search (License): Likewise.
57674         * modules/spawn (License): Likewise.
57675         * modules/stdarg (License): Likewise.
57676         * modules/sysexits (License): Likewise.
57678 2010-04-29  Jim Meyering  <meyering@redhat.com>
57680         inttypes: relax license to LGPLv2+
57681         * modules/inttypes (License): Relax license.
57683 2010-04-29  Simon Josefsson  <simon@josefsson.org>
57685         * top/maint.mk (indent): Run twice to produce idempotent results.
57687 2010-04-28  Bruno Haible  <bruno@clisp.org>
57689         getdate: Generate getdate.c in the source directory.
57690         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
57691         MOSTLYCLEANFILES.
57692         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
57694 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
57696         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
57697         is not declared as a const *; avoid warnings in that case.
57699 2010-04-28  Eric Blake  <eblake@redhat.com>
57701         canonicalize-lgpl: avoid compiler warning
57702         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
57703         declaration' / 'extraneous semicolon' warning with some compilers.
57704         Reported by Andreas Gruenbacher.
57706 2010-04-28  Jim Meyering  <meyering@redhat.com>
57708         init.sh: ensure a more reliable exit status when exiting via trap
57709         * tests/init.sh (setup_): Don't rely on $? in signal handler.
57710         Inspired by patches from Dmitry V. Levin.
57711         Also trap on signal 3 (SIGQUIT).
57713 2010-04-27  Bruno Haible  <bruno@clisp.org>
57715         Update doc about utimes().
57716         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
57717         'utimens' module.
57718         Reported by Andreas Gruenbacher <agruen@suse.de>.
57720 2010-04-27  Eric Blake  <eblake@redhat.com>
57722         full-read, full-write: relax license
57723         * modules/full-read (License): Drop to LGPLv2+.
57724         * modules/full-write (License): Likewise.
57725         * modules/safe-read (License): Likewise.
57726         * modules/safe-write (License): Likewise.
57728         pthread: mention library for linking
57729         * modules/pthread (Link): Mention $(LIB_PTHREAD).
57731 2010-04-27  Jim Meyering  <meyering@redhat.com>
57733         maint.mk: fix a bug introduced in last change
57734         * top/maint.mk (gl_assured_headers_): Now that all names are on
57735         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
57736         is not anchored to end of word, it should be adequate.
57738         maint.mk: avoid side-effect in latest syntax-check
57739         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
57740         to run commands via $(shell...), and hence to incur cost only when
57741         the new rule is actually run.
57743         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
57744         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
57745         and use that to create a regexp used to detect all #if HAVE_..._H uses.
57746         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
57747         (gl_assured_headers_, az_, AZ_): Define.
57748         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
57750 2010-04-26  Jim Meyering  <jim@meyering.net>
57751             Bruno Haible  <bruno@clisp.org>
57753         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
57754         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
57755         Prompted by an exchange with Gilles Espinasse.
57757 2010-04-26  Jim Meyering  <meyering@redhat.com>
57759         git-version-gen: aesthetic tweak
57760         * build-aux/git-version-gen: Use "$nl" rather than a literal,
57761         so that the command remains on a single line.
57763 2010-04-26  Eric Blake  <eblake@redhat.com>
57765         git-version-gen: allow use on EBCDIC hosts
57766         * build-aux/git-version-gen (dirty): Use literal rather than tying
57767         ourselves to ascii.
57768         Reported by Steve Goetze.
57770 2010-04-25  Bruno Haible  <bruno@clisp.org>
57772         netdb: Add support for GNULIB_POSIXCHECK.
57773         * lib/netdb.in.h: Include warn-on-use.h.
57774         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
57775         functions are used when GNULIB_POSIXCHECK is defined and the
57776         getaddrinfo module is not in use.
57777         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
57778         freeaddrinfo, gai_strerror, getnameinfo are declared.
57779         * modules/netdb (Depends-on): Add warn-on-use.
57780         (Makefile.am): Include warn-on-use.h in netdb.h.
57782 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
57784         build: avoid "make check" failure without .git/ directory
57785         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
57786         there is no .git/ directory.
57788 2010-04-25  Bruno Haible  <bruno@clisp.org>
57790         ptsname: Fix misuse of ttyname_r.
57791         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
57792         of errno.
57794 2010-04-25  Bruno Haible  <bruno@clisp.org>
57796         ttyname_r: Make it work on Solaris 10.
57797         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
57798         if the system function has the POSIX declaration. Test whether the
57799         function fails if the buffer is less than 128 bytes large.
57800         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
57801         system's ttyname_r function. Provide a reasonably large buffer.
57802         * modules/ttyname_r (Depends-on): Add extensions.
57803         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
57805 2010-04-25  Bruno Haible  <bruno@clisp.org>
57807         Use the 'extensions' module for some more functions on Solaris.
57808         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
57809         module.
57810         * doc/posix-functions/ctime_r.texi: Likewise.
57811         * doc/posix-functions/getgrgid_r.texi: Likewise.
57812         * doc/posix-functions/getgrnam_r.texi: Likewise.
57813         * doc/posix-functions/getpwnam_r.texi: Likewise.
57814         * doc/posix-functions/getpwuid_r.texi: Likewise.
57815         * doc/posix-functions/readdir_r.texi: Likewise.
57816         * doc/posix-functions/sigwait.texi: Likewise.
57817         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
57818         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
57820 2010-04-25  Bruno Haible  <bruno@clisp.org>
57822         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
57823         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
57824         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
57825         * lib/ttyname_r.c: Include <limits.h>.
57826         (ttyname_r): Define using the system's ttyname_r function, if it exists
57827         and not on Solaris.
57828         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
57829         set.
57830         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
57831         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
57832         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
57833         Reported by Simon Josefsson.
57835 2010-04-25  Bruno Haible  <bruno@clisp.org>
57837         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
57838         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
57839         * doc/posix-functions/ctime_r.texi: Likewise.
57840         * doc/posix-functions/getgrgid_r.texi: Likewise.
57841         * doc/posix-functions/getgrnam_r.texi: Likewise.
57842         * doc/posix-functions/getlogin_r.texi: Likewise.
57843         * doc/posix-functions/getpwnam_r.texi: Likewise.
57844         * doc/posix-functions/getpwuid_r.texi: Likewise.
57845         * doc/posix-functions/readdir_r.texi: Likewise.
57846         * doc/posix-functions/sigwait.texi: Likewise.
57847         * doc/posix-functions/ttyname_r.texi: Likewise.
57848         Reported by Simon Josefsson.
57850 2010-04-25  Bruno Haible  <bruno@clisp.org>
57852         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
57853         * gnulib-tool (func_usage): Document that --with-*-tests options apply
57854         also to --create-testdir.
57855         (func_acceptable): Don't consider the status of *-tests modules here.
57856         (func_modules_transitive_closure): Consider it here, before including a
57857         test module.
57858         (func_import, func_create_testdir): Set inc_all_direct_tests,
57859         inc_all_indirect_tests.
57860         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
57861         --create-testdir and --create-megatestdir.
57863 2010-04-25  Bruno Haible  <bruno@clisp.org>
57865         gnulib-tool: Add --without-*-tests options.
57866         * gnulib-tool (func_usage): Document the --without-*-tests options.
57867         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
57868         excl_unportable_tests): New variables.
57869         Fail if they are specified with --import or --update.
57870         (func_acceptable): Respect the excl_*_tests variables.
57871         (func_import): Set the excl_*_tests variables to empty.
57873 2010-04-25  Simon Josefsson  <simon@josefsson.org>
57874             Bruno Haible  <bruno@clisp.org>
57876         Work around a MacOS X 10.4 bug with openpty.
57877         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
57878         * tests/test-openpty.c (main): Close the master side explicitly.
57880 2010-04-25  Bruno Haible  <bruno@clisp.org>
57882         strnlen: Fix a C++ test error on MacOS X and Solaris.
57883         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
57884         the function is not declared.
57885         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
57886         Simon Josefsson.
57888 2010-04-24  Bruno Haible  <bruno@clisp.org>
57890         Avoid a gcc warning.
57891         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
57892         of correct type for %08lx directive.
57893         Reported by Eric Blake.
57895 2010-04-24  Bruno Haible  <bruno@clisp.org>
57897         vasnprintf: Correct errno value in case of out-of-memory.
57898         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
57899         or sprintf. Use the errno value from SNPRINTF or sprintf.
57900         Reported by Ian Beckwith <ianb@erislabs.net>.
57902 2010-04-24  Bruno Haible  <bruno@clisp.org>
57904         ansi-c++-opt: Find correct compiler when cross-compiling.
57905         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
57906         AC_CHECK_PROGS.
57907         Reported by Simon Josefsson.
57909 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
57911         vc-list-files: Add support for subversion
57912         * build-aux/vc-list-files: Use "svn list" to generate the list of
57913         files controlled by subversion.
57915 2010-04-23  Jim Meyering  <meyering@redhat.com>
57917         vc-list-files tests: convert to use init.sh
57918         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
57919         path_prepend_.
57920         Use Exit, not exit.
57921         Use skip_ rather than open coding it.
57922         Remove trap set-up and compare definitions.
57923         * tests/test-vc-list-files-git.sh: Likewise.
57924         * modules/vc-list-files-tests (Files): Add tests/init.sh.
57926 2010-04-22  Simon Josefsson  <simon@josefsson.org>
57928         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
57929         backup files.
57931 2010-04-21  Simon Josefsson  <simon@josefsson.org>
57933         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
57935 2010-04-20  Eric Blake  <eblake@redhat.com>
57937         tests: be robust to ignored SIGPIPE
57938         * tests/test-select-in.sh: Consume all output.
57939         * tests/test-lseek.sh: Check correct exit status, while avoiding
57940         EPIPE.
57942 2010-04-20  Simon Josefsson  <simon@josefsson.org>
57943             Bruno Haible  <bruno@clisp.org>
57945         visibility: Don't use -fvisibility if it leads to a warning.
57946         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
57947         yes, don't pretend that visibility works if it leads to a warning.
57948         Reported by Mike Gran <spk121@yahoo.com>.
57950 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
57952         * build-aux/bootstrap: Use "git -h" for testing for supported options
57953         instead of "git --help".  The short-form option only shows a summary,
57954         and doesn't layout the full man page.  Grep for the full option name
57955         in the summary, too.
57957 2010-04-19  Bruno Haible  <bruno@clisp.org>
57959         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
57960         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
57961         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
57962         mention of RELOCATABLE_STRIP.
57963         Reported by Sylvain Beucler <beuc@beuc.net>.
57965 2010-04-19  Bruno Haible  <bruno@clisp.org>
57967         * lib/diffseq.h: Fix typo in comment.
57968         Reported by Eric Blake.
57970 2010-04-19  Bruno Haible  <bruno@clisp.org>
57972         ioctl: Move autoconf macro to a .m4 file.
57973         * m4/ioctl.m4: New file, extracted from modules/ioctl.
57974         * modules/ioctl (Files): Add it.
57975         (configure.ac): Simply invoke gl_FUNC_IOCTL.
57976         Reported by Ian Beckwith <ianb@erislabs.net>.
57978 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
57979             Bruno Haible  <bruno@clisp.org>
57981         diffseq: Accommodate use-case with abstract arrays.
57982         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
57983         is not defined.
57984         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
57985         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
57987 2010-04-18  Bruno Haible  <bruno@clisp.org>
57989         * doc/posix-headers/stdbool.texi: More precise wording.
57991 2010-04-17  Jim Meyering  <meyering@redhat.com>
57993         maint.mk: use gnu-style indentation in an embedded perl script
57994         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
57995         Rename variable: s/two/last_two_bytes/
57997 2010-04-16  Eric Blake  <eblake@redhat.com>
57999         test-stdbool: skip test that fails with Solaris CC
58000         * tests/test-stdbool.c (f): Skip test that causes compilation
58001         error under buggy C++ compiler.
58002         * lib/stdbool.in.h: Document the limitation.
58003         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
58005         setenv: allow compilation with C++
58006         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
58007         register keyword.
58009         stdint: allow test to pass with C++
58010         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
58012         getopt: allow compilation with C++
58013         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
58014         struct.
58015         * lib/getopt.c (_getopt_internal_r): Use correct type.
58016         Reported by Dagobert Michelson, via Joel E. Denny.
58018 2010-04-16  Bruno Haible  <bruno@clisp.org>
58020         Override netdb.h always.
58021         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
58022         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
58023         Reported by Ludovic Courtès <ludo@gnu.org>.
58025 2010-04-15  Bruno Haible  <bruno@clisp.org>
58027         openpty: Fix mistake from 2010-03-21.
58028         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
58029         Reported by Simon Josefsson.
58031 2010-04-15  Eric Blake  <eblake@redhat.com>
58033         test-forkpty: fix expected signature
58034         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
58035         Reported by Simon Josefsson.
58037 2010-04-15  Jim Meyering  <meyering@redhat.com>
58039         maint.mk: texinfo_suffix_re_: correct the default regexp
58040         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
58042         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
58043         make it configurable via texinfo_suffix_re_.
58045 2010-04-14  Eric Blake  <eblake@redhat.com>
58047         strtok_r: relax license to LGPLv2+
58048         * modules/strtok_r (License): Relax license.
58049         Reported by Matthias Bolte.
58051 2010-04-14  Simon Josefsson  <simon@josefsson.org>
58053         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
58054         version 1.4.4 by default instead of requiring the libgcrypt
58055         version used during build.  This makes it possible to use the
58056         application with older but still binary compatible libgcrypt
58057         versions.
58059 2010-04-13  Eric Blake  <eblake@redhat.com>
58061         getopt-gnu: match recent glibc fixes and posix ruling
58062         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
58063         '+' handling, when requesting extensions.
58064         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
58065         'W;' handling.
58066         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
58067         * doc/posix-functions/getopt.texi (getopt): Document this.
58068         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
58069         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
58070         Likewise.
58072         getopt: merge bug fixes from glibc
58073         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
58074         diagnostics.  Honor '+:' correctly.  Reject ';'.
58076         getopt-posix: detect MacOS bug
58077         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
58078         optind when missing a required argument.
58079         * doc/posix-functions/getopt.texi (getopt): Document the bug.
58080         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
58081         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
58082         Likewise.
58084         getopt-posix: avoid spurious failure on Solaris
58085         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
58086         an indicator that setting optind=1 is sufficient for reset.
58088         getopt-posix: avoid spurious failure on FreeBSD
58089         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
58090         in POSIX mode, since the m4 test uses it.
58092         gnulib-tool: silence warning on BSD sh
58093         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
58095 2010-04-13  Jim Meyering  <meyering@redhat.com>
58097         doc: users.txt: GNU patch now uses gnulib
58098         * users.txt: Add patch.
58100 2010-04-12  Jim Meyering  <meyering@redhat.com>
58102         maint.mk: generate more concise timing data for syntax-check rules
58103         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
58104         " done" from each line that reports a syntax-check test duration.
58106 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
58108         git-version-gen: use "git update-index..." rather than "git status"
58109         * build-aux/git-version-gen: Use git update-index --refresh, not
58110         "git status".  With some versions of git, "git status" would fail
58111         to update the index and result in an unwarranted "-dirty" suffix.
58113 2010-04-11  Jim Meyering  <meyering@redhat.com>
58115         openat: correct formatting (no semantic change)
58116         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
58117         Suggested by Bruno Haible.
58119 2010-04-11  Bruno Haible  <bruno@clisp.org>
58121         Stricter declaration checking in testdirs.
58122         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58123         If for_tests is true, augment AM_CPPFLAGS to define
58124         GNULIB_STRICT_CHECKING.
58125         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
58126         GNULIB_STRICT_CHECKING is defined, verify that the function is
58127         declared.
58129 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
58130             Bruno Haible  <bruno@clisp.org>
58132         libunistring: Improve configure output.
58133         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
58134         Don't say "consider installing GNU libunistring" when checking again
58135         with libiconv.
58137 2010-04-11  Bruno Haible  <bruno@clisp.org>
58139         libunistring: Correct value of $LTLIBUNISTRING.
58140         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
58141         correct the value of $LTLIBUNISTRING.
58143 2010-04-11  Bruno Haible  <bruno@clisp.org>
58145         havelib: Add static libraries to LIBS in the right order.
58146         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
58147         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
58149 2010-04-11  Bruno Haible  <bruno@clisp.org>
58151         libunistring: Detect libunistring also when it depends on libiconv.
58152         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
58153         the second AC_LIB_HAVE_LINKFLAGS invocation.
58155 2010-04-11  James Youngman  <jay@gnu.org>
58157         close-stream: declare local scalars to be "const"
58158         * lib/close-stream.c (close_stream): Make boolean variables const
58159         to document the fact that we set but do not change them.
58161 2010-04-11  Bruno Haible  <bruno@clisp.org>
58163         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
58165 2010-04-11  Jim Meyering  <meyering@redhat.com>
58167         maint.mk: don't include dist-check.mk
58168         * top/maint.mk: Remove bogus include directive.
58170         maint.mk: improve empty-line-at-EOF check
58171         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
58172         solution, rather than tail+Perl-based one.  The latter would read
58173         a few kilobytes from the end of each file, and did not handle empty
58174         files properly.
58176         maint.mk: print the elapsed time for each syntax-check rule
58177         * top/maint.mk (sc_m_rules_): Save start time in a file.
58178         (sc_z_rules_): New rules: remove temp file and print elapsed time.
58179         (local-check): Interpose the .z rules
58181 2010-04-11  Jim Meyering  <meyering@redhat.com>
58183         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
58184         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
58185         empty file with one that ends in an empty line.
58187 2010-04-10  Bruno Haible  <bruno@clisp.org>
58189         mkdir: Make it work on mingw64.
58190         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
58191         * lib/mkdir.c: Update comment.
58192         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
58194 2010-04-10  Bruno Haible  <bruno@clisp.org>
58196         Don't override improved macro from newer autoconf.
58197         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
58198         autoconf >= 2.62.
58199         Reported by Joel E. Denny <jdenny@clemson.edu>.
58201 2010-04-10  Jim Meyering  <meyering@redhat.com>
58203         maint.mk: new syntax-check rule: prohibit empty lines at end of file
58204         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
58206         maint.mk: correct a diagnostic
58207         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
58208         in diagnostic; now use $prohibit.
58210 2010-04-10  Bruno Haible  <address@hidden>
58212         fchownat: Fix a C++ test error on Solaris 8.
58213         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
58214         the function does not exist.
58216 2010-04-10  Bruno Haible  <bruno@clisp.org>
58218         vasnprintf: Add more tests.
58219         * tests/test-vasnprintf-posix.c: Include <errno.h>.
58220         (test_function): Test converting an invalid wide string.
58222         vasnprintf: Correct handling of unconvertible wide string arguments.
58223         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
58224         VASNPRINTF.
58225         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
58226         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
58227         smaller than the expected maximum need for the directive. Set errno to
58228         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
58229         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
58230         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
58231         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
58232         * modules/vasnprintf (Files): Add m4/printf.m4.
58233         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
58235 2010-04-10  Bruno Haible  <bruno@clisp.org>
58237         vasnprintf: Fix crash in %ls directive.
58238         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
58239         string is passed as argument to %ls, with no precision and no width.
58240         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
58242 2010-04-10  Bruno Haible  <bruno@clisp.org>
58244         vasnprintf: Fix multiple test failures on mingw.
58245         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
58246         _snprintf, or snwprintf, not _snwprintf.
58248 2010-04-10  Bruno Haible  <bruno@clisp.org>
58250         write: Fix a C++ test error on mingw.
58251         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
58253 2010-04-10  Bruno Haible  <bruno@clisp.org>
58255         vasnprintf test: Reduce code duplication.
58256         * tests/test-vasnprintf.c (test_function): New function, extracted from
58257         test_vasnprintf.
58258         (test_vasnprintf, test_asnprintf): Invoke it.
58260 2010-04-10  Bruno Haible  <bruno@clisp.org>
58262         strnlen: Fix warning in C++ mode on MacOS X.
58263         * lib/string.in.h (strnlen): Use the modern idiom.
58264         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
58265         defining strnlen as a macro already in <config.h>.
58266         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
58267         REPLACE_STRNLEN.
58268         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
58269         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
58271 2010-04-08  James Youngman  <jay@gnu.org>
58273         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
58274         the example.
58276 2010-04-09  Jim Meyering  <meyering@redhat.com>
58278         maint.mk: print better diagnostic when there is no $(_hv_file)
58279         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
58280         announce that when $(_hv_file) (aka help-version) does not exist.
58282         init.sh: run tr in the "C" locale to avoid multibyte interpretation
58283         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
58284         not try to interpret its random input bytes.  Jarno Rajahalme reported
58285         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
58286         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
58287         (mktempd_): Likewise, just in case.
58289         ftruncate: add two years to projected module removal date: 2012
58290         * m4/ftruncate.m4: Adjust comments.
58292         ftruncate: mark module as obsolete; even MinGW provides it, now
58293         * modules/ftruncate (Status): Obsolete.
58294         (Notice): Say that.
58295         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
58296         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
58298 2010-04-08  Bruno Haible  <bruno@clisp.org>
58300         Fix side effects from tests-related modules.
58301         * modules/dprintf-posix (Comment): New section.
58302         * modules/fprintf-posix (Comment): Likewise.
58303         * modules/obstack-printf-posix (Comment): Likewise.
58304         * modules/printf-posix (Comment): Likewise.
58305         * modules/snprintf-posix (Comment): Likewise.
58306         * modules/sprintf-posix (Comment): Likewise.
58307         * modules/vasnprintf-posix (Comment): Likewise.
58308         * modules/vasprintf-posix (Comment): Likewise.
58309         * modules/vdprintf-posix (Comment): Likewise.
58310         * modules/vfprintf-posix (Comment): Likewise.
58311         * modules/vprintf-posix (Comment): Likewise.
58312         * modules/vsnprintf-posix (Comment): Likewise.
58313         * modules/vsprintf-posix (Comment): Likewise.
58314         * modules/xprintf-posix (Comment): Likewise.
58315         * modules/xvasprintf-posix (Comment): Likewise.
58316         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
58317         * modules/floorf-tests (Depends-on): Likewise.
58318         * modules/round-tests (Depends-on): Likewise.
58319         * modules/roundf-tests (Depends-on): Likewise.
58320         * modules/trunc-tests (Depends-on): Likewise.
58321         * modules/truncf-tests (Depends-on): Likewise.
58322         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
58323         'fprintf-posix' module is not present.
58324         * tests/test-floorf2.c (check): Likewise.
58325         * tests/test-trunc2.c (check): Likewise.
58326         * tests/test-truncf2.c (check): Likewise.
58327         * tests/test-round2.c (equal): Likewise.
58328         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
58330 2010-04-07  Karl Berry  <karl@gnu.org>
58332         * config/srclist.txt,
58333         * config/srclistvars.sh,
58334         * config/srclist-update: doc fixes.
58336 2010-04-07  Jim Meyering  <meyering@redhat.com>
58338         maint.mk: add a PATH crosschecking syntax-check rule
58339         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
58340         Useful if you use a test like the one in help-version (coreutils,
58341         diffutils, grep, gzip) that ensures $(VERSION) matches what is
58342         printed by prog --version.
58344 2010-04-06  Bruno Haible  <bruno@clisp.org>
58346         Fix link error on mingw.
58347         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
58348         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
58350 2010-04-06  Bruno Haible  <bruno@clisp.org>
58352         Assume rmdir exists.
58353         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
58355 2010-04-06  Giuseppe Scrivano  <gscrivano@gnu.org>
58357         doc: update users.txt
58358         * users.txt: Add gcal.
58360 2010-04-06  Jim Meyering  <meyering@redhat.com>
58362         init.sh: simply unset TMPDIR rather than risking env -i
58363         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
58364         although it probably works fine on all Unix-based systems, some
58365         systems (Cygwin?) cannot tolerate a totally cleared environment.
58366         Suggestion from Eric Blake.
58368 2010-04-06  Jim Meyering  <meyering@redhat.com>
58370         init.sh: portability fix: use env's POSIX-specified -i option not -u
58371         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
58372         than unportable env -u.  Solaris 5.11's env lacks support for -u.
58374 2010-04-05  Bruno Haible  <bruno@clisp.org>
58376         btowc: Work around Cygwin 1.7.2 bug.
58377         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
58378         does not map NUL to 0.
58379         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
58381 2010-04-05  Bruno Haible  <bruno@clisp.org>
58383         Make the multithread modules work on Cygwin 1.7.2.
58384         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
58385         imported symbols can be declared weak, so that it returns "no" on
58386         Cygwin 1.7.2.
58388 2010-04-05  Bruno Haible  <bruno@clisp.org>
58390         Use the module 'strncat'.
58391         * modules/unistr/u8-strncat (Depends-on): Add strncat.
58393         Tests for module 'strncat'.
58394         * modules/strncat-tests: New file.
58395         * tests/test-strncat.c: New file.
58397         New module 'strncat'.
58398         * lib/string.in.h (strncat): New declaration.
58399         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
58400         * m4/strncat.m4: New file, based on m4/memchr.m4.
58401         * modules/strncat: New file.
58402         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
58403         is declared.
58404         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
58405         REPLACE_STRNCAT.
58406         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
58407         REPLACE_STRNCAT.
58408         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
58409         module.
58410         * tests/test-string-c++.cc: Check signature of strncat.
58412 2010-04-05  Jim Meyering  <meyering@redhat.com>
58414         xstrtoumax-tests: convert to use init.sh
58415         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
58416         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
58417         Use Exit, not exit.
58418         Remove uses of $EXEEXT and "./" to run a program in the current dir.
58420         xstrtoimax-tests: convert to use init.sh
58421         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
58422         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
58423         Use Exit, not exit.
58424         Remove uses of $EXEEXT and "./" to run a program in the current dir.
58426 2010-04-05  Bruno Haible  <bruno@clisp.org>
58428         sys_socket: Avoid #define replacements in C++ mode.
58429         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
58430         warning to the function if possible, rather than #defining the symbol
58431         to a dysfunctional alias.
58433 2010-04-05  Bruno Haible  <bruno@clisp.org>
58435         fseeko: Fix C++ test error on mingw.
58436         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
58437         gl_FUNC_FSEEKO.
58438         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
58439         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
58440         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
58441         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
58443 2010-04-05  Bruno Haible  <bruno@clisp.org>
58445         duplocale: Improve test output.
58446         * tests/test-duplocale.c (main): Print reason for skipped test.
58448 2010-04-05  Bruno Haible  <bruno@clisp.org>
58450         Assume rmdir exists.
58451         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
58452         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
58454 2010-04-05  Bruno Haible  <bruno@clisp.org>
58456         Fix link error on Solaris 8 with cc.
58457         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
58459 2010-04-05  Bruno Haible  <bruno@clisp.org>
58461         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
58462         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
58464 2010-04-05  Bruno Haible  <bruno@clisp.org>
58466         vasprintf: Update documentation.
58467         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
58469 2010-04-05  Bruno Haible  <bruno@clisp.org>
58471         ptsname: Improve test.
58472         * tests/test-ptsname.c (main): Also try the various master names of BSD
58473         systems.
58475 2010-04-05  Bruno Haible  <bruno@clisp.org>
58477         memchr: Avoid a possible C++ test error.
58478         * lib/string.in.h (memchr): Provide declaration if function is missing.
58479         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
58480         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
58481         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
58482         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
58484 2010-04-05  Bruno Haible  <bruno@clisp.org>
58486         strtok_r: Improve idiom.
58487         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
58488         AC_LIBOBJ is used.
58490 2010-04-05  Bruno Haible  <bruno@clisp.org>
58492         strdup: Improve idiom.
58493         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
58494         AC_LIBOBJ is used.
58495         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
58496         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
58497         when AC_LIBOBJ is used.
58499 2010-04-05  Bruno Haible  <bruno@clisp.org>
58501         mbsinit, mbrtowc, wcrtomb: Improve idioms.
58502         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
58503         don't set REPLACE_MBSINIT to 1.
58504         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
58505         don't set REPLACE_MBRTOWC to 1.
58506         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
58507         exist, don't set REPLACE_MBSRTOWCS to 1.
58508         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
58509         exist, don't set REPLACE_MBSNRTOWCS to 1.
58510         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
58511         don't set REPLACE_WCRTOMB to 1.
58512         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
58513         exist, don't set REPLACE_WCSRTOMBS to 1.
58514         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
58515         exist, don't set REPLACE_WCSNRTOMBS to 1.
58517 2010-04-05  Bruno Haible  <bruno@clisp.org>
58519         ldexpl: Improve idiom.
58520         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
58521         make sure to set HAVE_DECL_LDEXPL to 0.
58523 2010-04-05  Jim Meyering  <meyering@redhat.com>
58525         xstrtol-tests: convert to use init.sh
58526         * modules/xstrtol-tests (Files): Add tests/init.sh.
58527         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
58528         Use Exit, not exit.
58529         Remove uses of $EXEEXT and "./" to run a program in the current dir.
58531         atexit-tests: convert to use init.sh
58532         * modules/atexit-tests (Files): Add tests/init.sh.
58533         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
58534         Use Exit, not exit.
58535         Remove uses of $EXEEXT and "./" to run a program in the current dir.
58537         init.sh: fix typo
58538         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
58540         init.sh: make it easier for a test script to write to the tty, ...
58541         when using automake's parallel-tests mode.
58542         * tests/init.sh (stderr_fileno_): Define overridable variable.
58543         (warn_): New function, to use it.
58544         (fail_, skip_, framework_failure_): Use warn_.
58546 2010-04-04  Bruno Haible  <bruno@clisp.org>
58548         btowc: Avoid warning.
58549         * lib/btowc.c: Include <stdlib.h>.
58550         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
58552 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
58553             Bruno Haible  <bruno@clisp.org>
58555         wchar: Port to NetBSD 1.5.
58556         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
58557         * lib/wctype.in.h (WEOF): Likewise.
58559 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
58560             Bruno Haible  <bruno@clisp.org>
58562         Port extended stdio to NetBSD 1.5.
58563         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
58564         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
58565         older.
58567 2010-04-04  Bruno Haible  <bruno@clisp.org>
58569         string: Remove unused substitution.
58570         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
58571         HAVE_DECL_STRERROR.
58572         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
58574 2010-04-04  Bruno Haible  <bruno@clisp.org>
58576         strtod: Avoid a possible C++ test error.
58577         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
58578         set REPLACE_STRTOD.
58580 2010-04-04  Bruno Haible  <bruno@clisp.org>
58582         strerror: Update documentation.
58583         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
58585 2010-04-04  Bruno Haible  <bruno@clisp.org>
58587         stdio: Fix some C++ test errors on Solaris 8 with GCC.
58588         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
58589         _GL_CXXALIAS_SYS_CAST.
58591 2010-04-04  Bruno Haible  <bruno@clisp.org>
58593         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
58594         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
58595         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
58596         REPLACE_FREXPL to 1.
58597         * doc/posix-functions/frexpl.texi: Update documentation.
58599 2010-04-04  Bruno Haible  <bruno@clisp.org>
58601         math: Fix some C++ test errors on Solaris 8 and Cygwin.
58602         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
58604 2010-04-04  Bruno Haible  <bruno@clisp.org>
58606         Implement nanosleep for native Windows.
58607         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
58609 2010-04-04  Bruno Haible  <bruno@clisp.org>
58611         math: Fix some C++ test errors on Solaris 8.
58612         * lib/math.in.h (truncf, trunc): Use simpler idiom.
58614 2010-04-04  Bruno Haible  <bruno@clisp.org>
58616         math: Fix some C++ test errors on Cygwin.
58617         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
58618         truncl): Provide declaration if the system does not have it.
58619         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
58620         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
58621         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
58622         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
58623         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
58624         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
58625         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
58626         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
58627         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
58628         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
58629         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
58630         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
58631         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
58632         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
58633         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
58634         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
58635         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
58636         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
58637         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
58638         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
58639         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
58640         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
58642 2010-04-04  Bruno Haible  <bruno@clisp.org>
58644         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
58645         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
58646         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
58647         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
58648         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
58649         * m4/isinf.m4 (gl_ISINF): Likewise.
58650         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
58652 2010-04-04  Bruno Haible  <bruno@clisp.org>
58654         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
58655         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
58657 2010-04-04  Bruno Haible  <bruno@clisp.org>
58659         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
58660         * modules/tmpfile (configure.ac): Update.
58662         tmpfile: Fix C++ test error on mingw.
58663         * lib/stdio.in.h (tmpfile): New declaration.
58664         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
58665         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
58666         * modules/tmpfile (Depends-on): Add stdio.
58667         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
58668         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
58669         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
58670         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
58671         REPLACE_TMPFILE.
58672         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
58674 2010-04-04  Bruno Haible  <bruno@clisp.org>
58676         ioctl: Fix C++ test error on mingw.
58677         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
58678         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
58679         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
58681 2010-04-03  Bruno Haible  <bruno@clisp.org>
58683         wcwidth: Fix C++ test error on mingw.
58684         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
58685         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
58686         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
58688 2010-04-03  Bruno Haible  <bruno@clisp.org>
58690         nanosleep: Fix C++ test error on mingw.
58691         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
58692         * lib/time.in.h (nanosleep): Use modern idiom.
58693         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
58694         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
58695         REPLACE_NANOSLEEP to 1.
58696         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
58697         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
58699 2010-04-03  Bruno Haible  <bruno@clisp.org>
58701         strptime: Fix C++ test error on mingw.
58702         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
58703         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
58704         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
58705         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
58706         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
58707         not REPLACE_STRPTIME.
58708         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
58709         REPLACE_STRPTIME.
58711 2010-04-03  Bruno Haible  <bruno@clisp.org>
58713         timegm: Fix C++ test error on mingw.
58714         * lib/time.in.h (timegm): Use modern idiom.
58715         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
58716         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
58717         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
58718         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
58720 2010-04-03  Bruno Haible  <bruno@clisp.org>
58722         timegm: Assume declaration if function exists.
58723         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
58724         if it exists. Don't clobber ac_cv_func_timegm.
58726 2010-04-03  Bruno Haible  <bruno@clisp.org>
58728         time_r: Fix C++ test error on mingw.
58729         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
58730         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
58731         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
58732         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
58733         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
58735 2010-04-03  Bruno Haible  <bruno@clisp.org>
58737         time_r: Minor updates.
58738         * modules/time_r (Description): Mention the provided functions.
58739         * lib/time_r.c: Don't include <string.h>.
58740         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
58741         * doc/posix-functions/localtime_r.texi: Likewise.
58743 2010-04-03  Bruno Haible  <bruno@clisp.org>
58745         time: Fix regression introduced on 2010-03-08.
58746         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
58747         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
58749 2010-04-03  Jim Meyering  <meyering@redhat.com>
58751         maint.mk: don't silently disable project-specific syntax-check rules
58752         * top/maint.mk (_prohibit_regexp): Define, to help people realize
58753         that they need to convert their project-specific syntax-check rules
58754         to use the new _sc_search_regexp.
58756 2010-04-03  Bruno Haible  <bruno@clisp.org>
58758         fchdir: Fix regression introduced on 2010-03-08.
58759         * lib/unistd.in.h (fchdir): Fix declaration.
58760         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
58761         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
58762         REPLACE_FCHDIR.
58763         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
58764         REPLACE_FCHDIR.
58766 2010-04-03  Bruno Haible  <bruno@clisp.org>
58768         getpagesize: Fix C++ test error on mingw.
58769         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
58770         system does not declare the function.
58771         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
58772         declared.
58773         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
58774         HAVE_DECL_GETPAGESIZE.
58775         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
58777 2010-04-03  Bruno Haible  <bruno@clisp.org>
58779         stdio: Make C++ tests work on mingw.
58780         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
58781         does not declare the function.
58783 2010-04-03  Bruno Haible  <bruno@clisp.org>
58785         ftello: Fix C++ test error on mingw.
58786         * lib/stdio.in.h (ftello): Use modern idiom.
58787         * lib/ftello.c (ftello): Renamed from rpl_ftello.
58788         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
58789         is missing and that it needs to be replaced.
58790         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
58791         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
58792         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
58794 2010-04-03  Bruno Haible  <bruno@clisp.org>
58796         fseeko: Fix C++ test error on mingw.
58797         * lib/stdio.in.h (fseeko): Use modern idiom.
58798         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
58799         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
58800         is missing and that it needs to be replaced.
58801         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
58802         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
58803         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
58805 2010-04-03  Bruno Haible  <bruno@clisp.org>
58807         mkstemp: Fix C++ test error on mingw.
58808         * lib/stdlib.in.h (mkstemp): Use modern idiom.
58809         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
58810         function is missing and that it needs to be replaced.
58811         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
58812         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
58814 2010-04-03  Bruno Haible  <bruno@clisp.org>
58816         stpncpy: Fix C++ test error on mingw.
58817         * lib/string.in.h (stpncpy): Use modern idiom.
58818         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
58819         function is missing and that it needs to be replaced.
58820         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
58821         REPLACE_STPNCPY.
58822         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
58824 2010-04-03  Bruno Haible  <bruno@clisp.org>
58826         sys_stat: Fix C++ test error on mingw.
58827         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
58828         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
58830 2010-04-03  Bruno Haible  <bruno@clisp.org>
58832         pty: Update doc.
58833         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
58835 2010-04-03  Bruno Haible  <bruno@clisp.org>
58837         unistd: Fix C++ test error on mingw.
58838         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
58840 2010-04-03  Bruno Haible  <bruno@clisp.org>
58842         Update doc regarding mingw.
58843         * doc/glibc-functions/openpty.texi: Update regarding mingw.
58844         * doc/glibc-functions/login_tty.texi: Likewise.
58845         * doc/glibc-functions/forkpty.texi: Likewise.
58847 2010-04-03  Bruno Haible  <bruno@clisp.org>
58849         stdlib: Avoid compilation failure of c-strtold on mingw.
58850         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
58852 2010-04-03  Bruno Haible  <bruno@clisp.org>
58854         locale: Make C++ tests work on Cygwin and mingw.
58855         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
58856         cannot provide the function.
58857         Reported by Simon Josefsson.
58859 2010-04-03  Bruno Haible  <bruno@clisp.org>
58861         localename: Port to MacOS X 10.6.
58862         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
58863         memory layout of the locales in MacOS X 10.6 as well.
58864         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
58866 2010-04-02  Bruno Haible  <bruno@clisp.org>
58868         gnulib-tool: Ensure that long-running tests are executed last.
58869         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
58870         running tests after the one for the other tests.
58872 2010-04-02  Bruno Haible  <bruno@clisp.org>
58874         gnulib-tool: Ensure the tests in the main directory are executed first.
58875         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
58876         start with the current directory.
58878 2010-04-02  Bruno Haible  <bruno@clisp.org>
58880         Tests for module 'havelib', moved here from GNU gettext.
58881         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
58882         modifications.
58883         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
58884         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
58885         with modifications.
58886         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
58887         modifications.
58888         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
58889         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
58890         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
58891         with modifications.
58892         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
58893         with modifications.
58894         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
58895         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
58896         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
58897         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
58898         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
58899         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
58900         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
58901         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
58902         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
58903         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
58904         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
58905         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
58906         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
58907         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
58908         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
58909         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
58910         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
58911         with modifications.
58912         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
58913         with modifications.
58914         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
58915         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
58916         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
58917         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
58918         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
58919         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
58920         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
58921         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
58922         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
58923         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
58924         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
58925         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
58926         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
58927         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
58928         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
58929         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
58930         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
58931         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
58932         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
58933         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
58934         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
58935         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
58936         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
58937         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
58938         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
58939         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
58940         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
58941         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
58942         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
58943         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
58944         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
58945         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
58946         * tests/havelib/rpathx/rpathx.c: New file, from
58947         gettext/autoconf-lib-link.
58948         * tests/havelib/rpathx/Makefile.am: New file, from
58949         gettext/autoconf-lib-link.
58950         * tests/havelib/rpathx/configure.ac: New file, from
58951         gettext/autoconf-lib-link with modifications.
58952         * tests/havelib/rpathy/rpathy.c: New file, from
58953         gettext/autoconf-lib-link.
58954         * tests/havelib/rpathy/Makefile.am: New file, from
58955         gettext/autoconf-lib-link.
58956         * tests/havelib/rpathy/configure.ac: New file, from
58957         gettext/autoconf-lib-link with modifications.
58958         * tests/havelib/rpathz/rpathz.c: New file, from
58959         gettext/autoconf-lib-link.
58960         * tests/havelib/rpathz/Makefile.am: New file, from
58961         gettext/autoconf-lib-link.
58962         * tests/havelib/rpathz/configure.ac: New file, from
58963         gettext/autoconf-lib-link with modifications.
58964         * tests/havelib/rpathlx/usex.c: New file, from
58965         gettext/autoconf-lib-link.
58966         * tests/havelib/rpathlx/Makefile.am: New file, from
58967         gettext/autoconf-lib-link.
58968         * tests/havelib/rpathlx/configure.ac: New file, from
58969         gettext/autoconf-lib-link with modifications.
58970         * tests/havelib/rpathly/usey.c: New file, from
58971         gettext/autoconf-lib-link.
58972         * tests/havelib/rpathly/Makefile.am: New file, from
58973         gettext/autoconf-lib-link.
58974         * tests/havelib/rpathly/configure.ac: New file, from
58975         gettext/autoconf-lib-link with modifications.
58976         * tests/havelib/rpathlz/usez.c: New file, from
58977         gettext/autoconf-lib-link.
58978         * tests/havelib/rpathlz/Makefile.am: New file, from
58979         gettext/autoconf-lib-link.
58980         * tests/havelib/rpathlz/configure.ac: New file, from
58981         gettext/autoconf-lib-link with modifications.
58982         * tests/havelib/rpathlyx/usey.c: New file, from
58983         gettext/autoconf-lib-link.
58984         * tests/havelib/rpathlyx/Makefile.am: New file, from
58985         gettext/autoconf-lib-link.
58986         * tests/havelib/rpathlyx/configure.ac: New file, from
58987         gettext/autoconf-lib-link with modifications.
58988         * tests/havelib/rpathlzyx/usez.c: New file, from
58989         gettext/autoconf-lib-link.
58990         * tests/havelib/rpathlzyx/Makefile.am: New file, from
58991         gettext/autoconf-lib-link.
58992         * tests/havelib/rpathlzyx/configure.ac: New file, from
58993         gettext/autoconf-lib-link with modifications.
58994         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
58995         with modifications.
58997 2010-04-02  Bruno Haible  <bruno@clisp.org>
58999         gnulib-tool: Create distributed built sources also for the tests.
59000         * gnulib-tool (func_create_testdir): Also generate distributed built
59001         sources in the tests directory.
59003 2010-04-02  Bruno Haible  <bruno@clisp.org>
59005         gnulib-tool: Obey user's environment variables.
59006         * gnulib-tool (func_create_testdir): When creating built sources,
59007         respect the environment variables for autoconf, automake, etc. given by
59008         the user.
59010 2010-04-02  Bruno Haible  <bruno@clisp.org>
59012         gnulib-tool: Provide the value of --m4-base to modules.
59013         * gnulib-tool (func_import, func_create_testdir): Emit a definition
59014         of gl_m4_base.
59016 2010-04-02  Eric Blake  <eblake@redhat.com>
59018         maint.mk: fix some fallout
59019         * NEWS: Document the incompatible change, and its effect on cfg.mk.
59020         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
59022 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
59024         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
59025         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
59026         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
59027         (sc_cast_of_x_alloc_return_value): Likewise.
59028         (sc_cast_of_alloca_return_value): Likewise.
59029         (sc_space_tab): Likewise.
59030         (sc_prohibit_atoi_atof): Likewise.
59031         (sc_prohibit_magic_number_exit): Likewise.
59032         (sc_error_exit_success): Likewise.
59033         (sc_file_system): Likewise.
59034         (sc_prohibit_have_config_h): Likewise.
59035         (sc_require_config_h): Likewise.
59036         (sc_prohibit_HAVE_MBRTOWC): Likewise.
59037         (sc_obsolete_symbols): Likewise.
59038         (sc_changelog): Likewise.
59039         (sc_program_name): Likewise.
59040         (sc_the_the): Likewise.
59041         (sc_trailing_blank): Likewise.
59042         (sc_two_space_separator_in_usage): Likewise.
59043         (sc_useless_cpp_parens): Likewise.
59044         (sc_GPL_version): Likewise.
59045         (sc_GFDL_version): Likewise.
59046         (sc_texinfo_acronym): Likewise.
59047         (sc_prohibit_cvs_keyword): Likewise.
59048         (sc_prohibit_stat_st_blocks): Likewise.
59049         (sc_prohibit_S_IS_definition): Likewise.
59050         (sc_redundant_const): Likewise.
59051         (sc_makefile_TAB_only_indentation): Likewise.
59052         (sc_m4_quote_check): Likewise.
59053         (sc_makefile_path_separator_check): Likewise.
59054         (sc_copyright_check): Likewise.
59055         (sc_Wundef_boolean): Likewise.
59056         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
59058         maint.mk: match 0 or more whitespace-before-function-call '('
59059         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
59060         that have zero or two-and-more spaces between the function name
59061         and the open parenthesis.
59062         (sc_error_message_warn_fatal): Likewise.
59063         (sc_error_message_uppercase): Likewise.
59064         (sc_error_message_period): Likewise.
59066 2010-03-31  Eric Blake  <eblake@redhat.com>
59068         maint.mk: check for [ as well as test
59069         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
59070         Based on a libvirt report by Matthias Bolte.
59072         gnumakefile: don't squelch _version output
59073         * top/GNUmakefile (_version): Create one-shot dependency rather
59074         than using $(shell) when version must be regenerated.
59075         (_autoreconf): Run verbosely, by default.
59077         sys_time: avoid compiler warnings
59078         * lib/sys_time.in.h (includes): Ensure gcc pragma is
59079         unconditional, fixing regression from 2010-03-29.
59080         Reported by Simon Josefsson.
59082 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
59084         maint.mk: s/_header_without_use/_sc_header_without_use/
59085         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
59086         (sc_prohibit_assert_without_use): Use the new name.
59087         (sc_prohibit_close_stream_without_use): Likewise.
59088         (sc_prohibit_getopt_without_use): Likewise.
59089         (sc_prohibit_quotearg_without_use): Likewise.
59090         (sc_prohibit_quote_without_use): Likewise.
59091         (sc_prohibit_long_options_without_use): Likewise.
59092         (sc_prohibit_inttostr_without_use): Likewise.
59093         (sc_prohibit_ignore_value_without_use): Likewise.
59094         (sc_prohibit_error_without_use): Likewise.
59095         (sc_prohibit_xalloc_without_use): Likewise.
59096         (sc_prohibit_hash_without_use): Likewise.
59097         (sc_prohibit_hash_pjw_without_use): Likewise.
59098         (sc_prohibit_safe_read_without_use): Likewise.
59099         (sc_prohibit_argmatch_without_use): Likewise.
59100         (sc_prohibit_canonicalize_without_use): Likewise.
59101         (sc_prohibit_root_dev_ino_without_use): Likewise.
59102         (sc_prohibit_openat_without_use): Likewise.
59103         (sc_prohibit_c_ctype_without_use): Likewise.
59104         (sc_prohibit_signal_without_use): Likewise.
59105         (sc_prohibit_intprops_without_use): Likewise.
59107 2010-03-30  Eric Blake  <eblake@redhat.com>
59109         maint: improve module indicators
59110         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
59111         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
59112         columns, and avoid extra macro expansion.
59114         fdopendir: work around FreeBSD bug
59115         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
59116         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
59117         * modules/dirent (Makefile.am): Substitute it.
59118         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
59119         declaration.
59120         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
59121         fix.
59122         Reported by Christian Weisgerber <naddy@mips.inka.de>.
59124 2010-03-29  Bruno Haible  <bruno@clisp.org>
59126         Emit #pragma system_header after the inclusion guard, not before.
59127         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
59128         guard that spans the entire file, not before. This enables an
59129         optimization in GCC's preprocessor.
59130         * lib/ctype.in.h: Likewise.
59131         * lib/dirent.in.h: Likewise.
59132         * lib/errno.in.h: Likewise.
59133         * lib/float.in.h: Likewise.
59134         * lib/getopt.in.h: Likewise.
59135         * lib/iconv.in.h: Likewise.
59136         * lib/langinfo.in.h: Likewise.
59137         * lib/locale.in.h: Likewise.
59138         * lib/math.in.h: Likewise.
59139         * lib/netdb.in.h: Likewise.
59140         * lib/netinet_in.in.h: Likewise.
59141         * lib/pty.in.h: Likewise.
59142         * lib/sched.in.h: Likewise.
59143         * lib/se-selinux.in.h: Likewise.
59144         * lib/search.in.h: Likewise.
59145         * lib/spawn.in.h: Likewise.
59146         * lib/stdarg.in.h: Likewise.
59147         * lib/stdint.in.h: Likewise.
59148         * lib/string.in.h: Likewise.
59149         * lib/strings.in.h: Likewise.
59150         * lib/sys_file.in.h: Likewise.
59151         * lib/sys_ioctl.in.h: Likewise.
59152         * lib/sys_time.in.h: Likewise.
59153         * lib/sys_times.in.h: Likewise.
59154         * lib/sys_utsname.in.h: Likewise.
59155         * lib/sys_wait.in.h: Likewise.
59156         * lib/sysexits.in.h: Likewise.
59157         * lib/wctype.in.h: Likewise.
59159 2010-03-28  James Youngman  <jay@gnu.org>
59161         save-cwd: don't leak a file descriptor when the caller execs.
59162         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
59163         saved file descriptor.
59164         * modules/save-cwd (Depends-on): Depend on cloexec.
59166 2010-03-29  Bruno Haible  <bruno@clisp.org>
59168         Remove vestiges of fts-lgpl module.
59169         * lib/fts_.h: Assume GNULIB_FTS is 1.
59170         * lib/fts.c: Likewise.
59171         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
59173 2010-03-28  Bruno Haible  <bruno@clisp.org>
59175         Fix definition of tests witness macro.
59176         * gnulib-tool (func_import): Fix definition of witness macro.
59178 2010-03-28  Bruno Haible  <bruno@clisp.org>
59180         Fix ioctl's protoype on glibc systems.
59181         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
59182         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
59183         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
59184         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
59185         signature. If not, arrange to replace the ioctl function.
59186         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
59187         REPLACE_IOCTL.
59188         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
59189         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
59190         Reported by Ludovic Courtès <ludo@gnu.org>.
59192 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
59194         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
59195         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
59196         made it so grep -r --include=GLOB* ... did not work.
59198 2010-03-26  Jim Meyering  <meyering@redhat.com>
59199             Eric Blake  <eblake@redhat.com>
59201         maint.mk: prohibit use of test's -o and -a operators
59202         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
59204 2010-03-28  Bruno Haible  <bruno@clisp.org>
59206         Remove unused GNULIB_XYZ macro definitions.
59207         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
59208         invocation.
59210 2010-03-28  Bruno Haible  <bruno@clisp.org>
59212         Mark privileged tests modules.
59213         * modules/idpriv-drop-tests (Status): New section.
59214         * modules/idpriv-droptemp-tests (Status): New section.
59216 2010-03-28  Bruno Haible  <bruno@clisp.org>
59218         Split C++ tests into separate tests modules.
59219         * modules/dirent-c++-tests: New file, extracted from
59220         modules/dirent-tests.
59221         * modules/dirent-tests: Depend on it.
59222         * modules/fcntl-h-c++-tests: New file, extracted from
59223         modules/fcntl-h-tests.
59224         * modules/fcntl-h-tests: Depend on it.
59225         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
59226         * modules/glob-tests: Depend on it.
59227         * modules/iconv-h-c++-tests: New file, extracted from
59228         modules/iconv-h-tests.
59229         * modules/iconv-h-tests: Depend on it.
59230         * modules/langinfo-c++-tests: New file, extracted from
59231         modules/langinfo-tests.
59232         * modules/langinfo-tests: Depend on it.
59233         * modules/locale-c++-tests: New file, extracted from
59234         modules/locale-tests.
59235         * modules/locale-tests: Depend on it.
59236         * modules/math-c++-tests: New file, extracted from modules/math-tests.
59237         * modules/math-tests: Depend on it.
59238         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
59239         * modules/pty-tests: Depend on it.
59240         * modules/search-c++-tests: New file, extracted from
59241         modules/search-tests.
59242         * modules/search-tests: Depend on it.
59243         * modules/signal-c++-tests: New file, extracted from
59244         modules/signal-tests.
59245         * modules/signal-tests: Depend on it.
59246         * modules/spawn-c++-tests: New file, extracted from
59247         modules/spawn-tests.
59248         * modules/spawn-tests: Depend on it.
59249         * modules/stdio-c++-tests: New file, extracted from
59250         modules/stdio-tests.
59251         * modules/stdio-tests: Depend on it.
59252         * modules/stdlib-c++-tests: New file, extracted from
59253         modules/stdlib-tests.
59254         * modules/stdlib-tests: Depend on it.
59255         * modules/string-c++-tests: New file, extracted from
59256         modules/string-tests.
59257         * modules/string-tests: Depend on it.
59258         * modules/sys_ioctl-c++-tests: New file, extracted from
59259         modules/sys_ioctl-tests.
59260         * modules/sys_ioctl-tests: Depend on it.
59261         * modules/sys_select-c++-tests: New file, extracted from
59262         modules/sys_select-tests.
59263         * modules/sys_select-tests: Depend on it.
59264         * modules/sys_socket-c++-tests: New file, extracted from
59265         modules/sys_socket-tests.
59266         * modules/sys_socket-tests: Depend on it.
59267         * modules/sys_stat-c++-tests: New file, extracted from
59268         modules/sys_stat-tests.
59269         * modules/sys_stat-tests: Depend on it.
59270         * modules/sys_time-c++-tests: New file, extracted from
59271         modules/sys_time-tests.
59272         * modules/sys_time-tests: Depend on it.
59273         * modules/time-c++-tests: New file, extracted from modules/time-tests.
59274         * modules/time-tests: Depend on it.
59275         * modules/unistd-c++-tests: New file, extracted from
59276         modules/unistd-tests.
59277         * modules/unistd-tests: Depend on it.
59278         * modules/wchar-c++-tests: New file, extracted from
59279         modules/wchar-tests.
59280         * modules/wchar-tests: Depend on it.
59281         * modules/wctype-c++-tests: New file, extracted from
59282         modules/wctype-tests.
59283         * modules/wctype-tests: Depend on it.
59284         Reported by Simon Josefsson.
59286 2010-03-28  Bruno Haible  <bruno@clisp.org>
59288         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
59289         * gnulib-tool (func_exists_module): New function, extracted from
59290         func_verify_module.
59291         (func_verify_module): Use it.
59292         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
59293         'foo' only if 'foo' exists.
59294         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
59295         module.
59297 2010-03-28  Bruno Haible  <bruno@clisp.org>
59299         gnulib-tool: Add support for special categories of tests.
59300         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
59301         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
59302         (func_usage): Document them.
59303         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
59304         inc_unportable_tests, inc_all_tests): New variables.
59305         (func_acceptable): Consider these variables.
59306         (func_modules_transitive_closure): Make it work when the 'Status' field
59307         consists of multiple words.
59308         (func_import): Store and restore the values of inc_cxx_tests,
59309         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
59310         inc_all_tests in gnulib-comp.m4.
59311         (func_create_testdir): Set inc_all_tests to true.
59312         * doc/gnulib.texi (Extra tests modules): New section.
59313         Suggested by Jim Meyering.
59315 2010-03-28  Bruno Haible  <bruno@clisp.org>
59317         ansi-c++-opt: Allow turning off the C++ build by default.
59318         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
59319         gl_CXX_CHOICE_DEFAULT_NO is defined.
59320         Requested by Eric Blake.
59322 2010-03-28  Bruno Haible  <bruno@clisp.org>
59324         unistd: Avoid #define replacements in C++ mode.
59325         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
59326         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
59327         setsockopt, shutdown, select): In C++, attach a warning to the function
59328         if possible, rather than #defining the symbol to a dysfunctional alias.
59329         Reported by John W. Eaton <jwe@gnu.org>.
59331 2010-03-28  Bruno Haible  <bruno@clisp.org>
59333         Fix link errors on mingw.
59334         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
59335         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
59336         $(LIBSOCKET).
59337         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
59338         $(LIBSOCKET).
59340 2010-03-28  Bruno Haible  <bruno@clisp.org>
59341             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59343         lib-ignore: Determine different options for different compilers.
59344         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
59345         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
59346         Add comments.
59347         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
59348         * NEWS: Mention the change.
59350 2010-03-27  Bruno Haible  <bruno@clisp.org>
59352         Remove unused GNULIB_XYZ macro definitions.
59353         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
59354         * modules/fseek (configure.ac): Likewise.
59355         * modules/ioctl (configure.ac): Likewise.
59356         * modules/open (configure.ac): Likewise.
59357         * modules/stdlib-safer (configure.ac): Likewise.
59359 2010-03-27  Bruno Haible  <bruno@clisp.org>
59361         Add a remark about certain modules.
59362         * modules/malloc (Comment): New section.
59363         * modules/realloc (Comment): Likewise.
59364         * modules/sigpipe (Comment): Likewise.
59366 2010-03-27  Bruno Haible  <bruno@clisp.org>
59368         Resolve conflict between the two kinds of module indicators.
59369         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
59370         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
59371         * modules/canonicalize (configure.ac): Invoke
59372         gl_MODULE_INDICATOR_FOR_TESTS.
59373         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
59374         GNULIB_XYZ.
59375         * tests/test-dirent-c++.cc: Likewise.
59376         * tests/test-dirent-safer.c: Likewise.
59377         * tests/test-dup2.c: Likewise.
59378         * tests/test-fchdir.c: Likewise.
59379         * tests/test-fcntl-h-c++.cc: Likewise.
59380         * tests/test-getopt.c: Likewise.
59381         * tests/test-getopt.h: Likewise.
59382         * tests/test-langinfo-c++.cc: Likewise.
59383         * tests/test-locale-c++.cc: Likewise.
59384         * tests/test-math-c++.cc: Likewise.
59385         * tests/test-pty-c++.cc: Likewise.
59386         * tests/test-search-c++.cc: Likewise.
59387         * tests/test-signal-c++.cc: Likewise.
59388         * tests/test-spawn-c++.cc: Likewise.
59389         * tests/test-stdio-c++.cc: Likewise.
59390         * tests/test-stdlib-c++.cc: Likewise.
59391         * tests/test-string-c++.cc: Likewise.
59392         * tests/test-sys_ioctl-c++.cc: Likewise.
59393         * tests/test-sys_select-c++.cc: Likewise.
59394         * tests/test-sys_socket-c++.cc: Likewise.
59395         * tests/test-sys_stat-c++.cc: Likewise.
59396         * tests/test-sys_time-c++.cc: Likewise.
59397         * tests/test-time-c++.cc: Likewise.
59398         * tests/test-unistd-c++.cc: Likewise.
59399         * tests/test-wchar-c++.cc: Likewise.
59400         * tests/uninorm/test-u8-nfc.c: Likewise.
59401         * tests/uninorm/test-u8-nfd.c: Likewise.
59402         * tests/uninorm/test-u8-nfkc.c: Likewise.
59403         * tests/uninorm/test-u8-nfkd.c: Likewise.
59404         * tests/uninorm/test-u16-nfc.c: Likewise.
59405         * tests/uninorm/test-u16-nfd.c: Likewise.
59406         * tests/uninorm/test-u16-nfkc.c: Likewise.
59407         * tests/uninorm/test-u16-nfkd.c: Likewise.
59408         * tests/uninorm/test-u32-nfc.c: Likewise.
59409         * tests/uninorm/test-u32-nfc-big.c: Likewise.
59410         * tests/uninorm/test-u32-nfd.c: Likewise.
59411         * tests/uninorm/test-u32-nfd-big.c: Likewise.
59412         * tests/uninorm/test-u32-nfkc.c: Likewise.
59413         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
59414         * tests/uninorm/test-u32-nfkd.c: Likewise.
59415         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
59416         * tests/uninorm/test-u32-normalize-big.c: Likewise.
59418 2010-03-27  Bruno Haible  <bruno@clisp.org>
59420         Distinguish two kinds of module indicators.
59421         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
59422         gl_MODULE_INDICATOR.
59423         (gl_MODULE_INDICATOR): New macro.
59424         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
59425         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
59426         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
59427         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
59428         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
59429         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
59430         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
59431         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
59432         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
59433         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
59434         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
59435         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
59436         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
59437         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
59438         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
59439         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
59440         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
59441         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
59442         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
59443         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
59444         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
59445         * modules/cloexec (configure.ac): Likewise.
59446         * modules/getopt-gnu (configure.ac): Likewise.
59447         * modules/uninorm/u8-normalize (configure.ac): Likewise.
59448         * modules/uninorm/u16-normalize (configure.ac): Likewise.
59449         * modules/uninorm/u32-normalize (configure.ac): Likewise.
59450         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
59452 2010-03-27  Bruno Haible  <bruno@clisp.org>
59454         New module description field 'Comment'.
59455         * gnulib-tool: New option --extract-comment.
59456         (func_usage): Document it.
59457         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
59458         (func_get_comment): New function.
59459         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
59461 2010-03-27  Bruno Haible  <bruno@clisp.org>
59463         Addendum to 2010-02-07 commit.
59464         * gnulib-tool (func_usage): Document --extract-applicability option.
59466 2010-03-27  Bruno Haible  <bruno@clisp.org>
59468         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
59469         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
59470         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
59471         rather than link errors.
59473 2010-03-27  Bruno Haible  <bruno@clisp.org>
59475         Avoid side effects from tests-related modules on the compilation of lib.
59476         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
59477         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
59478         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
59479         parameter. Emit into AM_CPPFLAGS a definition of the designated C
59480         macro.
59481         (func_import): Define a witness macro. Assign it a value that depends
59482         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
59483         tests-related modules.
59484         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
59485         Reported by Jim Meyering.
59487 2010-03-27  Bruno Haible  <bruno@clisp.org>
59489         Factorize common .m4 code.
59490         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
59491         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
59492         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
59493         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
59494         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
59495         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
59496         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
59497         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
59498         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
59499         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
59500         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
59501         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
59502         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
59503         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
59504         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
59505         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
59506         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
59507         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
59508         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
59509         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
59510         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
59511         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
59512         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
59513         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
59514         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
59515         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
59516         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
59517         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
59518         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
59519         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
59520         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
59521         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
59523 2010-03-27  Bruno Haible  <bruno@clisp.org>
59525         Fix a compilation error on Cygwin with g++ >= 4.3.
59526         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
59527         if it is undefined or if we alias it to chmod.
59528         (lstat): Don't warn about the use of this function if it is undefined
59529         or if we alias it to stat.
59530         Reported by Simon Josefsson.
59532 2010-03-27  Bruno Haible  <bruno@clisp.org>
59534         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
59535         * modules/getlogin (configure.ac): Update.
59537         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
59538         * modules/getlogin_r (configure.ac): Update.
59540         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
59541         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
59542         * modules/inet_ntop (configure.ac): Update.
59544         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
59545         * modules/inet_pton (configure.ac): Update.
59547         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
59548         * modules/mbslen (configure.ac): Update.
59550         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
59551         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
59552         * modules/forkpty (configure.ac): Update.
59553         * modules/openpty (configure.ac): Update.
59555 2010-03-26  Simon Josefsson  <simon@josefsson.org>
59557         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
59558         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
59560 2010-03-25  Eric Blake  <eblake@redhat.com>
59562         maint: use pragma consistently across replacement headers
59563         * lib/ctype.in.h (system_header): Hoist for consistent placement.
59564         * lib/dirent.in.h (system_header): Likewise.
59565         * lib/errno.in.h (system_header): Likewise.
59566         * lib/float.in.h (system_header): Likewise.
59567         * lib/getopt.in.h (system_header): Likewise.
59568         * lib/iconv.in.h (system_header): Likewise.
59569         * lib/inttypes.in.h (system_header): Likewise.
59570         * lib/langinfo.in.h (system_header): Likewise.
59571         * lib/locale.in.h (system_header): Likewise.
59572         * lib/math.in.h (system_header): Likewise.
59573         * lib/netdb.in.h (system_header): Likewise.
59574         * lib/netinet_in.in.h (system_header): Likewise.
59575         * lib/pty.in.h (system_header): Likewise.
59576         * lib/sched.in.h (system_header): Likewise.
59577         * lib/se-selinux.in.h (system_header): Likewise.
59578         * lib/search.in.h (system_header): Likewise.
59579         * lib/spawn.in.h (system_header): Likewise.
59580         * lib/stdarg.in.h (system_header): Likewise.
59581         * lib/stdint.in.h (system_header): Likewise.
59582         * lib/string.in.h (system_header): Likewise.
59583         * lib/strings.in.h (system_header): Likewise.
59584         * lib/sys_file.in.h (system_header): Likewise.
59585         * lib/sys_ioctl.in.h (system_header): Likewise.
59586         * lib/sys_socket.in.h (system_header): Likewise.
59587         * lib/sys_times.in.h (system_header): Likewise.
59588         * lib/sys_utsname.in.h (system_header): Likewise.
59589         * lib/sys_wait.in.h (system_header): Likewise.
59590         * lib/sysexits.in.h (system_header): Likewise.
59591         * lib/unistd.in.h (system_header): Likewise.
59592         * lib/wctype.in.h (system_header): Likewise.
59594         arpa/inet: fix mingw compilation warning
59595         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
59596         Reported by Matthew Bolte.
59598 2010-03-25  Bruno Haible  <bruno@clisp.org>
59600         Avoid collision between gnulib wrapper and libintl wrapper.
59601         * lib/printf.c (printf): Don't define if a printf wrapper is already
59602         defined in intl/printf.c.
59603         Reported by Michel Boaventura <michel@michelboaventura.com>.
59605 2010-03-25  Bruno Haible  <bruno@clisp.org>
59607         Use ANSI C.
59608         * lib/readutmp.h (getutent): Provide ANSI C prototype.
59610 2010-03-25  Bruno Haible  <bruno@clisp.org>
59612         Minor formatting changes.
59613         * lib/acosl.c: Insert space before function argument list.
59614         * lib/argz.c: Likewise.
59615         * lib/asinl.c: Likewise.
59616         * lib/expl.c: Likewise.
59617         * lib/gen-uni-tables.c: Likewise.
59618         * lib/gettext.h: Likewise.
59619         * lib/glthread/lock.h: Likewise.
59620         * lib/tanl.c: Likewise.
59621         * lib/uniname/uniname.c: Likewise.
59622         * tests/test-idpriv-drop.c: Likewise.
59623         * tests/test-idpriv-droptemp.c: Likewise.
59624         * tests/test-lock.c: Likewise.
59625         * tests/test-tls.c: Likewise.
59626         * lib/argp-help.c: Insert space before function-like macro argument
59627         list.
59628         * lib/memcmp.c: Likewise.
59629         * tests/test-base64.c: Likewise.
59630         * lib/localename.c: Insert space before sizeof's argument list.
59631         * lib/safe-alloc.h: Likewise.
59632         * lib/file-set.h: Insert space before macro argument list.
59633         * tests/test-argp.c: Likewise.
59634         * lib/argp-namefrob.h: Insert space before function parameter list.
59635         * lib/getaddrinfo.c: Likewise.
59636         * lib/netdb.in.h: Likewise.
59637         * lib/parse-duration.h: Likewise.
59638         * lib/parse-duration.c: Likewise.
59639         * lib/poll.c: Likewise.
59640         * lib/select.c: Likewise.
59641         * lib/trim.h: Likewise.
59642         * tests/test-usleep.c: Likewise.
59643         * lib/ldexpl.c: Insert space before function parameter list and before
59644         function argument list.
59645         * lib/logl.c: Likewise.
59646         * lib/sqrtl.c: Likewise.
59647         * lib/trim.c: Likewise.
59648         * lib/cosl.c: Use GNU style indentation. Insert space before function
59649         argument list.
59650         * lib/sinl.c: Likewise.
59651         * lib/tsearch.c: Insert space after 'for'.
59652         Reported by Jim Meyering.
59654 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
59656         * maint.mk (sc_Wundef_boolean): Check for the presence of the
59657         config header before grepping, as it's not present before
59658         autoreconf/configure are run.  Reported by Simon Josefsson.
59660 2010-03-23  Bruno Haible  <bruno@clisp.org>
59662         pt_chown: Make it work with automake < 1.11.
59663         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
59664         Reported by Simon Josefsson.
59666 2010-03-23  Bruno Haible  <bruno@clisp.org>
59668         pt_chown: Don't depend on GPLed modules.
59669         * lib/pt_chown.c: Don't include idpriv.h.
59670         (main): Don't drop privileges.
59671         * modules/pt_chown (Depends-on): Remove idpriv-drop.
59672         Reported by Simon Josefsson.
59674 2010-03-24  Simon Josefsson  <simon@josefsson.org>
59676         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
59677         suggestions from karl@freefriends.org (Karl Berry).
59679 2010-03-22  Eric Blake  <eblake@redhat.com>
59681         gethostname: further tweaks
59682         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
59683         are overriding gethostname.
59684         Suggested by Bruno Haible.
59686 2010-03-21  Bruno Haible  <bruno@clisp.org>
59688         Fix comments.
59689         * lib/forkpty.c (rpl_forkpty): Fix comment.
59690         * lib/openpty.c (rpl_openpty): Likewise.
59691         Reported by Eric Blake.
59693 2010-03-22  Eric Blake  <eblake@redhat.com>
59695         gethostname: fix build on mingw
59696         * lib/unistd.in.h (includes): Work around fact that mingw
59697         <winsock2.h> re-includes <unistd.h>, by avoiding any
59698         redeclarations if we are being included by <winsock2.h>.
59699         Reported by Matthias Bolte.
59701 2010-03-21  Bruno Haible  <bruno@clisp.org>
59703         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
59704         * lib/forkpty.c (forkpty): New replacement function, from glibc with
59705         modifications.
59706         * lib/pty.in.h (forkpty): Update declaration. Add comments.
59707         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
59708         provide the replacement.
59709         * modules/forkpty (Depends-on): Add openpty, login_tty.
59710         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
59711         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
59712         * doc/glibc-functions/forkpty.texi: More supported platforms.
59713         * config/srclist.txt: Add forkpty.c (commented).
59715 2010-03-21  Bruno Haible  <bruno@clisp.org>
59717         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
59718         (Makefile.am): Verify that PTY_LIB is defined.
59720         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
59722 2010-03-21  Bruno Haible  <bruno@clisp.org>
59724         Tests for module 'login_tty'.
59725         * modules/login_tty-tests: New file.
59726         * tests/test-login_tty.c: New file.
59728         New module 'login_tty'.
59729         * lib/login_tty.c: New file.
59730         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
59731         * modules/login_tty: New file.
59732         * doc/glibc-functions/login_tty.texi: Mention the new module.
59734 2010-03-21  Bruno Haible  <bruno@clisp.org>
59736         login_tty: Documentation.
59737         * doc/glibc-functions/login_tty.texi: New file.
59738         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
59740 2010-03-21  Bruno Haible  <bruno@clisp.org>
59742         pty: Consistent macro naming.
59743         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
59744         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
59745         * modules/pty (configure.ac): Update.
59747 2010-03-21  Bruno Haible  <bruno@clisp.org>
59749         Tests for openpty: Make stricter.
59750         * tests/test-openpty.c (main): Add test of canonical processing and
59751         erase.
59752         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
59754         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
59755         * lib/openpty.c (openpty): New replacement function.
59756         * lib/pty.in.h: Include <termios.h>.
59757         (openpty): Update declaration. Add comments.
59758         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
59759         is not declared, arrange to provide the replacement. Check for _getpty
59760         and posix_openpt.
59761         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
59762         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
59763         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
59764         * modules/pty-tests (test_pty_c___LDADD): New variable.
59765         * doc/glibc-functions/openpty.texi: More supported platforms.
59767 2010-03-21  Bruno Haible  <bruno@clisp.org>
59769         setenv: Tweaks.
59770         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
59771         the test program.
59772         * doc/posix-functions/setenv.texi: Update platforms list.
59774 2010-03-21  Bruno Haible  <bruno@clisp.org>
59776         New module 'unlockpt'.
59777         * lib/unlockpt.c: New file, from glibc with modifications.
59778         * m4/unlockpt.m4: New file.
59779         * modules/unlockpt: New file.
59780         * lib/stdlib.in.h (unlockpt): New declaration.
59781         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
59782         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
59783         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
59784         HAVE_UNLOCKPT.
59785         * doc/posix-functions/unlockpt.texi: Mention the new module.
59786         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
59787         * config/srclist.txt: Add unlockpt.c (commented).
59789 2010-03-21  Jim Meyering  <meyering@redhat.com>
59791         maint.mk: prohibit inclusion of "intprops.h" without use
59792         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
59794 2010-03-21  Bruno Haible  <bruno@clisp.org>
59796         New module 'grantpt'.
59797         * lib/grantpt.c: New file, from glibc with modifications.
59798         * m4/grantpt.m4: New file.
59799         * modules/grantpt: New file.
59800         * lib/stdlib.in.h (grantpt): New declaration.
59801         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
59802         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
59803         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
59804         HAVE_GRANTPT.
59805         * doc/posix-functions/grantpt.texi: Mention the new module.
59806         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
59807         * config/srclist.txt: Add grantpt.c (commented).
59809 2010-03-21  Bruno Haible  <bruno@clisp.org>
59811         New module 'pt_chown'.
59812         * lib/pt_chown.c: New file, from glibc with modifications.
59813         * lib/pty-private.h: New file, from glibc with modifications.
59814         * modules/pt_chown: New file.
59815         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
59817 2010-03-21  Bruno Haible  <bruno@clisp.org>
59819         Tests for module 'ptsname'.
59820         * modules/ptsname-tests: New file.
59821         * tests/test-ptsname.c: New file.
59823         New module 'ptsname'.
59824         * lib/ptsname.c: New file, from glibc with modifications.
59825         * m4/ptsname.m4: New file.
59826         * modules/ptsname: New file.
59827         * lib/stdlib.in.h (ptsname): New declaration.
59828         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
59829         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
59830         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
59831         HAVE_PTSNAME.
59832         * doc/posix-functions/ptsname.texi: Mention the new module.
59833         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
59834         * config/srclist.txt: Add ptsname.c (commented).
59836 2010-03-21  Bruno Haible  <bruno@clisp.org>
59838         Tests for module 'ttyname_r'.
59839         * modules/ttyname_r-tests: New file.
59840         * tests/test-ttyname_r.c: New file.
59842         New module 'ttyname_r'.
59843         * lib/ttyname_r.c: New file.
59844         * m4/ttyname_r.m4: New file.
59845         * modules/ttyname_r: New file.
59846         * lib/unistd.in.h (ttyname_r): New declaration.
59847         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
59848         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
59849         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
59850         HAVE_TTYNAME_R.
59851         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
59852         * doc/posix-functions/ttyname_r.texi: Mention the new module.
59854 2010-03-20  Bruno Haible  <bruno@clisp.org>
59856         signal: Undefine macro definitions in C++ mode.
59857         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
59858         sigfillset): Undefine macro definitions from the system header in C++
59859         mode.
59860         Reported by John W. Eaton <jwe@gnu.org>.
59862 2010-03-20  Bruno Haible  <bruno@clisp.org>
59864         Ensure no #include statements inside extern "C" { ... }.
59865         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
59866         contain #include statements.
59867         * lib/time.in.h: Likewise.
59869 2010-03-20  Bruno Haible  <bruno@clisp.org>
59871         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
59872         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
59873         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
59874         Reported by John W. Eaton <jwe@gnu.org>.
59876 2010-03-20  Bruno Haible  <bruno@clisp.org>
59878         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
59879         Reported by Jim Meyering.
59881 2010-03-20  Bruno Haible  <bruno@clisp.org>
59883         pipe: Set errno upon failure.
59884         * lib/pipe.h: Specify that when -1 is returned, errno is set.
59885         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
59886         errno value in error message.
59888 2010-03-20  Bruno Haible  <bruno@clisp.org>
59889             Jim Meyering  <meyering@redhat.com>
59891         lchown: Avoid "unused variable" warning.
59892         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
59894 2010-03-20  Bruno Haible  <bruno@clisp.org>
59896         Work around unlink() bug on MacOS X 10.5.6.
59897         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
59898         attempting to unlink a parent directory.
59899         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
59900         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
59901         activate for the replacement function.
59902         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
59904 2010-03-20  Bruno Haible  <bruno@clisp.org>
59906         Fix link errors on Solaris 8.
59907         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
59908         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
59910 2010-03-19  Jim Meyering  <meyering@redhat.com>
59912         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
59913         The _LIBC implementation of build_range_exp correctly honors the
59914         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
59915         However, the non-_LIBC implementation would ignore that syntax-bit
59916         flag and return REG_ERANGE unconditionally.
59917         This change makes it honor that flag.
59918         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
59919         Make two pointer parameters "const".
59920         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
59921         (parse_bracket_exp): Update caller.
59923         regex.m4: correct the reversed range endpoint ([b-a]) test
59924         * m4/regex.m4: When requiring that [b-a] evoke failure,
59925         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
59926         test pass once again for x86-based systems.
59928 2010-03-19  Bruno Haible  <bruno@clisp.org>
59930         scandir: Fix link error on Solaris 8.
59931         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
59932         macros.
59934 2010-03-19  Bruno Haible  <bruno@clisp.org>
59936         getusershell: Fix documentation.
59937         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
59938         module.
59939         * doc/glibc-functions/setusershell.texi: Likewise.
59941         getusershell: Provide declaration, missing on Solaris 9.
59942         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
59943         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
59944         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
59945         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
59946         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
59947         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
59948         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
59949         HAVE_GETUSERSHELL.
59950         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
59952 2010-03-19  Bruno Haible  <bruno@clisp.org>
59954         wctype: Provide iswblank function.
59955         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
59956         exists and is fine.
59957         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
59958         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
59959         * tests/test-wctype.c (main): Re-enable the iswblank tests.
59960         * doc/posix-functions/iswblank.texi: Update.
59962 2010-03-19  Bruno Haible  <bruno@clisp.org>
59964         Tests of module 'pty' in C++ mode.
59965         * modules/pty-tests: New file.
59966         * tests/test-pty-c++.cc: New file.
59967         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
59969 2010-03-19  Eric Blake  <eblake@redhat.com>
59971         logb: fix documentation
59972         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
59973         1.5 declaration bug.
59975         forkpty, openpty: prefer glibc's const-safe prototype
59976         * lib/forkpty.c (rpl_forkpty): New file.
59977         * lib/openpty.c (rpl_openpty): Likewise.
59978         * modules/forkpty (Files): Distribute it.
59979         * modules/openpty (Files): Likewise.
59980         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
59981         check...
59982         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
59983         replacement for non-const BSD signature.
59984         * modules/pty (Makefile.am): Substitute witnesses.
59985         * lib/pty.in.h (forkpty, openpty): Declare replacements.
59986         * tests/test-forkpty.c: Update signature check.
59987         * tests/test-openpty.c: Likewise.
59988         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
59989         * doc/glibc-functions/openpty.texi (openpty): Likewise.
59991         forkpty, openpty: split functions into new modules
59992         * modules/pty (Makefile.am): Substitute new witnesses.
59993         (Libraries): Move library detection...
59994         * modules/forkpty: ...into new module.
59995         * modules/openpty: Another new module.
59996         * modules/pty-tests: Rename and split...
59997         * modules/forkpty-tests: ...to this...
59998         * modules/openpty-tests: ...and this.
59999         * tests/test-pty.c: Rename and split...
60000         * tests/test-forkpty.c: ...to this...
60001         * tests/test-openpty.c: ...and this.
60002         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
60003         (gl_PTY): Split library searching...
60004         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
60005         (gl_FORKPTY, gl_OPENPTY): New macros.
60006         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
60007         * NEWS: Mention the split.
60008         * MODULES.html.sh (Misc): Document the modules.
60009         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
60010         * doc/glibc-functions/openpty.texi (openpty): Likewise.
60012         pty: improve replacement header
60013         * lib/pty.in.h: New file.
60014         * modules/pty (Files): Ship it.
60015         (Makefile.am): Always build replacement.
60016         * m4/pty.m4: Rename...
60017         * m4/pty_h.m4: ...to this.
60018         (gl_PTY): Modernize setting of witness macros; update check of
60019         forkpty to take proper advantage of cache.
60020         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
60022         getopt: avoid compiler warning
60023         * lib/getopt.c (attribute_hidden): Remove unused macro.
60025 2010-03-18  Bruno Haible  <bruno@clisp.org>
60027         Fix link errors on Solaris 8.
60028         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
60029         * modules/search-tests (test_search_c___LDADD): Likewise.
60030         * modules/signal-tests (test_signal_c___LDADD): Likewise.
60031         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
60032         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
60033         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
60034         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
60035         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
60036         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
60038 2010-03-18  Bruno Haible  <bruno@clisp.org>
60040         Fix bug introduced on 2010-03-14.
60041         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
60042         (gl_SPAWN_H): Require it.
60043         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
60044         Reported by Simon Josefsson.
60046 2010-03-18  Bruno Haible  <bruno@clisp.org>
60048         Fix typo introduced on 2009-12-31.
60049         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
60050         posix_spawn_file_actions_adddup2.
60052 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
60053         and Eric Blake  <eblake@redhat.com>
60055         test-vc-list-files-git: make more robust
60056         * tests/test-vc-list-files-git.sh: Unset problematic environment
60057         variables.  Chain commands together.
60059 2010-03-17  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
60061         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
60062         `AC_CHECK_DECL' invocation.
60064 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
60066         * lib/inttostr.c (inttostr): Make sure the invocation of verify
60067         appears before executable statements. Suggested by Petr Sumbera
60068         <Petr.Sumbera@Sun.COM>.
60070 2010-03-14  Bruno Haible  <bruno@clisp.org>
60072         * tests/test-flock.c (test_exclusive): Comment out a test that causes
60073         portability problems. Instead use a simpler test.
60074         (main): Check that invalid arguments are rejected only on Linux.
60076 2010-03-14  Bruno Haible  <bruno@clisp.org>
60078         Fix bug introduced on 2009-12-31.
60079         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
60080         gl_PREREQ_SYS_H_WINSOCK2 always.
60081         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
60082         SYS_SOCKET_H variable.
60083         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
60084         Update comments.
60085         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
60086         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
60087         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
60088         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
60089         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
60091 2010-03-14  Bruno Haible  <bruno@clisp.org>
60093         Fix values returned by sinl, cosl.
60094         * lib/trigl.h: Add specification comments.
60095         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
60096         that combines the values from the precomputed table with the values of
60097         the Chebyshev polynomials.
60099 2010-03-14  Bruno Haible  <bruno@clisp.org>
60101         Fix compilation error when modules 'posix_spawn[p]' are not used.
60102         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
60103         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
60105 2010-03-14  Bruno Haible  <bruno@clisp.org>
60107         Fix compilation error on mingw when module 'time_r' is not used.
60108         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
60109         is 1.
60110         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
60111         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
60112         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
60113         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
60115 2010-03-14  Bruno Haible  <bruno@clisp.org>
60117         Fix compilation error with Sun C.
60118         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
60119         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
60120         instead of GCC specific ULONG_LONG_MAX.
60121         * lib/xstrtoll.c: Likewise.
60122         * lib/xstrtoull.c: Likewise.
60124 2010-03-13  Bruno Haible  <bruno@clisp.org>
60126         Allow the user to disable C++ code and tests.
60127         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
60128         (gl_PROG_ANSI_CXX): Require it.
60130 2010-03-13  Bruno Haible  <bruno@clisp.org>
60132         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
60133         cases.
60135 2010-03-13  Bruno Haible  <bruno@clisp.org>
60137         Test that gnulib does not break the standard C++ headers.
60138         * tests/test-locale-c++2.cc: New file.
60139         * modules/locale-tests (Files): Add it.
60140         (Makefile.am): Compile it for test-locale-c++.
60141         * tests/test-math-c++2.cc: New file.
60142         * modules/math-tests (Files): Add it.
60143         (Makefile.am): Compile it for test-math-c++.
60144         * tests/test-signal-c++2.cc: New file.
60145         * modules/signal-tests (Files): Add it.
60146         (Makefile.am): Compile it for test-signal-c++.
60147         * tests/test-stdio-c++2.cc: New file.
60148         * modules/stdio-tests (Files): Add it.
60149         (Makefile.am): Compile it for test-stdio-c++.
60150         * tests/test-stdlib-c++2.cc: New file.
60151         * modules/stdlib-tests (Files): Add it.
60152         (Makefile.am): Compile it for test-stdlib-c++.
60153         * tests/test-string-c++2.cc: New file.
60154         * modules/string-tests (Files): Add it.
60155         (Makefile.am): Compile it for test-string-c++.
60156         * tests/test-time-c++2.cc: New file.
60157         * modules/time-tests (Files): Add it.
60158         (Makefile.am): Compile it for test-time-c++.
60159         Reported by John W. Eaton <jwe@gnu.org>.
60161 2010-03-13  Bruno Haible  <bruno@clisp.org>
60163         * gnulib-tool (func_usage): Clarify which options are available for
60164         --create-testdir and --create-megatestdir.
60166 2010-03-13  Bruno Haible  <bruno@clisp.org>
60168         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
60169         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
60170         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
60171         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
60172         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
60173         when appropriate.
60174         Reported by Jim Meyering.
60176 2010-03-12  Simon Josefsson  <simon@josefsson.org>
60178         * gnulib-tool (func_import): Explain origin of code.
60180 2010-03-12  Bruno Haible  <bruno@clisp.org>
60182         Fix problem with automake's definition of CXXLINK.
60183         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
60184         Reported by Simon Josefsson and Ludovic Courtès.
60186 2010-03-12  Bruno Haible  <bruno@clisp.org>
60188         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
60189         stable releases.
60191 2010-03-11  Bruno Haible  <bruno@clisp.org>
60193         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
60194         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
60195         whether the system provides one variant or multiple variants of the
60196         function.
60197         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
60198         C++ compilers.
60199         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
60200         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
60201         Reported by Jim Meyering.
60203 2010-03-09  Simon Josefsson  <simon@josefsson.org>
60205         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
60207 2010-03-08  Bruno Haible  <bruno@clisp.org>
60209         gnulib-tool: Add support for --libtool in --create-testdir.
60210         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
60211         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
60213 2010-03-08  Eric Blake  <eblake@redhat.com>
60215         gnulib-tool.texi: mention possibility of git submodule
60216         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
60217         submodules.
60218         * doc/.gitignore: Ignore another generated file.
60220 2010-03-08  Karl Berry  <karl@gnu.org>
60222         * doc/gnulib-tool.texi (VCS Issues): Mention third option
60223         of committing gnulib files while skipping others.
60225 2010-03-07  Bruno Haible  <bruno@clisp.org>
60227         Tests of module 'wctype' in C++ mode.
60228         * tests/test-wctype-c++.cc: New file.
60229         * modules/wctype-tests (Files): Add it and tests/signature.h.
60230         (Depends-on): Add ansi-c++-opt.
60231         (Makefile.am): Arrange to compile and run test-wctype-c++.
60233         Tests of module 'wchar' in C++ mode.
60234         * tests/test-wchar-c++.cc: New file.
60235         * modules/wchar-tests (Files): Add it and tests/signature.h.
60236         (Depends-on): Add ansi-c++-opt.
60237         (Makefile.am): Arrange to compile and run test-wchar-c++.
60238         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
60239         gl_MODULE_INDICATOR.
60241         Tests of module 'unistd' in C++ mode.
60242         * tests/test-unistd-c++.cc: New file.
60243         * modules/unistd-tests (Files): Add it and tests/signature.h.
60244         (Depends-on): Add ansi-c++-opt.
60245         (Makefile.am): Arrange to compile and run test-unistd-c++.
60246         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
60247         gl_MODULE_INDICATOR.
60249         Tests of module 'time' in C++ mode.
60250         * tests/test-time-c++.cc: New file.
60251         * modules/time-tests (Files): Add it and tests/signature.h.
60252         (Depends-on): Add ansi-c++-opt.
60253         (Makefile.am): Arrange to compile and run test-time-c++.
60254         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
60256         Tests of module 'sys_time' in C++ mode.
60257         * tests/test-sys_time-c++.cc: New file.
60258         * modules/sys_time-tests (Files): Add it and tests/signature.h.
60259         (Depends-on): Add ansi-c++-opt.
60260         (Makefile.am): Arrange to compile and run test-sys_time-c++.
60261         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
60262         gl_MODULE_INDICATOR.
60264         Tests of module 'sys_stat' in C++ mode.
60265         * tests/test-sys_stat-c++.cc: New file.
60266         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
60267         (Depends-on): Add ansi-c++-opt.
60268         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
60269         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
60270         gl_MODULE_INDICATOR.
60272         Tests of module 'sys_socket' in C++ mode.
60273         * tests/test-sys_socket-c++.cc: New file.
60274         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
60275         (Depends-on): Add ansi-c++-opt.
60276         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
60277         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
60278         gl_MODULE_INDICATOR.
60280         Tests of module 'sys_select' in C++ mode.
60281         * tests/test-sys_select-c++.cc: New file.
60282         * modules/sys_select-tests (Files): Add it and tests/signature.h.
60283         (Depends-on): Add ansi-c++-opt.
60284         (Makefile.am): Arrange to compile and run test-sys_select-c++.
60285         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
60286         gl_MODULE_INDICATOR.
60288         Tests of module 'sys_ioctl' in C++ mode.
60289         * tests/test-sys_ioctl-c++.cc: New file.
60290         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
60291         (Depends-on): Add ansi-c++-opt.
60292         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
60293         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
60294         gl_MODULE_INDICATOR.
60296         Tests of module 'string' in C++ mode.
60297         * tests/test-string-c++.cc: New file.
60298         * modules/string-tests (Files): Add it and tests/signature.h.
60299         (Depends-on): Add ansi-c++-opt.
60300         (Makefile.am): Arrange to compile and run test-string-c++.
60301         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
60302         gl_MODULE_INDICATOR.
60304         Tests of module 'stdlib' in C++ mode.
60305         * tests/test-stdlib-c++.cc: New file.
60306         * modules/stdlib-tests (Files): Add it and tests/signature.h.
60307         (Depends-on): Add ansi-c++-opt.
60308         (Makefile.am): Arrange to compile and run test-stdlib-c++.
60309         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
60310         gl_MODULE_INDICATOR.
60312         Tests of module 'stdio' in C++ mode.
60313         * tests/test-stdio-c++.cc: New file.
60314         * modules/stdio-tests (Files): Add it and tests/signature.h.
60315         (Depends-on): Add ansi-c++-opt.
60316         (Makefile.am): Arrange to compile and run test-stdio-c++.
60317         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
60318         gl_MODULE_INDICATOR.
60320         Tests of module 'spawn' in C++ mode.
60321         * tests/test-spawn-c++.cc: New file.
60322         * modules/spawn-tests (Files): Add it and tests/signature.h.
60323         (Depends-on): Add ansi-c++-opt.
60324         (Makefile.am): Arrange to compile and run test-spawn-c++.
60325         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
60326         gl_MODULE_INDICATOR.
60328         Tests of module 'signal' in C++ mode.
60329         * tests/test-signal-c++.cc: New file.
60330         * modules/signal-tests (Files): Add it and tests/signature.h.
60331         (Depends-on): Add ansi-c++-opt.
60332         (Makefile.am): Arrange to compile and run test-signal-c++.
60333         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
60334         gl_MODULE_INDICATOR.
60336         Tests of module 'search' in C++ mode.
60337         * tests/test-search-c++.cc: New file.
60338         * modules/search-tests (Files): Add it and tests/signature.h.
60339         (Depends-on): Add ansi-c++-opt.
60340         (Makefile.am): Arrange to compile and run test-search-c++.
60341         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
60342         gl_MODULE_INDICATOR.
60344         Tests of module 'math' in C++ mode.
60345         * tests/test-math-c++.cc: New file.
60346         * modules/math-tests (Files): Add it and tests/signature.h.
60347         (Depends-on): Add ansi-c++-opt.
60348         (Makefile.am): Arrange to compile and run test-math-c++.
60349         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
60351         Tests of module 'locale' in C++ mode.
60352         * tests/test-locale-c++.cc: New file.
60353         * modules/locale-tests (Files): Add it and tests/signature.h.
60354         (Depends-on): Add ansi-c++-opt.
60355         (Makefile.am): Arrange to compile and run test-locale-c++.
60356         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
60357         gl_MODULE_INDICATOR.
60359         Tests of module 'langinfo' in C++ mode.
60360         * tests/test-langinfo-c++.cc: New file.
60361         * modules/langinfo-tests (Files): Add it and tests/signature.h.
60362         (Depends-on): Add ansi-c++-opt.
60363         (Makefile.am): Arrange to compile and run test-langinfo-c++.
60364         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
60365         gl_MODULE_INDICATOR.
60367         Tests of module 'iconv-h' in C++ mode.
60368         * tests/test-iconv-h-c++.cc: New file.
60369         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
60370         (Depends-on): Add ansi-c++-opt.
60371         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
60373         Tests of module 'glob' in C++ mode.
60374         * tests/test-glob-c++.cc: New file.
60375         * modules/glob-tests (Files): Add it.
60376         (Depends-on): Add ansi-c++-opt.
60377         (Makefile.am): Arrange to compile and run test-glob-c++.
60379         Tests of module 'fcntl-h' in C++ mode.
60380         * tests/test-fcntl-h-c++.cc: New file.
60381         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
60382         (Depends-on): Add ansi-c++-opt.
60383         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
60384         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
60385         gl_MODULE_INDICATOR.
60387         Tests of module 'dirent' in C++ mode.
60388         * tests/test-dirent-c++.cc: New file.
60389         * modules/dirent-tests (Files): Add it and tests/signature.h.
60390         (Depends-on): Add ansi-c++-opt.
60391         (Makefile.am): Arrange to compile and run test-dirent-c++.
60392         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
60393         gl_MODULE_INDICATOR.
60395         New module 'ansi-c++-opt'.
60396         * modules/ansi-c++-opt: New file.
60397         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
60399         Document C++ namespace mode.
60400         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
60402         wctype: Avoid #define replacements in C++ mode.
60403         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
60404         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
60405         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
60406         In C++, define a namespaced alias symbol.
60407         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
60408         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
60409         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
60410         rule.
60412         wchar: Avoid #define replacements in C++ mode.
60413         * lib/wchar.in.h: Include c++defs.h.
60414         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
60415         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
60416         symbol.
60417         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
60418         * modules/wchar (Depends-on): Add c++defs.
60419         (Makefile.am): Update wchar.h rule.
60421         unistd: Avoid #define replacements in C++ mode.
60422         * lib/unistd.in.h: Include c++defs.h.
60423         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
60424         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
60425         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
60426         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
60427         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
60428         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
60429         symbol.
60430         (environ): Update.
60431         * modules/unistd (Depends-on): Add c++defs.
60432         (Makefile.am): Update unistd.h rule.
60434         time: Avoid #define replacements in C++ mode.
60435         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
60436         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
60437         define a namespaced alias symbol.
60438         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
60439         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
60440         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
60441         * modules/time (Depends-on): Add c++defs, warn-on-use.
60442         (Makefile.am): Update time.h rule.
60443         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
60444         * modules/nanosleep (configure.ac): Likewise.
60445         * modules/strptime (configure.ac): Likewise.
60446         * modules/timegm (configure.ac): Likewise.
60448         sys_time: Avoid #define replacements in C++ mode.
60449         * lib/sys_time.in.h: Include c++defs.h.
60450         (gettimeofday): In C++, define a namespaced alias symbol.
60451         * modules/sys_time (Depends-on): Add c++defs.
60452         (Makefile.am): Update sys/time.h rule.
60454         sys_stat: Avoid #define replacements in C++ mode.
60455         * lib/sys_stat.in.h: Include c++defs.h.
60456         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
60457         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
60458         namespaced alias symbol.
60459         In C++, define a namespaced alias symbol.
60460         * modules/sys_stat (Depends-on): Add c++defs.
60461         (Makefile.am): Update sys/stat.h rule.
60463         sys_socket: Avoid #define replacements in C++ mode.
60464         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
60465         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
60466         definitions also when the system has a <sys/socket.h>.
60467         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
60468         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
60469         In C++, define a namespaced alias symbol.
60470         * modules/sys_socket (Depends-on): Add c++defs.
60471         (Makefile.am): Update sys/socket.h rule.
60473         sys_select: Avoid #define replacements in C++ mode.
60474         * lib/sys_select.in.h: Include c++defs.h. Enable the function
60475         definitions also when the system has a <sys/select.h>.
60476         (select): In C++, define a namespaced alias symbol.
60477         * modules/sys_select (Depends-on): Add c++defs.
60478         (Makefile.am): Update sys/select.h rule.
60480         sys_ioctl: Avoid #define replacements in C++ mode.
60481         * lib/sys_ioctl.in.h: Include c++defs.h.
60482         (ioctl): In C++, define a namespaced alias symbol.
60483         * modules/sys_ioctl (Depends-on): Add c++defs.
60484         (Makefile.am): Update sys/ioctl.h rule.
60486         string: Avoid #define replacements in C++ mode.
60487         * lib/string.in.h: Include c++defs.h.
60488         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
60489         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
60490         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
60491         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
60492         strsignal, strverscmp): In C++, define a namespaced alias symbol.
60493         * modules/string (Depends-on): Add c++defs.
60494         (Makefile.am): Update string.h rule.
60496         stdlib: Avoid #define replacements in C++ mode.
60497         * lib/stdlib.in.h: Include c++defs.h.
60498         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
60499         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
60500         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
60501         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
60502         symbol.
60503         * modules/stdlib (Depends-on): Add c++defs.
60504         (Makefile.am): Update stdlib.h rule.
60506         stdio: Avoid #define replacements in C++ mode.
60507         * lib/stdio.in.h: Include c++defs.h.
60508         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
60509         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
60510         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
60511         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
60512         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
60513         namespaced alias symbol.
60514         * modules/stdio (Depends-on): Add c++defs.
60515         (Makefile.am): Update stdio.h rule.
60517         spawn: Avoid #define replacements in C++ mode.
60518         * lib/spawn.in.h: Include c++defs.h.
60519         (posix_spawn, posix_spawnp, posix_spawnattr_init,
60520         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
60521         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
60522         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
60523         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
60524         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
60525         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
60526         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
60527         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
60528         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
60529         In C++, define a namespaced alias symbol.
60530         * modules/spawn (Depends-on): Add c++defs.
60531         (Makefile.am): Update spawn.h rule.
60533         signal: Avoid #define replacements in C++ mode.
60534         * lib/signal.in.h: Include c++defs.h.
60535         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
60536         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
60537         namespaced alias symbol.
60538         * modules/signal (Depends-on): Add c++defs.
60539         (Makefile.am): Update signal.h rule.
60541         search: Avoid #define replacements in C++ mode.
60542         * lib/search.in.h: Include c++defs.h.
60543         (_gl_search_compar_fn, _gl_search_action_fn): New types.
60544         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
60545         symbol.
60546         * modules/search (Depends-on): Add c++defs.
60547         (Makefile.am): Update search.h rule.
60549         math: Avoid #define replacements in C++ mode.
60550         * lib/math.in.h: Include c++defs.h.
60551         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
60552         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
60553         trunc, truncl): In C++, define a namespaced alias symbol.
60554         * modules/math (Depends-on): Add c++defs.
60555         (Makefile.am): Update math.h rule.
60557         locale: Avoid #define replacements in C++ mode.
60558         * lib/locale.in.h: Include c++defs.h.
60559         (duplocale): In C++, define a namespaced alias symbol.
60560         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
60561         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
60562         * modules/locale (Depends-on): Add c++defs.
60563         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
60565         langinfo: Avoid #define replacements in C++ mode.
60566         * lib/langinfo.in.h: Include c++defs.h.
60567         (nl_langinfo): In C++, define a namespaced alias symbol.
60568         * modules/langinfo (Depends-on): Add c++defs.
60569         (Makefile.am): Update langinfo.h rule.
60571         iconv-h: Avoid #define replacements in C++ mode.
60572         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
60573         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
60574         symbol.
60575         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
60576         whenever iconv is present.
60577         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
60578         (Makefile.am): Update iconv.h rule.
60580         glob: Avoid #define replacements in C++ mode.
60581         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
60582         (_gl_glob_errfunc_fn): New type.
60583         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
60584         symbol.
60585         * modules/glob (Depends-on): Add c++defs, warn-on-use.
60586         (Makefile.am): Update glob.h rule.
60588         fcntl-h: Avoid #define replacements in C++ mode.
60589         * lib/fcntl.in.h: Include c++defs.h.
60590         (fcntl, open, openat): In C++, define a namespaced alias symbol.
60591         * modules/fcntl-h (Depends-on): Add c++defs.
60592         (Makefile.am): Update fcntl.h rule.
60594         dirent: Avoid #define replacements in C++ mode.
60595         * lib/dirent.in.h: Include c++defs.h.
60596         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
60597         namespaced alias symbol.
60598         (dirfd): Update declaration.
60599         * modules/dirent (Depends-on): Add c++defs.
60600         (Makefile.am): Update dirent.h rule.
60602         ctype: Make it usable in C++ code.
60603         * lib/ctype.in.h: Include c++defs.h.
60604         (isblank): Declare as extern "C".
60605         * modules/ctype (Depends-on): Add c++defs.
60606         (Makefile.am): Update ctype.h rule.
60608         New module 'c++defs'.
60609         * modules/c++defs: New file.
60610         * build-aux/c++defs.h: New file.
60611         Reported by John W. Eaton <jwe@gnu.org>.
60613 2010-03-07  Bruno Haible  <bruno@clisp.org>
60615         logb: Provide missing declaration for Cygwin.
60616         * lib/math.in.h (logb): New declaration.
60617         * m4/logb.m4: New file.
60618         * modules/logb (Files): Add m4/logb.m4.
60619         (Depends-on): Add math.
60620         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
60621         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
60622         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
60623         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
60624         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
60626 2010-03-07  Bruno Haible  <bruno@clisp.org>
60628         Fix test-cond link error.
60629         * tests/test-cond.c: Include <stdio.h>.
60631 2010-03-07  Bruno Haible  <bruno@clisp.org>
60633         Fix test-dirent-safer link error.
60634         * modules/dirent-safer-tests (Makefile.am): Define
60635         test_dirent_safer_LDADD.
60637 2010-03-07  Bruno Haible  <bruno@clisp.org>
60639         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
60640         among default module list.
60642 2010-03-07  Bruno Haible  <bruno@clisp.org>
60644         Fix link error on platforms with GNU libiconv.
60645         * modules/unistr/u8-strcoll-tests (Makefile): Define
60646         test_u8_strcoll_LDADD.
60647         * modules/unistr/u16-strcoll-tests (Makefile): Define
60648         test_u16_strcoll_LDADD.
60649         * modules/unistr/u32-strcoll-tests (Makefile): Define
60650         test_u32_strcoll_LDADD.
60652 2010-03-07  Bruno Haible  <bruno@clisp.org>
60654         Use POSIX declarations for socket functions.
60655         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
60656         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
60657         rpl_sendto): Change declaration to match POSIX.
60658         * lib/connect.c (rpl_connect): Likewise.
60659         * lib/accept.c (rpl_accept): Likewise.
60660         * lib/bind.c (rpl_bind): Likewise.
60661         * lib/getpeername.c (rpl_getpeername): Likewise.
60662         * lib/getsockname.c (rpl_getsockname): Likewise.
60663         * lib/recv.c (rpl_recv): Likewise.
60664         * lib/send.c (rpl_send): Likewise.
60665         * lib/recvfrom.c (rpl_recvfrom): Likewise.
60666         * lib/sendto.c (rpl_sendto): Likewise.
60668 2010-03-06  Bruno Haible  <bruno@clisp.org>
60670         Clarify access, euidaccess, faccessat.
60671         * doc/posix-functions/faccessat.texi: Mention security problem under
60672         "Other problems", not "Portability problems".
60673         * doc/posix-functions/access.texi: Likewise. Mention a related security
60674         problem.
60675         * doc/glibc-functions/euidaccess.texi: Mention security problems.
60676         * lib/euidaccess.c: Add comments about platforms.
60677         * lib/unistd.in.h (access, euidaccess): Add warnings.
60679 2010-03-07  Bruno Haible  <bruno@clisp.org>
60681         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
60682         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
60683         (POSIX_SPAWN_SETSCHEDULER): Likewise.
60684         (POSIX_SPAWN_USEVFORK): Define in a way that works when
60685         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
60686         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
60687         declare when POSIX_SPAWN_SETSCHEDULER is zero.
60688         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
60689         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
60690         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
60691         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
60692         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
60693         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
60694         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
60695         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
60696         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
60697         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
60698         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
60699         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
60700         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
60701         Likewise.
60702         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
60703         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
60704         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
60705         Likewise.
60706         * tests/test-spawn.c (main): Make it work when
60707         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
60709 2010-03-07  Bruno Haible  <bruno@clisp.org>
60711         Fix incorrect Makefile.am generation in German locale.
60712         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60713         Execute sed command with character range in C locale.
60715 2010-03-06  Bruno Haible  <bruno@clisp.org>
60717         Tests for module 'iconv-h'.
60718         * modules/iconv-h-tests: New file.
60719         * tests/test-iconv-h.c: New file.
60721         New module 'iconv-h'.
60722         * modules/iconv-h: New file.
60723         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
60724         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
60725         (configure.ac): Remove gl_ICONV_H.
60726         (Makefile.am): Remove rule for iconv.h.
60728 2010-03-06  Bruno Haible  <bruno@clisp.org>
60730         More consistent naming of *.m4 files.
60731         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
60732         * modules/wctype (Files): Update.
60734         More consistent naming of *.m4 files.
60735         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
60736         * modules/wchar (Files): Update.
60738 2010-03-06  Jim Meyering  <meyering@redhat.com>
60740         euidaccess: relax license to LGPLv2+
60741         * modules/euidaccess (License): Relax to LGPLv2+.
60743 2010-03-06  Bruno Haible  <bruno@clisp.org>
60745         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
60746         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
60747         (Makefile.am): Augment lib_SOURCES instead.
60749 2010-03-04  Jim Meyering  <meyering@redhat.com>
60751         utime: remove obsolete module
60752         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
60753         unnecessary for years, and has been marked as obsolete for 10 months.
60754         * modules/utime: Remove file.
60755         * lib/utime.c: Remove file.
60756         * m4/utime.m4: Remove file.
60757         * m4/utimes-null.m4: Remove file.
60758         * doc/posix-functions/utime.texi (utime): Remove reference to
60759         the module.  Move the sole "fixed by gnulib" item into the
60760         "problems not fixed by Gnulib" list.
60761         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
60763 2010-03-05  Simon Josefsson  <simon@josefsson.org>
60765         * modules/exit (License): Relax license to LGPLv2+.
60766         (Status): Mark as obsolete.
60767         * NEWS: Mention deprecated 'exit' module.
60768         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
60769         of now obsolete 'exit'.
60771 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60773         fts-lgpl: remove unused module
60774         * modules/fts-lgpl: Remove.
60775         * MODULES.html.sh (func_all_modules): Adjust.
60776         * check-module (find_included_lib_files): Adjust.
60777         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
60779 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
60781         copy-acl: enhance Solaris ACL error handling
60782         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
60783         * lib/set-mode-acl.c (qset_acl): Likewise.
60785 2010-03-02  Bruno Haible  <bruno@clisp.org>
60787         spawn: Don't override the system defined values on FreeBSD 8.
60788         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
60789         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
60790         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
60791         if HAVE_POSIX_SPAWN is 1.
60792         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
60794 2010-03-01  Bruno Haible  <bruno@clisp.org>
60796         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
60797         regarding Automake.
60799 2010-02-25  Bruno Haible  <bruno@clisp.org>
60801         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
60802         * gnulib-tool: Define 'echo' as a function only before the ksh alias
60803         setting, not afterwards.
60804         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
60806 2010-02-24  Eric Blake  <eblake@redhat.com>
60808         bootstrap, git-version-gen: use timestamp
60809         * build-aux/git-version-gen (scriptversion): Force UTC.
60810         * build-aux/bootstrap (scriptversion): New variable.
60812         bootstrap: allow older git
60813         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
60814         older than 1.6.4.  Requested by the libvirt project.
60816 2010-02-23  Eric Blake  <eblake@redhat.com>
60818         warn-on-use: work with old autoconf
60819         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
60820         AS_VAR semantics of autoconf 2.60.
60821         Reported by Bruno Haible.
60823         bootstrap: improve some comments
60824         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
60825         clarification comments.
60827         gettimeofday: provide correct function
60828         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
60829         when replacement is declared, otherwise provide gettimeofday.
60830         Reported by Michael Goffioul.
60832 2010-02-23  Jim Meyering  <meyering@redhat.com>
60834         lib-ignore: relax license to "unlimited", not LGPLv2+
60835         * modules/lib-ignore (License): Relax to "unlimited".
60837 2010-02-23  Jim Meyering  <meyering@redhat.com>
60839         lib-ignore: relax license to LGPLv2+
60840         * modules/lib-ignore (License): Relax to LGPLv2+.
60842 2010-02-22  Eric Blake  <eblake@redhat.com>
60844         lseek: avoid bash 3.2 broken pipe bug
60845         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
60846         warning from bash 3.2.
60847         Reported by Ben Pfaff, with analysis from Bruno Haible.
60849         bootstrap: support non-FSF copyright holder
60850         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
60851         bootstrap.conf override of COPYRIGHT_HOLDER.
60852         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
60854         bootstrap: interoperate with gettext 0.14.1
60855         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
60857         bootstrap: allow for alternate submodule location
60858         * build-aux/bootstrap (gnulib_path): New variable; use instead of
60859         hardcoding submodule location.
60860         (gnulib_mk): Allow direct use of Makefile.am.
60862         bootstrap: use GNULIB_SRCDIR to reduce disk usage
60863         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
60864         rather than reconfiguring where the submodule points.
60866         gettimeofday: restore support for platforms that lack function
60867         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
60868         replacement if function is missing.
60869         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
60870         * modules/sys_time (Makefile.am): Substitute it.
60871         * lib/sys_time.in.h (gettimeofday): Check it.
60872         Reported by Michael Goffioul.
60874 2010-02-21  Bruno Haible  <bruno@clisp.org>
60876         * lib/stdio.in.h (obstack_printf): Fix typo.
60878 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
60880         vc-list-files: use bzr ls's -R option
60881         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
60882         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
60884 2010-02-21  Jim Meyering  <meyering@redhat.com>
60886         init.sh: fix EXEEXT shims to work also for names like test-prog
60887         * tests/init.sh: Re-exec a better shell, when needed.
60888         If the current shell lacks support for posix $(...), an init.sh-using
60889         test will now try to find a shell that supports that.  If EXEEXT is
60890         nonempty, we also require support for hyphen-in-alias-name and shell
60891         substitutions like ${var#glob}.  Failure to find such a shell results
60892         in a skipped test.
60894 2010-02-21  Bruno Haible  <bruno@clisp.org>
60896         Really work around "broken pipe" error message from bash 3.2.
60897         * gnulib-tool (func_reset_sigpipe): Remove function.
60898         (echo): In bash 3.2, define to a function that uses printf.
60899         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
60901 2010-02-20  Bruno Haible  <bruno@clisp.org>
60903         Restore support for automake 1.9.6 with autoconf 2.61.
60904         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
60905         Reported by James Youngman <jay@gnu.org>.
60907 2010-02-20  Bruno Haible  <bruno@clisp.org>
60909         Improve *printf warning condition.
60910         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
60911         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
60912         and the function is overridden due to SIGPIPE emulation.
60914 2010-02-20  Bruno Haible  <bruno@clisp.org>
60916         * lib/stdio.in.h: Tweak comments.
60918 2010-02-19  Bruno Haible  <bruno@clisp.org>
60920         Make it easier to find modules. New gnulib-tool option '--find'.
60921         * gnulib-tool: New option --find.
60922         (func_usage): Document it.
60923         (func_sanitize_modulelist): New function, extracted from
60924         func_all_modules.
60925         (func_all_modules): Invoke it.
60926         * doc/gnulib-tool.texi (Which modules?): New node.
60928 2010-02-18  Markus Duft  <mduft@gentoo.org>  (tiny change)
60930         * lib/sys_select.in.h: Provide select replacement even if
60931         sys/select.h exists on a system, for Interix.
60933 2010-02-18  Jim Meyering  <meyering@redhat.com>
60935         init.sh: don't use $(...) just yet
60936         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
60937         to accommodate e.g., Solaris' /bin/sh.
60939 2010-02-17  Bruno Haible  <bruno@clisp.org>
60941         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
60942         Reported by Ludovic Courtès <ludo@gnu.org>.
60944 2010-02-16  Simon Josefsson  <simon@josefsson.org>
60946         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
60947         linking with -lintl.
60949 2010-02-17  Simon Josefsson  <simon@josefsson.org>
60951         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
60952         if not provided by the system's netdb.h.  Reported by
60953         ludo@gnu.org (Ludovic Courtès).
60955 2010-02-15  Jim Meyering  <meyering@redhat.com>
60957         init.sh: improve portability and efficiency
60958         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
60959         "dummy" in a for loop.
60960         Use '!', not '^' to select the complement of a character set used
60961         in a "case" statement.
60962         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
60963         Suggestions from Eric Blake.
60965         init.sh: automatically accommodate programs with the .exe suffix
60966         Automatically arrange for an invocation of "prog" to execute the
60967         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
60968         may use the simpler "prog", yet still work when built on a system
60969         that requires specifying the added suffix.
60970         Do this by constructing a function named "prog" that invokes
60971         "prog.exe" for each .exe file in selected directories.
60972         * tests/init.sh (find_exe_basenames_): New function.
60973         (create_exe_shim_functions_): New function.
60974         (path_prepend_): Use it.
60976         maint.mk: mark syntax-check sc_*.m rules as .PHONY
60977         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
60978         "make -t syntax-check" doesn't create a ton of sc_*.m files.
60980 2010-02-14  Jim Meyering  <meyering@redhat.com>
60982         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
60983         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
60984         (sc_prohibit_hash_pjw_without_use): New rule.
60986         maint.mk: allow the default upload destination dir to be overridden
60987         * top/maint.mk (upload_dest_dir_): Define with a default that
60988         preserves the status quo.
60989         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
60990         Reported by Peter Simons.
60992         maint.mk: prohibit inclusion of "hash.h" without_use
60993         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
60995 2010-02-10  Jim Meyering  <meyering@redhat.com>
60997         maint.mk: prohibit inclusion of "ignore-value.h" without_use
60998         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
61000 2010-02-09  Eric Blake  <ebb9@byu.net>
61001         and Bruno Haible  <bruno@clisp.org>
61003         obstack-printf-posix: ensure declaration
61004         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
61005         extracted from gl_FUNC_OBSTACK_PRINTF.
61006         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
61007         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
61008         Likewise.
61009         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
61010         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
61011         0.
61013 2010-02-08  Bruno Haible  <bruno@clisp.org>
61015         gnulib-tool: Fix typo in 2010-02-07 commit.
61016         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
61017         Reported by Eric Blake.
61019 2010-02-07  Bruno Haible  <bruno@clisp.org>
61021         gnulib-tool: Fix up caching patches.
61022         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
61023         option --no-cache. Use associative arrays when supported by the shell.
61024         (sed_comments): New variable.
61025         (modcache): Renamed from do_cache.
61026         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
61027         abbreviate unnecessarily.
61028         (have_associative): New variable.
61029         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
61030         way also for ksh and zsh.
61031         (func_init_sed_convert_to_cache_statements): New function, extracted
61032         from func_cache_lookup_module. Add support for associative arrays.
61033         Don't set the c_MODULE_cached variable here. Ignore all lines before
61034         the first field header. Remove only the final newline, not all trailing
61035         newlines. Support empty fields correctly. Limit the use of 'eval' to
61036         assignments.
61037         (func_get_description, func_get_status, func_get_notice,
61038         func_get_applicability, func_get_filelist, func_get_dependencies,
61039         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
61040         func_get_automake_snippet, func_get_include_directive,
61041         func_get_link_directive, func_get_license, func_get_maintainer):
61042         Update documentation. List the unoptimized code first. Add support for
61043         associative arrays. Limit the use of 'eval' to assignments.
61044         (func_get_applicability): Undo stylistic pessimisations.
61045         (func_get_automake_snippet, func_get_include_directive): Reduce code
61046         duplication.
61047         (func_modules_transitive_closure, func_modules_add_dummy,
61048         func_modules_notice, func_modules_to_filelist, func_add_file,
61049         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
61050         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
61051         func_create_testdir, func_create_megatestdir): Update documentation.
61053 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61055         * gnulib-tool (func_cache_lookup_module): Store the module name
61056         belonging to the cache variable; error out if two different
61057         module names map to the same cache variable name.
61059 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61061         gnulib-tool: Make caching optional.
61062         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
61063         Update matching short versions of --no-changelog.
61064         (func_usage): Update.
61065         (sed_extract_cache_prog): Renamed from ...
61066         (sed_extract_prog): ... this; revert to old extraction script.
61067         (func_get_description, func_get_status)
61068         (func_get_notice, func_get_applicability, func_get_filelist)
61069         (func_get_dependencies, func_get_autoconf_early_snippet)
61070         (func_get_autoconf_snippet, func_get_automake_snippet)
61071         (func_get_include_directive, func_get_link_directive)
61072         (func_get_license, func_get_maintainer): If $do_cache is false,
61073         use old, non-caching extraction scripts.
61074         Suggestion by Bruno Haible.
61076 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61078         gnulib-tool: cache module metainformation.
61079         * gnulib-tool (sed_extract_prog): Match newline before each
61080         header, and rewrite header to a shell variable suffix.
61081         (func_cache_var, func_cache_lookup_module): New functions,
61082         to turn a module name into a cache variable prefix, and to
61083         look up and cache module metainformation.
61084         (func_get_description, func_get_status)
61085         (func_get_notice, func_get_applicability, func_get_filelist)
61086         (func_get_dependencies, func_get_autoconf_early_snippet)
61087         (func_get_autoconf_snippet, func_get_automake_snippet)
61088         (func_get_include_directive, func_get_link_directive)
61089         (func_get_license, func_get_maintainer): Use
61090         func_cache_lookup_module.
61092 2010-02-07  Bruno Haible  <bruno@clisp.org>
61094         fnctl: Fix missing dependency.
61095         * modules/fcntl (Depends-on): Add getdtablesize.
61096         Reported by John W. Eaton <jwe@gnu.org>.
61098 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
61100         Argp: fix recognition of short alias options.
61102         * lib/argp-parse.c (convert_options): Fix improper use of
61103         `|' between character values.
61104         * tests/test-argp.c (group1_option): New alias option
61105         --read (-r).
61106         (group1_parser): Special handling for 'r'.
61107         (test15): New test case.
61108         (test_fun): Add test15.
61109         * tests/test-argp-2.sh: Update expected --help and --usage
61110         outputs.
61112 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
61114         * tests/test-argp.c: Fix indentation.
61116 2010-02-04  Eric Blake  <ebb9@byu.net>
61118         gettimeofday: expose type of second argument
61119         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
61120         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
61121         * tests/test-gettimeofday.c: Use it to silence warning.
61122         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
61123         the issue.
61125 2010-02-03  Jim Meyering  <meyering@redhat.com>
61127         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
61128         * lib/regcomp.c (TYPE_SIGNED): Define.
61129         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
61131         regcomp.c: avoid a new -Wshadow warning
61132         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
61134 2010-02-01  Jim Meyering  <meyering@redhat.com>
61136         removing useless parentheses in cpp #define directives
61137         For motivation, see commit c0221df4, "define STREQ(a,b)
61138         consistently, removing useless parentheses"
61139         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
61140         * lib/mountlist.c (MNT_IGNORE): Likewise.
61141         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
61143 2010-02-01  Eric Blake  <ebb9@byu.net>
61145         sys_time: use link-warning
61146         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
61147         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
61148         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
61149         * modules/sys_time (Depends-on): Add warn-on-use.
61150         (Makefile.am): Always build replacement.
61151         (configure.ac): Update substitutions.
61152         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
61153         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
61154         bother with SYS_TIME_H.
61155         * modules/gettimeofday (configure.ac): Declare indicator.
61156         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
61157         in use.
61159         closein-tests: silence compiler warning
61160         * tests/test-closein.c (main): Ignore fread result.
61161         * modules/closein-tests (Depends-on): Add ignore-value.
61163         tests: silence warning about system return
61164         * tests/test-areadlink-with-size.c (main): Ignore system result.
61165         * tests/test-areadlink.c (main): Likewise.
61166         * tests/test-areadlinkat-with-size.c (main): Likewise.
61167         * tests/test-areadlinkat.c (main): Likewise.
61168         * tests/test-canonicalize-lgpl.c (main): Likewise.
61169         * tests/test-canonicalize.c (main): Likewise.
61170         * tests/test-chown.c (main): Likewise.
61171         * tests/test-fchownat.c (main): Likewise.
61172         * tests/test-fdutimensat.c (main): Likewise.
61173         * tests/test-fstatat.c (main): Likewise.
61174         * tests/test-futimens.c (main): Likewise.
61175         * tests/test-lchown.c (main): Likewise.
61176         * tests/test-link.c (main): Likewise.
61177         * tests/test-linkat.c (main): Likewise.
61178         * tests/test-lstat.c (main): Likewise.
61179         * tests/test-mkdir.c (main): Likewise.
61180         * tests/test-mkdirat.c (main): Likewise.
61181         * tests/test-mkfifo.c (main): Likewise.
61182         * tests/test-mkfifoat.c (main): Likewise.
61183         * tests/test-mknod.c (main): Likewise.
61184         * tests/test-readlink.c (main): Likewise.
61185         * tests/test-remove.c (main): Likewise.
61186         * tests/test-rename.c (main): Likewise.
61187         * tests/test-renameat.c (main): Likewise.
61188         * tests/test-rmdir.c (main): Likewise.
61189         * tests/test-symlink.c (main): Likewise.
61190         * tests/test-symlinkat.c (main): Likewise.
61191         * tests/test-unlink.c (main): Likewise.
61192         * tests/test-unlinkat.c (main): Likewise.
61193         * tests/test-utimens.c (main): Likewise.
61194         * tests/test-utimensat.c (main): Likewise.
61195         * modules/areadlink-tests (Depends-on): Add ignore-value.
61196         * modules/areadlink-with-size-tests (Depends-on): Likewise.
61197         * modules/areadlinkat-tests (Depends-on): Likewise.
61198         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
61199         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
61200         * modules/canonicalize-tests (Depends-on): Likewise.
61201         * modules/chown-tests (Depends-on): Likewise.
61202         * modules/fdutimensat-tests (Depends-on): Likewise.
61203         * modules/futimens-tests (Depends-on): Likewise.
61204         * modules/lchown-tests (Depends-on): Likewise.
61205         * modules/link-tests (Depends-on): Likewise.
61206         * modules/linkat-tests (Depends-on): Likewise.
61207         * modules/lstat-tests (Depends-on): Likewise.
61208         * modules/mkdir-tests (Depends-on): Likewise.
61209         * modules/mkfifo-tests (Depends-on): Likewise.
61210         * modules/mkfifoat-tests (Depends-on): Likewise.
61211         * modules/mknod-tests (Depends-on): Likewise.
61212         * modules/openat-tests (Depends-on): Likewise.
61213         * modules/readlink-tests (Depends-on): Likewise.
61214         * modules/remove-tests (Depends-on): Likewise.
61215         * modules/rename-tests (Depends-on): Likewise.
61216         * modules/renameat-tests (Depends-on): Likewise.
61217         * modules/rmdir-tests (Depends-on): Likewise.
61218         * modules/symlink-tests (Depends-on): Likewise.
61219         * modules/symlinkat-tests (Depends-on): Likewise.
61220         * modules/unlink-tests (Depends-on): Likewise.
61221         * modules/utimens-tests (Depends-on): Likewise.
61222         * modules/utimensat-tests (Depends-on): Likewise.
61224 2010-01-31  Bruno Haible  <bruno@clisp.org>
61226         Perform the same test for many <math.h> functions.
61227         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
61228         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
61229         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
61230         of gl_MATHFUNC.
61231         * modules/acos (configure.ac): Likewise.
61232         * modules/asin (configure.ac): Likewise.
61233         * modules/atan (configure.ac): Likewise.
61234         * modules/atan2 (configure.ac): Likewise.
61235         * modules/cbrt (configure.ac): Likewise.
61236         * modules/copysign (configure.ac): Likewise.
61237         * modules/cos (configure.ac): Likewise.
61238         * modules/cosh (configure.ac): Likewise.
61239         * modules/erf (configure.ac): Likewise.
61240         * modules/erfc (configure.ac): Likewise.
61241         * modules/exp (configure.ac): Likewise.
61242         * modules/fmod (configure.ac): Likewise.
61243         * modules/hypot (configure.ac): Likewise.
61244         * modules/j0 (configure.ac): Likewise.
61245         * modules/j1 (configure.ac): Likewise.
61246         * modules/jn (configure.ac): Likewise.
61247         * modules/lgamma (configure.ac): Likewise.
61248         * modules/log (configure.ac): Likewise.
61249         * modules/log10 (configure.ac): Likewise.
61250         * modules/log1p (configure.ac): Likewise.
61251         * modules/pow (configure.ac): Likewise.
61252         * modules/remainder (configure.ac): Likewise.
61253         * modules/sin (configure.ac): Likewise.
61254         * modules/sinh (configure.ac): Likewise.
61255         * modules/tan (configure.ac): Likewise.
61256         * modules/tanh (configure.ac): Likewise.
61257         * modules/y0 (configure.ac): Likewise.
61258         * modules/y1 (configure.ac): Likewise.
61259         * modules/yn (configure.ac): Likewise.
61260         Suggested by Paolo Bonzini.
61262 2010-01-31  Bruno Haible  <bruno@clisp.org>
61264         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
61266 2010-01-31  Bruno Haible  <bruno@clisp.org>
61268         Work around getdelim() bug on FreeBSD 8.0.
61269         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
61270         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
61271         not work.
61272         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
61273         is 1.
61274         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
61275         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
61276         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
61277         a non-zero size.
61278         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
61280 2010-01-31  Bruno Haible  <bruno@clisp.org>
61282         Work around getline() bug on FreeBSD 8.0.
61283         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
61284         and a non-zero size.
61285         * tests/test-getline.c (main): Likewise.
61286         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
61287         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
61289 2010-01-28  Eric Blake  <ebb9@byu.net>
61291         regex: fix build failure
61292         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
61293         platforms.
61295 2010-01-28  Jim Meyering  <meyering@redhat.com>
61297         regex: do not ignore memory allocation failure
61298         * lib/regex_internal.c (create_cd_newstate): Detect
61299         re_node_set_init_copy failure.   Extracted from glibc commit
61300         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
61302         regex: sync more white-space changes from libc
61303         * lib/regex_internal.c: White-space only changes.
61304         * lib/regexec.c: Likewise.
61306         regex: add many uses of __attribute_warn_unused_result__
61307         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
61308         * lib/regexec.c: Likewise.
61309         Extracted from a messy glibc commit.
61311         regcomp.c: spelling and merge-artifact from glibc
61312         * lib/regcomp.c: Merge remainder of glibc's
61313         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
61315         regcomp.c: sync white-space changes from glibc
61316         * lib/regcomp.c: Merge to accommodate white space
61317         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
61319         regcomp.c: do not ignore internal return values
61320         * lib/regcomp.c: Do not ignore internal return values.
61321         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
61322         but without its white-space changes and spelling fixes.
61324         regex_internal.h: define __attribute_warn_unused_result__
61325         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
61327         maint: add a syntax-check rule to check for vulnerable Makefile.in
61328         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
61330 2010-01-27  Jim Meyering  <meyering@redhat.com>
61332         ncftpput-ftp: clean up spaces
61333         * build-aux/ncftpput-ftp: Make Copyright line consistent.
61334         Remove trailing blanks.
61336 2010-01-27  Simon Josefsson  <simon@josefsson.org>
61338         * build-aux/git-version-gen: Fix copyright statement.
61339         * build-aux/gnupload: Likewise.
61340         * tests/test-arcfour.c: Likewise.
61341         * tests/test-arctwo.c: Likewise.
61342         * tests/test-count-one-bits.c: Likewise.
61343         * tests/test-crc.c: Likewise.
61344         * tests/test-des.c: Likewise.
61345         * tests/test-gc-arcfour.c: Likewise.
61346         * tests/test-gc-arctwo.c: Likewise.
61347         * tests/test-gc-des.c: Likewise.
61348         * tests/test-gc-hmac-md5.c: Likewise.
61349         * tests/test-gc-hmac-sha1.c: Likewise.
61350         * tests/test-gc-md2.c: Likewise.
61351         * tests/test-gc-md4.c: Likewise.
61352         * tests/test-gc-md5.c: Likewise.
61353         * tests/test-gc-pbkdf2-sha1.c: Likewise.
61354         * tests/test-gc-rijndael.c: Likewise.
61355         * tests/test-gc-sha1.c: Likewise.
61356         * tests/test-gc.c: Likewise.
61357         * tests/test-gethostname.c: Likewise.
61358         * tests/test-gettimeofday.c: Likewise.
61359         * tests/test-hash.c: Likewise.
61360         * tests/test-hmac-md5.c: Likewise.
61361         * tests/test-hmac-sha1.c: Likewise.
61362         * tests/test-md2.c: Likewise.
61363         * tests/test-md4.c: Likewise.
61364         * tests/test-md5.c: Likewise.
61365         * tests/test-memchr.c: Likewise.
61366         * tests/test-memchr2.c: Likewise.
61367         * tests/test-memcmp.c: Likewise.
61368         * tests/test-memmem.c: Likewise.
61369         * tests/test-memrchr.c: Likewise.
61370         * tests/test-rawmemchr.c: Likewise.
61371         * tests/test-read-file.c: Likewise.
61372         * tests/test-rijndael.c: Likewise.
61373         * tests/test-sockets.c: Likewise.
61374         * tests/test-strchrnul.c: Likewise.
61375         * tests/test-strstr.c: Likewise.
61376         * tests/test-strtod.c: Likewise.
61377         * build-aux/ncftpput-ftp: Likewise.
61379 2010-01-26  Eric Blake  <ebb9@byu.net>
61381         ignore-value: update recommended header name
61382         * modules/ignore-value (Include): Only use <> for headers that
61383         exist in glibc.
61385 2010-01-26  Jim Meyering  <meyering@redhat.com>
61387         test-userspec.c: avoid compiler warnings
61388         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
61389         and "initialization discards qualifiers..." warnings.
61390         Put the first "uid" in its own scope, and make char* members "const".
61392 2010-01-25  Bruno Haible  <bruno@clisp.org>
61394         gnulib-tool: Make warning diagnostics consistent.
61395         * gnulib-tool (func_warning): New function.
61396         Use it everywhere where gnulib-tool produces output to stderr and it is
61397         not a fatal error.
61399 2010-01-25  Bruno Haible  <bruno@clisp.org>
61401         Fix test dependencies.
61402         * modules/xstrtol-tests (Depends-on): Add inttypes.
61403         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
61405 2010-01-25  Pádraig Brady  <P@draigBrady.com>
61407         syntax-check: detect incorrect boolean macro values in config.h
61408         * modules/maintainer-makefile (configure.ac): Parameterize the location
61409         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
61410         The logic is from Eric Blake and the location indicated by Jim Meyering.
61411         Note the more natural CONFIG_HEADER name is prohibited by automake
61412         for backwards compatibility reasons.
61413         * top/maint.mk (sc_Wundef_boolean): New rule.
61415 2010-01-25  Jim Meyering  <meyering@redhat.com>
61417         bootstrap: detect MacOS 10.6's shasum, too
61418         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
61419         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
61421 2010-01-23  Jim Meyering  <meyering@redhat.com>
61423         xstrtoll: new module
61424         * modules/xstrtoll: New file.
61425         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
61426         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
61427         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
61428         ./configure fails if you use this module and lack "long long".
61429         * modules/xstrtoll-tests: New module.
61430         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
61431         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
61432         new init.sh-based test framework.
61434 2010-01-24  Bruno Haible  <bruno@clisp.org>
61436         Tests for module 'yn'.
61437         * modules/yn-tests: New file.
61438         * tests/test-yn.c: New file.
61440         Tests for module 'y1'.
61441         * modules/y1-tests: New file.
61442         * tests/test-y1.c: New file.
61444         Tests for module 'y0'.
61445         * modules/y0-tests: New file.
61446         * tests/test-y0.c: New file.
61448         Tests for module 'tanh'.
61449         * modules/tanh-tests: New file.
61450         * tests/test-tanh.c: New file.
61452         Tests for module 'tan'.
61453         * modules/tan-tests: New file.
61454         * tests/test-tan.c: New file.
61456         Tests for module 'sqrt'.
61457         * modules/sqrt-tests: New file.
61458         * tests/test-sqrt.c: New file.
61460         Tests for module 'sinh'.
61461         * modules/sinh-tests: New file.
61462         * tests/test-sinh.c: New file.
61464         Tests for module 'sin'.
61465         * modules/sin-tests: New file.
61466         * tests/test-sin.c: New file.
61468         Tests for module 'rint'.
61469         * modules/rint-tests: New file.
61470         * tests/test-rint.c: New file.
61472         Tests for module 'remainder'.
61473         * modules/remainder-tests: New file.
61474         * tests/test-remainder.c: New file.
61476         Tests for module 'pow'.
61477         * modules/pow-tests: New file.
61478         * tests/test-pow.c: New file.
61480         Tests for module 'nextafter'.
61481         * modules/nextafter-tests: New file.
61482         * tests/test-nextafter.c: New file.
61484         Tests for module 'modf'.
61485         * modules/modf-tests: New file.
61486         * tests/test-modf.c: New file.
61488         Tests for module 'logb'.
61489         * modules/logb-tests: New file.
61490         * tests/test-logb.c: New file.
61492         Tests for module 'log1p'.
61493         * modules/log1p-tests: New file.
61494         * tests/test-log1p.c: New file.
61496         Tests for module 'log10'.
61497         * modules/log10-tests: New file.
61498         * tests/test-log10.c: New file.
61500         Tests for module 'log'.
61501         * modules/log-tests: New file.
61502         * tests/test-log.c: New file.
61504         Tests for module 'lgamma'.
61505         * modules/lgamma-tests: New file.
61506         * tests/test-lgamma.c: New file.
61508         Tests for module 'ldexp'.
61509         * modules/ldexp-tests: New file.
61510         * tests/test-ldexp.c: New file.
61512         Tests for module 'jn'.
61513         * modules/jn-tests: New file.
61514         * tests/test-jn.c: New file.
61516         Tests for module 'j1'.
61517         * modules/j1-tests: New file.
61518         * tests/test-j1.c: New file.
61520         Tests for module 'j0'.
61521         * modules/j0-tests: New file.
61522         * tests/test-j0.c: New file.
61524         Tests for module 'hypot'.
61525         * modules/hypot-tests: New file.
61526         * tests/test-hypot.c: New file.
61528         Tests for module 'fmod'.
61529         * modules/fmod-tests: New file.
61530         * tests/test-fmod.c: New file.
61532         Tests for module 'fabs'.
61533         * modules/fabs-tests: New file.
61534         * tests/test-fabs.c: New file.
61536         Tests for module 'exp'.
61537         * modules/exp-tests: New file.
61538         * tests/test-exp.c: New file.
61540         Tests for module 'erfc'.
61541         * modules/erfc-tests: New file.
61542         * tests/test-erfc.c: New file.
61544         Tests for module 'erf'.
61545         * modules/erf-tests: New file.
61546         * tests/test-erf.c: New file.
61548         Tests for module 'cosh'.
61549         * modules/cosh-tests: New file.
61550         * tests/test-cosh.c: New file.
61552         Tests for module 'cos'.
61553         * modules/cos-tests: New file.
61554         * tests/test-cos.c: New file.
61556         Tests for module 'copysign'.
61557         * modules/copysign-tests: New file.
61558         * tests/test-copysign.c: New file.
61560         Tests for module 'cbrt'.
61561         * modules/cbrt-tests: New file.
61562         * tests/test-cbrt.c: New file.
61564         Tests for module 'atan2'.
61565         * modules/atan2-tests: New file.
61566         * tests/test-atan2.c: New file.
61568         Tests for module 'atan'.
61569         * modules/atan-tests: New file.
61570         * tests/test-atan.c: New file.
61572         Tests for module 'asin'.
61573         * modules/asin-tests: New file.
61574         * tests/test-asin.c: New file.
61576         Tests for module 'acos'.
61577         * modules/acos-tests: New file.
61578         * tests/test-acos.c: New file.
61580 2010-01-24  Bruno Haible  <bruno@clisp.org>
61582         Fix tests for common <math.h> functions.
61583         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
61584         code snippet that references the function pointer, rather than merely
61585         calling the function. Substitute the FUNC_LIBM variable.
61586         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
61587         * modules/acos (configure.ac): Likewise.
61588         * modules/asin (configure.ac): Likewise.
61589         * modules/atan (configure.ac): Likewise.
61590         * modules/atan2 (configure.ac): Likewise.
61591         * modules/cbrt (configure.ac): Likewise.
61592         * modules/copysign (configure.ac): Likewise.
61593         * modules/cos (configure.ac): Likewise.
61594         * modules/cosh (configure.ac): Likewise.
61595         * modules/erf (configure.ac): Likewise.
61596         * modules/erfc (configure.ac): Likewise.
61597         * modules/exp (configure.ac): Likewise.
61598         * modules/fabs (configure.ac): Likewise.
61599         * modules/fmod (configure.ac): Likewise.
61600         * modules/hypot (configure.ac): Likewise.
61601         * modules/j0 (configure.ac): Likewise.
61602         * modules/j1 (configure.ac): Likewise.
61603         * modules/jn (configure.ac): Likewise.
61604         * modules/ldexp (configure.ac): Likewise.
61605         * modules/lgamma (configure.ac): Likewise.
61606         * modules/log (configure.ac): Likewise.
61607         * modules/log10 (configure.ac): Likewise.
61608         * modules/log1p (configure.ac): Likewise.
61609         * modules/logb (configure.ac): Likewise.
61610         * modules/modf (configure.ac): Likewise.
61611         * modules/nextafter (configure.ac): Likewise.
61612         * modules/pow (configure.ac): Likewise.
61613         * modules/remainder (configure.ac): Likewise.
61614         * modules/rint (configure.ac): Likewise.
61615         * modules/sin (configure.ac): Likewise.
61616         * modules/sinh (configure.ac): Likewise.
61617         * modules/tan (configure.ac): Likewise.
61618         * modules/tanh (configure.ac): Likewise.
61619         * modules/y0 (configure.ac): Likewise.
61620         * modules/y1 (configure.ac): Likewise.
61621         * modules/yn (configure.ac): Likewise.
61623 2010-01-24  Bruno Haible  <bruno@clisp.org>
61625         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
61626         * tests/test-acosl.c (x): New variable.
61627         (main): Store argument in x and fetch it from x.
61628         * tests/test-asinl.c (x): New variable.
61629         (main): Store argument in x and fetch it from x.
61630         * tests/test-atanl.c (x): New variable.
61631         (main): Store argument in x and fetch it from x.
61632         * tests/test-cosl.c (x): New variable.
61633         (main): Store argument in x and fetch it from x.
61634         * tests/test-expl.c (x): New variable.
61635         (main): Store argument in x and fetch it from x.
61636         * tests/test-logl.c (x): New variable.
61637         (main): Store argument in x and fetch it from x.
61638         * tests/test-sinl.c (x): New variable.
61639         (main): Store argument in x and fetch it from x.
61640         * tests/test-sqrtl.c (x): New variable.
61641         (main): Store argument in x and fetch it from x.
61642         * tests/test-tanl.c (x): New variable.
61643         (main): Store argument in x and fetch it from x.
61645 2010-01-24  Bruno Haible  <bruno@clisp.org>
61647         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
61648         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
61649         assignments to the initial TESTS_ENVIRONMENT.
61650         * doc/gnulib.texi (Unit test modules): Document it.
61651         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
61652         TESTS_ENVIRONMENT.
61653         * modules/btowc-tests (Makefile.am): Likewise.
61654         * modules/c-stack-tests (Makefile.am): Likewise.
61655         * modules/c-strcase-tests (Makefile.am): Likewise.
61656         * modules/copy-file-tests (Makefile.am): Likewise.
61657         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
61658         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
61659         * modules/mbrtowc-tests (Makefile.am): Likewise.
61660         * modules/mbscasecmp-tests (Makefile.am): Likewise.
61661         * modules/mbscasestr-tests (Makefile.am): Likewise.
61662         * modules/mbschr-tests (Makefile.am): Likewise.
61663         * modules/mbscspn-tests (Makefile.am): Likewise.
61664         * modules/mbsinit-tests (Makefile.am): Likewise.
61665         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
61666         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
61667         * modules/mbspbrk-tests (Makefile.am): Likewise.
61668         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
61669         * modules/mbsrchr-tests (Makefile.am): Likewise.
61670         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
61671         * modules/mbsspn-tests (Makefile.am): Likewise.
61672         * modules/mbsstr-tests (Makefile.am): Likewise.
61673         * modules/nl_langinfo-tests (Makefile.am): Likewise.
61674         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
61675         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
61676         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
61677         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
61678         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
61679         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
61680         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
61681         * modules/wcrtomb-tests (Makefile.am): Likewise.
61682         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
61683         * modules/wcsrtombs-tests (Makefile.am): Likewise.
61684         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
61685         assignments from TESTS_ENVIRONMENT.
61686         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
61687         augmentation.
61688         * modules/argp-version-etc-tests (Makefile.am): Likewise.
61689         * modules/atexit-tests (Makefile.am): Likewise.
61690         * modules/binary-io-tests (Makefile.am): Likewise.
61691         * modules/closein-tests (Makefile.am): Likewise.
61692         * modules/dprintf-posix-tests (Makefile.am): Likewise.
61693         * modules/exclude-tests (Makefile.am): Likewise.
61694         * modules/fflush-tests (Makefile.am): Likewise.
61695         * modules/fpending-tests (Makefile.am): Likewise.
61696         * modules/fprintf-posix-tests (Makefile.am): Likewise.
61697         * modules/freadahead-tests (Makefile.am): Likewise.
61698         * modules/freadptr-tests (Makefile.am): Likewise.
61699         * modules/freadseek-tests (Makefile.am): Likewise.
61700         * modules/fseek-tests (Makefile.am): Likewise.
61701         * modules/fseeko-tests (Makefile.am): Likewise.
61702         * modules/ftell-tests (Makefile.am): Likewise.
61703         * modules/ftello-tests (Makefile.am): Likewise.
61704         * modules/idpriv-drop-tests (Makefile.am): Likewise.
61705         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
61706         * modules/lseek-tests (Makefile.am): Likewise.
61707         * modules/parse-duration-tests (Makefile.am): Likewise.
61708         * modules/perror-tests (Makefile.am): Likewise.
61709         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
61710         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
61711         * modules/pipe-tests (Makefile.am): Likewise.
61712         * modules/pread-tests (Makefile.am): Likewise.
61713         * modules/printf-posix-tests (Makefile.am): Likewise.
61714         * modules/select-tests (Makefile.am): Likewise.
61715         * modules/sigpipe-tests (Makefile.am): Likewise.
61716         * modules/tsearch-tests (Makefile.am): Likewise.
61717         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
61718         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
61719         * modules/uniname/uniname-tests (Makefile.am): Likewise.
61720         * modules/uniwidth/width-tests (Makefile.am): Likewise.
61721         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
61722         * modules/version-etc-tests (Makefile.am): Likewise.
61723         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
61724         * modules/vprintf-posix-tests (Makefile.am): Likewise.
61725         * modules/xalloc-die-tests (Makefile.am): Likewise.
61726         * modules/xprintf-posix-tests (Makefile.am): Likewise.
61727         * modules/xstrtoimax-tests (Makefile.am): Likewise.
61728         * modules/xstrtol-tests (Makefile.am): Likewise.
61729         * modules/xstrtoumax-tests (Makefile.am): Likewise.
61730         * modules/yesno-tests (Makefile.am): Likewise.
61731         Suggested by Jim Meyering.
61733 2010-01-24  Bruno Haible  <bruno@clisp.org>
61735         More documentation.
61736         * doc/gnulib.texi (Writing modules): New chapter.
61737         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
61738         the new chapter.
61740 2010-01-24  Jim Meyering  <meyering@redhat.com>
61742         maint.mk: do not prepend "./" after filtering
61743         * top/maint.mk (_prepend_srcdir_prefix): New variable
61744         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
61745         "./" when $(srcdir) is ".".
61747         define STREQ(a,b) consistently, removing useless parentheses
61748         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
61749         since the only risk is that "a" or "b" contains an unparenthesized
61750         comma, but if either did that, STREQ would have 3 or more arguments.
61751         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
61752         * lib/fts.c (STREQ): Remove unnecessary parentheses.
61753         * lib/hash-triple.c (STREQ): Likewise.
61754         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
61755         * lib/getugroups.c (STREQ): Likewise.
61757 2010-01-23  Jim Meyering  <meyering@redhat.com>
61759         maint.mk: fix syntax-check in a non-srcdir build directory
61760         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
61761         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
61763 2010-01-22  Jim Meyering  <meyering@redhat.com>
61765         userspec: add unit tests
61766         * tests/test-userspec.c: New file.
61767         * modules/userspec-tests: Likewise.
61769 2010-01-21  Jim Meyering  <meyering@redhat.com>
61771         maint.mk: handle source file names containing "." robustly
61772         * top/maint.mk (_dot_escaped_srcdir): Define.
61773         (VC_LIST): Use it in LHS of sed substitution.
61775 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
61777         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
61778         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
61779         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
61780         from a non-srcdir build.
61782 2010-01-20  Eric Blake  <ebb9@byu.net>
61784         warn-on-use: use instead of link-warning
61785         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
61786         * modules/unistd (Depends-on, Makefile.am): Likewise.
61787         * modules/arpa_inet (Depends-on): Replace link-warning with
61788         warn-on-use.
61789         (Makefile.am): Update rules accordingly.
61790         * modules/ctype (Depends-on, Makefile.am): Likewise.
61791         * modules/dirent (Depends-on, Makefile.am): Likewise.
61792         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
61793         * modules/inttypes (Depends-on, Makefile.am): Likewise.
61794         * modules/langinfo (Depends-on, Makefile.am): Likewise.
61795         * modules/locale (Depends-on, Makefile.am): Likewise.
61796         * modules/math (Depends-on, Makefile.am): Likewise.
61797         * modules/search (Depends-on, Makefile.am): Likewise.
61798         * modules/signal (Depends-on, Makefile.am): Likewise.
61799         * modules/spawn (Depends-on, Makefile.am): Likewise.
61800         * modules/stdlib (Depends-on, Makefile.am): Likewise.
61801         * modules/string (Depends-on, Makefile.am): Likewise.
61802         * modules/strings (Depends-on, Makefile.am): Likewise.
61803         * modules/sys_file (Depends-on, Makefile.am): Likewise.
61804         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
61805         * modules/sys_select (Depends-on, Makefile.am): Likewise.
61806         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
61807         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
61808         * modules/sys_times (Depends-on, Makefile.am): Likewise.
61809         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
61810         * modules/wchar (Depends-on, Makefile.am): Likewise.
61811         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
61812         should be poisoned.
61813         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
61814         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
61815         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
61816         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
61817         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
61818         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
61819         * m4/math_h.m4 (gl_MATH_H): Likewise.
61820         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
61821         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
61822         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
61823         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
61824         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
61825         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
61826         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
61827         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
61828         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
61829         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
61830         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
61831         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
61832         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
61833         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
61834         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
61835         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
61836         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
61837         GL_LINK_WARNING.
61838         * lib/ctype.in.h: Likewise.
61839         * lib/dirent.in.h: Likewise.
61840         * lib/fcntl.in.h: Likewise.
61841         * lib/inttypes.in.h: Likewise.
61842         * lib/langinfo.in.h: Likewise.
61843         * lib/locale.in.h: Likewise.
61844         * lib/math.in.h: Likewise.
61845         * lib/search.in.h: Likewise.
61846         * lib/signal.in.h: Likewise.
61847         * lib/spawn.in.h: Likewise.
61848         * lib/stdio.in.h: Likewise.
61849         * lib/stdlib.in.h: Likewise.
61850         * lib/string.in.h: Likewise.
61851         * lib/strings.in.h: Likewise.
61852         * lib/sys_file.in.h: Likewise.
61853         * lib/sys_ioctl.in.h: Likewise.
61854         * lib/sys_select.in.h: Likewise.
61855         * lib/sys_socket.in.h: Likewise.
61856         * lib/sys_stat.in.h: Likewise.
61857         * lib/sys_times.in.h: Likewise.
61858         * lib/sys_utsname.in.h: Likewise.
61859         * lib/unistd.in.h: Likewise.
61860         * lib/wchar.in.h: Likewise.
61862 2010-01-20  Bruno Haible  <bruno@clisp.org>
61864         Avoid duplicate -lm.
61865         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
61866         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
61867         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
61868         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
61869         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
61870         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
61871         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
61872         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
61873         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
61874         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
61875         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
61876         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
61877         Reported by Paolo Bonzini.
61879 2010-01-19  Bruno Haible  <bruno@clisp.org>
61881         langinfo, nl_langinfo: Relicense under LGPLv2+.
61882         * modules/langinfo (License): Change to LGPLv2+.
61883         * modules/nl_langinfo (License): Likewise.
61884         Patch by David Lutterkort <lutter@redhat.com>.
61886 2010-01-19  Bruno Haible  <bruno@clisp.org>
61888         Avoid compilation error with cc on OSF/1 5.1.
61889         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
61890         statement, not before.
61891         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61893 2010-01-18  Bruno Haible  <bruno@clisp.org>
61895         Avoid a link error due to the __printf__ symbol.
61896         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
61897         and 2.6.x.
61898         (__format__, __printf__): Remove definitions.
61899         * lib/argp-fmtstream.h: Likewise.
61900         * lib/argp.h: Likewise.
61901         * lib/error.h: Likewise.
61902         * lib/vasnprintf.h: Likewise.
61903         * lib/xprintf.h: Likewise.
61904         * lib/xvasprintf.h: Likewise.
61905         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61907 2010-01-18  Bruno Haible  <bruno@clisp.org>
61909         Tests for module 'tanl'.
61910         * modules/tanl-tests: New file.
61911         * tests/test-tanl.c: New file.
61913         Tests for module 'sqrtl'.
61914         * modules/sqrtl-tests: New file.
61915         * tests/test-sqrtl.c: New file.
61917         Tests for module 'sinl'.
61918         * modules/sinl-tests: New file.
61919         * tests/test-sinl.c: New file.
61921         Tests for module 'logl'.
61922         * modules/logl-tests: New file.
61923         * tests/test-logl.c: New file.
61925         Tests for module 'expl'.
61926         * modules/expl-tests: New file.
61927         * tests/test-expl.c: New file.
61929         Tests for module 'cosl'.
61930         * modules/cosl-tests: New file.
61931         * tests/test-cosl.c: New file.
61933         Tests for module 'atanl'.
61934         * modules/atanl-tests: New file.
61935         * tests/test-atanl.c: New file.
61937         Tests for module 'asinl'.
61938         * modules/asinl-tests: New file.
61939         * tests/test-asinl.c: New file.
61941         Tests for module 'acosl'.
61942         * modules/acosl-tests: New file.
61943         * tests/test-acosl.c: New file.
61945         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
61946         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
61947         tanl): Use the standard gnulib idiom.
61948         * lib/cosl.c: Don't include trigl.c and sincosl.c.
61949         * lib/sinl.c: Likewise.
61950         * lib/tanl.c: Don't include trigl.c.
61951         (kernel_tanl): Make static.
61952         * lib/sincosl.c: Include trigl.h first.
61953         * lib/trigl.c: Likewise.
61954         * m4/acosl.m4: New file.
61955         * m4/asinl.m4: New file.
61956         * m4/atanl.m4: New file.
61957         * m4/cosl.m4: New file.
61958         * m4/expl.m4: New file.
61959         * m4/logl.m4: New file.
61960         * m4/sinl.m4: New file.
61961         * m4/sqrtl.m4: New file.
61962         * m4/tanl.m4: New file.
61963         * m4/mathl.m4: Remove file.
61964         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
61965         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
61966         Don't initialize GNULIB_MATHL.
61967         * modules/acosl: New file.
61968         * modules/asinl: New file.
61969         * modules/atanl: New file.
61970         * modules/cosl: New file.
61971         * modules/expl: New file.
61972         * modules/logl: New file.
61973         * modules/sinl: New file.
61974         * modules/sqrtl: New file.
61975         * modules/tanl: New file.
61976         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
61977         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
61978         substitute GNULIB_MATHL.
61979         * modules/mathl: Rewritten.
61980         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
61981         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
61982         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
61983         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
61984         * doc/posix-functions/expl.texi: Mention the 'expl' module.
61985         * doc/posix-functions/logl.texi: Mention the 'logl' module.
61986         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
61987         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
61988         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
61990 2010-01-18  Bruno Haible  <bruno@clisp.org>
61992         sqrt: Make gl_FUNC_SQRT requirable.
61993         * m4/sqrt.m4: New file.
61994         * modules/sqrt (Files): Add it.
61995         (configure.ac): Invoke gl_FUNC_SQRT.
61997 2010-01-18  Bruno Haible  <bruno@clisp.org>
61999         New modules for common <math.h> functions.
62000         * m4/mathfunc.m4: New file.
62001         * modules/acos: New file.
62002         * modules/asin: New file.
62003         * modules/atan: New file.
62004         * modules/atan2: New file.
62005         * modules/cbrt: New file.
62006         * modules/copysign: New file.
62007         * modules/cos: New file.
62008         * modules/cosh: New file.
62009         * modules/erf: New file.
62010         * modules/erfc: New file.
62011         * modules/exp: New file.
62012         * modules/fabs: New file.
62013         * modules/fmod: New file.
62014         * modules/hypot: New file.
62015         * modules/j0: New file.
62016         * modules/j1: New file.
62017         * modules/jn: New file.
62018         * modules/ldexp: New file.
62019         * modules/lgamma: New file.
62020         * modules/log: New file.
62021         * modules/log10: New file.
62022         * modules/log1p: New file.
62023         * modules/logb: New file.
62024         * modules/modf: New file.
62025         * modules/nextafter: New file.
62026         * modules/pow: New file.
62027         * modules/remainder: New file.
62028         * modules/rint: New file.
62029         * modules/sin: New file.
62030         * modules/sinh: New file.
62031         * modules/sqrt: New file.
62032         * modules/tan: New file.
62033         * modules/tanh: New file.
62034         * modules/y0: New file.
62035         * modules/y1: New file.
62036         * modules/yn: New file.
62037         * doc/posix-functions/acos.texi: Mention the 'acos' module.
62038         * doc/posix-functions/asin.texi: Mention the 'asin' module.
62039         * doc/posix-functions/atan.texi: Mention the 'atan' module.
62040         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
62041         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
62042         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
62043         * doc/posix-functions/cos.texi: Mention the 'cos' module.
62044         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
62045         * doc/posix-functions/erf.texi: Mention the 'erf' module.
62046         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
62047         * doc/posix-functions/exp.texi: Mention the 'exp' module.
62048         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
62049         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
62050         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
62051         * doc/posix-functions/j0.texi: Mention the 'j0' module.
62052         * doc/posix-functions/j1.texi: Mention the 'j1' module.
62053         * doc/posix-functions/jn.texi: Mention the 'jn' module.
62054         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
62055         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
62056         * doc/posix-functions/log.texi: Mention the 'log' module.
62057         * doc/posix-functions/log10.texi: Mention the 'log10' module.
62058         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
62059         * doc/posix-functions/logb.texi: Mention the 'logb' module.
62060         * doc/posix-functions/modf.texi: Mention the 'modf' module.
62061         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
62062         * doc/posix-functions/pow.texi: Mention the 'pow' module.
62063         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
62064         * doc/posix-functions/rint.texi: Mention the 'rint' module.
62065         * doc/posix-functions/sin.texi: Mention the 'sin' module.
62066         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
62067         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
62068         * doc/posix-functions/tan.texi: Mention the 'tan' module.
62069         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
62070         * doc/posix-functions/y0.texi: Mention the 'y0' module.
62071         * doc/posix-functions/y1.texi: Mention the 'y1' module.
62072         * doc/posix-functions/yn.texi: Mention the 'yn' module.
62074 2010-01-18  Jim Meyering  <meyering@redhat.com>
62076         ignore-value: relax license to LGPLv2+
62077         * modules/ignore-value (License): Relax to LGPLv2+.
62079         getdate: don't leak when TZ contains two or more '"'s
62080         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
62081         double quote in TZ after the first one.
62083         readtokens: do not leak internal token_lengths buffer
62084         * lib/readtokens.c (readtokens): Free the local, lengths,
62085         when the supplied "token_lengths" parameter is NULL.
62087 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62089         Fix a couple of missing LIBTHREAD link failures on AIX.
62090         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
62091         $(LIBTHREAD).
62092         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
62094         Link test-poll against INET_PTON_LIB.
62095         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
62096         for inet_pton on Solaris 10.
62098 2010-01-17  Bruno Haible  <bruno@clisp.org>
62100         unistdio/*-sprintf: Fix typo in module description.
62101         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
62102         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
62103         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
62104         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
62105         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
62106         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
62107         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
62108         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62110 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62112         gnulib-tool: fix filelist for AIX, HP-UX ksh.
62113         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
62114         variables in shell case patterns, for AIX and HP-UX ksh.
62116         Split large sed scripts, for HP-UX sed.
62117         * modules/stdio: Split sed scripts around 50 sed commands,
62118         to avoid HP-UX limit of 99 commands, in the near future.
62119         * modules/string: Likewise.
62120         * modules/unistd: Likewise.
62122         gnulib-tool: avoid writing in the current directory.
62123         * gnulib-tool (func_emit_lib_Makefile_am)
62124         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
62125         not in the current directory, so concurrent gnulib-tool
62126         instances do not interfere.
62128 2010-01-16  Jim Meyering  <meyering@redhat.com>
62130         doc: update users.txt
62131         * users.txt: Add grep.
62132         (diffutils, gzip): Update URLs.
62134 2010-01-12  Bruno Haible  <bruno@clisp.org>
62136         posix_spawn: Avoid test failure on Cygwin.
62137         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
62138         characters.
62139         Reported by Simon Josefsson.
62141 2010-01-12  Bruno Haible  <bruno@clisp.org>
62143         * tests/test-cond.c (main): When skipping the test, show the reason.
62145 2010-01-12  Simon Josefsson  <simon@josefsson.org>
62147         * lib/striconv.c (str_cd_iconv): Avoid if before free.
62149 2010-01-12  Simon Josefsson  <simon@josefsson.org>
62151         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
62152         VC_LIST_ALWAYS_EXCLUDE_REGEX.
62154 2010-01-12  Eric Blake  <ebb9@byu.net>
62156         build: guarantee AS_VAR_IF
62157         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
62158         (gl_AS_VAR_IF): Move...
62159         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
62160         Reported by Simon Josefsson.
62162 2010-01-12  Simon Josefsson  <simon@josefsson.org>
62164         * lib/stdio.in.h: Fix typo.
62166 2010-01-12  Simon Josefsson  <simon@josefsson.org>
62168         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
62169         libgpg-error.
62171 2010-01-12  Simon Josefsson  <simon@josefsson.org>
62173         * tests/test-xalloc-die.sh: Use $EXEEXT.
62175 2010-01-12  Simon Josefsson  <simon@josefsson.org>
62176             Bruno Haible  <bruno@clisp.org>
62178         getlogin, getlogin_r: Avoid test failure.
62179         * tests/test-getlogin.c: Include <stdio.h>.
62180         (main): Skip the test when the function fails because stdin is not a
62181         tty.
62182         * tests/test-getlogin_r.c: Include <stdio.h>.
62183         (main): Skip the test when the function fails because stdin is not a
62184         tty.
62186 2010-01-11  Eric Blake  <ebb9@byu.net>
62188         tests: avoid more large file warnings
62189         * tests/test-fflush.c: Avoid warning about ftell use.
62190         * tests/test-fseek.c: Avoid warning about fseek use.
62192 2010-01-10  Bruno Haible  <bruno@clisp.org>
62194         nproc: Work better on Linux when /proc and /sys are not mounted.
62195         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
62196         as lower bound when, on glibc/Linux systems,
62197         sysconf (_SC_NPROCESSORS_CONF) returns 1.
62198         Suggested by Pádraig Brady <P@draigbrady.com>.
62199         Reported by Dmitry V. Levin <ldv@altlinux.org>.
62201         nproc: Refactor.
62202         * lib/nproc.c (num_processors_via_affinity_mask): New function,
62203         extracted from num_processors.
62204         (num_processors): Call it.
62206 2010-01-11  Jim Meyering  <meyering@redhat.com>
62208         utimecmp: avoid new warning from upcoming gcc-4.5.0
62209         * lib/utimecmp.c (BILLION): Define using #define rather than an
62210         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
62212 2010-01-11  Eric Blake  <ebb9@byu.net>
62214         math: add portability warnings for classification macros
62215         * modules/math (Depends-on): Add warn-on-use.
62216         (Makefile.am): Provide new substitutions.
62217         * m4/math_h.m4 (gl_MATH_H): Require inline.
62218         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
62219         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
62220         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
62221         implement warnings.
62223         unistd: warn on use of environ without module
62224         * modules/unistd (Depends-on): Add warn-on-use.
62225         (Makefile.am): Provide new substitutions.
62226         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
62227         * lib/unistd.in.h (environ): Wrap with a warning helper function.
62229         stdio: warn on suspicious uses
62230         * modules/stdio (Depends-on): Add warn-on-use.
62231         (Makefile.am): Provide new substitutions.
62232         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
62233         fseeko.
62234         * lib/stdio.in.h (gets): Always warn on use.
62235         (fseek, ftell): Adjust when warnings are issued, and honor
62236         _GL_NO_LARGE_FILES as a way to silence the warning.
62237         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
62238         any warning about large file offsets.
62239         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
62240         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
62241         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
62242         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
62243         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
62244         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
62245         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
62246         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
62248         warn-on-use: new module
62249         * modules/warn-on-use: New file.
62250         * build-aux/warn-on-use.h: Likewise.
62251         * m4/warn-on-use.m4: Likewise.
62252         * MODULES.html.sh (Support for building): Mention it.
62254 2010-01-10  Bruno Haible  <bruno@clisp.org>
62256         Tests for module 'unistr/u32-strdup'.
62257         * modules/unistr/u32-strdup-tests: New file.
62258         * tests/unistr/test-u32-strdup.c: New file.
62260         Tests for module 'unistr/u16-strdup'.
62261         * modules/unistr/u16-strdup-tests: New file.
62262         * tests/unistr/test-u16-strdup.c: New file.
62264         Tests for module 'unistr/u8-strdup'.
62265         * modules/unistr/u8-strdup-tests: New file.
62266         * tests/unistr/test-u8-strdup.c: New file.
62267         * tests/unistr/test-strdup.h: New file.
62269         Tests for module 'unistr/u32-strncmp'.
62270         * modules/unistr/u32-strncmp-tests: New file.
62271         * tests/unistr/test-u32-strncmp.c: New file.
62273         Tests for module 'unistr/u16-strncmp'.
62274         * modules/unistr/u16-strncmp-tests: New file.
62275         * tests/unistr/test-u16-strncmp.c: New file.
62277         Tests for module 'unistr/u8-strncmp'.
62278         * modules/unistr/u8-strncmp-tests: New file.
62279         * tests/unistr/test-u8-strncmp.c: New file.
62280         * tests/unistr/test-strncmp.h: New file.
62282         Tests for module 'unistr/u32-strcoll'.
62283         * modules/unistr/u32-strcoll-tests: New file.
62284         * tests/unistr/test-u32-strcoll.c: New file.
62286         Tests for module 'unistr/u16-strcoll'.
62287         * modules/unistr/u16-strcoll-tests: New file.
62288         * tests/unistr/test-u16-strcoll.c: New file.
62290         Tests for module 'unistr/u8-strcoll'.
62291         * modules/unistr/u8-strcoll-tests: New file.
62292         * tests/unistr/test-u8-strcoll.c: New file.
62294         Tests for module 'unistr/u32-strcmp'.
62295         * modules/unistr/u32-strcmp-tests: New file.
62296         * tests/unistr/test-u32-strcmp.c: New file.
62297         * tests/unistr/test-u32-strcmp.h: New file.
62299         Tests for module 'unistr/u16-strcmp'.
62300         * modules/unistr/u16-strcmp-tests: New file.
62301         * tests/unistr/test-u16-strcmp.c: New file.
62302         * tests/unistr/test-u16-strcmp.h: New file.
62304         Tests for module 'unistr/u8-strcmp'.
62305         * modules/unistr/u8-strcmp-tests: New file.
62306         * tests/unistr/test-u8-strcmp.c: New file.
62307         * tests/unistr/test-u8-strcmp.h: New file.
62308         * tests/unistr/test-strcmp.h: New file.
62310         Tests for module 'unistr/u32-strncat'.
62311         * modules/unistr/u32-strncat-tests: New file.
62312         * tests/unistr/test-u32-strncat.c: New file.
62314         Tests for module 'unistr/u16-strncat'.
62315         * modules/unistr/u16-strncat-tests: New file.
62316         * tests/unistr/test-u16-strncat.c: New file.
62318         Tests for module 'unistr/u8-strncat'.
62319         * modules/unistr/u8-strncat-tests: New file.
62320         * tests/unistr/test-u8-strncat.c: New file.
62321         * tests/unistr/test-strncat.h: New file.
62323         Tests for module 'unistr/u32-strcat'.
62324         * modules/unistr/u32-strcat-tests: New file.
62325         * tests/unistr/test-u32-strcat.c: New file.
62327         Tests for module 'unistr/u16-strcat'.
62328         * modules/unistr/u16-strcat-tests: New file.
62329         * tests/unistr/test-u16-strcat.c: New file.
62331         Tests for module 'unistr/u8-strcat'.
62332         * modules/unistr/u8-strcat-tests: New file.
62333         * tests/unistr/test-u8-strcat.c: New file.
62334         * tests/unistr/test-strcat.h: New file.
62336         Tests for module 'unistr/u32-stpncpy'.
62337         * modules/unistr/u32-stpncpy-tests: New file.
62338         * tests/unistr/test-u32-stpncpy.c: New file.
62340         Tests for module 'unistr/u16-stpncpy'.
62341         * modules/unistr/u16-stpncpy-tests: New file.
62342         * tests/unistr/test-u16-stpncpy.c: New file.
62344         Tests for module 'unistr/u8-stpncpy'.
62345         * modules/unistr/u8-stpncpy-tests: New file.
62346         * tests/unistr/test-u8-stpncpy.c: New file.
62347         * tests/unistr/test-stpncpy.h: New file.
62349         Tests for module 'unistr/u32-strncpy'.
62350         * modules/unistr/u32-strncpy-tests: New file.
62351         * tests/unistr/test-u32-strncpy.c: New file.
62353         Tests for module 'unistr/u16-strncpy'.
62354         * modules/unistr/u16-strncpy-tests: New file.
62355         * tests/unistr/test-u16-strncpy.c: New file.
62357         Tests for module 'unistr/u8-strncpy'.
62358         * modules/unistr/u8-strncpy-tests: New file.
62359         * tests/unistr/test-u8-strncpy.c: New file.
62360         * tests/unistr/test-strncpy.h: New file.
62362         Tests for module 'unistr/u32-stpcpy'.
62363         * modules/unistr/u32-stpcpy-tests: New file.
62364         * tests/unistr/test-u32-stpcpy.c: New file.
62366         Tests for module 'unistr/u16-stpcpy'.
62367         * modules/unistr/u16-stpcpy-tests: New file.
62368         * tests/unistr/test-u16-stpcpy.c: New file.
62370         Tests for module 'unistr/u8-stpcpy'.
62371         * modules/unistr/u8-stpcpy-tests: New file.
62372         * tests/unistr/test-u8-stpcpy.c: New file.
62373         * tests/unistr/test-stpcpy.h: New file.
62375         Tests for module 'unistr/u32-strcpy'.
62376         * modules/unistr/u32-strcpy-tests: New file.
62377         * tests/unistr/test-u32-strcpy.c: New file.
62379         Tests for module 'unistr/u16-strcpy'.
62380         * modules/unistr/u16-strcpy-tests: New file.
62381         * tests/unistr/test-u16-strcpy.c: New file.
62383         Tests for module 'unistr/u8-strcpy'.
62384         * modules/unistr/u8-strcpy-tests: New file.
62385         * tests/unistr/test-u8-strcpy.c: New file.
62386         * tests/unistr/test-strcpy.h: New file.
62388         Tests for module 'unistr/u32-strnlen'.
62389         * modules/unistr/u32-strnlen-tests: New file.
62390         * tests/unistr/test-u32-strnlen.c: New file.
62392         Tests for module 'unistr/u16-strnlen'.
62393         * modules/unistr/u16-strnlen-tests: New file.
62394         * tests/unistr/test-u16-strnlen.c: New file.
62396         Tests for module 'unistr/u8-strnlen'.
62397         * modules/unistr/u8-strnlen-tests: New file.
62398         * tests/unistr/test-u8-strnlen.c: New file.
62399         * tests/unistr/test-strnlen.h: New file.
62401         Tests for module 'unistr/u32-strlen'.
62402         * modules/unistr/u32-strlen-tests: New file.
62403         * tests/unistr/test-u32-strlen.c: New file.
62405         Tests for module 'unistr/u16-strlen'.
62406         * modules/unistr/u16-strlen-tests: New file.
62407         * tests/unistr/test-u16-strlen.c: New file.
62409         Tests for module 'unistr/u8-strlen'.
62410         * modules/unistr/u8-strlen-tests: New file.
62411         * tests/unistr/test-u8-strlen.c: New file.
62413         Tests for module 'unistr/u32-prev'.
62414         * modules/unistr/u32-prev-tests: New file.
62415         * tests/unistr/test-u32-prev.c: New file.
62417         Tests for module 'unistr/u16-prev'.
62418         * modules/unistr/u16-prev-tests: New file.
62419         * tests/unistr/test-u16-prev.c: New file.
62421         Tests for module 'unistr/u8-prev'.
62422         * modules/unistr/u8-prev-tests: New file.
62423         * tests/unistr/test-u8-prev.c: New file.
62425         Tests for module 'unistr/u32-next'.
62426         * modules/unistr/u32-next-tests: New file.
62427         * tests/unistr/test-u32-next.c: New file.
62429         Tests for module 'unistr/u16-next'.
62430         * modules/unistr/u16-next-tests: New file.
62431         * tests/unistr/test-u16-next.c: New file.
62433         Tests for module 'unistr/u8-next'.
62434         * modules/unistr/u8-next-tests: New file.
62435         * tests/unistr/test-u8-next.c: New file.
62437         Tests for module 'unistr/u32-strmbtouc'.
62438         * modules/unistr/u32-strmbtouc-tests: New file.
62439         * tests/unistr/test-u32-strmbtouc.c: New file.
62441         Tests for module 'unistr/u16-strmbtouc'.
62442         * modules/unistr/u16-strmbtouc-tests: New file.
62443         * tests/unistr/test-u16-strmbtouc.c: New file.
62445         Tests for module 'unistr/u8-strmbtouc'.
62446         * modules/unistr/u8-strmbtouc-tests: New file.
62447         * tests/unistr/test-u8-strmbtouc.c: New file.
62449         Tests for module 'unistr/u32-strmblen'.
62450         * modules/unistr/u32-strmblen-tests: New file.
62451         * tests/unistr/test-u32-strmblen.c: New file.
62453         Tests for module 'unistr/u16-strmblen'.
62454         * modules/unistr/u16-strmblen-tests: New file.
62455         * tests/unistr/test-u16-strmblen.c: New file.
62457         Tests for module 'unistr/u8-strmblen'.
62458         * modules/unistr/u8-strmblen-tests: New file.
62459         * tests/unistr/test-u8-strmblen.c: New file.
62461         Tests for module 'unistr/u32-cpy-alloc'.
62462         * modules/unistr/u32-cpy-alloc-tests: New file.
62463         * tests/unistr/test-u32-cpy-alloc.c: New file.
62465         Tests for module 'unistr/u16-cpy-alloc'.
62466         * modules/unistr/u16-cpy-alloc-tests: New file.
62467         * tests/unistr/test-u16-cpy-alloc.c: New file.
62469         Tests for module 'unistr/u8-cpy-alloc'.
62470         * modules/unistr/u8-cpy-alloc-tests: New file.
62471         * tests/unistr/test-u8-cpy-alloc.c: New file.
62472         * tests/unistr/test-cpy-alloc.h: New file.
62474         Tests for module 'unistr/u32-mbsnlen'.
62475         * modules/unistr/u32-mbsnlen-tests: New file.
62476         * tests/unistr/test-u32-mbsnlen.c: New file.
62478         Tests for module 'unistr/u16-mbsnlen'.
62479         * modules/unistr/u16-mbsnlen-tests: New file.
62480         * tests/unistr/test-u16-mbsnlen.c: New file.
62482         Tests for module 'unistr/u8-mbsnlen'.
62483         * modules/unistr/u8-mbsnlen-tests: New file.
62484         * tests/unistr/test-u8-mbsnlen.c: New file.
62486         Tests for module 'unistr/u32-chr'.
62487         * modules/unistr/u32-chr-tests: New file.
62488         * tests/unistr/test-u32-chr.c: New file.
62490         Tests for module 'unistr/u16-chr'.
62491         * modules/unistr/u16-chr-tests: New file.
62492         * tests/unistr/test-u16-chr.c: New file.
62494         Tests for module 'unistr/u8-chr'.
62495         * modules/unistr/u8-chr-tests: New file.
62496         * tests/unistr/test-u8-chr.c: New file.
62497         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
62499         Tests for module 'unistr/u32-cmp2'.
62500         * modules/unistr/u32-cmp2-tests: New file.
62501         * tests/unistr/test-u32-cmp2.c: New file.
62503         Tests for module 'unistr/u16-cmp2'.
62504         * modules/unistr/u16-cmp2-tests: New file.
62505         * tests/unistr/test-u16-cmp2.c: New file.
62507         Tests for module 'unistr/u8-cmp2'.
62508         * modules/unistr/u8-cmp2-tests: New file.
62509         * tests/unistr/test-u8-cmp2.c: New file.
62510         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
62512         Tests for module 'unistr/u32-cmp'.
62513         * modules/unistr/u32-cmp-tests: New file.
62514         * tests/unistr/test-u32-cmp.c: New file.
62516         Tests for module 'unistr/u16-cmp'.
62517         * modules/unistr/u16-cmp-tests: New file.
62518         * tests/unistr/test-u16-cmp.c: New file.
62520         Tests for module 'unistr/u8-cmp'.
62521         * modules/unistr/u8-cmp-tests: New file.
62522         * tests/unistr/test-u8-cmp.c: New file.
62523         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
62525         Tests for module 'unistr/u32-set'.
62526         * modules/unistr/u32-set-tests: New file.
62527         * tests/unistr/test-u32-set.c: New file.
62529         Tests for module 'unistr/u16-set'.
62530         * modules/unistr/u16-set-tests: New file.
62531         * tests/unistr/test-u16-set.c: New file.
62533         Tests for module 'unistr/u8-set'.
62534         * modules/unistr/u8-set-tests: New file.
62535         * tests/unistr/test-u8-set.c: New file.
62536         * tests/unistr/test-set.h: New file.
62538         Tests for module 'unistr/u32-move'.
62539         * modules/unistr/u32-move-tests: New file.
62540         * tests/unistr/test-u32-move.c: New file.
62542         Tests for module 'unistr/u16-move'.
62543         * modules/unistr/u16-move-tests: New file.
62544         * tests/unistr/test-u16-move.c: New file.
62546         Tests for module 'unistr/u8-move'.
62547         * modules/unistr/u8-move-tests: New file.
62548         * tests/unistr/test-u8-move.c: New file.
62549         * tests/unistr/test-move.h: New file.
62551         Tests for module 'unistr/u32-cpy'.
62552         * modules/unistr/u32-cpy-tests: New file.
62553         * tests/unistr/test-u32-cpy.c: New file.
62555         Tests for module 'unistr/u16-cpy'.
62556         * modules/unistr/u16-cpy-tests: New file.
62557         * tests/unistr/test-u16-cpy.c: New file.
62559         Tests for module 'unistr/u8-cpy'.
62560         * modules/unistr/u8-cpy-tests: New file.
62561         * tests/unistr/test-u8-cpy.c: New file.
62562         * tests/unistr/test-cpy.h: New file.
62564 2010-01-09  Bruno Haible  <bruno@clisp.org>
62566         Tests for module 'unistr/u32-uctomb'.
62567         * modules/unistr/u32-uctomb-tests: New file.
62568         * tests/unistr/test-u32-uctomb.c: New file.
62570         Tests for module 'unistr/u16-uctomb'.
62571         * modules/unistr/u16-uctomb-tests: New file.
62572         * tests/unistr/test-u16-uctomb.c: New file.
62574         Tests for module 'unistr/u8-uctomb'.
62575         * modules/unistr/u8-uctomb-tests: New file.
62576         * tests/unistr/test-u8-uctomb.c: New file.
62578         Tests for module 'unistr/u32-mbtoucr'.
62579         * modules/unistr/u32-mbtoucr-tests: New file.
62580         * tests/unistr/test-u32-mbtoucr.c: New file.
62582         Tests for module 'unistr/u16-mbtoucr'.
62583         * modules/unistr/u16-mbtoucr-tests: New file.
62584         * tests/unistr/test-u16-mbtoucr.c: New file.
62586         Tests for module 'unistr/u8-mbtoucr'.
62587         * modules/unistr/u8-mbtoucr-tests: New file.
62588         * tests/unistr/test-u8-mbtoucr.c: New file.
62590         Tests for module 'unistr/u32-mbtouc'.
62591         * modules/unistr/u32-mbtouc-tests: New file.
62592         * tests/unistr/test-u32-mbtouc.c: New file.
62594         Tests for module 'unistr/u16-mbtouc'.
62595         * modules/unistr/u16-mbtouc-tests: New file.
62596         * tests/unistr/test-u16-mbtouc.c: New file.
62598         Tests for module 'unistr/u8-mbtouc'.
62599         * modules/unistr/u8-mbtouc-tests: New file.
62600         * tests/unistr/test-u8-mbtouc.c: New file.
62602         Tests for module 'unistr/u32-mbtouc-unsafe'.
62603         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
62604         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
62605         * tests/unistr/test-u32-mbtouc.h: New file.
62607         Tests for module 'unistr/u16-mbtouc-unsafe'.
62608         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
62609         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
62610         * tests/unistr/test-u16-mbtouc.h: New file.
62612         Tests for module 'unistr/u8-mbtouc-unsafe'.
62613         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
62614         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
62615         * tests/unistr/test-u8-mbtouc.h: New file.
62617         Tests for module 'unistr/u32-mblen'.
62618         * modules/unistr/u32-mblen-tests: New file.
62619         * tests/unistr/test-u32-mblen.c: New file.
62621         Tests for module 'unistr/u16-mblen'.
62622         * modules/unistr/u16-mblen-tests: New file.
62623         * tests/unistr/test-u16-mblen.c: New file.
62625         Tests for module 'unistr/u8-mblen'.
62626         * modules/unistr/u8-mblen-tests: New file.
62627         * tests/unistr/test-u8-mblen.c: New file.
62629         Tests for module 'unistr/u32-to-u16'.
62630         * modules/unistr/u32-to-u16-tests: New file.
62631         * tests/unistr/test-u32-to-u16.c: New file.
62633         Tests for module 'unistr/u32-to-u8'.
62634         * modules/unistr/u32-to-u8-tests: New file.
62635         * tests/unistr/test-u32-to-u8.c: New file.
62637         Tests for module 'unistr/u16-to-u32'.
62638         * modules/unistr/u16-to-u32-tests: New file.
62639         * tests/unistr/test-u16-to-u32.c: New file.
62641         Tests for module 'unistr/u16-to-u8'.
62642         * modules/unistr/u16-to-u8-tests: New file.
62643         * tests/unistr/test-u16-to-u8.c: New file.
62645         Tests for module 'unistr/u8-to-u32'.
62646         * modules/unistr/u8-to-u32-tests: New file.
62647         * tests/unistr/test-u8-to-u32.c: New file.
62649         Tests for module 'unistr/u8-to-u16'.
62650         * modules/unistr/u8-to-u16-tests: New file.
62651         * tests/unistr/test-u8-to-u16.c: New file.
62653         Tests for module 'unistr/u32-check'.
62654         * modules/unistr/u32-check-tests: New file.
62655         * tests/unistr/test-u32-check.c: New file.
62657         Tests for module 'unistr/u16-check'.
62658         * modules/unistr/u16-check-tests: New file.
62659         * tests/unistr/test-u16-check.c: New file.
62661         Tests for module 'unistr/u8-check'.
62662         * modules/unistr/u8-check-tests: New file.
62663         * tests/unistr/test-u8-check.c: New file.
62665         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
62666         (category_equals): New function.
62667         (main): Add more tests.
62668         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
62670         * tests/unictype/test-bidi_byname.c (main): Add more tests.
62672 2010-01-10  Bruno Haible  <bruno@clisp.org>
62674         unistr/u*-strcoll: Try harder to distinguish different strings.
62675         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
62676         compare s1 and s2 to see if they are different.
62678 2010-01-10  Bruno Haible  <bruno@clisp.org>
62680         unistr/u*-stpncpy: Fix the return value.
62681         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
62682         description of the return value consistent with stpncpy in glibc.
62683         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
62684         written non-NUL unit.
62686 2010-01-10  Bruno Haible  <bruno@clisp.org>
62688         unistr/u*-next: Add missing dependencies.
62689         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
62690         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
62691         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
62693 2010-01-10  Bruno Haible  <bruno@clisp.org>
62695         unistr/u8-mbsnlen: Fix return value for incomplete character.
62696         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
62697         u8_mblen.
62698         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
62699         Remove unistr/u8-mblen.
62700         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
62701         u16_mblen.
62702         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
62703         Remove unistr/u16-mblen.
62705 2010-01-10  Bruno Haible  <bruno@clisp.org>
62707         wchar: Fix compilation error when <wchar.h> is used from coreutils.
62708         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
62709         Reported by Brian Gough <bjg@gnu.org> and
62710         Chris Clayton <chris2553@googlemail.com> via
62711         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
62713 2010-01-09  Bruno Haible  <bruno@clisp.org>
62715         unistr/u16-to-u32: Reject invalid input.
62716         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
62717         u16_mbtouc.
62718         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
62719         Remove unistr/u16-mbtouc.
62721         unistr/u16-to-u8: Reject invalid input.
62722         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
62723         u16_mbtouc.
62724         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
62725         Remove unistr/u16-mbtouc.
62727         unistr/u8-to-u32: Reject invalid input.
62728         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
62729         u8_mbtouc.
62730         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
62731         Remove unistr/u8-mbtouc.
62733         unistr/u8-to-u16: Reject invalid input.
62734         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
62735         u8_mbtouc.
62736         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
62737         Remove unistr/u8-mbtouc.
62739 2010-01-09  Bruno Haible  <bruno@clisp.org>
62741         Tests for module 'getlogin'.
62742         * modules/getlogin-tests: New file.
62743         * tests/test-getlogin.c: New file.
62745         New module 'getlogin'.
62746         * lib/unistd.in.h (getlogin): New declaration.
62747         * lib/getlogin.c: New file.
62748         * m4/getlogin.m4: New file.
62749         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
62750         HAVE_GETLOGIN.
62751         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
62752         HAVE_GETLOGIN.
62753         * modules/getlogin: New file.
62754         * doc/posix-functions/getlogin.texi: Mention the new module.
62755         Reported by John W. Eaton <jwe@gnu.org>.
62757 2010-01-09  Bruno Haible  <bruno@clisp.org>
62759         getlogin_r: Support for native Windows.
62760         * lib/getlogin_r.c: Include <windows.h>
62761         (getlogin_r): Implement for native Windows.
62762         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
62763         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
62764         via John W. Eaton <jwe@gnu.org>.
62766 2010-01-09  Bruno Haible  <bruno@clisp.org>
62768         getlogin_r: Small fixes.
62769         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
62770         succeeds.
62771         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
62772         before testing whether getlogin_r is declared. No need to set
62773         HAVE_DECL_GETLOGIN_R to 1.
62774         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
62776 2010-01-09  Bruno Haible  <bruno@clisp.org>
62778         * lib/unistd.in.h (getlogin_r): Add comment.
62780 2010-01-09  Bruno Haible  <bruno@clisp.org>
62782         Tests for module 'getlogin_r'.
62783         * modules/getlogin_r-tests: New file.
62784         * tests/test-getlogin_r.c: New file.
62786 2010-01-09  Jim Meyering  <meyering@redhat.com>
62788         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
62789         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
62790         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
62792 2010-01-08  Simon Josefsson  <simon@josefsson.org>
62794         * lib/dup2.c (rpl_dup2): Improve comment.
62796 2010-01-08  Eric Blake  <ebb9@byu.net>
62798         maint.mk: allow packages to add makefile @@ exceptions
62799         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
62800         (sc_makefile_check): Rename...
62801         (sc_makefile_at_at_check): ...to this, and use hook.
62803         dup2: work around mingw bug
62804         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
62805         Reported by Simon Josefsson.
62807 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
62809         glob: Fix C++ compilation.
62810         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
62811         C++.
62813 2010-01-07  Bruno Haible  <bruno@clisp.org>
62815         Fix indentation of wctype.in.h, broken since 2007-01-06.
62816         * lib/wctype.in.h: Fix indentation of preprocessor directives.
62818 2010-01-07  Bruno Haible  <bruno@clisp.org>
62820         mbslen: Avoid collision with system function.
62821         * lib/string.in.h [MirBSD]: Include <wchar.h>.
62822         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
62823         * m4/mbslen.m4: New file.
62824         * modules/mbslen (Files): Add it.
62825         (configure.ac): Invoke gl_MBSLEN.
62826         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
62827         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
62828         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
62829         via Ian Beckwith <ianb@erislabs.net>.
62831 2010-01-07  Bruno Haible  <bruno@clisp.org>
62833         dirent: Document the last fix.
62834         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
62836 2010-01-07  Bruno Haible  <bruno@clisp.org>
62838         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
62839         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
62840         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
62841         va_list are defined.
62842         * doc/posix-headers/stdio.texi: Document the bug of missing types.
62843         Reported by Eric Blake.
62845 2010-01-07  Bruno Haible  <bruno@clisp.org>
62847         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
62848         * modules/xlist (Depends-on): Add 'list',
62849         * modules/xoset (Depends-on): Add 'oset'.
62850         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62852 2010-01-07  Bruno Haible  <bruno@clisp.org>
62854         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
62855         * doc/posix-functions/strncasecmp.texi: Likewise.
62857 2010-01-07  Bruno Haible  <bruno@clisp.org>
62859         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
62861 2010-01-07  John W. Eaton  <jwe@octave.org>
62863         wctype: allow C++ use
62864         * lib/wctype.in.h: Add extern "C" block for C++.
62866 2010-01-06  Eric Blake  <ebb9@byu.net>
62868         maint.mk: detect incorrect GFDL usage
62869         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
62871 2010-01-06  Jim Meyering  <meyering@redhat.com>
62872         and Eric Blake  <ebb9@byu.net>
62874         maint.mk: ignore multi-line copyright in NEWS
62875         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
62877 2010-01-06  Eric Blake  <ebb9@byu.net>
62879         select: add missing dependency
62880         * modules/select-tests (Depends-on): Move sockets dependency...
62881         * modules/select (Depends-on): ...here.
62882         Reported by Ian Beckwith.
62884         doc: regenerate INSTALL
62885         * doc/INSTALL: Reflect recent autoconf update.
62886         * doc/INSTALL.ISO: Likewise.
62887         * doc/INSTALL.UTF-8: Likewise.
62889         pread: fix compilation on glibc
62890         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
62891         Reported by Ralf Wildenhues.
62893         dirent: fix test failure
62894         * lib/dirent.in.h (includes): Guarantee ino_t.
62895         Reported by Ralf Wildenhues.
62897 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
62899         linkat, renameat: avoid bad free
62900         * lib/at-func2.c (at_func2): Fix typo.
62901         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
62903 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62905         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
62906         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
62907         to avoid failure of symlink test later.
62909 2010-01-06  Eric Blake  <ebb9@byu.net>
62911         stdio, unistd: guarantee ssize_t
62912         * lib/unistd.in.h (includes): Ensure that types required by POSIX
62913         2008 are exposed when needed.
62914         * lib/stdio.in.h (includes): Likewise.
62915         Reported by Ralf Wildenhues.
62917 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
62919         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
62920         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
62921         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
62923 2010-01-06  Jim Meyering  <meyering@redhat.com>
62925         readtokens: this module *does* require xalloc.h
62926         It uses only functions that were omitted by the old syntax-check rule.
62927         * lib/readtokens.c: Include "xalloc.h" once again.
62928         * modules/readtokens (Depends-on): Add xalloc.
62929         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
62931 2010-01-05  Eric Blake  <ebb9@byu.net>
62933         maint: support 'make announcement' from a VPATH build
62934         * top/maint.mk (announcement): Look for correct NEWS file.
62936 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
62938         utimens (fdutimens): ignore a negative FD, per contract
62939         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
62940         when we have a valid file descriptor.  Otherwise, using a brand
62941         new glibc (with just-patched futimens that now fails with EBADF)
62942         would cause this function to fail with ENOSYS.
62943         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
62944         See also http://bugzilla.redhat.com/552320.
62946 2010-01-05  Eric Blake  <ebb9@byu.net>
62948         strcase: document what it provides
62949         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
62950         gnulib module.
62951         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
62952         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
62954 2010-01-05  Jim Meyering  <meyering@redhat.com>
62956         maint: remove useless inclusions of "xalloc.h"
62957         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
62958         * lib/readtokens.c: Likewise.
62959         * lib/same.c: Likewise.
62960         * modules/getloadavg (Depends-on): Remove xalloc.
62961         * modules/readtokens: Likewise.
62962         * modules/same: Likewise.
62964         maint.mk: include 4 more function names in alloca.h-checking regexp
62965         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
62966         regexp.  Before, we would give a false-positive (saying alloca.h
62967         is included unnecessarily) when the only uses involved omitted symbols.
62969         xalloc.h: use consistent formatting
62970         * lib/xalloc.h: Move declarations to start in the first column.
62972 2010-01-05  Eric Blake  <ebb9@byu.net>
62974         mkdir: avoid xalloc
62975         * lib/mkdir.c (includes): Drop unused header.
62976         Reported by John W. Eaton.
62978 2010-01-04  Jim Meyering  <meyering@redhat.com>
62980         nl_langinfo: avoid configure-time syntax error
62981         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
62982         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
62983         the empty string.  Don't let that provoke a shell syntax error.
62985         regcomp, regexec, fnmatch: avoid array bounds read error
62986         * lib/regcomp.c (build_equiv_class): From glibc:
62987         Use only the low 24 bits of a findidx return value as an index
62988         into the weights array.  Patch by Ulrich Drepper:
62989         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
62990         * lib/regexec.c (check_node_accept_bytes): Likewise.
62991         * lib/fnmatch_loop.c (FCT): Likewise.
62993         regcomp: skip collseq lookup when there are no rules
62994         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
62995         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
62997         regcomp: recognize ill-formed { } expressions
62998         * lib/regcomp.c (parse_dup_op): From glibc:
62999         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
63001         regcomp: fix typo in comment
63002         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
63003         s/satisfy/satisfies/.
63005         regcomp: sync from glibc: remove dead store
63006         * lib/regcomp.c (duplicate_node_closure): Remove useless
63007         search_duplicated_node call and dead store.
63009         regcomp: sync from glibc; always use nl_langinfo
63010         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
63011         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
63012         * modules/regex (Depends-on): Add nl_langinfo.
63014 2010-01-04  Eric Blake  <ebb9@byu.net>
63016         fdopendir: fix configure test
63017         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
63019 2010-01-01  Bruno Haible  <bruno@clisp.org>
63021         wchar: Remove unused configure check.
63022         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
63024 2010-01-01  Eric Blake  <ebb9@byu.net>
63026         headers: make check of system header explicit
63027         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
63028         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
63029         ourselves.
63030         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
63031         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
63032         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
63033         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
63034         internals.
63035         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
63036         missing.
63037         Suggested by Bruno Haible.
63039 2010-01-01  Jim Meyering  <meyering@redhat.com>
63041         ChangeLog: tweak to eliminate unnecessary copyright line
63042         * ChangeLog: Remove a copyright line that was mistakenly updated
63043         by today's update-copyright run.  Reported by Eric Blake.
63045         test-update-copyright: don't let envvar setting cause test failure
63046         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
63048 2010-01-01  Bruno Haible  <bruno@clisp.org>
63050         localename: Avoid gcc warning.
63051         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
63052         function if it is not used.
63054 2010-01-01  Jim Meyering  <meyering@redhat.com>
63056         update nearly all FSF copyright year lists to include 2010
63057         Use the same procedure as for 2009, outlined in
63058         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
63060         version-etc: set COPYRIGHT_YEAR to 2010
63061         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
63063 2009-12-31  Eric Blake  <ebb9@byu.net>
63065         doc: correct availability of cygwin 1.5.x getopt
63066         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
63067         variables.
63068         * doc/posix-functions/opterr.texi (opterr): Likewise.
63069         * doc/posix-functions/optind.texi (optind): Likewise.
63070         * doc/posix-functions/optopt.texi (optopt): Likewise.
63071         * doc/posix-functions/tzname.texi (tzname): Likewise.
63073         openat: update maintainer
63074         * modules/openat (Maintainer): Add myself.
63076         utimens: avoid shadowing warning
63077         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
63078         buffers into one, to avoid shadowing, as well as avoiding a
63079         redundant stat.
63080         Reported by Jim Meyering.
63082         test-dup2: avoid compiler warning
63083         * tests/test-dup2.c (is_inheritable): Only define if used.
63085 2010-01-01  Bruno Haible  <bruno@clisp.org>
63087         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
63088         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
63089         defined, use wctomb instead of wcrtomb.
63091 2010-01-01  Bruno Haible  <bruno@clisp.org>
63093         iconv: Reject native Solaris iconv.
63094         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
63095         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
63097 2009-12-31  Bruno Haible  <bruno@clisp.org>
63099         * tests/test-signal.c (main): Remove test of 'SIG'.
63101 2009-12-31  Bruno Haible  <bruno@clisp.org>
63103         spawn: Fix incomplete fix.
63104         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
63105         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
63106         warnings for GNULIB_POSIXCHECK again.
63107         Reported by Eric Blake.
63109 2009-12-31  Bruno Haible  <bruno@clisp.org>
63111         Avoid namespace pollution on glibc systems.
63112         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
63113         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
63114         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
63115         glibc systems.
63117 2009-12-31  Bruno Haible  <bruno@clisp.org>
63119         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
63120         (gl_REPLACE_WCHAR_H): Turn into a no-op.
63121         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
63122         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
63123         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
63124         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
63125         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
63127 2009-12-31  Bruno Haible  <bruno@clisp.org>
63129         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
63130         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
63131         afterwards.
63133 2009-12-31  Bruno Haible  <bruno@clisp.org>
63135         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
63136         SYS_UTSNAME_H.
63138 2009-12-31  Bruno Haible  <bruno@clisp.org>
63140         spawn: Fix misapplied patch.
63141         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
63142         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
63143         warnings for GNULIB_POSIXCHECK.
63145 2009-12-31  Bruno Haible  <bruno@clisp.org>
63147         times: Update after sys_times changed.
63148         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
63149         * modules/times (Files): Add it.
63150         (configure.ac): Invoke gl_FUNC_TIMES.
63152 2009-12-31  Bruno Haible  <bruno@clisp.org>
63154         Use AC_C_INLINE where necessary.
63155         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
63156         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
63157         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
63158         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
63159         * m4/mbfile.m4 (gl_MBFILE): Likewise.
63160         * m4/mbiter.m4 (gl_MBITER): Likewise.
63161         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
63162         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
63163         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
63164         * modules/u64 (configure.ac): Likewise.
63166 2009-12-31  Bruno Haible  <bruno@clisp.org>
63168         Use AC_C_INLINE instead of module 'inline' where possible.
63169         * modules/inline (Description): Clarify purpose.
63170         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
63171         * modules/count-one-bits (Depends-on): Remove inline.
63172         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
63173         * modules/openat (Depends-on): Remove inline.
63174         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
63175         instead of depending on module 'inline'.
63176         * modules/filevercmp (Depends-on, configure.ac): Likewise.
63177         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
63178         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
63179         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
63180         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
63181         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
63182         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
63183         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
63184         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
63185         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
63186         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
63187         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
63188         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
63189         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
63190         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
63191         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
63192         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
63193         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
63194         Likewise.
63195         * modules/unictype/property-ascii-hex-digit (Depends-on,
63196         configure.ac): Likewise.
63197         * modules/unictype/property-bidi-arabic-digit (Depends-on,
63198         configure.ac): Likewise.
63199         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
63200         configure.ac): Likewise.
63201         * modules/unictype/property-bidi-block-separator (Depends-on,
63202         configure.ac): Likewise.
63203         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
63204         configure.ac): Likewise.
63205         * modules/unictype/property-bidi-common-separator (Depends-on,
63206         configure.ac): Likewise.
63207         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
63208         Likewise.
63209         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
63210         configure.ac): Likewise.
63211         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
63212         configure.ac): Likewise.
63213         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
63214         configure.ac): Likewise.
63215         * modules/unictype/property-bidi-european-digit (Depends-on,
63216         configure.ac): Likewise.
63217         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
63218         configure.ac): Likewise.
63219         * modules/unictype/property-bidi-left-to-right (Depends-on,
63220         configure.ac): Likewise.
63221         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
63222         configure.ac): Likewise.
63223         * modules/unictype/property-bidi-other-neutral (Depends-on,
63224         configure.ac): Likewise.
63225         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
63226         Likewise.
63227         * modules/unictype/property-bidi-segment-separator (Depends-on,
63228         configure.ac): Likewise.
63229         * modules/unictype/property-bidi-whitespace (Depends-on,
63230         configure.ac): Likewise.
63231         * modules/unictype/property-combining (Depends-on, configure.ac):
63232         Likewise.
63233         * modules/unictype/property-composite (Depends-on, configure.ac):
63234         Likewise.
63235         * modules/unictype/property-currency-symbol (Depends-on,
63236         configure.ac): Likewise.
63237         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
63238         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
63239         Likewise.
63240         * modules/unictype/property-default-ignorable-code-point (Depends-on,
63241         configure.ac): Likewise.
63242         * modules/unictype/property-deprecated (Depends-on, configure.ac):
63243         Likewise.
63244         * modules/unictype/property-diacritic (Depends-on, configure.ac):
63245         Likewise.
63246         * modules/unictype/property-extender (Depends-on, configure.ac):
63247         Likewise.
63248         * modules/unictype/property-format-control (Depends-on, configure.ac):
63249         Likewise.
63250         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
63251         Likewise.
63252         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
63253         Likewise.
63254         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
63255         Likewise.
63256         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
63257         Likewise.
63258         * modules/unictype/property-hyphen (Depends-on, configure.ac):
63259         Likewise.
63260         * modules/unictype/property-id-continue (Depends-on, configure.ac):
63261         Likewise.
63262         * modules/unictype/property-id-start (Depends-on, configure.ac):
63263         Likewise.
63264         * modules/unictype/property-ideographic (Depends-on, configure.ac):
63265         Likewise.
63266         * modules/unictype/property-ids-binary-operator (Depends-on,
63267         configure.ac): Likewise.
63268         * modules/unictype/property-ids-trinary-operator (Depends-on,
63269         configure.ac): Likewise.
63270         * modules/unictype/property-ignorable-control (Depends-on,
63271         configure.ac): Likewise.
63272         * modules/unictype/property-iso-control (Depends-on, configure.ac):
63273         Likewise.
63274         * modules/unictype/property-join-control (Depends-on, configure.ac):
63275         Likewise.
63276         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
63277         Likewise.
63278         * modules/unictype/property-line-separator (Depends-on, configure.ac):
63279         Likewise.
63280         * modules/unictype/property-logical-order-exception (Depends-on,
63281         configure.ac): Likewise.
63282         * modules/unictype/property-lowercase (Depends-on, configure.ac):
63283         Likewise.
63284         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
63285         * modules/unictype/property-non-break (Depends-on, configure.ac):
63286         Likewise.
63287         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
63288         Likewise.
63289         * modules/unictype/property-numeric (Depends-on, configure.ac):
63290         Likewise.
63291         * modules/unictype/property-other-alphabetic (Depends-on,
63292         configure.ac): Likewise.
63293         * modules/unictype/property-other-default-ignorable-code-point
63294         (Depends-on, configure.ac): Likewise.
63295         * modules/unictype/property-other-grapheme-extend (Depends-on,
63296         configure.ac): Likewise.
63297         * modules/unictype/property-other-id-continue (Depends-on,
63298         configure.ac): Likewise.
63299         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
63300         Likewise.
63301         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
63302         Likewise.
63303         * modules/unictype/property-other-math (Depends-on, configure.ac):
63304         Likewise.
63305         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
63306         Likewise.
63307         * modules/unictype/property-paired-punctuation (Depends-on,
63308         configure.ac): Likewise.
63309         * modules/unictype/property-paragraph-separator (Depends-on,
63310         configure.ac): Likewise.
63311         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
63312         Likewise.
63313         * modules/unictype/property-pattern-white-space (Depends-on,
63314         configure.ac): Likewise.
63315         * modules/unictype/property-private-use (Depends-on, configure.ac):
63316         Likewise.
63317         * modules/unictype/property-punctuation (Depends-on, configure.ac):
63318         Likewise.
63319         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
63320         Likewise.
63321         * modules/unictype/property-radical (Depends-on, configure.ac):
63322         Likewise.
63323         * modules/unictype/property-sentence-terminal (Depends-on,
63324         configure.ac): Likewise.
63325         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
63326         Likewise.
63327         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
63328         * modules/unictype/property-terminal-punctuation (Depends-on,
63329         configure.ac): Likewise.
63330         * modules/unictype/property-titlecase (Depends-on, configure.ac):
63331         Likewise.
63332         * modules/unictype/property-unassigned-code-value (Depends-on,
63333         configure.ac): Likewise.
63334         * modules/unictype/property-unified-ideograph (Depends-on,
63335         configure.ac): Likewise.
63336         * modules/unictype/property-uppercase (Depends-on, configure.ac):
63337         Likewise.
63338         * modules/unictype/property-variation-selector (Depends-on,
63339         configure.ac): Likewise.
63340         * modules/unictype/property-white-space (Depends-on, configure.ac):
63341         Likewise.
63342         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
63343         Likewise.
63344         * modules/unictype/property-xid-start (Depends-on, configure.ac):
63345         Likewise.
63346         * modules/unictype/property-zero-width (Depends-on, configure.ac):
63347         Likewise.
63348         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
63349         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
63350         Likewise.
63352 2009-12-31  Bruno Haible  <bruno@clisp.org>
63354         Remove unnecessary AC_C_INLINE invocation.
63355         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
63356         since 2009-08-21.
63358 2009-12-31  Jim Meyering  <meyering@redhat.com>
63360         maint.mk: don't require explicit gpg_key_ID in cfg.mk
63361         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
63362         With this change, we can all remove the gpg_key_ID = ... definition
63363         from our respective cfg.mk files.
63365         maint.mk: create announcement template in ~/, not in /tmp
63366         * top/maint.mk (emit_upload_commands): Adjust.
63367         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
63368         Remove temporary file, .ci-msg.
63370 2009-12-31  Eric Blake  <ebb9@byu.net>
63372         link-warning: always build headers with link warnings
63373         * modules/arpa_inet (Makefile.am): Always build replacement
63374         header.
63375         * modules/ctype (Makefile.am): Likewise.
63376         * modules/dirent (Makefile.am): Likewise.
63377         * modules/inttypes (Makefile.am): Likewise.
63378         * modules/langinfo (Makefile.am): Likewise.
63379         * modules/locale (Makefile.am): Likewise.
63380         * modules/spawn (Makefile.am): Likewise.
63381         * modules/sys_file (Makefile.am): Likewise.
63382         * modules/sys_ioctl (Makefile.am): Likewise.
63383         * modules/sys_select (Makefile.am): Likewise.
63384         * modules/sys_socket (Makefile.am): Likewise.
63385         * modules/sys_times (Makefile.am): Likewise.
63386         * modules/sys_utsname (Makefile.am): Likewise.
63387         * modules/sys_wait (Makefile.am): Likewise.
63388         * modules/wchar (Makefile.am): Likewise.
63389         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
63390         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
63391         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
63392         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
63393         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
63394         Likewise.
63395         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
63396         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
63397         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
63398         Likewise.
63399         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
63400         Likewise.
63401         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
63402         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
63403         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
63404         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
63405         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
63406         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
63407         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
63408         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
63409         (gl_WCHAR_H_DEFAULTS): Likewise.
63411 2009-12-31  Eric Blake  <ebb9@byu.net>
63413         signal, spawn: use link warnings
63414         * lib/signal.in.h (sigset_t): Make unconditional.
63415         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
63416         (sigpending, sigprocmask, sigaction): Add link warnings.
63417         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
63418         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
63419         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
63420         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
63421         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
63422         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
63423         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
63424         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
63425         (posix_spawn_file_actions_destroy)
63426         (posix_spawn_file_actions_addopen)
63427         (posix_spawn_file_actions_addclose)
63428         (posix_spawn_file_actions_adddup2): Likewise.
63429         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
63430         * tests/test-signal.c (main): Enhance test.
63432         spawn: improve wrapper support
63433         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
63434         (gl_SPAWN_H_DEFAULTS): New defaults.
63435         * modules/spawn (Makefile.am): Substitute them.
63436         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
63437         Only declare if missing or broken.
63439         sys_times, sys_utsname: use include_next
63440         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
63441         header.
63442         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
63443         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
63444         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
63445         * modules/sys_times (Depends-on): Add include_next.
63446         (Makefile.am): Substitute additional values.
63447         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
63448         * lib/sys_times.in.h (includes): Include native header, if
63449         available.
63450         * lib/sys_utsname.in.h (includes): Likewise.
63451         * tests/test-sys_times.c (main): Enhance test.
63453         fdutimensat: revert prior patch
63454         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
63455         utimens.h.
63456         Reported by Bruno Haible.
63458 2009-12-30  Eric Blake  <ebb9@byu.net>
63460         sys_wait: drop link-warning dependency
63461         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
63462         link-warning efforts.
63463         * lib/sys_wait.in.h: Likewise.
63465         fdutimensat: remove bogus dependency
63466         * modules/fdutimensat (Depends-on): Drop inline.
63468         unistd: fix typo
63469         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
63471 2009-12-30  Bruno Haible  <bruno@clisp.org>
63473         Fix compilation error with Solaris cc.
63474         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
63475         * lib/unicase/u16-is-invariant.c: Likewise.
63476         * lib/unicase/u32-is-invariant.c: Likewise.
63477         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
63479 2009-12-30  Bruno Haible  <bruno@clisp.org>
63481         Fix test crash.
63482         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
63483         locales.
63484         Reported by Simon Josefsson <simon@josefsson.org>.
63486 2009-12-30  Bruno Haible  <bruno@clisp.org>
63488         Fix compilation error on most platforms.
63489         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
63490         Reported by Simon Josefsson <simon@josefsson.org>
63491         and Nelson H. F. Beebe <beebe@math.utah.edu>.
63493 2009-12-30  Eric Blake  <ebb9@byu.net>
63495         futimens, utimensat: work around ntfs-3g bug
63496         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
63497         a ctime bug is present, and expand workaround to cover ntfs-3g.
63498         * lib/utimens.c (fdutimens, lutimens): Likewise.
63499         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
63500         (validate_timespec): Adjust return value.
63501         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
63502         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
63503         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
63505 2009-12-29  Eric Blake  <ebb9@byu.net>
63507         link-warning: make usage consistent
63508         * modules/ctype (Depends-on): Add link-warning.
63509         (Makefile.am): Update rules accordingly.
63510         * modules/langinfo (Depends-on, Makefile.am): Likewise.
63511         * modules/locale (Depends-on, Makefile.am): Likewise.
63512         * modules/sys_file (Makefile.am): Likewise.
63513         * modules/getopt-posix (Makefile.am): Delete unused link warning
63514         efforts.
63515         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
63516         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
63517         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
63518         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
63520         stdio: remove unused variables
63521         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
63522         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
63523         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
63525         tests: test more substitute headers
63526         * modules/ctype-tests: New file.
63527         * modules/dirent-tests: Likewise.
63528         * modules/spawn-tests: Likewise.
63529         * modules/sys_file-tests: Likewise.
63530         * modules/sys_ioctl-tests: Likewise.
63531         * modules/sys_wait-tests: Likewise.
63532         * tests/test-ctype.c: Likewise.
63533         * tests/test-dirent.c: Likewise.
63534         * tests/test-spawn.c: Likewise.
63535         * tests/test-sys_file.c: Likewise.
63536         * tests/test-sys_ioctl.c: Likewise.
63537         * tests/test-sys_wait.c: Likewise.
63538         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
63539         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
63540         whether or not flock is in use.
63542         tests: remove License section from module
63543         * modules/arpa_inet-tests: Remove unneeded section.
63544         * modules/byteswap-tests: Likewise.
63545         * modules/ceilf-tests: Likewise.
63546         * modules/ceill-tests: Likewise.
63547         * modules/crypto/des-tests: Likewise.
63548         * modules/crypto/gc-arcfour-tests: Likewise.
63549         * modules/crypto/gc-arctwo-tests: Likewise.
63550         * modules/crypto/gc-des-tests: Likewise.
63551         * modules/crypto/gc-hmac-md5-tests: Likewise.
63552         * modules/crypto/gc-hmac-sha1-tests: Likewise.
63553         * modules/crypto/gc-md2-tests: Likewise.
63554         * modules/crypto/gc-md4-tests: Likewise.
63555         * modules/crypto/gc-md5-tests: Likewise.
63556         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
63557         * modules/crypto/gc-rijndael-tests: Likewise.
63558         * modules/crypto/gc-sha1-tests: Likewise.
63559         * modules/crypto/gc-tests: Likewise.
63560         * modules/crypto/md2-tests: Likewise.
63561         * modules/crypto/md4-tests: Likewise.
63562         * modules/fcntl-h-tests: Likewise.
63563         * modules/floorf-tests: Likewise.
63564         * modules/floorl-tests: Likewise.
63565         * modules/frexp-nolibm-tests: Likewise.
63566         * modules/frexp-tests: Likewise.
63567         * modules/frexpl-nolibm-tests: Likewise.
63568         * modules/frexpl-tests: Likewise.
63569         * modules/getaddrinfo-tests: Likewise.
63570         * modules/inttypes-tests: Likewise.
63571         * modules/isfinite-tests: Likewise.
63572         * modules/isinf-tests: Likewise.
63573         * modules/ldexpl-tests: Likewise.
63574         * modules/locale-tests: Likewise.
63575         * modules/math-tests: Likewise.
63576         * modules/netdb-tests: Likewise.
63577         * modules/netinet_in-tests: Likewise.
63578         * modules/printf-frexp-tests: Likewise.
63579         * modules/printf-frexpl-tests: Likewise.
63580         * modules/priv-set-tests: Likewise.
63581         * modules/random_r-tests: Likewise.
63582         * modules/round-tests: Likewise.
63583         * modules/roundf-tests: Likewise.
63584         * modules/roundl-tests: Likewise.
63585         * modules/search-tests: Likewise.
63586         * modules/select-tests: Likewise.
63587         * modules/signal-tests: Likewise.
63588         * modules/stdbool-tests: Likewise.
63589         * modules/stddef-tests: Likewise.
63590         * modules/stdint-tests: Likewise.
63591         * modules/stdio-tests: Likewise.
63592         * modules/stdlib-tests: Likewise.
63593         * modules/string-tests: Likewise.
63594         * modules/strings-tests: Likewise.
63595         * modules/sys_select-tests: Likewise.
63596         * modules/sys_socket-tests: Likewise.
63597         * modules/sys_stat-tests: Likewise.
63598         * modules/sys_time-tests: Likewise.
63599         * modules/sys_utsname-tests: Likewise.
63600         * modules/sysexits-tests: Likewise.
63601         * modules/time-tests: Likewise.
63602         * modules/trunc-tests: Likewise.
63603         * modules/truncf-tests: Likewise.
63604         * modules/truncl-tests: Likewise.
63605         * modules/tsearch-tests: Likewise.
63606         * modules/unistd-tests: Likewise.
63607         * modules/wchar-tests: Likewise.
63608         * modules/wctype-tests: Likewise.
63610         tests: fix license on several tests
63611         * tests/test-des.c: Update to GPLv3+.
63612         * tests/test-flock.c: Likewise.
63613         * tests/test-fsync.c: Likewise.
63614         * tests/test-futimens.h: Likewise.
63615         * tests/test-gc-arcfour.c: Likewise.
63616         * tests/test-gc-arctwo.c: Likewise.
63617         * tests/test-gc-des.c: Likewise.
63618         * tests/test-gc-hmac-md5.c: Likewise.
63619         * tests/test-gc-hmac-sha1.c: Likewise.
63620         * tests/test-gc-md2.c: Likewise.
63621         * tests/test-gc-md4.c: Likewise.
63622         * tests/test-gc-md5.c: Likewise.
63623         * tests/test-gc-pbkdf2-sha1.c: Likewise.
63624         * tests/test-gc-rijndael.c: Likewise.
63625         * tests/test-gc-sha1.c: Likewise.
63626         * tests/test-gc.c: Likewise.
63627         * tests/test-getcwd.c: Likewise.
63628         * tests/test-link.c: Likewise.
63629         * tests/test-link.h: Likewise.
63630         * tests/test-lutimens.h: Likewise.
63631         * tests/test-md2.c: Likewise.
63632         * tests/test-md4.c: Likewise.
63633         * tests/test-mkdir.h: Likewise.
63634         * tests/test-rename.c: Likewise.
63635         * tests/test-rename.h: Likewise.
63636         * tests/test-safe-alloc.c: Likewise.
63637         * tests/test-utimens-common.h: Likewise.
63638         * tests/test-utimens.h: Likewise.
63640         maint: sync license texts
63641         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
63642         * doc/gpl-3.0.texi: Revert copyright year update.
63643         * doc/lgpl-3.0.texi: Likewise.
63645 2009-12-29  Jim Meyering  <meyering@redhat.com>
63647         update nearly all FSF copyright year lists to include 2009
63648         The files named by the following are exempted:
63649             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
63650               test -f "$dst" && { echo "$dst"; continue; }
63651               test -d "$dst" || continue
63652               echo "$dst"/$(basename "$src")
63653             done > exempt
63654             git ls-files tests/unictype >> exempt
63655         In the remaining files, convert to all-interval notation if
63656         - there is already at least one year interval like 2000-2003
63657         - the file is maintained by me
63658         - the file is in lib/uni*/, where that style already prevails
63659         Otherwise, use update-copyright's default.
63661 2009-12-29  Simon Josefsson  <simon@josefsson.org>
63662         and Eric Blake  <ebb9@byu.net>
63664         tests: don't require debug system() to pass
63665         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
63666         * tests/test-rmdir.h (test_rmdir_func): Likewise.
63667         * tests/test-unlink.h (test_unlink_func): Likewise.
63668         * tests/test-fstatat.c (main): ...into callers.
63669         * tests/test-lstat.c (main): Likewise.
63670         * tests/test-rmdir.c (main): Likewise.
63671         * tests/test-unlink.c (main): Likewise.
63672         * tests/test-unlinkat.c (main): Likewise.
63673         * tests/test-areadlink-with-size.c (main): Don't require a
63674         debug-only system call to pass, aiding cross-testing to mingw.
63675         * tests/test-areadlink.c (main): Likewise.
63676         * tests/test-areadlinkat-with-size.c (main): Likewise.
63677         * tests/test-areadlinkat.c (main): Likewise.
63678         * tests/test-canonicalize-lgpl.c (main): Likewise.
63679         * tests/test-canonicalize.c (main): Likewise.
63680         * tests/test-chown.c (main): Likewise.
63681         * tests/test-fchownat.c (main): Likewise.
63682         * tests/test-lchown.c (main): Likewise.
63683         * tests/test-fdutimensat.c (main): Likewise.
63684         * tests/test-futimens.c (main): Likewise.
63685         * tests/test-link.c (main): Likewise.
63686         * tests/test-linkat.c (main): Likewise.
63687         * tests/test-mkdir.c (main): Likewise.
63688         * tests/test-mkdirat.c (main): Likewise.
63689         * tests/test-mkfifo.c (main): Likewise.
63690         * tests/test-mkfifoat.c (main): Likewise.
63691         * tests/test-mknod.c (main): Likewise.
63692         * tests/test-readlink.c (main): Likewise.
63693         * tests/test-remove.c (main): Likewise.
63694         * tests/test-rename.c (main): Likewise.
63695         * tests/test-renameat.c (main): Likewise.
63696         * tests/test-symlink.c (main): Likewise.
63697         * tests/test-symlinkat.c (main): Likewise.
63698         * tests/test-utimens.c (main): Likewise.
63699         * tests/test-utimensat.c (main): Likewise.
63701 2009-12-29  Simon Josefsson  <simon@josefsson.org>
63703         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
63704         on $(UNUSED_PARAMETER_H) to avoid build failure.
63706 2009-12-28  Jim Meyering  <meyering@redhat.com>
63708         update-copyright: you may specify a max. line length other than 72
63709         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
63711         maint: use consistent FSF copyright line syntax
63712         * lib/posixtm.c: Add missing comma in FSF copyright line.
63713         * lib/posixtm.h: Likewise.
63714         * lib/getugroups.c: Add missing ", Inc.".
63716         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
63717         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
63718         FSF copyright line.  Remove trailing blanks.
63720 2009-12-28  Eric Blake  <ebb9@byu.net>
63722         test-dup2: reduce dependencies
63723         * modules/cloexec (Configure.ac): Set witness.
63724         * modules/dup2-tests (Depends-on): Drop cloexec.
63725         * tests/test-dup2.c (main): Skip portion of test if cloexec module
63726         not present.
63727         Suggested by Bruno Haible.
63729 2009-12-26  Bruno Haible  <bruno@clisp.org>
63731         Remove an unneeded dependency.
63732         * modules/fseterr (Depends-on): Remove dup2.
63734 2009-12-26  Eric Blake  <ebb9@byu.net>
63736         tests: use macros.h in more places
63737         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
63738         (ASSERT_STREAM): Provide default of stderr.
63739         * tests/test-dirent-safer.c: Include macros.h, using alternate
63740         stream for assertions.
63741         * tests/test-dup-safer.c: Likewise.
63742         * tests/test-freopen-safer.c: Likewise.
63743         * tests/test-getopt.c: Likewise.
63744         * tests/test-openat-safer.c: Likewise.
63745         * tests/test-pipe.c: Likewise.
63746         * tests/test-popen-safer.c: Likewise.
63747         * modules/dirent-safer-tests (Files): Include macros.h.
63748         * modules/unistd-safer-tests (Files): Likewise.
63749         * modules/freopen-safer-tests (Files): Likewise.
63750         * modules/getopt-posix-tests (Files): Likewise.
63751         * modules/openat-safer-tests (Files): Likewise.
63752         * modules/pipe-tests (Files): Likewise.
63754 2009-12-26  Bruno Haible  <bruno@clisp.org>
63756         javacomp-script: Portability fix.
63757         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
63758         that it also works on Solaris.
63760 2009-12-26  Bruno Haible  <bruno@clisp.org>
63762         localename: Fix storage allocation of gl_locale_name_thread's result.
63763         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
63764         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
63765         all platforms that have 'uselocale'.
63766         (gl_locale_name_thread_unsafe): New function, extracted from
63767         gl_locale_name_thread.
63768         (gl_locale_name_thread): Call struniq on all platforms that have
63769         'uselocale'.
63770         * tests/test-localename.c (test_locale_name_thread): Check that the
63771         resulting strings are permanently allocated.
63772         * modules/localename-tests (Depends-on): Add strdup.
63774 2009-12-26  Bruno Haible  <bruno@clisp.org>
63776         * tests/test-localename.c (categories): Fill in the strings.
63778 2009-12-26  Jim Meyering  <meyering@redhat.com>
63780         isdir: complete the removal of m4/isdir.m4
63781         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
63783         isdir: clean up, since at least grep still uses it
63784         * lib/isdir.c: Include "isdir.h".
63785         (S_ISDIR): Remove now-unneeded definition.
63786         * modules/isdir (Files): Add lib/isdir.h.
63787         * lib/isdir.h: New file, with declaration.
63788         * m4/isdir.m4: Remove file -- unneeded.
63790 2009-12-25  Bruno Haible  <bruno@clisp.org>
63792         selinux-h: Make generated .h files standalone.
63793         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
63794         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
63795         * lib/se-selinux.in.h: Likewise.
63796         * modules/selinux-h (Depends-on): Add unused-parameter.
63797         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
63798         selinux/selinux.h and selinux/context.h.
63799         Suggested by Eric Blake.
63801 2009-12-25  Bruno Haible  <bruno@clisp.org>
63803         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
63804         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
63805         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
63806         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
63807         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
63809 2009-12-24  Bruno Haible  <bruno@clisp.org>
63811         openat: Fix warning.
63812         * lib/openat-proc.c: Include <unistd.h>.
63814 2009-12-24  Bruno Haible  <bruno@clisp.org>
63816         New module 'unused-parameter'.
63817         * build-aux/unused-parameter.h: New file, extracted from earlier
63818         gnulib-common.m4.
63819         * modules/unused-parameter: New file.
63820         * lib/unistr.h: Include unused-parameter.h.
63821         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
63822         _GL_UNUSED.
63823         * modules/unistr/base (Depends-on): Add unused-parameter.
63825 2009-12-24  Bruno Haible  <bruno@clisp.org>
63827         Add missing dependencies to 'extensions' module.
63828         * m4/extensions.m4: Add comment.
63829         * modules/accept4 (Depends-on): Add extensions.
63830         * modules/dup3 (Depends-on): Likewise.
63831         * modules/fcntl (Depends-on): Likewise.
63832         * modules/futimens (Depends-on): Likewise.
63833         * modules/mknod (Depends-on): Likewise.
63834         * modules/pipe2 (Depends-on): Likewise.
63835         * modules/stat-time (Depends-on): Likewise.
63836         * modules/strcasestr-simple (Depends-on): Likewise.
63837         * modules/strsignal (Depends-on): Likewise.
63838         * modules/utimensat (Depends-on): Likewise.
63839         * modules/localcharset (Depends-on): Likewise. Needed because of
63840         gl_FCNTL_O_FLAGS.
63841         * modules/wcrtomb (Depends-on): Likewise. Needed because of
63842         AC_TYPE_MBSTATE_T.
63843         * modules/wcsnrtombs (Depends-on): Likewise.
63844         * modules/wcsrtombs (Depends-on): Likewise.
63846 2009-12-24  Bruno Haible  <bruno@clisp.org>
63848         binary-io: Avoid gcc warning due to SET_BINARY.
63849         * lib/binary-io.h (SET_BINARY): Cast the result to void.
63850         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
63852 2009-12-24  Bruno Haible  <bruno@clisp.org>
63854         Avoid future namespace pollution on glibc systems.
63855         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
63856         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
63857         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
63858         glibc systems.
63860 2009-12-24  Bruno Haible  <bruno@clisp.org>
63862         Refactor common macros used in tests.
63863         * tests/macros.h: New file.
63864         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
63865         and/or <stdlib.h>, if appropriate.
63866         (ASSERT, SIZEOF): Remove macros.
63867         * tests/test-areadlink-with-size.c: Likewise.
63868         * tests/test-areadlinkat.c: Likewise.
63869         * tests/test-areadlinkat-with-size.c: Likewise.
63870         * tests/test-argmatch.c: Likewise.
63871         * tests/test-argv-iter.c: Likewise.
63872         * tests/test-array-mergesort.c: Likewise.
63873         * tests/test-array_list.c: Likewise.
63874         * tests/test-array_oset.c: Likewise.
63875         * tests/test-avltree_list.c: Likewise.
63876         * tests/test-avltree_oset.c: Likewise.
63877         * tests/test-avltreehash_list.c: Likewise.
63878         * tests/test-base64.c: Likewise.
63879         * tests/test-binary-io.c: Likewise.
63880         * tests/test-bitrotate.c: Likewise.
63881         * tests/test-btowc.c: Likewise.
63882         * tests/test-byteswap.c: Likewise.
63883         * tests/test-c-ctype.c: Likewise.
63884         * tests/test-c-stack.c: Likewise.
63885         * tests/test-c-strcasecmp.c: Likewise.
63886         * tests/test-c-strcasestr.c: Likewise.
63887         * tests/test-c-strncasecmp.c: Likewise.
63888         * tests/test-c-strstr.c: Likewise.
63889         * tests/test-canonicalize-lgpl.c: Likewise.
63890         * tests/test-canonicalize.c: Likewise.
63891         * tests/test-carray_list.c: Likewise.
63892         * tests/test-ceilf1.c: Likewise.
63893         * tests/test-ceilf2.c: Likewise.
63894         * tests/test-ceill.c: Likewise.
63895         * tests/test-chown.c: Likewise.
63896         * tests/test-cloexec.c: Likewise.
63897         * tests/test-copy-acl.c: Likewise.
63898         * tests/test-copy-file.c: Likewise.
63899         * tests/test-count-one-bits.c: Likewise.
63900         * tests/test-dprintf-posix.c: Likewise.
63901         * tests/test-dup2.c: Likewise.
63902         * tests/test-dup3.c: Likewise.
63903         * tests/test-duplocale.c: Likewise.
63904         * tests/test-fbufmode.c: Likewise.
63905         * tests/test-fchdir.c: Likewise.
63906         * tests/test-fchownat.c: Likewise.
63907         * tests/test-fcntl-safer.c: Likewise.
63908         * tests/test-fcntl.c: Likewise.
63909         * tests/test-fdopendir.c: Likewise.
63910         * tests/test-fdutimensat.c: Likewise.
63911         * tests/test-fflush2.c: Likewise.
63912         * tests/test-file-has-acl.c: Likewise.
63913         * tests/test-filevercmp.c: Likewise.
63914         * tests/test-flock.c: Likewise.
63915         * tests/test-floorf1.c: Likewise.
63916         * tests/test-floorf2.c: Likewise.
63917         * tests/test-floorl.c: Likewise.
63918         * tests/test-fnmatch.c: Likewise.
63919         * tests/test-fopen.h: Likewise.
63920         * tests/test-fpending.c: Likewise.
63921         * tests/test-fprintf-posix.c: Likewise.
63922         * tests/test-fpurge.c: Likewise.
63923         * tests/test-freadable.c: Likewise.
63924         * tests/test-freadahead.c: Likewise.
63925         * tests/test-freading.c: Likewise.
63926         * tests/test-freadptr.c: Likewise.
63927         * tests/test-freadptr2.c: Likewise.
63928         * tests/test-freadseek.c: Likewise.
63929         * tests/test-freopen.c: Likewise.
63930         * tests/test-frexp.c: Likewise.
63931         * tests/test-frexpl.c: Likewise.
63932         * tests/test-fseek.c: Likewise.
63933         * tests/test-fseeko.c: Likewise.
63934         * tests/test-fstatat.c: Likewise.
63935         * tests/test-fstrcmp.c: Likewise.
63936         * tests/test-fsync.c: Likewise.
63937         * tests/test-ftell.c: Likewise.
63938         * tests/test-ftello.c: Likewise.
63939         * tests/test-func.c: Likewise.
63940         * tests/test-futimens.c: Likewise.
63941         * tests/test-fwritable.c: Likewise.
63942         * tests/test-fwriting.c: Likewise.
63943         * tests/test-getcwd.c: Likewise.
63944         * tests/test-getdate.c: Likewise.
63945         * tests/test-getdelim.c: Likewise.
63946         * tests/test-getdtablesize.c: Likewise.
63947         * tests/test-getgroups.c: Likewise.
63948         * tests/test-getline.c: Likewise.
63949         * tests/test-getndelim2.c: Likewise.
63950         * tests/test-glob.c: Likewise.
63951         * tests/test-hash.c: Likewise.
63952         * tests/test-i-ring.c: Likewise.
63953         * tests/test-iconv-utf.c: Likewise.
63954         * tests/test-iconv.c: Likewise.
63955         * tests/test-idpriv-drop.c: Likewise.
63956         * tests/test-idpriv-droptemp.c: Likewise.
63957         * tests/test-inet_ntop.c: Likewise.
63958         * tests/test-inet_pton.c: Likewise.
63959         * tests/test-isblank.c: Likewise.
63960         * tests/test-isfinite.c: Likewise.
63961         * tests/test-isinf.c: Likewise.
63962         * tests/test-isnan.c: Likewise.
63963         * tests/test-isnand.h: Likewise.
63964         * tests/test-isnanf.h: Likewise.
63965         * tests/test-isnanl.h: Likewise.
63966         * tests/test-lchown.c: Likewise.
63967         * tests/test-ldexpl.c: Likewise.
63968         * tests/test-link.c: Likewise.
63969         * tests/test-linkat.c: Likewise.
63970         * tests/test-linked_list.c: Likewise.
63971         * tests/test-linkedhash_list.c: Likewise.
63972         * tests/test-localename.c: Likewise.
63973         * tests/test-lseek.c: Likewise.
63974         * tests/test-lstat.c: Likewise.
63975         * tests/test-mbmemcasecmp.c: Likewise.
63976         * tests/test-mbmemcasecoll.c: Likewise.
63977         * tests/test-mbrtowc.c: Likewise.
63978         * tests/test-mbscasecmp.c: Likewise.
63979         * tests/test-mbscasestr1.c: Likewise.
63980         * tests/test-mbscasestr2.c: Likewise.
63981         * tests/test-mbscasestr3.c: Likewise.
63982         * tests/test-mbscasestr4.c: Likewise.
63983         * tests/test-mbschr.c: Likewise.
63984         * tests/test-mbscspn.c: Likewise.
63985         * tests/test-mbsinit.c: Likewise.
63986         * tests/test-mbsncasecmp.c: Likewise.
63987         * tests/test-mbsnrtowcs.c: Likewise.
63988         * tests/test-mbspbrk.c: Likewise.
63989         * tests/test-mbspcasecmp.c: Likewise.
63990         * tests/test-mbsrchr.c: Likewise.
63991         * tests/test-mbsrtowcs.c: Likewise.
63992         * tests/test-mbsspn.c: Likewise.
63993         * tests/test-mbsstr1.c: Likewise.
63994         * tests/test-mbsstr2.c: Likewise.
63995         * tests/test-mbsstr3.c: Likewise.
63996         * tests/test-memchr.c: Likewise.
63997         * tests/test-memchr2.c: Likewise.
63998         * tests/test-memcmp.c: Likewise.
63999         * tests/test-memmem.c: Likewise.
64000         * tests/test-memrchr.c: Likewise.
64001         * tests/test-mkdir.c: Likewise.
64002         * tests/test-mkdirat.c: Likewise.
64003         * tests/test-mkfifo.c: Likewise.
64004         * tests/test-mkfifoat.c: Likewise.
64005         * tests/test-mknod.c: Likewise.
64006         * tests/test-nanosleep.c: Likewise.
64007         * tests/test-nl_langinfo.c: Likewise.
64008         * tests/test-obstack-printf.c: Likewise.
64009         * tests/test-open.c: Likewise.
64010         * tests/test-openat.c: Likewise.
64011         * tests/test-pipe-filter-gi1.c: Likewise.
64012         * tests/test-pipe-filter-gi2-main.c: Likewise.
64013         * tests/test-pipe-filter-ii1.c: Likewise.
64014         * tests/test-pipe-filter-ii2-main.c: Likewise.
64015         * tests/test-pipe2.c: Likewise.
64016         * tests/test-popen.h: Likewise.
64017         * tests/test-posixtm.c: Likewise.
64018         * tests/test-pread.c: Likewise.
64019         * tests/test-printf-frexp.c: Likewise.
64020         * tests/test-printf-frexpl.c: Likewise.
64021         * tests/test-printf-posix.c: Likewise.
64022         * tests/test-priv-set.c: Likewise.
64023         * tests/test-quotearg.c: Likewise.
64024         * tests/test-random_r.c: Likewise.
64025         * tests/test-rawmemchr.c: Likewise.
64026         * tests/test-rbtree_list.c: Likewise.
64027         * tests/test-rbtree_oset.c: Likewise.
64028         * tests/test-rbtreehash_list.c: Likewise.
64029         * tests/test-readlink.c: Likewise.
64030         * tests/test-remove.c: Likewise.
64031         * tests/test-rename.c: Likewise.
64032         * tests/test-renameat.c: Likewise.
64033         * tests/test-rmdir.c: Likewise.
64034         * tests/test-round1.c: Likewise.
64035         * tests/test-roundf1.c: Likewise.
64036         * tests/test-roundl.c: Likewise.
64037         * tests/test-safe-alloc.c: Likewise.
64038         * tests/test-sameacls.c: Likewise.
64039         * tests/test-set-mode-acl.c: Likewise.
64040         * tests/test-setenv.c: Likewise.
64041         * tests/test-sigaction.c: Likewise.
64042         * tests/test-signbit.c: Likewise.
64043         * tests/test-sleep.c: Likewise.
64044         * tests/test-snprintf-posix.c: Likewise.
64045         * tests/test-snprintf.c: Likewise.
64046         * tests/test-sprintf-posix.c: Likewise.
64047         * tests/test-stat-time.c: Likewise.
64048         * tests/test-stat.c: Likewise.
64049         * tests/test-strcasestr.c: Likewise.
64050         * tests/test-strchrnul.c: Likewise.
64051         * tests/test-strerror.c: Likewise.
64052         * tests/test-striconv.c: Likewise.
64053         * tests/test-striconveh.c: Likewise.
64054         * tests/test-striconveha.c: Likewise.
64055         * tests/test-strsignal.c: Likewise.
64056         * tests/test-strstr.c: Likewise.
64057         * tests/test-strtod.c: Likewise.
64058         * tests/test-strverscmp.c: Likewise.
64059         * tests/test-symlink.c: Likewise.
64060         * tests/test-symlinkat.c: Likewise.
64061         * tests/test-trunc1.c: Likewise.
64062         * tests/test-trunc2.c: Likewise.
64063         * tests/test-truncf1.c: Likewise.
64064         * tests/test-truncf2.c: Likewise.
64065         * tests/test-truncl.c: Likewise.
64066         * tests/test-uname.c: Likewise.
64067         * tests/test-unlink.c: Likewise.
64068         * tests/test-unlinkat.c: Likewise.
64069         * tests/test-unsetenv.c: Likewise.
64070         * tests/test-usleep.c: Likewise.
64071         * tests/test-utimens.c: Likewise.
64072         * tests/test-utimensat.c: Likewise.
64073         * tests/test-vasnprintf-posix.c: Likewise.
64074         * tests/test-vasnprintf-posix2.c: Likewise.
64075         * tests/test-vasnprintf.c: Likewise.
64076         * tests/test-vasprintf-posix.c: Likewise.
64077         * tests/test-vasprintf.c: Likewise.
64078         * tests/test-vdprintf-posix.c: Likewise.
64079         * tests/test-vfprintf-posix.c: Likewise.
64080         * tests/test-vprintf-posix.c: Likewise.
64081         * tests/test-vsnprintf-posix.c: Likewise.
64082         * tests/test-vsnprintf.c: Likewise.
64083         * tests/test-vsprintf-posix.c: Likewise.
64084         * tests/test-wcrtomb.c: Likewise.
64085         * tests/test-wcsnrtombs.c: Likewise.
64086         * tests/test-wcsrtombs.c: Likewise.
64087         * tests/test-wctype.c: Likewise.
64088         * tests/test-wcwidth.c: Likewise.
64089         * tests/test-xfprintf-posix.c: Likewise.
64090         * tests/test-xmemdup0.c: Likewise.
64091         * tests/test-xprintf-posix.c: Likewise.
64092         * tests/test-xvasprintf.c: Likewise.
64093         * tests/unicase/test-locale-language.c: Likewise.
64094         * tests/unicase/test-mapping-part1.h: Likewise.
64095         * tests/unicase/test-predicate-part1.h: Likewise.
64096         * tests/unicase/test-u8-casecmp.c: Likewise.
64097         * tests/unicase/test-u8-casecoll.c: Likewise.
64098         * tests/unicase/test-u8-casefold.c: Likewise.
64099         * tests/unicase/test-u8-is-cased.c: Likewise.
64100         * tests/unicase/test-u8-is-casefolded.c: Likewise.
64101         * tests/unicase/test-u8-is-lowercase.c: Likewise.
64102         * tests/unicase/test-u8-is-titlecase.c: Likewise.
64103         * tests/unicase/test-u8-is-uppercase.c: Likewise.
64104         * tests/unicase/test-u8-tolower.c: Likewise.
64105         * tests/unicase/test-u8-totitle.c: Likewise.
64106         * tests/unicase/test-u8-toupper.c: Likewise.
64107         * tests/unicase/test-u16-casecmp.c: Likewise.
64108         * tests/unicase/test-u16-casecoll.c: Likewise.
64109         * tests/unicase/test-u16-casefold.c: Likewise.
64110         * tests/unicase/test-u16-is-cased.c: Likewise.
64111         * tests/unicase/test-u16-is-casefolded.c: Likewise.
64112         * tests/unicase/test-u16-is-lowercase.c: Likewise.
64113         * tests/unicase/test-u16-is-titlecase.c: Likewise.
64114         * tests/unicase/test-u16-is-uppercase.c: Likewise.
64115         * tests/unicase/test-u16-tolower.c: Likewise.
64116         * tests/unicase/test-u16-totitle.c: Likewise.
64117         * tests/unicase/test-u16-toupper.c: Likewise.
64118         * tests/unicase/test-u32-casecmp.c: Likewise.
64119         * tests/unicase/test-u32-casecoll.c: Likewise.
64120         * tests/unicase/test-u32-casefold.c: Likewise.
64121         * tests/unicase/test-u32-is-cased.c: Likewise.
64122         * tests/unicase/test-u32-is-casefolded.c: Likewise.
64123         * tests/unicase/test-u32-is-lowercase.c: Likewise.
64124         * tests/unicase/test-u32-is-titlecase.c: Likewise.
64125         * tests/unicase/test-u32-is-uppercase.c: Likewise.
64126         * tests/unicase/test-u32-tolower.c: Likewise.
64127         * tests/unicase/test-u32-totitle.c: Likewise.
64128         * tests/unicase/test-u32-toupper.c: Likewise.
64129         * tests/unicase/test-ulc-casecmp.c: Likewise.
64130         * tests/unicase/test-ulc-casecoll.c: Likewise.
64131         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
64132         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
64133         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
64134         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
64135         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
64136         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
64137         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
64138         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
64139         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
64140         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
64141         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
64142         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
64143         * tests/unictype/test-bidi_byname.c: Likewise.
64144         * tests/unictype/test-bidi_name.c: Likewise.
64145         * tests/unictype/test-bidi_of.c: Likewise.
64146         * tests/unictype/test-bidi_test.c: Likewise.
64147         * tests/unictype/test-block_list.c: Likewise.
64148         * tests/unictype/test-block_of.c: Likewise.
64149         * tests/unictype/test-block_test.c: Likewise.
64150         * tests/unictype/test-categ_and.c: Likewise.
64151         * tests/unictype/test-categ_and_not.c: Likewise.
64152         * tests/unictype/test-categ_byname.c: Likewise.
64153         * tests/unictype/test-categ_name.c: Likewise.
64154         * tests/unictype/test-categ_none.c: Likewise.
64155         * tests/unictype/test-categ_of.c: Likewise.
64156         * tests/unictype/test-categ_or.c: Likewise.
64157         * tests/unictype/test-categ_test_withtable.c: Likewise.
64158         * tests/unictype/test-combining.c: Likewise.
64159         * tests/unictype/test-decdigit.c: Likewise.
64160         * tests/unictype/test-digit.c: Likewise.
64161         * tests/unictype/test-mirror.c: Likewise.
64162         * tests/unictype/test-numeric.c: Likewise.
64163         * tests/unictype/test-pr_byname.c: Likewise.
64164         * tests/unictype/test-pr_test.c: Likewise.
64165         * tests/unictype/test-predicate-part1.h: Likewise.
64166         * tests/unictype/test-scripts.c: Likewise.
64167         * tests/unictype/test-sy_c_ident.c: Likewise.
64168         * tests/unictype/test-sy_java_ident.c: Likewise.
64169         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
64170         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
64171         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
64172         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
64173         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
64174         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
64175         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
64176         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
64177         * tests/uninorm/test-canonical-decomposition.c: Likewise.
64178         * tests/uninorm/test-compat-decomposition.c: Likewise.
64179         * tests/uninorm/test-composition.c: Likewise.
64180         * tests/uninorm/test-decomposing-form.c: Likewise.
64181         * tests/uninorm/test-decomposition.c: Likewise.
64182         * tests/uninorm/test-u8-nfc.c: Likewise.
64183         * tests/uninorm/test-u8-nfd.c: Likewise.
64184         * tests/uninorm/test-u8-nfkc.c: Likewise.
64185         * tests/uninorm/test-u8-nfkd.c: Likewise.
64186         * tests/uninorm/test-u8-normcmp.c: Likewise.
64187         * tests/uninorm/test-u8-normcoll.c: Likewise.
64188         * tests/uninorm/test-u16-nfc.c: Likewise.
64189         * tests/uninorm/test-u16-nfd.c: Likewise.
64190         * tests/uninorm/test-u16-nfkc.c: Likewise.
64191         * tests/uninorm/test-u16-nfkd.c: Likewise.
64192         * tests/uninorm/test-u16-normcmp.c: Likewise.
64193         * tests/uninorm/test-u16-normcoll.c: Likewise.
64194         * tests/uninorm/test-u32-nfc.c: Likewise.
64195         * tests/uninorm/test-u32-nfd.c: Likewise.
64196         * tests/uninorm/test-u32-nfkc.c: Likewise.
64197         * tests/uninorm/test-u32-nfkd.c: Likewise.
64198         * tests/uninorm/test-u32-normalize-big.c: Likewise.
64199         * tests/uninorm/test-u32-normcmp.c: Likewise.
64200         * tests/uninorm/test-u32-normcoll.c: Likewise.
64201         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
64202         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
64203         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
64204         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
64205         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
64206         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
64207         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
64208         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
64209         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
64210         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
64211         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
64212         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
64213         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
64214         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
64215         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
64216         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
64217         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
64218         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
64219         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
64220         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
64221         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
64222         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
64223         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
64224         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
64225         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
64226         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
64227         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
64228         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
64229         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
64230         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
64231         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
64232         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
64233         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
64234         * tests/uniwidth/test-u8-strwidth.c: Likewise.
64235         * tests/uniwidth/test-u8-width.c: Likewise.
64236         * tests/uniwidth/test-u16-strwidth.c: Likewise.
64237         * tests/uniwidth/test-u16-width.c: Likewise.
64238         * tests/uniwidth/test-u32-strwidth.c: Likewise.
64239         * tests/uniwidth/test-u32-width.c: Likewise.
64240         * tests/uniwidth/test-uc_width.c: Likewise.
64241         * tests/uniwidth/test-uc_width2.c: Likewise.
64242         * modules/acl-tests (Files): Add tests/macros.h.
64243         * modules/areadlink-tests (Files): Likewise.
64244         * modules/areadlink-with-size-tests (Files): Likewise.
64245         * modules/areadlinkat-tests (Files): Likewise.
64246         * modules/areadlinkat-with-size-tests (Files): Likewise.
64247         * modules/argmatch-tests (Files): Likewise.
64248         * modules/argv-iter-tests (Files): Likewise.
64249         * modules/array-list-tests (Files): Likewise.
64250         * modules/array-mergesort-tests (Files): Likewise.
64251         * modules/array-oset-tests (Files): Likewise.
64252         * modules/avltree-list-tests (Files): Likewise.
64253         * modules/avltree-oset-tests (Files): Likewise.
64254         * modules/avltreehash-list-tests (Files): Likewise.
64255         * modules/base64-tests (Files): Likewise.
64256         * modules/binary-io-tests (Files): Likewise.
64257         * modules/bitrotate-tests (Files): Likewise.
64258         * modules/btowc-tests (Files): Likewise.
64259         * modules/byteswap-tests (Files): Likewise.
64260         * modules/c-ctype-tests (Files): Likewise.
64261         * modules/c-stack-tests (Files): Likewise.
64262         * modules/c-strcase-tests (Files): Likewise.
64263         * modules/c-strcasestr-tests (Files): Likewise.
64264         * modules/c-strstr-tests (Files): Likewise.
64265         * modules/canonicalize-lgpl-tests (Files): Likewise.
64266         * modules/canonicalize-tests (Files): Likewise.
64267         * modules/carray-list-tests (Files): Likewise.
64268         * modules/ceilf-tests (Files): Likewise.
64269         * modules/ceill-tests (Files): Likewise.
64270         * modules/chown-tests (Files): Likewise.
64271         * modules/cloexec-tests (Files): Likewise.
64272         * modules/copy-file-tests (Files): Likewise.
64273         * modules/count-one-bits-tests (Files): Likewise.
64274         * modules/dprintf-posix-tests (Files): Likewise.
64275         * modules/dup2-tests (Files): Likewise.
64276         * modules/dup3-tests (Files): Likewise.
64277         * modules/duplocale-tests (Files): Likewise.
64278         * modules/fbufmode-tests (Files): Likewise.
64279         * modules/fchdir-tests (Files): Likewise.
64280         * modules/fcntl-safer-tests (Files): Likewise.
64281         * modules/fcntl-tests (Files): Likewise.
64282         * modules/fdopendir-tests (Files): Likewise.
64283         * modules/fdutimensat-tests (Files): Likewise.
64284         * modules/fflush-tests (Files): Likewise.
64285         * modules/filevercmp-tests (Files): Likewise.
64286         * modules/flock-tests (Files): Likewise.
64287         * modules/floorf-tests (Files): Likewise.
64288         * modules/floorl-tests (Files): Likewise.
64289         * modules/fnmatch-tests (Files): Likewise.
64290         * modules/fopen-safer-tests (Files): Likewise.
64291         * modules/fopen-tests (Files): Likewise.
64292         * modules/fpending-tests (Files): Likewise.
64293         * modules/fprintf-posix-tests (Files): Likewise.
64294         * modules/fpurge-tests (Files): Likewise.
64295         * modules/freadable-tests (Files): Likewise.
64296         * modules/freadahead-tests (Files): Likewise.
64297         * modules/freading-tests (Files): Likewise.
64298         * modules/freadptr-tests (Files): Likewise.
64299         * modules/freadseek-tests (Files): Likewise.
64300         * modules/freopen-tests (Files): Likewise.
64301         * modules/frexp-nolibm-tests (Files): Likewise.
64302         * modules/frexp-tests (Files): Likewise.
64303         * modules/frexpl-nolibm-tests (Files): Likewise.
64304         * modules/frexpl-tests (Files): Likewise.
64305         * modules/fseek-tests (Files): Likewise.
64306         * modules/fseeko-tests (Files): Likewise.
64307         * modules/fstrcmp-tests (Files): Likewise.
64308         * modules/fsync-tests (Files): Likewise.
64309         * modules/ftell-tests (Files): Likewise.
64310         * modules/ftello-tests (Files): Likewise.
64311         * modules/func-tests (Files): Likewise.
64312         * modules/futimens-tests (Files): Likewise.
64313         * modules/fwritable-tests (Files): Likewise.
64314         * modules/fwriting-tests (Files): Likewise.
64315         * modules/getcwd-tests (Files): Likewise.
64316         * modules/getdate-tests (Files): Likewise.
64317         * modules/getdelim-tests (Files): Likewise.
64318         * modules/getdtablesize-tests (Files): Likewise.
64319         * modules/getgroups-tests (Files): Likewise.
64320         * modules/getline-tests (Files): Likewise.
64321         * modules/getndelim2-tests (Files): Likewise.
64322         * modules/glob-tests (Files): Likewise.
64323         * modules/hash-tests (Files): Likewise.
64324         * modules/i-ring-tests (Files): Likewise.
64325         * modules/iconv-tests (Files): Likewise.
64326         * modules/iconv_open-utf-tests (Files): Likewise.
64327         * modules/idpriv-drop-tests (Files): Likewise.
64328         * modules/idpriv-droptemp-tests (Files): Likewise.
64329         * modules/inet_ntop-tests (Files): Likewise.
64330         * modules/inet_pton-tests (Files): Likewise.
64331         * modules/isblank-tests (Files): Likewise.
64332         * modules/isfinite-tests (Files): Likewise.
64333         * modules/isinf-tests (Files): Likewise.
64334         * modules/isnan-tests (Files): Likewise.
64335         * modules/isnand-nolibm-tests (Files): Likewise.
64336         * modules/isnand-tests (Files): Likewise.
64337         * modules/isnanf-nolibm-tests (Files): Likewise.
64338         * modules/isnanf-tests (Files): Likewise.
64339         * modules/isnanl-nolibm-tests (Files): Likewise.
64340         * modules/isnanl-tests (Files): Likewise.
64341         * modules/lchown-tests (Files): Likewise.
64342         * modules/ldexpl-tests (Files): Likewise.
64343         * modules/link-tests (Files): Likewise.
64344         * modules/linkat-tests (Files): Likewise.
64345         * modules/linked-list-tests (Files): Likewise.
64346         * modules/linkedhash-list-tests (Files): Likewise.
64347         * modules/localename-tests (Files): Likewise.
64348         * modules/lseek-tests (Files): Likewise.
64349         * modules/lstat-tests (Files): Likewise.
64350         * modules/mbmemcasecmp-tests (Files): Likewise.
64351         * modules/mbmemcasecoll-tests (Files): Likewise.
64352         * modules/mbrtowc-tests (Files): Likewise.
64353         * modules/mbscasecmp-tests (Files): Likewise.
64354         * modules/mbscasestr-tests (Files): Likewise.
64355         * modules/mbschr-tests (Files): Likewise.
64356         * modules/mbscspn-tests (Files): Likewise.
64357         * modules/mbsinit-tests (Files): Likewise.
64358         * modules/mbsncasecmp-tests (Files): Likewise.
64359         * modules/mbsnrtowcs-tests (Files): Likewise.
64360         * modules/mbspbrk-tests (Files): Likewise.
64361         * modules/mbspcasecmp-tests (Files): Likewise.
64362         * modules/mbsrchr-tests (Files): Likewise.
64363         * modules/mbsrtowcs-tests (Files): Likewise.
64364         * modules/mbsspn-tests (Files): Likewise.
64365         * modules/mbsstr-tests (Files): Likewise.
64366         * modules/memchr-tests (Files): Likewise.
64367         * modules/memchr2-tests (Files): Likewise.
64368         * modules/memcmp-tests (Files): Likewise.
64369         * modules/memmem-tests (Files): Likewise.
64370         * modules/memrchr-tests (Files): Likewise.
64371         * modules/mkdir-tests (Files): Likewise.
64372         * modules/mkfifo-tests (Files): Likewise.
64373         * modules/mkfifoat-tests (Files): Likewise.
64374         * modules/mknod-tests (Files): Likewise.
64375         * modules/nanosleep-tests (Files): Likewise.
64376         * modules/nl_langinfo-tests (Files): Likewise.
64377         * modules/obstack-printf-tests (Files): Likewise.
64378         * modules/open-tests (Files): Likewise.
64379         * modules/openat-tests (Files): Likewise.
64380         * modules/pipe-filter-gi-tests (Files): Likewise.
64381         * modules/pipe-filter-ii-tests (Files): Likewise.
64382         * modules/pipe2-tests (Files): Likewise.
64383         * modules/popen-safer-tests (Files): Likewise.
64384         * modules/popen-tests (Files): Likewise.
64385         * modules/posixtm-tests (Files): Likewise.
64386         * modules/pread-tests (Files): Likewise.
64387         * modules/printf-frexp-tests (Files): Likewise.
64388         * modules/printf-frexpl-tests (Files): Likewise.
64389         * modules/printf-posix-tests (Files): Likewise.
64390         * modules/priv-set-tests (Files): Likewise.
64391         * modules/quotearg-tests (Files): Likewise.
64392         * modules/random_r-tests (Files): Likewise.
64393         * modules/rawmemchr-tests (Files): Likewise.
64394         * modules/rbtree-list-tests (Files): Likewise.
64395         * modules/rbtree-oset-tests (Files): Likewise.
64396         * modules/rbtreehash-list-tests (Files): Likewise.
64397         * modules/readlink-tests (Files): Likewise.
64398         * modules/remove-tests (Files): Likewise.
64399         * modules/rename-tests (Files): Likewise.
64400         * modules/renameat-tests (Files): Likewise.
64401         * modules/rmdir-tests (Files): Likewise.
64402         * modules/round-tests (Files): Likewise.
64403         * modules/roundf-tests (Files): Likewise.
64404         * modules/roundl-tests (Files): Likewise.
64405         * modules/safe-alloc-tests (Files): Likewise.
64406         * modules/setenv-tests (Files): Likewise.
64407         * modules/sigaction-tests (Files): Likewise.
64408         * modules/signbit-tests (Files): Likewise.
64409         * modules/sleep-tests (Files): Likewise.
64410         * modules/snprintf-posix-tests (Files): Likewise.
64411         * modules/snprintf-tests (Files): Likewise.
64412         * modules/sprintf-posix-tests (Files): Likewise.
64413         * modules/stat-tests (Files): Likewise.
64414         * modules/stat-time-tests (Files): Likewise.
64415         * modules/strcasestr-tests (Files): Likewise.
64416         * modules/strchrnul-tests (Files): Likewise.
64417         * modules/strerror-tests (Files): Likewise.
64418         * modules/striconv-tests (Files): Likewise.
64419         * modules/striconveh-tests (Files): Likewise.
64420         * modules/striconveha-tests (Files): Likewise.
64421         * modules/strsignal-tests (Files): Likewise.
64422         * modules/strstr-tests (Files): Likewise.
64423         * modules/strtod-tests (Files): Likewise.
64424         * modules/strverscmp-tests (Files): Likewise.
64425         * modules/symlink-tests (Files): Likewise.
64426         * modules/symlinkat-tests (Files): Likewise.
64427         * modules/trunc-tests (Files): Likewise.
64428         * modules/truncf-tests (Files): Likewise.
64429         * modules/truncl-tests (Files): Likewise.
64430         * modules/uname-tests (Files): Likewise.
64431         * modules/unicase/cased-tests (Files): Likewise.
64432         * modules/unicase/ignorable-tests (Files): Likewise.
64433         * modules/unicase/locale-language-tests (Files): Likewise.
64434         * modules/unicase/tolower-tests (Files): Likewise.
64435         * modules/unicase/totitle-tests (Files): Likewise.
64436         * modules/unicase/toupper-tests (Files): Likewise.
64437         * modules/unicase/u8-casecmp-tests (Files): Likewise.
64438         * modules/unicase/u8-casecoll-tests (Files): Likewise.
64439         * modules/unicase/u8-casefold-tests (Files): Likewise.
64440         * modules/unicase/u8-is-cased-tests (Files): Likewise.
64441         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
64442         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
64443         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
64444         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
64445         * modules/unicase/u8-tolower-tests (Files): Likewise.
64446         * modules/unicase/u8-totitle-tests (Files): Likewise.
64447         * modules/unicase/u8-toupper-tests (Files): Likewise.
64448         * modules/unicase/u16-casecmp-tests (Files): Likewise.
64449         * modules/unicase/u16-casecoll-tests (Files): Likewise.
64450         * modules/unicase/u16-casefold-tests (Files): Likewise.
64451         * modules/unicase/u16-is-cased-tests (Files): Likewise.
64452         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
64453         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
64454         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
64455         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
64456         * modules/unicase/u16-tolower-tests (Files): Likewise.
64457         * modules/unicase/u16-totitle-tests (Files): Likewise.
64458         * modules/unicase/u16-toupper-tests (Files): Likewise.
64459         * modules/unicase/u32-casecmp-tests (Files): Likewise.
64460         * modules/unicase/u32-casecoll-tests (Files): Likewise.
64461         * modules/unicase/u32-casefold-tests (Files): Likewise.
64462         * modules/unicase/u32-is-cased-tests (Files): Likewise.
64463         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
64464         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
64465         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
64466         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
64467         * modules/unicase/u32-tolower-tests (Files): Likewise.
64468         * modules/unicase/u32-totitle-tests (Files): Likewise.
64469         * modules/unicase/u32-toupper-tests (Files): Likewise.
64470         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
64471         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
64472         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
64473         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
64474         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
64475         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
64476         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
64477         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
64478         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
64479         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
64480         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
64481         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
64482         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
64483         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
64484         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
64485         * modules/unictype/bidicategory-name-tests (Files): Likewise.
64486         * modules/unictype/bidicategory-of-tests (Files): Likewise.
64487         * modules/unictype/bidicategory-test-tests (Files): Likewise.
64488         * modules/unictype/block-list-tests (Files): Likewise.
64489         * modules/unictype/block-of-tests (Files): Likewise.
64490         * modules/unictype/block-test-tests (Files): Likewise.
64491         * modules/unictype/category-C-tests (Files): Likewise.
64492         * modules/unictype/category-Cc-tests (Files): Likewise.
64493         * modules/unictype/category-Cf-tests (Files): Likewise.
64494         * modules/unictype/category-Cn-tests (Files): Likewise.
64495         * modules/unictype/category-Co-tests (Files): Likewise.
64496         * modules/unictype/category-Cs-tests (Files): Likewise.
64497         * modules/unictype/category-L-tests (Files): Likewise.
64498         * modules/unictype/category-Ll-tests (Files): Likewise.
64499         * modules/unictype/category-Lm-tests (Files): Likewise.
64500         * modules/unictype/category-Lo-tests (Files): Likewise.
64501         * modules/unictype/category-Lt-tests (Files): Likewise.
64502         * modules/unictype/category-Lu-tests (Files): Likewise.
64503         * modules/unictype/category-M-tests (Files): Likewise.
64504         * modules/unictype/category-Mc-tests (Files): Likewise.
64505         * modules/unictype/category-Me-tests (Files): Likewise.
64506         * modules/unictype/category-Mn-tests (Files): Likewise.
64507         * modules/unictype/category-N-tests (Files): Likewise.
64508         * modules/unictype/category-Nd-tests (Files): Likewise.
64509         * modules/unictype/category-Nl-tests (Files): Likewise.
64510         * modules/unictype/category-No-tests (Files): Likewise.
64511         * modules/unictype/category-P-tests (Files): Likewise.
64512         * modules/unictype/category-Pc-tests (Files): Likewise.
64513         * modules/unictype/category-Pd-tests (Files): Likewise.
64514         * modules/unictype/category-Pe-tests (Files): Likewise.
64515         * modules/unictype/category-Pf-tests (Files): Likewise.
64516         * modules/unictype/category-Pi-tests (Files): Likewise.
64517         * modules/unictype/category-Po-tests (Files): Likewise.
64518         * modules/unictype/category-Ps-tests (Files): Likewise.
64519         * modules/unictype/category-S-tests (Files): Likewise.
64520         * modules/unictype/category-Sc-tests (Files): Likewise.
64521         * modules/unictype/category-Sk-tests (Files): Likewise.
64522         * modules/unictype/category-Sm-tests (Files): Likewise.
64523         * modules/unictype/category-So-tests (Files): Likewise.
64524         * modules/unictype/category-Z-tests (Files): Likewise.
64525         * modules/unictype/category-Zl-tests (Files): Likewise.
64526         * modules/unictype/category-Zp-tests (Files): Likewise.
64527         * modules/unictype/category-Zs-tests (Files): Likewise.
64528         * modules/unictype/category-and-not-tests (Files): Likewise.
64529         * modules/unictype/category-and-tests (Files): Likewise.
64530         * modules/unictype/category-byname-tests (Files): Likewise.
64531         * modules/unictype/category-name-tests (Files): Likewise.
64532         * modules/unictype/category-none-tests (Files): Likewise.
64533         * modules/unictype/category-of-tests (Files): Likewise.
64534         * modules/unictype/category-or-tests (Files): Likewise.
64535         * modules/unictype/category-test-withtable-tests (Files): Likewise.
64536         * modules/unictype/combining-class-tests (Files): Likewise.
64537         * modules/unictype/ctype-alnum-tests (Files): Likewise.
64538         * modules/unictype/ctype-alpha-tests (Files): Likewise.
64539         * modules/unictype/ctype-blank-tests (Files): Likewise.
64540         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
64541         * modules/unictype/ctype-digit-tests (Files): Likewise.
64542         * modules/unictype/ctype-graph-tests (Files): Likewise.
64543         * modules/unictype/ctype-lower-tests (Files): Likewise.
64544         * modules/unictype/ctype-print-tests (Files): Likewise.
64545         * modules/unictype/ctype-punct-tests (Files): Likewise.
64546         * modules/unictype/ctype-space-tests (Files): Likewise.
64547         * modules/unictype/ctype-upper-tests (Files): Likewise.
64548         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
64549         * modules/unictype/decimal-digit-tests (Files): Likewise.
64550         * modules/unictype/digit-tests (Files): Likewise.
64551         * modules/unictype/mirror-tests (Files): Likewise.
64552         * modules/unictype/numeric-tests (Files): Likewise.
64553         * modules/unictype/property-alphabetic-tests (Files): Likewise.
64554         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
64555         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
64556         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
64557         Likewise.
64558         * modules/unictype/property-bidi-block-separator-tests (Files):
64559         Likewise.
64560         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
64561         Likewise.
64562         * modules/unictype/property-bidi-common-separator-tests (Files):
64563         Likewise.
64564         * modules/unictype/property-bidi-control-tests (Files): Likewise.
64565         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
64566         Likewise.
64567         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
64568         Likewise.
64569         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
64570         Likewise.
64571         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
64572         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
64573         Likewise.
64574         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
64575         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
64576         Likewise.
64577         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
64578         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
64579         * modules/unictype/property-bidi-segment-separator-tests (Files):
64580         Likewise.
64581         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
64582         * modules/unictype/property-byname-tests (Files): Likewise.
64583         * modules/unictype/property-combining-tests (Files): Likewise.
64584         * modules/unictype/property-composite-tests (Files): Likewise.
64585         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
64586         * modules/unictype/property-dash-tests (Files): Likewise.
64587         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
64588         * modules/unictype/property-default-ignorable-code-point-tests (Files):
64589         Likewise.
64590         * modules/unictype/property-deprecated-tests (Files): Likewise.
64591         * modules/unictype/property-diacritic-tests (Files): Likewise.
64592         * modules/unictype/property-extender-tests (Files): Likewise.
64593         * modules/unictype/property-format-control-tests (Files): Likewise.
64594         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
64595         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
64596         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
64597         * modules/unictype/property-hex-digit-tests (Files): Likewise.
64598         * modules/unictype/property-hyphen-tests (Files): Likewise.
64599         * modules/unictype/property-id-continue-tests (Files): Likewise.
64600         * modules/unictype/property-id-start-tests (Files): Likewise.
64601         * modules/unictype/property-ideographic-tests (Files): Likewise.
64602         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
64603         * modules/unictype/property-ids-trinary-operator-tests (Files):
64604         Likewise.
64605         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
64606         * modules/unictype/property-iso-control-tests (Files): Likewise.
64607         * modules/unictype/property-join-control-tests (Files): Likewise.
64608         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
64609         * modules/unictype/property-line-separator-tests (Files): Likewise.
64610         * modules/unictype/property-logical-order-exception-tests (Files):
64611         Likewise.
64612         * modules/unictype/property-lowercase-tests (Files): Likewise.
64613         * modules/unictype/property-math-tests (Files): Likewise.
64614         * modules/unictype/property-non-break-tests (Files): Likewise.
64615         * modules/unictype/property-not-a-character-tests (Files): Likewise.
64616         * modules/unictype/property-numeric-tests (Files): Likewise.
64617         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
64618         * modules/unictype/property-other-default-ignorable-code-point-tests
64619         (Files): Likewise.
64620         * modules/unictype/property-other-grapheme-extend-tests (Files):
64621         Likewise.
64622         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
64623         * modules/unictype/property-other-id-start-tests (Files): Likewise.
64624         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
64625         * modules/unictype/property-other-math-tests (Files): Likewise.
64626         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
64627         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
64628         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
64629         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
64630         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
64631         * modules/unictype/property-private-use-tests (Files): Likewise.
64632         * modules/unictype/property-punctuation-tests (Files): Likewise.
64633         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
64634         * modules/unictype/property-radical-tests (Files): Likewise.
64635         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
64636         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
64637         * modules/unictype/property-space-tests (Files): Likewise.
64638         * modules/unictype/property-terminal-punctuation-tests (Files):
64639         Likewise.
64640         * modules/unictype/property-test-tests (Files): Likewise.
64641         * modules/unictype/property-titlecase-tests (Files): Likewise.
64642         * modules/unictype/property-unassigned-code-value-tests (Files):
64643         Likewise.
64644         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
64645         * modules/unictype/property-uppercase-tests (Files): Likewise.
64646         * modules/unictype/property-variation-selector-tests (Files): Likewise.
64647         * modules/unictype/property-white-space-tests (Files): Likewise.
64648         * modules/unictype/property-xid-continue-tests (Files): Likewise.
64649         * modules/unictype/property-xid-start-tests (Files): Likewise.
64650         * modules/unictype/property-zero-width-tests (Files): Likewise.
64651         * modules/unictype/scripts-tests (Files): Likewise.
64652         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
64653         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
64654         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
64655         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
64656         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
64657         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
64658         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
64659         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
64660         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
64661         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
64662         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
64663         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
64664         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
64665         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
64666         * modules/uninorm/composition-tests (Files): Likewise.
64667         * modules/uninorm/decomposing-form-tests (Files): Likewise.
64668         * modules/uninorm/decomposition-tests (Files): Likewise.
64669         * modules/uninorm/filter-tests (Files): Likewise.
64670         * modules/uninorm/nfc-tests (Files): Likewise.
64671         * modules/uninorm/nfd-tests (Files): Likewise.
64672         * modules/uninorm/nfkc-tests (Files): Likewise.
64673         * modules/uninorm/nfkd-tests (Files): Likewise.
64674         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
64675         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
64676         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
64677         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
64678         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
64679         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
64680         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
64681         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
64682         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
64683         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
64684         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
64685         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
64686         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
64687         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
64688         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
64689         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
64690         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
64691         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
64692         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
64693         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
64694         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
64695         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
64696         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
64697         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
64698         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
64699         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
64700         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
64701         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
64702         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
64703         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
64704         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
64705         * modules/uniwidth/u8-width-tests (Files): Likewise.
64706         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
64707         * modules/uniwidth/u16-width-tests (Files): Likewise.
64708         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
64709         * modules/uniwidth/u32-width-tests (Files): Likewise.
64710         * modules/uniwidth/width-tests (Files): Likewise.
64711         * modules/unlink-tests (Files): Likewise.
64712         * modules/unsetenv-tests (Files): Likewise.
64713         * modules/usleep-tests (Files): Likewise.
64714         * modules/utimens-tests (Files): Likewise.
64715         * modules/utimensat-tests (Files): Likewise.
64716         * modules/vasnprintf-posix-tests (Files): Likewise.
64717         * modules/vasnprintf-tests (Files): Likewise.
64718         * modules/vasprintf-posix-tests (Files): Likewise.
64719         * modules/vasprintf-tests (Files): Likewise.
64720         * modules/vdprintf-posix-tests (Files): Likewise.
64721         * modules/vfprintf-posix-tests (Files): Likewise.
64722         * modules/vprintf-posix-tests (Files): Likewise.
64723         * modules/vsnprintf-posix-tests (Files): Likewise.
64724         * modules/vsnprintf-tests (Files): Likewise.
64725         * modules/vsprintf-posix-tests (Files): Likewise.
64726         * modules/wcrtomb-tests (Files): Likewise.
64727         * modules/wcsnrtombs-tests (Files): Likewise.
64728         * modules/wcsrtombs-tests (Files): Likewise.
64729         * modules/wctype-tests (Files): Likewise.
64730         * modules/wcwidth-tests (Files): Likewise.
64731         * modules/xmemdup0-tests (Files): Likewise.
64732         * modules/xprintf-posix-tests (Files): Likewise.
64733         * modules/xvasprintf-tests (Files): Likewise.
64735 2009-12-24  Eric Blake  <ebb9@byu.net>
64737         test-nanosleep: fix typo
64738         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
64739         patch.
64740         Reported by Bruno Haible.
64742 2009-12-24  Bruno Haible  <bruno@clisp.org>
64744         Reduce namespace pollution on glibc systems.
64745         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
64746         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
64747         systems.
64748         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
64749         <getopt.h> on glibc systems.
64750         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
64751         systems.
64752         * lib/fcntl.c: Include <unistd.h> here instead.
64754 2009-12-24  Bruno Haible  <bruno@clisp.org>
64756         * lib/stdlib.in.h (includes): Fix typo in today's commit.
64758 2009-12-24  Eric Blake  <ebb9@byu.net>
64760         tests: add signature checks
64761         * tests/signature.h (SIGNATURE_CHECK): New file.
64762         * modules/atexit-tests (Files): Use it.
64763         * modules/btowc-tests (Files): Likewise.
64764         * modules/canonicalize-lgpl-tests (Files): Likewise.
64765         * modules/ceilf-tests (Files): Likewise.
64766         * modules/ceill-tests (Files): Likewise.
64767         * modules/chown-tests (Files): Likewise.
64768         * modules/dprintf-posix-tests (Files): Likewise.
64769         * modules/dup2-tests (Files): Likewise.
64770         * modules/dup3-tests (Files): Likewise.
64771         * modules/duplocale-tests (Files): Likewise.
64772         * modules/fchdir-tests (Files): Likewise.
64773         * modules/fcntl-tests (Files): Likewise.
64774         * modules/fdopendir-tests (Files): Likewise.
64775         * modules/fflush-tests (Files): Likewise.
64776         * modules/flock-tests (Files): Likewise.
64777         * modules/floorf-tests (Files): Likewise.
64778         * modules/floorl-tests (Files): Likewise.
64779         * modules/fnmatch-tests (Files): Likewise.
64780         * modules/fopen-tests (Files): Likewise.
64781         * modules/fprintf-posix-tests (Files): Likewise.
64782         * modules/freopen-tests (Files): Likewise.
64783         * modules/frexp-nolibm-tests (Files): Likewise.
64784         * modules/frexp-tests (Files): Likewise.
64785         * modules/frexpl-nolibm-tests (Files): Likewise.
64786         * modules/frexpl-tests (Files): Likewise.
64787         * modules/fseek-tests (Files): Likewise.
64788         * modules/fseeko-tests (Files): Likewise.
64789         * modules/fsync-tests (Files): Likewise.
64790         * modules/ftell-tests (Files): Likewise.
64791         * modules/ftello-tests (Files): Likewise.
64792         * modules/futimens-tests (Files): Likewise.
64793         * modules/getaddrinfo-tests (Files): Likewise.
64794         * modules/getcwd-tests (Files): Likewise.
64795         * modules/getdelim-tests (Files): Likewise.
64796         * modules/getdtablesize-tests (Files): Likewise.
64797         * modules/getgroups-tests (Files): Likewise.
64798         * modules/gethostname-tests (Files): Likewise.
64799         * modules/getline-tests (Files): Likewise.
64800         * modules/getopt-posix-tests (Files): Likewise.
64801         * modules/gettimeofday-tests (Files): Likewise.
64802         * modules/glob-tests (Files): Likewise.
64803         * modules/iconv-tests (Files): Likewise.
64804         * modules/inet_ntop-tests (Files): Likewise.
64805         * modules/inet_pton-tests (Files): Likewise.
64806         * modules/isblank-tests (Files): Likewise.
64807         * modules/lchown-tests (Files): Likewise.
64808         * modules/ldexpl-tests (Files): Likewise.
64809         * modules/link-tests (Files): Likewise.
64810         * modules/linkat-tests (Files): Likewise.
64811         * modules/lseek-tests (Files): Likewise.
64812         * modules/lstat-tests (Files): Likewise.
64813         * modules/mbrtowc-tests (Files): Likewise.
64814         * modules/mbsinit-tests (Files): Likewise.
64815         * modules/mbsnrtowcs-tests (Files): Likewise.
64816         * modules/mbsrtowcs-tests (Files): Likewise.
64817         * modules/memchr-tests (Files): Likewise.
64818         * modules/memcmp-tests (Files): Likewise.
64819         * modules/memmem-tests (Files): Likewise.
64820         * modules/memrchr-tests (Files): Likewise.
64821         * modules/mkdir-tests (Files): Likewise.
64822         * modules/mkfifo-tests (Files): Likewise.
64823         * modules/mkfifoat-tests (Files): Likewise.
64824         * modules/mknod-tests (Files): Likewise.
64825         * modules/nanosleep-tests (Files): Likewise.
64826         * modules/nl_langinfo-tests (Files): Likewise.
64827         * modules/obstack-printf-tests (Files): Likewise.
64828         * modules/open-tests (Files): Likewise.
64829         * modules/openat-tests (Files): Likewise.
64830         * modules/perror-tests (Files): Likewise.
64831         * modules/pipe2-tests (Files): Likewise.
64832         * modules/poll-tests (Files): Likewise.
64833         * modules/popen-tests (Files): Likewise.
64834         * modules/posix_spawn-tests (Files): Likewise.
64835         * modules/posix_spawnp-tests (Files): Likewise.
64836         * modules/pread-tests (Files): Likewise.
64837         * modules/printf-posix-tests (Files): Likewise.
64838         * modules/pty-tests (Files): Likewise.
64839         * modules/random_r-tests (Files): Likewise.
64840         * modules/rawmemchr-tests (Files): Likewise.
64841         * modules/readlink-tests (Files): Likewise.
64842         * modules/remove-tests (Files): Likewise.
64843         * modules/rename-tests (Files): Likewise.
64844         * modules/renameat-tests (Files): Likewise.
64845         * modules/rmdir-tests (Files): Likewise.
64846         * modules/round-tests (Files): Likewise.
64847         * modules/roundf-tests (Files): Likewise.
64848         * modules/roundl-tests (Files): Likewise.
64849         * modules/select-tests (Files): Likewise.
64850         * modules/setenv-tests (Files): Likewise.
64851         * modules/sigaction-tests (Files): Likewise.
64852         * modules/sleep-tests (Files): Likewise.
64853         * modules/snprintf-posix-tests (Files): Likewise.
64854         * modules/snprintf-tests (Files): Likewise.
64855         * modules/sprintf-posix-tests (Files): Likewise.
64856         * modules/stat-tests (Files): Likewise.
64857         * modules/strcasestr-tests (Files): Likewise.
64858         * modules/strchrnul-tests (Files): Likewise.
64859         * modules/strerror-tests (Files): Likewise.
64860         * modules/strsignal-tests (Files): Likewise.
64861         * modules/strstr-tests (Files): Likewise.
64862         * modules/strtod-tests (Files): Likewise.
64863         * modules/strverscmp-tests (Files): Likewise.
64864         * modules/symlink-tests (Files): Likewise.
64865         * modules/symlinkat-tests (Files): Likewise.
64866         * modules/times-tests (Files): Likewise.
64867         * modules/trunc-tests (Files): Likewise.
64868         * modules/truncf-tests (Files): Likewise.
64869         * modules/truncl-tests (Files): Likewise.
64870         * modules/tsearch-tests (Files): Likewise.
64871         * modules/uname-tests (Files): Likewise.
64872         * modules/unlink-tests (Files): Likewise.
64873         * modules/unsetenv-tests (Files): Likewise.
64874         * modules/usleep-tests (Files): Likewise.
64875         * modules/utimensat-tests (Files): Likewise.
64876         * modules/vasprintf-tests (Files): Likewise.
64877         * modules/vdprintf-posix-tests (Files): Likewise.
64878         * modules/vfprintf-posix-tests (Files): Likewise.
64879         * modules/vprintf-posix-tests (Files): Likewise.
64880         * modules/vsnprintf-posix-tests (Files): Likewise.
64881         * modules/vsnprintf-tests (Files): Likewise.
64882         * modules/vsprintf-posix-tests (Files): Likewise.
64883         * modules/wcrtomb-tests (Files): Likewise.
64884         * modules/wcsnrtombs-tests (Files): Likewise.
64885         * modules/wcsrtombs-tests (Files): Likewise.
64886         * modules/wcwidth-tests (Files): Likewise.
64887         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
64888         * tests/test-isinf.c (isinf): Likewise.
64889         * tests/test-isnan.c (isnan): Likewise.
64890         * tests/test-signbit.c (signbit): Likewise.
64891         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
64892         declaration, either as macro or with correct signature.
64893         (select): Ensure function under test is declared with correct
64894         signature in correct header.
64895         * tests/test-atexit.c (atexit): Likewise.
64896         * tests/test-btowc.c (btowc): Likewise.
64897         * tests/test-canonicalize-lgpl.c (realpath)
64898         (canonicalize_file_name): Likewise.
64899         * tests/test-ceilf1.c (ceilf): Likewise.
64900         * tests/test-ceill.c (ceill): Likewise.
64901         * tests/test-chown.c (chown): Likewise.
64902         * tests/test-dprintf-posix.c (dprintf): Likewise.
64903         * tests/test-dup2.c (dup2): Likewise.
64904         * tests/test-dup3.c (dup3): Likewise.
64905         * tests/test-duplocale.c (duplocale): Likewise.
64906         * tests/test-fchdir.c (fchdir): Likewise.
64907         * tests/test-fchownat.c (fchownat): Likewise.
64908         * tests/test-fcntl.c (fcntl): Likewise.
64909         * tests/test-fdopendir.c (fdopendir): Likewise.
64910         * tests/test-fflush.c (fflush): Likewise.
64911         * tests/test-flock.c (flock): Likewise.
64912         * tests/test-floorf1.c (floorf): Likewise.
64913         * tests/test-floorl.c (floorl): Likewise.
64914         * tests/test-fnmatch.c (fnmatch): Likewise.
64915         * tests/test-fopen.c (fopen): Likewise.
64916         * tests/test-fprintf-posix.c (fprintf): Likewise.
64917         * tests/test-freopen.c (freopen): Likewise.
64918         * tests/test-frexp.c (frexp): Likewise.
64919         * tests/test-frexpl.c (frexpl): Likewise.
64920         * tests/test-fseek.c (fseek): Likewise.
64921         * tests/test-fseeko.c (fseeko): Likewise.
64922         * tests/test-fstatat.c (fstatat): Likewise.
64923         * tests/test-fsync.c (fsync): Likewise.
64924         * tests/test-ftell.c (ftell): Likewise.
64925         * tests/test-ftello.c (ftello): Likewise.
64926         * tests/test-futimens.c (futimens): Likewise.
64927         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
64928         (gai_strerror): Likewise.
64929         * tests/test-getcwd.c (getcwd): Likewise.
64930         * tests/test-getdelim.c (getdelim): Likewise.
64931         * tests/test-getdtablesize.c (getdtablesize): Likewise.
64932         * tests/test-getgroups.c (getgroups): Likewise.
64933         * tests/test-gethostname.c (gethostname): Likewise.
64934         * tests/test-getline.c (getline): Likewise.
64935         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
64936         Likewise.
64937         * tests/test-gettimeofday.c (gettimeofday): Likewise.
64938         * tests/test-glob.c (glob, globfree): Likewise.
64939         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
64940         * tests/test-inet_ntop.c (inet_ntop): Likewise.
64941         * tests/test-inet_pton.c (inet_pton): Likewise.
64942         * tests/test-isblank.c (isblank): Likewise.
64943         * tests/test-lchown.c (lchown): Likewise.
64944         * tests/test-ldexpl.c (ldexpl): Likewise.
64945         * tests/test-link.c (link): Likewise.
64946         * tests/test-linkat.c (linkat): Likewise.
64947         * tests/test-lseek.c (lseek): Likewise.
64948         * tests/test-lstat.c (lstat): Likewise.
64949         * tests/test-mbrtowc.c (mbrtowc): Likewise.
64950         * tests/test-mbsinit.c (mbsinit): Likewise.
64951         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
64952         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
64953         * tests/test-memchr.c (memchr): Likewise.
64954         * tests/test-memcmp.c (memcmp): Likewise.
64955         * tests/test-memmem.c (memmem): Likewise.
64956         * tests/test-memrchr.c (memrchr): Likewise.
64957         * tests/test-mkdir.c (mkdir): Likewise.
64958         * tests/test-mkdirat.c (mkdirat): Likewise.
64959         * tests/test-mkfifo.c (mkfifo): Likewise.
64960         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
64961         * tests/test-mknod.c (mknod): Likewise.
64962         * tests/test-nanosleep.c (nanosleep): Likewise.
64963         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
64964         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
64965         Likewise.
64966         * tests/test-open.c (open): Likewise.
64967         * tests/test-openat.c (openat): Likewise.
64968         * tests/test-perror.c (perror): Likewise.
64969         * tests/test-pipe2.c (pipe2): Likewise.
64970         * tests/test-poll.c (poll): Likewise.
64971         * tests/test-popen.c (popen, pclose): Likewise.
64972         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
64973         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
64974         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
64975         (posix_spawn_file_actions_destroy)
64976         (posix_spawn_file_actions_addclose)
64977         (posix_spawn_file_actions_addopen)
64978         (posix_spawn_file_actions_adddup2): Likewise.
64979         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
64980         * tests/test-pread.c (pread): Likewise.
64981         * tests/test-printf-posix.c (printf): Likewise.
64982         * tests/test-pty.c (openpty, forkpty): Likewise.
64983         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
64984         (random_r): Likewise.
64985         * tests/test-rawmemchr.c (rawmemchr): Likewise.
64986         * tests/test-readlink.c (readlink): Likewise.
64987         * tests/test-remove.c (remove): Likewise.
64988         * tests/test-rename.c (rename): Likewise.
64989         * tests/test-renameat.c (renameat): Likewise.
64990         * tests/test-rmdir.c (rmdir): Likewise.
64991         * tests/test-round1.c (round): Likewise.
64992         * tests/test-roundf1.c (roundf): Likewise.
64993         * tests/test-roundl.c (roundl): Likewise.
64994         * tests/test-setenv.c (setenv): Likewise.
64995         * tests/test-sigaction.c (sigaction): Likewise.
64996         * tests/test-sleep.c (sleep): Likewise.
64997         * tests/test-snprintf.c (snprintf): Likewise.
64998         * tests/test-sprintf-posix.c (sprintf): Likewise.
64999         * tests/test-stat.c (stat): Likewise.
65000         * tests/test-stpncpy.c (stpncpy): Likewise.
65001         * tests/test-strcasestr.c (strcasestr): Likewise.
65002         * tests/test-strchrnul.c (strchrnul): Likewise.
65003         * tests/test-strerror.c (strerror): Likewise.
65004         * tests/test-strsignal.c (strsignal): Likewise.
65005         * tests/test-strstr.c (strstr): Likewise.
65006         * tests/test-strtod.c (strtod): Likewise.
65007         * tests/test-strverscmp.c (strverscmp): Likewise.
65008         * tests/test-symlink.c (symlink): Likewise.
65009         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
65010         * tests/test-times.c (times): Likewise.
65011         * tests/test-trunc1.c (trunc): Likewise.
65012         * tests/test-truncf1.c (truncf): Likewise.
65013         * tests/test-truncl.c (truncl): Likewise.
65014         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
65015         Likewise.
65016         * tests/test-uname.c (uname): Likewise.
65017         * tests/test-unlink.c (unlink): Likewise.
65018         * tests/test-unlinkat.c (unlinkat): Likewise.
65019         * tests/test-unsetenv.c (unsetenv): Likewise.
65020         * tests/test-usleep.c (usleep): Likewise.
65021         * tests/test-utimensat.c (utimensat): Likewise.
65022         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
65023         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
65024         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
65025         * tests/test-vprintf-posix.c (vprintf): Likewise.
65026         * tests/test-vsnprintf.c (vsnprintf): Likewise.
65027         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
65028         * tests/test-wcrtomb.c (wcrtomb): Likewise.
65029         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
65030         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
65031         * tests/test-wcwidth.c (wcwidth): Likewise.
65033         build: pull in conditional headers during GNULIB_POSIXCHECK
65034         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
65035         definitions from any conditionally-included headers.
65036         * lib/stdlib.in.h (includes): Likewise.
65037         * lib/unistd.in.h (includes): Likewise.
65039 2009-12-24  Bruno Haible  <bruno@clisp.org>
65041         * tests/test-argv-iter.c: Include header file being tested immediately
65042         after config.h.
65043         * tests/test-base64.c: Likewise.
65044         * tests/test-flock.c: Likewise.
65045         * tests/test-fsync.c: Likewise.
65046         * tests/test-getdate.c: Likewise.
65047         * tests/test-getndelim2.c: Likewise.
65048         * tests/test-isfinite.c: Likewise.
65049         * tests/test-isinf.c: Likewise.
65050         * tests/test-strerror.c: Likewise.
65051         * tests/test-strsignal.c: Likewise.
65053 2009-12-23  Eric Blake  <ebb9@byu.net>
65055         unistd: work around cygwin bug
65056         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
65057         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
65058         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
65060 2009-12-23  Bruno Haible  <bruno@clisp.org>
65062         localename: More tests.
65063         * tests/test-localename.c (SIZEOF): New macro.
65064         (categories): New variable.
65065         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
65066         test_locale_name_default): Add test w.r.t. thread locale.
65067         (test_locale_name_thread): New function.
65068         (main): Invoke it.
65070         localename: Make aware of thread locale.
65071         * lib/localename.h (gl_locale_name_thread): New declaration.
65072         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
65073         behaviour with respect to thread locale.
65074         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
65075         <langinfo.h>, glthread/lock.h.
65076         (SIZE_BITS): New macro.
65077         (string_hash): New function.
65078         (struct hash_node): New type.
65079         (HASH_TABLE_SIZE): New macro.
65080         (struniq_hash_table, struniq_lock): New variables.
65081         (struniq): New function.
65082         (gl_locale_name_thread): New function.
65083         (gl_locale_name): Invoke it.
65084         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
65085         * modules/localename (Depends-on): Add lock.
65086         Reported by Mike Gran <spk121@yahoo.com>.
65088 2009-12-23  Eric Blake  <ebb9@byu.net>
65090         va-args: new module
65091         * modules/va-args: New file.
65092         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
65093         * MODULES.html.sh (Core language properties): Mention it.
65095         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
65096         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
65097         named alias for __attribute__((__unused__)).
65098         * lib/chown.c: Update client.
65099         * lib/fchmodat.c: Likewise.
65100         * lib/fts.c: Likewise.
65101         * lib/getdate.y: Likewise.
65102         * lib/getgroups.c: Likewise.
65103         * lib/getopt.c: Likewise.
65104         * lib/getugroups.c: Likewise.
65105         * lib/mkdir.c: Likewise.
65106         * lib/mkfifo.c: Likewise.
65107         * lib/mkfifoat.c: Likewise.
65108         * lib/mknod.c: Likewise.
65109         * lib/mknodat.c: Likewise.
65110         * lib/readlink.c: Likewise.
65111         * lib/se-context.in.h: Likewise.
65112         * lib/se-selinux.in.h: Likewise.
65113         * lib/sockets.c: Likewise.
65114         * lib/symlink.c: Likewise.
65115         * lib/symlinkat.c: Likewise.
65116         * lib/unicodeio.c: Likewise.
65117         * lib/unistr.h: Likewise.
65118         * tests/test-areadlink.c: Likewise.
65119         * tests/test-areadlinkat.c: Likewise.
65120         * tests/test-filenamecat.c: Likewise.
65121         * tests/test-fseeko.c: Likewise.
65122         * tests/test-ftello.c: Likewise.
65123         * tests/test-getdate.c: Likewise.
65124         * tests/test-getgroups.c: Likewise.
65125         * tests/test-gethostname.c: Likewise.
65126         * tests/test-quotearg.c: Likewise.
65127         * tests/test-version-etc.c: Likewise.
65128         * tests/test-xalloc-die.c: Likewise.
65129         * tests/test-xfprintf-posix.c: Likewise.
65130         * tests/test-xprintf-posix.c: Likewise.
65131         * tests/test-xvasprintf.c: Likewise.
65133         tests: avoid compiler warnings
65134         * tests/test-fcntl.c (main): Delete unused parameters.
65135         * tests/test-freopen-safer.c (main): Likewise.
65136         * tests/test-xalloc-die.c (main): Mark unused parameters.
65137         * tests/test-fseeko.c (main): Likewise.
65138         * tests/test-ftello.c (main): Likewise.
65139         * tests/test-nanosleep.c (main): Avoid declaration warning.
65140         * tests/test-sleep.c (main): Likewise.
65141         * tests/test-unsetenv.c (main): Silence warning about string
65142         literal.
65143         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
65145 2009-12-23  Bruno Haible  <bruno@clisp.org>
65147         * tests/test-localename.c (test_locale_name): New function, extracted
65148         from main. Also test mixed situations.
65149         (test_locale_name_posix, test_locale_name_environ,
65150         test_locale_name_default): New functions.
65151         (main): Invoke them all.
65152         * modules/localename-tests (configure.ac): Test for newlocale.
65154 2009-12-23  Bruno Haible  <bruno@clisp.org>
65156         unistd: Ensure getcwd gets declared before being overridden.
65157         * lib/unistd.in.h: Conditionally include <io.h>.
65159 2009-12-22  Bruno Haible  <bruno@clisp.org>
65161         wchar: Diagnose broken combination of glibc and gcc versions and flags.
65162         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
65163         (gl_WCHAR_H): Invoke it.
65164         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
65165         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
65166         Reported by Karl Berry <karl@freefriends.org>.
65168 2009-12-22  Eric Blake  <ebb9@byu.net>
65170         math, unistd: avoid redundant includes
65171         * lib/math.in.h (isnan): No need to re-include <math.h>.
65172         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
65174         getsubopt: work around cygwin bug
65175         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
65176         avoid conflicting with system getsubopt.
65177         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
65178         bug.
65180         getopt: synchronize from glibc
65181         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
65182         parameter order.  Adjust all callers.
65183         (_getopt_internal_r, main): Adjust quoting in error messages.
65184         Drop considerations for outdated POSIX 1003.2 error message.
65185         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
65186         callers.
65187         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
65189         test-getopt: test stderr behavior
65190         * modules/getopt-posix-tests (Depends-on): Add dup2.
65191         * tests/test-getopt.c (ASSERT): Avoid stderr.
65192         (main): Move stderr to a temporary file.
65193         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
65194         Instead, add parameter to inform caller if output occurred.
65195         (test_getopt): Adjust all existing tests to expect silence, and
65196         add new tests of leading ":".
65197         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
65198         glibc shortcomings with leading "-:" or "+:" in optstring.
65199         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
65200         Likewise.
65201         * doc/posix-functions/getopt.texi (getopt): Likewise.
65203         test-getopt: enhance test
65204         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
65205         supports optind=0.
65206         * tests/test-getopt.c (OPTIND_MIN): Move...
65207         * tests/test-getopt.h (OPTIND_MIN): ...here.
65208         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
65209         Require that optind=0 works, since modern BSD supports it in
65210         addition to optreset, and since coreutils expects it.
65211         (test_getopt_long_only): New test.
65212         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
65213         glibc shortcomings with 'W;', and enforcement of optind=0.
65214         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
65215         Likewise.
65217 2009-12-21  Bruno Haible  <bruno@clisp.org>
65219         localename: Improvements for MacOS X and Cygwin.
65220         * lib/localename.h (gl_locale_name_environ): New declaration.
65221         * lib/localename.c (gl_locale_name_environ): New function, extracted from
65222         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
65223         (gl_locale_name_posix): Invoke it.
65224         (gl_locale_name_default): Add comments. Use Windows native API also on
65225         Cygwin.
65227 2009-12-21  Bruno Haible  <bruno@clisp.org>
65229         Update list of Win32 locale ids.
65230         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
65231         (LANG_SAMI): Renamed from LANG_SAAMI.
65232         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
65233         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
65234         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
65235         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
65236         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
65237         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
65238         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
65239         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
65240         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
65241         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
65242         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
65243         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
65244         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
65245         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
65246         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
65247         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
65248         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
65249         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
65250         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
65251         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
65252         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
65253         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
65254         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
65255         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
65256         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
65257         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
65258         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
65259         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
65260         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
65261         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
65262         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
65263         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
65264         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
65265         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
65266         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
65267         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
65268         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
65269         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
65270         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
65271         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
65272         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
65273         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
65274         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
65275         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
65276         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
65277         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
65278         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
65279         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
65280         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
65281         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
65282         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
65283         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
65284         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
65285         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
65286         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
65287         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
65288         Add more languages and countries for Sami, Sorbian. Add more countries
65289         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
65290         for Pashto. Change country for Syriac, Tswana.
65292 2009-12-21  Eric Blake  <ebb9@byu.net>
65294         test-utimens: avoid spurious failure
65295         * tests/test-chown.h (nap): Factor...
65296         * tests/nap.h: ...into new file.
65297         * tests/test-lchown.h (nap): Avoid duplication.
65298         * tests/test-utimens-common.h (nap): Use shared implementation,
65299         necessary on file systems with 1-second resolution.
65300         * modules/chown-tests (Files): Include new file.
65301         * modules/fdutimensat-tests (Files): Likewise.
65302         * modules/futimens-tests (Files): Likewise.
65303         * modules/lchown-tests (Files): Likewise.
65304         * modules/openat-tests (Files): Likewise.
65305         * modules/utimens-tests (Files): Likewise.
65306         * modules/utimensat-tests (Files): Likewise.
65308 2009-12-19  Eric Blake  <ebb9@byu.net>
65310         futimens, utimensat: work around Linux bug
65311         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
65312         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
65313         * lib/utimensat.c (rpl_utimensat): Work around it.
65314         * lib/futimens.c (rpl_futimens): Adjust comment.
65316         utimens: work around Linux ctime bug
65317         * lib/utimens.c (detect_ctime_bug): New helper function.
65318         (update_timespec): Differentiate between workaround needed for
65319         this bug vs. what is needed for systems that lack utimensat.
65320         (fdutimens, lutimens): Work around bug.
65322         utimens: check for ctime update
65323         * tests/test-utimens-common.h (check_ctime): Define.
65324         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
65325         * tests/test-futimens.h (test_futimens): Likewise.
65326         * tests/test-lutimens.h (test_lutimens): Likewise.
65327         * doc/posix-functions/futimens.texi (futimens): Document the bug.
65328         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
65330 2009-12-19  Bruno Haible  <bruno@clisp.org>
65332         dprintf-posix: Check against memory leak fixed on 2009-12-15.
65333         * tests/test-dprintf-posix2.sh: New file.
65334         * tests/test-dprintf-posix2.c: New file.
65335         * modules/dprintf-posix-tests (Files): Add them.
65336         (configure.ac): Check for getrlimit and setrlimit.
65337         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
65339 2009-12-19  Bruno Haible  <bruno@clisp.org>
65341         fprintf-posix: Check against memory leak fixed on 2009-12-15.
65342         * tests/test-fprintf-posix3.sh: New file.
65343         * tests/test-fprintf-posix3.c: New file.
65344         * modules/fprintf-posix-tests (Files): Add them.
65345         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
65347 2009-12-19  Eric Blake  <ebb9@byu.net>
65349         dirfd: fix prototype
65350         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
65351         * lib/dirfd.c (dirfd): Likewise.
65353         canonicalize: reduce memory usage
65354         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
65355         allocation to size.
65356         Reported by Solar Designer <solar@openwall.com>.
65358 2009-12-19  Bruno Haible  <bruno@clisp.org>
65360         New module attribute 'Applicability'.
65361         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
65362         * gnulib-tool: New option --extract-applicability.
65363         (func_usage): Document it.
65364         (sed_extract_prog): Recognize it.
65365         (func_get_applicability): New function.
65366         (func_import): Generalize handling of 'link-warning' module.
65367         * modules/link-warning (Applicability): New section.
65368         * modules/arg-nonnull (Applicability): New section.
65369         Repoted by Simon Josefsson <simon@josefsson.org>.
65371 2009-12-19  Bruno Haible  <bruno@clisp.org>
65373         fflush: tweak
65374         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
65375         * lib/fseeko.c (rpl_fseeko): Likewise.
65377 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
65379         * lib/gl_list.h: Fix typo in comment.
65381 2009-12-16  Eric Blake  <ebb9@byu.net>
65383         fcntl: use to simplify other modules
65384         * modules/cloexec (Depends-on): Add fcntl.
65385         * modules/fchdir (Depends-on): Likewise.
65386         * modules/fd-safer-flag (Depends-on): Likewise.
65387         * modules/unistd-safer (Depends-on): Likewise.
65388         * modules/dup3 (configure.ac): Set module indicator.
65389         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
65390         missing.
65391         * lib/fchdir.c (_gl_register_dup): Fix comment.
65392         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
65393         * lib/dup-safer.c (dup_safer): Likewise.
65394         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
65395         * lib/dup3.c (dup3): Likewise.
65396         * tests/test-fchdir.c (main): Enhance test.
65397         Fixes a dup_cloexec bug reported by Ondřej Vašík.
65399         fcntl: port portions of fcntl to mingw
65400         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
65401         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
65402         replacement for mingw.
65403         * modules/fcntl (Description): Update.
65404         (Depends-on): Add dup2.
65405         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
65406         * modules/fcntl-h (Makefile.am): Substitute it.
65407         * lib/fcntl.in.h (fcntl): Update declaration.
65408         (F_DUPFD, F_GETFD): New macros, when needed.
65409         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
65410         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
65411         * tests/test-fcntl.c (check_flags, main): Enhance test for items
65412         we now guarantee.
65414         fcntl: work around cygwin bug in F_DUPFD
65415         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
65416         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
65417         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
65418         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
65419         * doc/posix-functions/fcntl.texi (fcntl): Document it.
65421         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
65422         * modules/fcntl (Files): List new files.
65423         (configure.ac): Run a test.
65424         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
65425         * lib/fcntl.c (rpl_fcntl): Likewise.
65426         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
65427         (gl_FCNTL_H): Always replace fcntl.h.
65428         * modules/fcntl-h (Makefile.am): Substitute witnesses.
65429         * lib/fcntl.in.h (fcntl): Declare replacement.
65430         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
65431         needed, plus a witness.
65432         * doc/posix-functions/fcntl.texi (fcntl): Document this.
65433         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
65434         * tests/test-fcntl.c: New file.
65435         * modules/fcntl-tests: Likewise.
65437         binary-io: avoid potential compilation warning
65438         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
65439         directives.
65441         fflush: avoid compilation error on NetBSD
65442         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
65443         between off_t and fpos_t, since the latter is sometimes a struct.
65444         * lib/fseeko.c (rpl_fseeko): Likewise.
65445         Reported by Alexander Nasonov <alnsn@yandex.ru>.
65447 2009-12-15  Eric Blake  <ebb9@byu.net>
65449         fcntl-h, stdio, sys_ioctl: fix declarations
65450         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
65451         function must not take arguments.
65452         * lib/sys_ioctl.in.h (ioctl): Likewise.
65453         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
65454         (open): Add a link warning.
65456 2009-12-15  Jim Meyering  <meyering@redhat.com>
65458         areadlink, areadlink-with-size: relax license to LGPLv2+
65459         * modules/areadlink (License): Relax to LGPLv2+.
65460         * modules/areadlink-with-size (License): Likewise.
65462 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
65463             Bruno Haible  <bruno@clisp.org>
65465         *printf: Fix memory leak.
65466         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
65467         * lib/vfprintf.c (vfprintf): Likewise.
65468         * lib/dprintf.c (dprintf): Likewise.
65469         * lib/vdprintf.c (vdprintf): Likewise.
65471 2009-12-14  Eric Blake  <ebb9@byu.net>
65473         accept4: adjust module dependencies
65474         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
65476         utimens: one more try at avoiding compiler warning
65477         * lib/utimens.c (lutimens): Lower scope of result.
65479 2009-12-13  Bruno Haible  <bruno@clisp.org>
65481         Move the malloc checking from module 'list' to new module 'xlist'.
65482         * modules/xlist: New file.
65483         * lib/gl_xlist.h: New file.
65484         * lib/gl_xlist.c: New file.
65485         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
65486         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
65487         gl_list_add_last, gl_list_add_before, gl_list_add_after,
65488         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
65489         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
65490         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
65491         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
65492         gl_sortedlist_nx_add): New declarations.
65493         (struct gl_list_implementation): Rename and change methods accordingly.
65494         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
65495         (gl_list_nx_create): Renamed from gl_list_create.
65496         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
65497         (gl_list_nx_set_at): Renamed from gl_list_set_at.
65498         (gl_list_nx_add_first): Renamed from gl_list_add_first.
65499         (gl_list_nx_add_last): Renamed from gl_list_add_last.
65500         (gl_list_nx_add_before): Renamed from gl_list_add_before.
65501         (gl_list_nx_add_after): Renamed from gl_list_add_after.
65502         (gl_list_nx_add_at): Renamed from gl_list_add_at.
65503         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
65504         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
65505         gl_list_create_empty.
65506         (gl_list_nx_create): Renamed from gl_list_create.
65507         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
65508         (gl_list_nx_set_at): Renamed from gl_list_set_at.
65509         (gl_list_nx_add_first): Renamed from gl_list_add_first.
65510         (gl_list_nx_add_last): Renamed from gl_list_add_last.
65511         (gl_list_nx_add_before): Renamed from gl_list_add_before.
65512         (gl_list_nx_add_after): Renamed from gl_list_add_after.
65513         (gl_list_nx_add_at): Renamed from gl_list_add_at.
65514         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
65515         * lib/gl_array_list.c: Don't include xalloc.h.
65516         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
65517         NULL upon out-of-memory.
65518         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
65519         out-of-memory.
65520         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
65521         Change return type to 'int'.
65522         (gl_array_nx_set_at): Renamed from gl_array_set_at.
65523         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
65524         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
65525         upon out-of-memory.
65526         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
65527         upon out-of-memory.
65528         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
65529         upon out-of-memory.
65530         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
65531         upon out-of-memory.
65532         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
65533         out-of-memory.
65534         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
65535         Update.
65536         (gl_array_list_implementation): Update.
65537         * lib/gl_carray_list.c: Don't include xalloc.h.
65538         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
65539         Return NULL upon out-of-memory.
65540         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
65541         out-of-memory.
65542         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
65543         Change return type to 'int'.
65544         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
65545         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
65546         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
65547         upon out-of-memory.
65548         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
65549         upon out-of-memory.
65550         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
65551         out-of-memory.
65552         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
65553         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
65554         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
65555         Update.
65556         (gl_carray_list_implementation): Update.
65557         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
65558         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
65559         gl_linked_create_empty. Return NULL upon out-of-memory.
65560         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
65561         out-of-memory.
65562         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
65563         Change return type to 'int'. Return -1 upon out-of-memory.
65564         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
65565         out-of-memory.
65566         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
65567         upon out-of-memory.
65568         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
65569         upon out-of-memory.
65570         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
65571         NULL upon out-of-memory.
65572         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
65573         upon out-of-memory.
65574         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
65575         out-of-memory.
65576         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
65577         Update.
65578         * lib/gl_linked_list.c: Don't include xalloc.h.
65579         (gl_linked_list_implementation): Update.
65580         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
65581         (add_to_bucket): Change return type to 'int'.
65582         (gl_linkedhash_list_implementation): Update.
65583         * lib/gl_anytree_list1.h (free_subtree): New function.
65584         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
65585         gl_tree_create_empty. Return NULL upon out-of-memory.
65586         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
65587         Change return type to 'int'. Return -1 upon out-of-memory.
65588         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
65589         out-of-memory.
65590         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
65591         (gl_tree_remove_node): New function, moved here from
65592         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
65593         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
65594         Update.
65595         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
65596         malloc, not xmalloc. Return NULL upon out-of-memory.
65597         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
65598         out-of-memory.
65599         (gl_tree_remove_node_from_tree): New function, extracted from
65600         gl_tree_remove_node.
65601         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
65602         upon out-of-memory.
65603         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
65604         out-of-memory.
65605         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
65606         upon out-of-memory.
65607         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
65608         upon out-of-memory.
65609         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
65610         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
65611         not xmalloc. Return NULL upon out-of-memory.
65612         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
65613         out-of-memory.
65614         (gl_tree_remove_node_from_tree): New function, extracted from
65615         gl_tree_remove_node.
65616         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
65617         upon out-of-memory.
65618         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
65619         out-of-memory.
65620         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
65621         upon out-of-memory.
65622         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
65623         upon out-of-memory.
65624         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
65625         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
65626         gl_anytree_list1.h before gl_anyavltree_list2.h.
65627         (gl_avltree_list_implementation): Update.
65628         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
65629         gl_anytree_list1.h before gl_anyavltree_list2.h.
65630         (gl_rbtree_list_implementation): Update.
65631         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
65632         Change return type to 'int'. Return -1 upon out-of-memory. Use
65633         __builtin_expect.
65634         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
65635         (gl_avltreehash_list_implementation): Update.
65636         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
65637         (gl_rbtreehash_list_implementation): Update.
65638         * modules/array-list (Depends-on): Remove xalloc.
65639         * modules/carray-list (Depends-on): Likewise.
65640         * modules/linked-list (Depends-on): Likewise.
65641         * modules/linkedhash-list (Depends-on): Likewise.
65642         * modules/avltree-list (Depends-on): Likewise.
65643         * modules/rbtree-list (Depends-on): Likewise.
65644         * modules/avltreehash-list (Depends-on): Likewise.
65645         * modules/rbtreehash-list (Depends-on): Likewise.
65647         * modules/xsublist: New file.
65648         * lib/gl_xsublist.h: New file.
65649         * lib/gl_xsublist.c: New file.
65650         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
65651         (gl_sublist_nx_create): New declaration.
65652         * lib/gl_sublist.c: Don't include xalloc.h.
65653         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
65654         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
65655         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
65656         Change return type to 'int'. Return -1 upon out-of-memory.
65657         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
65658         upon out-of-memory.
65659         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
65660         NULL upon out-of-memory.
65661         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
65662         upon out-of-memory.
65663         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
65664         NULL upon out-of-memory.
65665         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
65666         NULL upon out-of-memory.
65667         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
65668         upon out-of-memory.
65669         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
65670         (gl_sublist_list_implementation): Update.
65671         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
65672         upon out-of-memory.
65673         * modules/sublist (Depends-on): Remove xalloc.
65675         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
65676         * tests/test-carray_list.c: Likewise.
65677         * tests/test-linked_list.c: Likewise.
65678         * tests/test-linkedhash_list.c: Likewise.
65679         * tests/test-avltree_list.c: Likewise.
65680         * tests/test-rbtree_list.c: Likewise.
65681         * tests/test-avltreehash_list.c: Likewise.
65682         * tests/test-rbtreehash_list.c: Likewise.
65683         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
65684         * modules/carray-list-tests (Makefile.am): Likewise.
65685         * modules/linked-list-tests (Makefile.am): Likewise.
65686         * modules/linkedhash-list-tests (Makefile.am): Likewise.
65687         * modules/avltree-list-tests (Makefile.am): Likewise.
65688         * modules/rbtree-list-tests (Makefile.am): Likewise.
65689         * modules/avltreehash-list-tests (Makefile.am): Likewise.
65690         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
65692         * NEWS: Mention the changes.
65694         * lib/clean-temp.c: Include gl_xlist.h.
65695         * modules/clean-temp (Depends-on): Add xlist.
65697         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
65698         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
65700         * tests/test-array_oset.c: Include gl_xlist.h.
65701         * modules/array-oset-tests (Depends-on): Add xlist.
65703         Reported by José E. Marchesi <jemarch@gnu.org>.
65705 2009-12-13  Bruno Haible  <bruno@clisp.org>
65707         Move the malloc checking from module 'oset' to new module 'xoset'.
65708         * modules/xoset: New file.
65709         * lib/gl_xoset.h: New file.
65710         * lib/gl_xoset.c: New file.
65711         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
65712         declarations.
65713         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
65714         (struct gl_oset_implementation): Rename and change methods accordingly.
65715         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
65716         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
65717         'int'. Mark as __warn_unused_result__.
65718         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
65719         gl_oset_create_empty.
65720         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
65721         'int'.
65722         * lib/gl_array_oset.c: Don't include xalloc.h.
65723         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
65724         malloc, not xmalloc.
65725         (grow): Change return type to 'int'. Don't call xalloc_die.
65726         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
65727         to 'int'.
65728         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
65729         'int'.
65730         (gl_array_oset_implementation): Update.
65731         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
65732         gl_tree_create_empty.
65733         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
65734         'int'.
65735         * lib/gl_avltree_oset.c: Don't include xalloc.h.
65736         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
65737         xmalloc.
65738         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
65739         not xmalloc.
65740         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
65741         xmalloc.
65742         (gl_avltree_oset_implementation): Update.
65743         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
65744         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
65745         xmalloc.
65746         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
65747         not xmalloc.
65748         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
65749         xmalloc.
65750         (gl_rbtree_oset_implementation): Update.
65751         * modules/array-oset (Depends-on): Remove xalloc.
65752         * modules/avltree-oset (Depends-on): Likewise.
65753         * modules/rbtree-oset (Depends-on): Likewise.
65754         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
65755         * tests/test-avltree_oset.c: Likewise.
65756         * tests/test-rbtree_oset.c: Likewise.
65757         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
65758         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
65759         * modules/rbtree-oset-tests (Makefile.am): Likewise.
65760         * NEWS: Mention the change.
65762 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
65764         maint.mk: allow a project to override release-prep commands
65765         * top/maint.mk (alpha, beta, stable): Move release-preparatory
65766         commands into a new rule.
65767         (release-prep): New rule.
65768         (release-prep-hook): New overridable variable.
65770 2009-12-13  Bruno Haible  <bruno@clisp.org>
65772         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
65774 2009-12-13  Jim Meyering  <meyering@redhat.com>
65776         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
65777         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
65779 2009-12-12  Bruno Haible  <bruno@clisp.org>
65781         duplocale: Tweak.
65782         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
65784 2009-12-12  Karl Berry  <karl@gnu.org>
65786         * config/srclist.txt (strtoll.c): tab changes, no more sync.
65788 2009-12-12  Bruno Haible  <bruno@clisp.org>
65790         * m4/po.m4: Undo incorrect untabification.
65792 2009-12-12  Bruno Haible  <bruno@clisp.org>
65794         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
65795         * modules/c-strtod (Depends-on): Add locale.
65796         * modules/c-strtold (Depends-on): Likewise.
65798 2009-12-12  Bruno Haible  <bruno@clisp.org>
65800         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
65802 2009-12-11  Eric Blake  <ebb9@byu.net>
65804         setenv: relax requirement in light of POSIX ruling
65805         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
65806         not NULL.
65807         * tests/test-setenv.c (main): Relax test.
65808         * tests/test-unsetenv.c (main): Likewise.
65809         * doc/posix-functions/setenv.texi (setenv): Document this.
65810         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
65812 2009-12-11  Bruno Haible  <bruno@clisp.org>
65814         New module 'fd-safer-flag'.
65815         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
65816         * lib/dup-safer.c (dup_safer_flag): Remove function.
65817         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
65818         * lib/fd-safer.c (fd_safer_flag): Remove function.
65819         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
65820         * modules/cloexec (configure.ac): Drop indicator macro.
65821         * modules/fd-safer-flag: New file.
65822         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
65823         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
65824         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
65826 2009-12-11  Bruno Haible  <bruno@clisp.org>
65828         Tests for module 'nl_langinfo'.
65829         * modules/nl_langinfo-tests: New file.
65830         * tests/test-nl_langinfo.sh: New file.
65831         * tests/test-nl_langinfo.c: New file.
65833         New module 'nl_langinfo'.
65834         * lib/nl_langinfo.c: New file.
65835         * m4/nl_langinfo.m4: New file.
65836         * modules/nl_langinfo: New file.
65837         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
65839 2009-12-11  Bruno Haible  <bruno@clisp.org>
65841         Tests for module 'langinfo'.
65842         * modules/langinfo-tests: New file.
65843         * tests/test-langinfo.c: New file.
65845         New module 'langinfo'.
65846         * lib/langinfo.in.h: New file.
65847         * m4/langinfo_h.m4: New file.
65848         * modules/langinfo: New file.
65849         * doc/posix-headers/langinfo.texi: Mention the new module.
65851 2009-12-11  Bruno Haible  <bruno@clisp.org>
65853         * lib/config.charset: Untabify.
65855 2009-12-11  Bruno Haible  <bruno@clisp.org>
65857         * modules/unistd-safer (configure.ac): Drop indicator macro.
65859 2009-12-11  Bruno Haible  <bruno@clisp.org>
65861         Move pipe2-safer code to its own file.
65862         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
65863         * lib/pipe-safer.c (pipe2_safer): Remove function.
65864         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
65865         (Makefile.am): Add it to lib_SOURCES.
65867 2009-12-10  Bruno Haible  <bruno@clisp.org>
65869         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
65871 2009-12-10  Bruno Haible  <bruno@clisp.org>
65873         Declare which arguments expect non-NULL values, for GCC and clang.
65874         * build-aux/arg-nonnull.h: New file.
65875         * modules/arg-nonnull: New file.
65876         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
65877         (inet_ntop, inet_pton): Use it.
65878         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
65879         (closedir, dirfd, opendir, scandir, alphasort): Use it.
65880         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
65881         (open, openat): Use it.
65882         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
65883         (fnmatch): Use it.
65884         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
65885         (getopt, getopt_long, getopt_long_only): Use it.
65886         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
65887         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
65888         Use it.
65889         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
65890         (iconv_open): Use it.
65891         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
65892         (strtoimax, strtoumax): Use it.
65893         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
65894         (duplocale): Use it.
65895         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
65896         (frexp, frexpl): Use it.
65897         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
65898         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
65899         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
65900         (tsearch, tfind, tdelete, twalk): Use it.
65901         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
65902         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
65903         sigpending): Use it.
65904         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
65905         (posix_spawn, posix_spawnp, posix_spawnattr_init,
65906         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
65907         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
65908         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
65909         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
65910         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
65911         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
65912         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
65913         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
65914         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
65915         Use it.
65916         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
65917         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
65918         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
65919         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
65920         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
65921         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
65922         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
65923         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
65924         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
65925         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
65926         strtoull, unsetenv): Use it.
65927         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
65928         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
65929         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
65930         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
65931         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
65932         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
65933         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
65934         (strcasecmp, strncasecmp): Use it.
65935         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
65936         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
65937         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
65938         rpl_setsockopt): Use it.
65939         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
65940         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
65941         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
65942         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
65943         (gettimeofday): Use it.
65944         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
65945         (times): Use it.
65946         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
65947         (uname): Use it.
65948         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
65949         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
65950         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
65951         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
65952         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
65953         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
65954         unlinkat, write): Use it.
65955         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
65956         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
65957         * lib/argv-iter.h: Include arg-nonnull.h.
65958         (_ATTRIBUTE_NONNULL_): Remove macro.
65959         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
65960         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
65961         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
65962         optimization.
65963         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
65964         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
65965         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
65966         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
65967         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
65968         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
65969         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
65970         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
65971         * modules/arpa_inet (Depends-on): Add arg-nonnull.
65972         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
65973         * modules/dirent (Depends-on): Add arg-nonnull.
65974         (Makefile.am): Insert arg-nonnull.h into dirent.h.
65975         * modules/fcntl-h (Depends-on): Add arg-nonnull.
65976         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
65977         * modules/fnmatch (Depends-on): Add arg-nonnull.
65978         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
65979         * modules/getopt-posix (Depends-on): Add arg-nonnull.
65980         (Makefile.am): Insert arg-nonnull.h into getopt.h.
65981         * modules/glob (Depends-on): Add arg-nonnull.
65982         (Makefile.am): Insert arg-nonnull.h into glob.h.
65983         * modules/iconv_open (Depends-on): Add arg-nonnull.
65984         (Makefile.am): Insert arg-nonnull.h into iconv.h.
65985         * modules/inttypes (Depends-on): Add arg-nonnull.
65986         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
65987         * modules/locale (Depends-on): Add arg-nonnull.
65988         (Makefile.am): Insert arg-nonnull.h into locale.h.
65989         * modules/math (Depends-on): Add arg-nonnull.
65990         (Makefile.am): Insert arg-nonnull.h into math.h.
65991         * modules/netdb (Depends-on): Add arg-nonnull.
65992         (Makefile.am): Insert arg-nonnull.h into netdb.h.
65993         * modules/search (Depends-on): Add arg-nonnull.
65994         (Makefile.am): Insert arg-nonnull.h into search.h.
65995         * modules/signal (Depends-on): Add arg-nonnull.
65996         (Makefile.am): Insert arg-nonnull.h into signal.h.
65997         * modules/spawn (Depends-on): Add arg-nonnull.
65998         (Makefile.am): Insert arg-nonnull.h into spawn.h.
65999         * modules/stdio (Depends-on): Add arg-nonnull.
66000         (Makefile.am): Insert arg-nonnull.h into stdio.h.
66001         * modules/stdlib (Depends-on): Add arg-nonnull.
66002         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
66003         * modules/string (Depends-on): Add arg-nonnull.
66004         (Makefile.am): Insert arg-nonnull.h into string.h.
66005         * modules/strings (Depends-on): Add arg-nonnull.
66006         (Makefile.am): Insert arg-nonnull.h into strings.h.
66007         * modules/sys_socket (Depends-on): Add arg-nonnull.
66008         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
66009         * modules/sys_stat (Depends-on): Add arg-nonnull.
66010         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
66011         * modules/sys_time (Depends-on): Add arg-nonnull.
66012         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
66013         * modules/sys_times (Depends-on): Add arg-nonnull.
66014         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
66015         * modules/sys_utsname (Depends-on): Add arg-nonnull.
66016         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
66017         * modules/time (Depends-on): Add arg-nonnull.
66018         (Makefile.am): Insert arg-nonnull.h into time.h.
66019         * modules/unistd (Depends-on): Add arg-nonnull.
66020         (Makefile.am): Insert arg-nonnull.h into unistd.h.
66021         * modules/wchar (Depends-on): Add arg-nonnull.
66022         (Makefile.am): Insert arg-nonnull.h into wchar.h.
66023         * modules/argv-iter (Depends-on): Add arg-nonnull.
66024         * tests/test-canonicalize.c (null_ptr): New function.
66025         (main): Use it.
66026         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
66027         (main): Use it.
66028         * tests/test-memmem.c (null_ptr): New function.
66029         (main): Use it.
66030         Reported by Jim Meyering.
66032 2009-12-10  Bruno Haible  <bruno@clisp.org>
66034         Use spaces for indentation, not tabs.
66035         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
66036         * m4/*.m4: Untabify.
66037         * build-aux/*.h: Untabify.
66038         * tests/**/*.[hc]: Untabify.
66039         * README: New section "Indent with spaces, not TABs", based on
66040         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
66041         * NEWS: Mention the change.
66043 2009-12-10  Bruno Haible  <bruno@clisp.org>
66045         pty test: Fix link error.
66046         * modules/pty-tests (Makefile.am): Add the default LDADD value to
66047         test_pty_LDADD.
66049 2009-12-07  Simon Josefsson  <simon@josefsson.org>
66051         * modules/pty: New file.
66052         * modules/pty-tests: New file.
66053         * m4/pty.m4: New file.
66054         * tests/test-pty.c: New file.
66055         * doc/glibc-headers/pty.texi: Modified.
66056         * doc/glibc-functions/forkpty.texi: Modified.
66057         * doc/glibc-functions/openpty.texi: Modified.
66059 2009-12-10  Bruno Haible  <bruno@clisp.org>
66061         Avoid syntax error in C++ mode.
66062         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
66064 2009-12-10  Bruno Haible  <bruno@clisp.org>
66066         Use sed with option -e.
66067         * gnulib-tool (func_version, func_emit_copyright_notice,
66068         func_emit_initmacro_end, func_import, func_create_testdir): Pass
66069         option -e to sed.
66070         * modules/link-warning (Makefile.am): Likewise.
66072 2009-12-10  Jim Meyering  <meyering@redhat.com>
66074         mgetgroups: do not write bytes beyond end of malloc'd buffer
66075         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
66076         username, we call getgroups with a one-element-shorter buffer,
66077         but still told it the length was original, max_n_groups.
66079 2009-12-09  Eric Blake  <ebb9@byu.net>
66081         cloexec: relax license
66082         * modules/cloexec (Maintainer): Add myself.
66083         (License): Use LGPL, not GPL.
66085         link-warning: optimize generation
66086         * modules/link-warning (Makefile.am): Reduce process usage.
66088 2009-12-09  Bruno Haible  <bruno@clisp.org>
66090         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
66091         workaround was added on 2009-11-17.
66093 2009-12-09  Jim Meyering  <meyering@redhat.com>
66094             Bruno Haible  <bruno@clisp.org>
66096         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
66097         * modules/link-warning (Makefile.am): Make the comment-removing sed
66098         command more robust in the face of bootstrap-prepended comment lines.
66100 2009-12-09  Bruno Haible  <bruno@clisp.org>
66102         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
66103         most one group.
66105 2009-12-09  Simon Josefsson  <simon@josefsson.org>
66106             Bruno Haible  <bruno@clisp.org>
66108         * build-aux/link-warning.h: Add copyright notice.
66109         * modules/link-warning (Makefile.am): Generate link-warning.h from
66110         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
66111         * NEWS: Mention change in link-warning module.
66112         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
66113         * modules/dirent (Makefile.am): Add dependency to dirent.h.
66114         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
66115         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
66116         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
66117         * modules/math (Makefile.am): Add dependency to math.h.
66118         * modules/search (Makefile.am): Add dependency to search.h.
66119         * modules/signal (Makefile.am): Add dependency to signal.h.
66120         * modules/spawn (Makefile.am): Add dependency to spawn.h.
66121         * modules/stdio (Makefile.am): Add dependency to stdio.h.
66122         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
66123         * modules/string (Makefile.am): Add dependency to string.h.
66124         * modules/strings (Makefile.am): Add dependency to strings.h.
66125         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
66126         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
66127         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
66128         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
66129         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
66130         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
66131         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
66132         * modules/unistd (Makefile.am): Add dependency to unistd.h.
66133         * modules/wchar (Makefile.am): Add dependency to wchar.h.
66135 2009-12-09  Bruno Haible  <bruno@clisp.org>
66137         fchdir: Optimize away rpl_fstat when possible.
66138         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
66139         REPLACE_OPEN_DIRECTORY.
66140         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
66142 2009-12-09  Bruno Haible  <bruno@clisp.org>
66144         * lib/fchdir.c: Update comment.
66146 2009-12-09  Bruno Haible  <bruno@clisp.org>
66148         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
66150 2009-12-08  Eric Blake  <ebb9@byu.net>
66152         fchdir: avoid memory leak on re-registration.
66153         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
66155 2009-12-08  Jim Meyering  <meyering@redhat.com>
66157         init.sh: avoid Solaris 10 /bin/sh portability problem
66158         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
66159         sourced script:
66160           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
66161           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
66162           bar
66163         tests/init.sh relied on that, accepting a --set-path=DIR argument,
66164         and two tests used that idiom.
66165         * tests/init.sh: Update suggested usage comments.
66166         (path_prepend_): New function, to be used in place
66167         of the --src-path=DIR option.
66168         (setup_): Move PATH-prepending code into path_prepend_.
66169         * tests/test-pread.sh: Adapt to new usage.
66170         * tests/test-xalloc-die.sh: Likewise.
66172 2009-12-08  Simon Josefsson  <simon@josefsson.org>
66174         * doc/gnulib.texi (Glibc pty.h): Add.
66175         * doc/glibc-functions/forkpty.texi: Add.
66176         * doc/glibc-functions/openpty.texi: Add.
66177         Suggested by Bruno Haible.
66179 2009-12-08  Eric Blake  <ebb9@byu.net>
66181         fchdir: fix logic bugs
66182         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
66183         * tests/test-fchdir.c (main): Enhance test.
66184         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
66185         is in use.
66187         dup2: fix logic bugs
66188         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
66189         REPLACE_DUP2 to decide when rpl_dup2 is needed.
66190         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
66191         exists.
66192         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
66194 2009-12-07  Eric Blake  <ebb9@byu.net>
66196         unlink: fix m4 detection
66197         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
66199         unistd-safer: add unit test
66200         * modules/unistd-safer-tests: New file.
66201         * tests/test-dup-safer.c: Likewise.
66202         * tests/test-cloexec.c (setmode): Avoid compiler warning.
66203         * tests/test-dup2.c (setmode): Likewise.
66204         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
66206         cloexec: preserve text vs. binary across dup_cloexec
66207         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
66208         mode.
66209         * modules/dup2-tests (Depends-on): Add binary-io.
66210         * modules/cloexec-tests (Depends-on): Likewise.
66211         * tests/test-dup2.c (setmode, is_mode): New helpers.
66212         (main): Add tests that translation mode is preserved.
66213         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
66214         Reported by Bruno Haible.
66216         mgetgroups: reduce duplicate listings
66217         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
66218         resulting array.
66219         * tests/test-chown.h (test_chown): Simplify client.
66220         * tests/test-lchown.h (test_lchown): Likewise.
66222 2009-12-06  Bruno Haible  <bruno@clisp.org>
66224         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
66225         value.
66227 2009-12-06  Bruno Haible  <bruno@clisp.org>
66229         * lib/progname.c: Include stdio.h, stdlib.h.
66230         (set_program_name): Reject a NULL argument.
66232 2009-12-05  Eric Blake  <ebb9@byu.net>
66234         pipe2-safer: new module
66235         * modules/pipe2-safer: New file.
66236         * lib/unistd-safer.h (pipe2_safer): New prototype.
66237         * lib/unistd--.h (pipe2): New wrapper.
66238         * lib/pipe-safer.c (pipe2_safer): New function.
66239         * modules/pipe (Depends-on): Add pipe2-safer.
66240         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
66242         stdlib-safer: preserve cloexec flag for mkostemp[s]
66243         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
66244         fd_safer_flag.
66246         unistd-safer: allow preservation of cloexec status via flag
66247         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
66248         prototypes.
66249         * lib/dup-safer.c (dup_safer_flag): New function.
66250         * lib/fd-safer.c (fd_safer_flag): Likewise.
66251         * modules/cloexec (configure.ac): Set witness.
66253         test-dup2: enhance test
66254         * modules/dup2-tests (Depends-on): Add cloexec.
66255         * tests/test-dup2.c (main): Enhance test.
66257         cloexec: add dup_cloexec
66258         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
66259         header and comments.
66260         * lib/cloexec.c (set_cloexec_flag): Add comments.
66261         (dup_cloexec): New function, with mingw implementation borrowed
66262         from...
66263         * lib/w32spawn.h (dup_noinherit): ...here.
66264         * modules/execute (Depends-on): Add cloexec.
66265         * modules/pipe (Depends-on): Likewise.
66266         * modules/cloexec (Depends-on): Add dup2.
66267         * modules/cloexec-tests (Files): New file.
66268         * tests/test-cloexec.c: Likewise.
66270         test-xalloc-die: fix test for mingw
66271         * modules/xalloc-die-tests (Files): Add tests/init.sh.
66272         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
66273         directory and .exe suffix off argv[0] output.
66275         test-fseeko: fix test for mingw
66276         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
66277         than undefining fseek, so test will pass on mingw.
66279 2009-12-05  Bruno Haible  <bruno@clisp.org>
66281         * lib/progname.h (set_program_name): Clarify specification.
66282         * lib/progname.c (set_program_name): Likewise.
66283         Reported by Jim Meyering.
66285 2009-12-05  Jim Meyering  <meyering@redhat.com>
66287         maint.mk: backslash-escape parens in default regexp
66288         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
66289         backslash-escape the literal parentheses.
66291         maint.mk: news-date-check: use grep -E
66292         * top/maint.mk (today): Define a Make variable, not a...
66293         (news-date-check): ...shell variable.
66294         (news-date-regexp): Use the Make variable.
66295         Use grep's -E option.  Change the failing diagnostic to mention
66296         the variable, $(news-date-regexp).
66298 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
66300         maintainer-makefile: allow customization of NEWS entry format
66301         * top/maint.mk (news-date-regexp): New overridable variable.
66302         (news-date-check): Use it.
66304 2009-12-04  Eric Blake  <ebb9@byu.net>
66306         mgetgroups: add xgetgroups, and avoid ENOSYS failures
66307         * lib/mgetgroups.h (xgetgroups): New prototype.
66308         * lib/mgetgroups.c (xgetgroups): New wrapper.
66309         (mgetgroups): Handle ENOSYS.
66310         * modules/mgetgroups (Depends-on): Add realloc.
66311         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
66313         mgetgroups: avoid argument promotion issues with -1
66314         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
66315         for invalid gid_t.
66316         * tests/test-chown.h (getegid, test_chown): Likewise.
66317         * tests/test-lchown.h (getegid, test_lchown): Likewise.
66319 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
66321         exclude: Fix header file problems.
66322         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
66324 2009-12-01  Jim Meyering  <meyering@redhat.com>
66326         fts: fts_open: do not let an empty string cause immediate failure
66327         This is required in support of GNU rm, for which the command
66328         "rm A '' B" must process and remove both A and B, in spite of
66329         the empty string argument.
66330         * lib/fts.c (fts_open): Do not let the presence of an empty string
66331         cause fts_open to fail immediately.  Most fts-using tools must be
66332         able to process all arguments, in order, and can be expected to
66333         diagnose such arguments themselves.
66335 2009-11-30  Eric Blake  <ebb9@byu.net>
66337         utimens: fix compilation error
66338         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
66339         Declare variable at right scope.
66341 2009-11-29  Jim Meyering  <meyering@redhat.com>
66343         bootstrap: handle perl-5.11's changed --version output
66344         * build-aux/bootstrap (get_version): Handle perl separately,
66345         since perl-5.11's --version output is different.
66347 2009-11-28  Jim Meyering  <meyering@redhat.com>
66349         userspec: depend on the inttostr module, too
66350         * modules/userspec (Depends-on): Add inttostr.
66352         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
66353         * lib/userspec.c (parse_with_separator): Do not accept a user ID
66354         number of MAXUID when it evaluates to (uid_t) -1.
66355         Likewise for group ID.  Reported by Matt McCutchen in
66356         <http://savannah.gnu.org/bugs/?28113>
66358         userspec: reformat to use spaces, not TABs
66359         * lib/userspec.c: Expand TABs to spaces.
66360         Add Emacs' "indent-tabs-mode: nil" hint.
66362 2009-11-27  Eric Blake  <ebb9@byu.net>
66364         getopt-gnu: flush out another BSD bug
66365         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
66366         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
66367         flush out BSD bug.
66368         * tests/test-getopt.h (test_getopt): End lists with NULL.
66369         * tests/test-getopt_long.h (test_getopt_long): Likewise.
66370         (test_getopt_long_posix): Enhance test.
66371         * modules/getopt-posix-tests (Depends-on): Add stdbool.
66372         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
66373         getopt-gnu.
66374         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
66375         Likewise.
66377 2009-11-27  Simon Josefsson  <simon@josefsson.org>
66379         * modules/idpriv-droptemp-tests (Notice): Fix text.
66381 2009-11-27  Jim Meyering  <meyering@redhat.com>
66383         test-xalloc-die: avoid spurious failure due to libtool argv difference
66384         In a libtool-enabled project, this test would fail due to a difference
66385         in the emitted program name, e.g.,
66386         -test-xalloc-die: memory exhausted
66387         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
66388         Use program to avoid that.
66389         * modules/xalloc-die-tests (Depends-on): Add progname.
66390         * tests/test-xalloc-die.c: Include progname.h".
66391         (program_name): Remove decl.
66392         (main): Call set_program_name.
66393         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
66395 2009-11-26  Richard Jones  <rjones@redhat.com>
66397         w32sock: leave win32 error in place.
66398         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
66400 2009-11-26  Eric Blake  <ebb9@byu.net>
66402         init.sh: suggest to use skip_ and fail_ functions in comments
66403         * tests/init.sh: Add a sentence.
66405 2009-11-25  Bruno Haible  <bruno@clisp.org>
66407         init.sh: add documentation in comments
66408         * tests/init.sh: Add some developer and user documentation.
66410 2009-11-26  Jim Meyering  <meyering@redhat.com>
66412         init.sh: accommodate even those who specify bogus srcdir manually
66413         * tests/init.sh: Normally, srcdir is guaranteed by automake and
66414         configure-time tests to be sanitized, so that there is no need to
66415         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
66416         (with no double quotes) suffices.  However, since tests may be
66417         invoked manually, and since you may explicitly set srcdir to the
66418         name of a directory containing spaces, do quote its uses here.
66419         * tests/test-pread.sh: Likewise.
66420         Suggested by Bruno Haible.
66422         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
66423         * tests/test-pread.sh: Write no data into the pipe, because
66424         test-pread actually reads none.  This avoids a diagnostic,
66425         "bash: echo: write error: Broken pipe", that arises in the unusual
66426         event something is ignoring SIGPIPE, and might be interpreted
66427         as some sort of failure.  Reported by Bruno Haible.
66429 2009-11-25  Jim Meyering  <meyering@redhat.com>
66431         test-pread: cover failure with ESPIPE and EINVAL
66432         * tests/test-pread.c (main): Test for failure, too.
66433         * tests/test-pread.sh: Invoke with stdin on a pipe.
66434         Suggested by Eric Blake.
66436         pread: improvement and fix
66437         * modules/pread (Depends-on): Depend on lseek, for portability to
66438         e.g., mingw.  Suggested by Eric Blake.
66439         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
66441         unistd.in.h: correct declaration of pread
66442         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
66443         Reported by Richard W.M. Jones.
66445         test-pread.sh: distribute the test script
66446         * modules/pread-tests (Files): Include test-pread.sh.
66448         test-pread.sh: clean up
66449         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
66450         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
66451         That is unnecessary, since it's always ".".
66452         Suggestion from Eric Blake.
66454         test-pread.sh: make executable
66455         * tests/test-pread.sh: Set executable bit.
66456         Reported by Eric Blake.
66458         correct typo in test-pread.sh
66459         * tests/test-pread.sh: Add #! line.
66461         test pread
66462         * tests/test-pread.c: New file.
66463         * tests/test-pread.sh: Likewise.
66464         * modules/pread-tests: Likewise.
66466         pread: new module
66467         * modules/pread: New file.
66468         * lib/unistd.in.h (pread): Define/declare.
66469         * lib/pread.c (pread): New file.
66470         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
66471         * modules/unistd (Makefile.am): Substitute witnesses.
66472         * doc/posix-functions/pread.texi (pread): Update.
66473         * MODULES.html.sh: Add pread.
66475 2009-11-25  Jim Meyering  <meyering@redhat.com>
66477         tests/init.sh: new file to be used via most *.sh tests
66478         * tests/init.sh: New file.
66480 2009-11-25  Eric Blake  <ebb9@byu.net>
66482         utimens: work around older Linux failure with symlinks
66483         * lib/utimens.c (lutimensat_works_really): New variable.
66484         (fdutimens, lutimens): Use it to manage kernels that support
66485         nanosecond times on files, but not on symlinks.
66486         Reported by Ondřej Vašík.
66488         utimes: fix configure grammar
66489         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
66491 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
66493         regex: Fix fastmap for multibyte character ranges.
66494         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
66495         characters when a multibyte character range is included.
66497 2009-11-22  Andy Wingo  <wingo@pobox.com>
66499         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
66500         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
66502 2009-11-24  Bruno Haible  <bruno@clisp.org>
66504         doc: Most *_l functions exist in MacOS X 10.5.
66505         * doc/posix-functions/duplocale.texi: Update platforms list.
66506         * doc/posix-functions/freelocale.texi: Likewise.
66507         * doc/posix-functions/newlocale.texi: Likewise.
66508         * doc/posix-functions/uselocale.texi: Likewise.
66509         * doc/posix-functions/isalnum_l.texi: Likewise.
66510         * doc/posix-functions/isalpha_l.texi: Likewise.
66511         * doc/posix-functions/isblank_l.texi: Likewise.
66512         * doc/posix-functions/iscntrl_l.texi: Likewise.
66513         * doc/posix-functions/isdigit_l.texi: Likewise.
66514         * doc/posix-functions/isgraph_l.texi: Likewise.
66515         * doc/posix-functions/islower_l.texi: Likewise.
66516         * doc/posix-functions/isprint_l.texi: Likewise.
66517         * doc/posix-functions/ispunct_l.texi: Likewise.
66518         * doc/posix-functions/isspace_l.texi: Likewise.
66519         * doc/posix-functions/isupper_l.texi: Likewise.
66520         * doc/posix-functions/iswalnum_l.texi: Likewise.
66521         * doc/posix-functions/iswalpha_l.texi: Likewise.
66522         * doc/posix-functions/iswblank_l.texi: Likewise.
66523         * doc/posix-functions/iswcntrl_l.texi: Likewise.
66524         * doc/posix-functions/iswctype_l.texi: Likewise.
66525         * doc/posix-functions/iswdigit_l.texi: Likewise.
66526         * doc/posix-functions/iswgraph_l.texi: Likewise.
66527         * doc/posix-functions/iswlower_l.texi: Likewise.
66528         * doc/posix-functions/iswprint_l.texi: Likewise.
66529         * doc/posix-functions/iswpunct_l.texi: Likewise.
66530         * doc/posix-functions/iswspace_l.texi: Likewise.
66531         * doc/posix-functions/iswupper_l.texi: Likewise.
66532         * doc/posix-functions/iswxdigit_l.texi: Likewise.
66533         * doc/posix-functions/isxdigit_l.texi: Likewise.
66534         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
66535         * doc/posix-functions/strcasecmp_l.texi: Likewise.
66536         * doc/posix-functions/strcoll_l.texi: Likewise.
66537         * doc/posix-functions/strfmon_l.texi: Likewise.
66538         * doc/posix-functions/strftime_l.texi: Likewise.
66539         * doc/posix-functions/strncasecmp_l.texi: Likewise.
66540         * doc/posix-functions/strxfrm_l.texi: Likewise.
66541         * doc/posix-functions/tolower_l.texi: Likewise.
66542         * doc/posix-functions/toupper_l.texi: Likewise.
66543         * doc/posix-functions/towctrans_l.texi: Likewise.
66544         * doc/posix-functions/towlower_l.texi: Likewise.
66545         * doc/posix-functions/towupper_l.texi: Likewise.
66546         * doc/posix-functions/wcscoll_l.texi: Likewise.
66547         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
66548         * doc/posix-functions/wctrans_l.texi: Likewise.
66549         * doc/posix-functions/wctype_l.texi: Likewise.
66550         * doc/glibc-functions/strptime_l.texi: Likewise.
66551         * doc/glibc-functions/strtod_l.texi: Likewise.
66552         * doc/glibc-functions/strtof_l.texi: Likewise.
66553         * doc/glibc-functions/strtol_l.texi: Likewise.
66554         * doc/glibc-functions/strtold_l.texi: Likewise.
66555         * doc/glibc-functions/strtoll_l.texi: Likewise.
66556         * doc/glibc-functions/strtoul_l.texi: Likewise.
66557         * doc/glibc-functions/strtoull_l.texi: Likewise.
66558         * doc/glibc-functions/wcsftime_l.texi: Likewise.
66559         * doc/glibc-functions/wcstod_l.texi: Likewise.
66560         * doc/glibc-functions/wcstof_l.texi: Likewise.
66561         * doc/glibc-functions/wcstol_l.texi: Likewise.
66562         * doc/glibc-functions/wcstold_l.texi: Likewise.
66563         * doc/glibc-functions/wcstoll_l.texi: Likewise.
66564         * doc/glibc-functions/wcstoul_l.texi: Likewise.
66565         * doc/glibc-functions/wcstoull_l.texi: Likewise.
66567 2009-11-24  Bruno Haible  <bruno@clisp.org>
66569         duplocale: Fix logic bug.
66570         * lib/duplocale.c: Don't include <langinfo.h>.
66571         (_NL_LOCALE_NAME): Remove macro.
66572         (rpl_duplocale): Use setlocale instead of nl_langinfo.
66573         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
66575 2009-11-23  Jim Meyering  <meyering@redhat.com>
66577         test-update-copyright: don't hard-code /usr/bin/perl
66578         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
66579         perl to print the current year.  Gilles Espinasse reported that
66580         the replaced use of perl was hard-coded as /usr/bin/perl.
66582 2009-11-23  Bruno Haible  <bruno@clisp.org>
66584         duplocale: Add support for glibc 2.3.x.
66585         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
66587 2009-11-22  Bruno Haible  <bruno@clisp.org>
66589         vasnprintf: Tiny optimization.
66590         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
66591         MacOS X.
66593 2009-11-22  Bruno Haible  <bruno@clisp.org>
66595         Tests for module 'duplocale'.
66596         * modules/duplocale-tests: New file.
66597         * tests/test-duplocale.c: New file.
66599         New module 'duplocale'.
66600         * m4/duplocale.m4: New file.
66601         * lib/locale.in.h (duplocale): New declaration.
66602         * lib/duplocale.c: New file.
66603         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
66604         gl_LOCALE_H_DEFAULTS): New macros.
66605         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
66606         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
66607         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
66608         REPLACE_DUPLOCALE.
66609         * modules/duplocale: New file.
66610         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
66612 2009-11-22  Bruno Haible  <bruno@clisp.org>
66614         * modules/locale-tests (configure.ac): Test for newlocale function.
66615         * tests/test-locale.c: When the system has extended locale functions,
66616         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
66618         locale: Make locale_t available when possible.
66619         * lib/locale.in.h: Include <xlocale.h> when it exists.
66620         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
66621         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
66622         * modules/locale (Depends-on): Add extensions.
66623         (Makefile.am): Also substitute HAVE_XLOCALE_H.
66624         * doc/posix-headers/locale.texi: Document the problem with locale_t.
66626 2009-11-22  Bruno Haible  <bruno@clisp.org>
66628         Add comments.
66629         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
66630         invocation.
66631         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
66632         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
66633         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
66635 2009-11-22  Bruno Haible  <bruno@clisp.org>
66637         error: account for the possibility of freopen (stdout).
66638         * lib/error.c: Include <unistd.h>.
66639         (flush_stdout): New function, extracted from error and error_at_line.
66640         Determine stdout's fd dynamically.
66641         (error, error_at_line): Invoke flush_stdout.
66642         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
66643         * modules/error (Depends-on): Add unistd.
66645 2009-11-22  Bruno Haible  <bruno@clisp.org>
66647         diffseq: Add comment.
66648         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
66650 2009-11-22  Jim Meyering  <meyering@redhat.com>
66652         c-stack: avoid defining an unused static function
66653         * lib/c-stack.c (find_stack_direction): Do not define this function
66654         when it will not be used.
66656         diffseq: avoid spurious gcc warnings
66657         * lib/diffseq.h (IF_LINT2): Define.
66658         (compareseq): Use it to initialize two members of "part".
66659         This avoids two used-uninitialized warnings.
66661 2009-11-21  Jim Meyering  <meyering@redhat.com>
66663         c-stack: avoid "ignoring return value of `write'" warning
66664         * lib/c-stack.c: Include "ignore-value.h".
66665         (die): Explicitly ignore each write return value.
66666         * modules/c-stack (Depends-on): Add ignore-value.
66668 2009-11-21  Bruno Haible  <bruno@clisp.org>
66670         diffseq: reduce scope of variable 'best'.
66671         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
66672         variable, earlier used for two different purposes.
66674 2009-11-21  Jim Meyering  <meyering@redhat.com>
66676         diffseq: remove useless assignment to "best"
66677         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
66678         assignment.  At that point "best" is already guaranteed to be zero.
66680 2009-11-20  Eric Blake  <ebb9@byu.net>
66682         build: mention ftp redirector in release announcements
66683         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
66684         values that used to come from cfg.mk; mention FTP redirect URL.
66685         * build-aux/announce-gen: Mention the mirror list.
66686         Suggested by Karl Berry.
66688         nanosleep: improve port to mingw
66689         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
66690         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
66691         LIB_NANOSLEEP, but only when needed.
66692         * modules/select (Link): Document LIBSOCKET.
66693         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
66694         enough.
66696         nanosleep: work around cygwin bug
66697         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
66698         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
66699         bug.
66700         (getnow): Delete, not needed.
66701         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
66702         LIB_CLOCK_GETTIME.
66703         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
66704         clock-time, gettime.
66705         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
66706         bug.
66707         * modules/nanosleep-tests: New test.
66708         * tests/test-nanosleep.c: New file.
66710         sleep: work around cygwin bug
66711         * lib/sleep.c (rpl_sleep): Work around the bug.
66712         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
66713         (gl_PREREQ_SLEEP): Delete unused macro.
66714         * modules/sleep (Depends-on): Add verify.
66715         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
66716         * modules/unistd (Makefile.am): Substitute witness.
66717         * lib/unistd.in.h (sleep): Update prototype.
66718         * doc/posix-functions/sleep.texi (sleep): Document the bug.
66719         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
66720         * modules/sleep-tests (Depends-on): Check for alarm.
66722 2009-11-20  Jim Meyering  <meyering@redhat.com>
66724         maint.mk: improve sc_prohibit_magic_number_exit
66725         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
66726         so it does not match uses like System.exit(1).
66727         Add comments showing how to correct all offenders.
66729 2009-11-19  Eric Blake  <ebb9@byu.net>
66731         xalloc-die-tests: add missing library
66732         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
66734         test-xvasprintf: silence compiler warnings
66735         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
66736         empty string from gcc.
66738 2009-11-19  Jim Meyering  <meyering@redhat.com>
66740         xfreopen: new module, from coreutils
66741         * modules/xfreopen: New module.
66742         * lib/xfreopen.c: New file.
66743         * lib/xfreopen.h: New file.
66744         * MODULES.html.sh (File stream based Input/Output"): Add it.
66746 2009-11-19  Eric Blake  <ebb9@byu.net>
66748         manywarnings: depend on warnings
66749         * modules/manywarnings (Depends-on): Add warnings.
66751         build: avoid compiler warnings
66752         * lib/select.c (rpl_select): Delete unused variable.
66753         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
66755 2009-11-18  Eric Blake  <ebb9@byu.net>
66757         tests: avoid false negative with --with-packager
66758         * tests/test-version-etc.sh: Discard packager information.
66759         * tests/test-argp-version-etc-1.sh: Likewise.
66760         Reported by Mike Frysinger.
66762         utimens: fix regression on Solaris
66763         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
66764         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
66765         can only change fd timestamps via futimesat.  Instead, use an
66766         additional witness macro to avoid BSD bug.
66767         Reported by Jim Meyering.
66769 2009-11-17  Eric Blake  <ebb9@byu.net>
66771         usleep: use it to simplify tests
66772         * modules/stat-time-tests (Depends-on): Add usleep.
66773         (configure.ac): Drop usleep check.
66774         * modules/chown-tests (Depends-on, configure.ac): Likewise.
66775         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
66776         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
66777         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
66778         * modules/openat-tests (Depends-on, configure.ac): Likewise.
66779         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
66780         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
66781         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
66782         Likewise.
66783         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
66784         * tests/test-lchown.h (nap): Likewise.
66785         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
66786         * tests/test-stat-time.c (nap): Likewise.
66787         * tests/test-utimens-common.h (nap): Update comments.
66789         usleep: new module
66790         * modules/usleep: New file.
66791         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
66792         * lib/usleep.c (usleep): Likewise.
66793         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
66794         * modules/unistd (Makefile.am): Substitute witnesses.
66795         * lib/unistd.in.h (usleep): Add declaration.
66796         * doc/pastposix-functions/usleep.texi (usleep): Document this.
66797         * MODULES.html.sh (Date and time): Likewise.
66798         * modules/usleep-tests (Depends-on): New test.
66799         * tests/test-usleep.c: New file.
66801         chown: work around OpenBSD bug
66802         * lib/chown.c (rpl_chown): Work around the bug.
66803         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
66804         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
66805         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
66806         * modules/chown (Depends-on): Add stdbool.
66807         * modules/lchown (Depends-on): Likewise.
66808         * doc/posix-functions/chown.texi (chown): Document the bug.
66809         * doc/posix-functions/lchown.texi (lchown): Likewise.
66810         * tests/test-lchown.h (test_chown): Relax test.
66812         mkstemp: avoid conflict with C++ keyword template
66813         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
66814         * lib/mkostemp.c (mkostemp): Likewise.
66815         * lib/mkostemps.c (mkostemps): Likewise.
66816         * lib/mkstemp.c (mkstemp): Likewise.
66817         * lib/mkstemps.c (mkstemps): Likewise.
66819         xalloc-die-tests: optimize
66820         * tests/test-xalloc-die.sh: Reduce number of processes.
66822 2009-11-17  Simon Josefsson  <simon@josefsson.org>
66824         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
66825         patch from ludo@gnu.org (Ludovic Courtès).
66827 2009-11-17  Jim Meyering  <meyering@redhat.com>
66829         version-etc: use proper license string
66830         * modules/version-etc (License): Use LGPL, not LGPLv3+.
66831         * modules/version-etc-fsf: Likewise.
66833 2009-11-17  Simon Josefsson  <simon@josefsson.org>
66835         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
66836         printed to stdout.  Deal with EOL differences.
66838 2009-11-17  Eric Blake  <ebb9@byu.net>
66840         unsetenv: work around Solaris bug
66841         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
66842         * lib/unsetenv.c (rpl_unsetenv): Work around it.
66843         Reported by Jim Meyering.
66845         vasnprintf: avoid compiler warnings
66846         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
66847         variables.
66848         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
66850 2009-11-17  Simon Josefsson  <simon@josefsson.org>
66852         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
66853         settings since xalloc-die is no longer the self test,
66854         xalloc-die.sh is.
66856 2009-11-17  Jim Meyering  <meyering@redhat.com>
66858         test-xalloc-die.sh: make the code agree with the commit log
66859         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
66860         at the end, just in case you happen to have a test-xalloc-die
66861         program in some other PATH directory.
66863         test-xalloc-die.sh: fix a portability bug
66864         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
66865         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
66866         Otherwise, argv[0] (as often seen in diagnostics) would be too
66867         system-dependent, sometimes with, and sometimes without the leading "./".
66869         version-etc-fsf: relax license to LGPLv3+
66870         * modules/version-etc-fsf (License): Relax license.
66872 2009-11-16  Eric Blake  <ebb9@byu.net>
66874         xalloc-die-tests: avoid printing null pointer
66875         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
66876         shell script.
66877         * tests/test-xalloc-die.c (program_name): Declare.
66878         * tests/test-xalloc-die.sh (tmpfiles): New file.
66880         setenv, unsetenv: work around various bugs
66881         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
66882         (setenv) [HAVE_SETENV]: Work around bugs.
66883         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
66884         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
66885         for bugs.
66886         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
66887         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
66888         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
66889         * modules/stdlib (Makefile.am): Update substitutions.
66890         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
66891         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
66892         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
66893         * modules/setenv-tests: New test.
66894         * modules/unsetenv-tests: Likewise.
66895         * tests/test-setenv.c: New file.
66896         * tests/test-unsetenv.c: Likewise.
66898 2009-11-16  Jim Meyering  <meyering@redhat.com>
66900         version-etc: relax license to LGPLv3+
66901         * modules/version-etc (License): Relax license.
66903         better AC_REQUIRE expanded-before-required-warning avoidance
66904         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
66905         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
66906         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
66907         which is no longer needed.
66909 2009-11-16  Eric Blake  <ebb9@byu.net>
66911         test-freading: clean up temporary file
66912         * tests/test-freading.c (main): Remove file on success, and use
66913         ASSERT more liberally.
66914         Reported by Jim Meyering.
66916 2009-11-16  Jim Meyering  <meyering@redhat.com>
66918         avoid new AC_REQUIRE expanded-before-required warnings
66919         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
66920         merely using it.
66921         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
66922         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
66924 2009-11-15  Simon Josefsson  <simon@josefsson.org>
66926         * tests/test-xalloc-die.c: New file.
66927         * modules/xalloc-die-tests: New file.
66928         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
66929         XFAIL_TESTS so it can be appended by modules.
66931 2009-11-15  Simon Josefsson  <simon@josefsson.org>
66933         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
66934         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
66936 2009-11-14  Eric Blake  <ebb9@byu.net>
66938         fnmatch: avoid compiler warning
66939         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
66940         to silence compiler warning about mismatch signedness in ?:.
66941         Reported by Robert Millan.
66943         intprops: add double-inclusion guard
66944         * lib/intprops.h: Allow idempotent includes.
66945         Suggested by Bruce Korb.
66947         openat: detect Solaris fchownat bug
66948         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
66949         penalizing glibc chownat when only lchownat is broken.
66950         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
66951         trailing slash bugs.
66952         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
66953         * modules/openat-tests (Files): Include more files.
66954         (Depends-on): Add mgetgroups, sleep, stat-time.
66955         (configure.ac): Add additional checks.
66956         (Makefile.am): Build new test.
66957         * tests/test-fchownat.c: New file.
66959         lchown: detect Solaris and FreeBSD bug
66960         * lib/lchown.c (rpl_lchown): Work around bug.
66961         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
66962         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
66963         * modules/unistd (Makefile.am): Populate it.
66964         * lib/unistd.in.h (lchown): Update declaration.
66965         * doc/posix-functions/lchown.texi (lchown): Document the bug.
66966         * modules/lchown-tests: New file.
66967         * tests/test-lchown.h (test_lchown): Likewise.
66968         * tests/test-lchown.c (main): Likewise.
66970         chown: detect Solaris and FreeBSD bug
66971         * lib/chown.c (rpl_chown): Work around bug.
66972         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
66973         (gl_PREREQ_CHOWN): Delete.
66974         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
66975         * modules/unistd (Makefile.am): Populate it.
66976         * lib/unistd.in.h (chown): Update declaration.
66977         * lib/lchown.c (chown): Update client.
66978         * modules/lchown (Depends-on): Add lstat.
66979         * doc/posix-functions/chown.texi (chown): Document the bug.
66980         * doc/posix-functions/getgroups.texi (getgroups): Document
66981         getgroups pitfall.
66982         * modules/chown-tests: New file.
66983         * tests/test-chown.h (test_chown): Likewise.
66984         * tests/test-chown.c (main): Likewise.
66986 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
66988         gnulib-tool: correctly detect absence of m4 directories
66989         * gnulib-tool: Avoid extra newline on data passed to wc -l.
66991 2009-11-14  Jim Meyering  <meyering@redhat.com>
66993         maint.mk: Prohibit inclusion of "xalloc.h" without use.
66994         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
66996 2009-11-14  John W. Eaton  <jwe@gnu.org>
66998         strftime.h: wrap function declaration in extern "C" block
66999         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
67001 2009-11-13  Eric Blake  <ebb9@byu.net>
67003         getgroups: avoid compiler warning
67004         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
67006         getgroups: work around FreeBSD bug
67007         * lib/getgroups.c (rpl_getgroups): Work around the bug.
67008         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
67009         * doc/posix-functions/getgroups.texi (getgroups): Document it.
67010         * tests/test-getgroups.c (main): Fix buffer overrun.
67012         getgroups: avoid compilation failure
67013         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
67014         * modules/getgroups (Depends-on): Add stdint.
67016 2009-11-13  Jim Meyering  <meyering@redhat.com>
67018         test-getgroups: avoid compilation failure
67019         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
67021 2009-11-13  Eric Blake  <ebb9@byu.net>
67023         mgetgroups: new module, taken from coreutils
67024         * modules/mgetgroups: New file.
67025         * lib/mgetgroups.h: Likewise.
67026         * lib/mgetgroups.c (mgetgroups): Likewise.
67027         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
67028         * MODULES.html.sh (Users and groups): Mention it.
67030         getgroups: don't expose GETGROUPS_T to user
67031         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
67032         an element at a time if GETGROUPS_T is wrong size.
67033         * lib/getugroups.h (getugroups): Change signature.
67034         * lib/unistd.in.h (getgroups): Likewise.
67035         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
67036         signature needs fixing.
67037         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
67038         AC_TYPE_GETGROUPS.
67039         * modules/group-member (Depends-on): Add getgroups.
67040         * lib/group-member.c (group_info, get_group_info): Use gid_t.
67041         (group_member): Rely on getgroups replacement.
67042         * lib/getugroups.c (getugroups): Use gid_t.
67043         * tests/test-getgroups.c (main): Likewise.
67044         * NEWS: Mention the signature change.
67045         * doc/posix-functions/getgroups.texi (getgroups): Mention the
67046         problem with signature.
67047         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
67048         GETGROUPS_T is still useful for setgroups.
67050         getgroups, getugroups: provide stubs for mingw
67051         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
67052         * lib/getugroups.c (getugroups): Likewise.
67053         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
67054         function.  Modernize replacement scheme.
67055         (gl_PREREQ_GETGROUPS): Delete.
67056         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
67057         * modules/getgroups (configure.ac): Declare witness.
67058         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
67059         * modules/unistd (Depends-on): Substitute witness.
67060         * lib/unistd.in.h (getgroups): Declare replacement.
67062         getgroups: avoid calling exit
67063         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
67064         drop xalloc.
67065         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
67066         dependencies.
67067         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
67068         exiting, in the rare case of malloc failure.
67070         getgroups: fix logic error
67071         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
67072         has more than 20 groups.
67073         * modules/getgroups-tests: New test.
67074         * tests/test-getgroups.c: New file.
67076 2009-11-13  Simon Josefsson  <simon@josefsson.org>
67078         * tests/test-base64.c: Improve.
67080 2009-11-13  Simon Josefsson  <simon@josefsson.org>
67082         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
67083         Blake <ebb9@byu.net>.
67085 2009-11-13  Simon Josefsson  <simon@josefsson.org>
67087         * tests/test-xvasprintf.c: Add %s%s related checks.
67089 2009-11-12  Eric Blake  <ebb9@byu.net>
67091         version-etc: match standards.texi style
67092         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
67093         and use <> only for URLs.
67095 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
67097         fts: do not fail on a submount during traversal
67098         * lib/fts.c (fts_build): Read the stat info again after opening
67099         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
67100         Original report at http://bugzilla.redhat.com/501848.
67102 2009-11-12  Jim Meyering  <meyering@redhat.com>
67104         bootstrap: sync from coreutils
67105         * build-aux/bootstrap (bootstrap_epilogue): New function.
67106         Use git_modules_config in one more place.  This make bootstrap's
67107         --gnulib-srcdir option more useful for testing.
67109         bootstrap: generalize autoheader check
67110         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
67111         AC_CONFIG_HEADERS.
67113 2009-11-11  Eric Blake  <ebb9@byu.net>
67115         mkfifoat: use new modules for Solaris and BSD bugs
67116         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
67117         * lib/mkfifoat.c (mknodat): Split...
67118         * lib/mknodat.c (mknodat): ...into new file.
67119         * modules/mkfifoat (Files): Ship new file.
67120         (Depends-on): Add mkfifo, mknod.
67121         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
67122         (Depends-on): Add symlink.
67123         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
67124         redundant with test_mkfifo.h.
67125         (do_mkfifoat, do_mknodat): New helpers.
67127         mknod: new module
67128         * modules/mknod: New file.
67129         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
67130         * lib/mknod.c (mknod): Likewise.
67131         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
67132         defaults.
67133         * modules/sys_stat (Makefile.am): Substitute them.
67134         * lib/sys_stat.in.h (mknod): Declare replacement.
67135         * MODULES.html.sh (Support for systems lacking POSIX:2008):
67136         Document it.
67137         * doc/posix-functions/mknod.texi (mknod): Likewise.
67138         * modules/mknod-tests: New test.
67139         * tests/test-mknod.c: Likewise.
67141         mkfifo: new module
67142         * modules/mkfifo: New file.
67143         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
67144         * lib/mkfifo.c (mkfifo): Likewise.
67145         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
67146         defaults.
67147         * modules/sys_stat (Makefile.am): Substitute them.
67148         * lib/sys_stat.in.h (mkfifo): Declare replacement.
67149         * MODULES.html.sh (Support for systems lacking POSIX:2008):
67150         Document it.
67151         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
67152         * modules/mkfifo-tests: New test.
67153         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
67154         from test-mkfifoat.c.
67155         * tests/test-mkfifo.c: New file.
67157         readlink: detect FreeBSD bug
67158         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
67159         slash on symlink.
67160         * doc/posix-functions/readlink.texi (readlink): Document the bug.
67161         * tests/test-readlink.h (test_readlink): Enhance test.
67163         symlink: detect FreeBSD bug
67164         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
67165         slash on symlink.
67166         * doc/posix-functions/symlink.texi (symlink): Document the bug.
67167         * tests/test-symlink.h (test_symlink): Enhance test.
67169 2009-11-10  Eric Blake  <ebb9@byu.net>
67171         link: detect FreeBSD bug
67172         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
67173         symlink.
67174         * doc/posix-functions/link.texi (link): Document the bug.
67175         * tests/test-link.h (test_link): Enhance test.
67176         * tests/test-linkat.c (main): Update caller.
67178         unlink, remove: detect FreeBSD bug
67179         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
67180         slash on symlink.
67181         * doc/posix-functions/unlink.texi (unlink): Document the bug.
67182         * doc/posix-functions/remove.texi (remove): Likewise.
67183         * tests/test-unlink.h (test_unlink): Enhance test.
67184         * tests/test-remove.c (main): Likewise.
67186 2009-11-09  Eric Blake  <ebb9@byu.net>
67188         rename: detect FreeBSD bug
67189         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
67190         slash on symlink.
67191         * modules/renameat-tests (Depends-on): Add filenamecat.
67192         * tests/test-rename.h (test_rename): Allow one more errno.
67193         * tests/test-renameat.c (main): Likewise.
67194         * doc/posix-functions/rename.texi (rename): Document the bug.
67196         open: detect FreeBSD bug
67197         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
67198         symlink.
67199         * doc/posix-functions/open.texi (open): Document the bug.
67200         * doc/posix-functions/utimes.texi (utimes): Likewise.
67201         * tests/test-open.h (test_open): Add parameters, and test symlink
67202         handling.
67203         * tests/test-open.c (main): Adjust caller.
67204         * tests/test-fcntl-safer.c (main): Likewise.
67205         * modules/open-tests (Depends-on): Add stdbool, symlink.
67206         * modules/fcntl-safer-tests (Depends-on): Likewise.
67207         * tests/test-openat.c (main): Add test-open tests.
67209         stat: detect FreeBSD bug
67210         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
67211         symlink.
67212         * doc/posix-functions/stat.texi (stat): Document the bug.
67213         * tests/test-stat.h (test_stat_func): Add argument.
67214         * tests/test-stat.c (main): Adjust caller.
67215         * tests/test-fstatat.c (main): Likewise.
67216         * modules/stat-tests (Depends-on): Add stdbool, symlink.
67217         Reported by Jim Meyering.
67219 2009-11-09  James Youngman  <jay@gnu.org>
67221         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
67222         * lib/strftime.c: Correct placement of #include "ignore-value.h".
67224 2009-11-08  Jim Meyering  <meyering@redhat.com>
67226         utimens: remove invalid futimesat call
67227         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
67228         It used the file descriptor of the target file as the DIR_FD
67229         parameter and NULL as the file name.  That caused failure with
67230         errno == EFAULT on FreeBSD-8.0-rc2
67232 2009-11-07  Eric Blake  <ebb9@byu.net>
67234         fflush, freadseek: use fseeko, not fseek
67235         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
67236         (clear_ungetc_buffer): Avoid potential problems on large files.
67237         * lib/freadseek.c (freadseek): Likewise.
67238         * modules/freadseek (Depends-on): Add fseeko.
67239         * modules/fseek (configure.ac): Set a witness.
67240         * tests/test-fflush.c (main): Use fseeko.
67241         * tests/test-fpurge.c (fseek): Disable link warning.
67242         * tests/test-freadable.c (fseek): Likewise.
67243         * tests/test-freading.c (fseek): Likewise.
67244         * tests/test-fseeko.c (fseek): Likewise.
67245         * tests/test-ftell.c (fseek): Likewise.
67246         * tests/test-ftello.c (fseek): Likewise.
67247         * tests/test-fwritable.c (fseek): Likewise.
67248         * tests/test-fwriting.c (fseek): Likewise.
67250 2009-11-06  Simon Josefsson  <simon@josefsson.org>
67252         * modules/memchr (Depends-on): Drop getpagesize dependency.
67254 2009-11-06  Simon Josefsson  <simon@josefsson.org>
67256         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
67257         Reported by Ludovic Courtès.
67258         * build-aux/pmccabe2html: Improve example usage.
67259         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
67261 2009-11-06  Jim Meyering  <meyering@redhat.com>
67263         do-release-commit-and-tag: New module.
67264         Automate the release-commit and tag process.
67265         * build-aux/do-release-commit-and-tag: New script, from coreutils.
67266         * modules/do-release-commit-and-tag: New file.
67267         * MODULES.html.sh (Support for maintaining and releasing): Add it.
67269 2009-11-06  Simon Josefsson  <simon@josefsson.org>
67271         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
67272         because test-select.c uses inet_pton.
67274 2009-11-06  Simon Josefsson  <simon@josefsson.org>
67276         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
67277         GETADDRINFO_LIB.  Bump serial number.
67278         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
67279         Suggested by Eric Blake <ebb9@byu.net>.
67281 2009-11-05  Eric Blake  <ebb9@byu.net>
67283         strtod: detect darwin bug
67284         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
67285         Reported by Leo Davis.
67287         freopen-safer: new module
67288         * modules/freopen-safer: New module.
67289         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
67290         * lib/freopen-safer.c (freopen_safer): New file.
67291         * lib/stdio-safer.h (freopen_safer): New declaration.
67292         * lib/stdio--.h (freopen): New override.
67293         * MODULES.html.sh (File stream based Input/Output): Mention it.
67294         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
67295         freopen-safer module.
67296         * doc/posix-functions/stderr.texi (stderr): Likewise.
67297         * doc/posix-functions/stdin.texi (stdin): Likewise.
67298         * doc/posix-functions/stdout.texi (stdout): Likewise.
67299         * modules/freopen-safer-tests: New test.
67300         * tests/test-reopen-safer.c: New file.
67302 2009-11-05  Jim Meyering  <meyering@redhat.com>
67304         maint.mk: Prohibit inclusion of "close-stream.h" without use.
67305         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
67307 2009-11-05  Simon Josefsson  <simon@josefsson.org>
67309         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
67311 2009-11-05  Simon Josefsson  <simon@josefsson.org>
67313         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
67315 2009-11-05  Simon Josefsson  <simon@josefsson.org>
67317         Fix link error.
67318         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
67319         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
67321 2009-11-05  Simon Josefsson  <simon@josefsson.org>
67323         * tests/test-func.c: Also test value of __func__.
67325 2009-11-05  Simon Josefsson  <simon@josefsson.org>
67327         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
67328         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
67330 2009-11-05  Bruno Haible  <bruno@clisp.org>
67332         Fix link error.
67333         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
67334         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
67335         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
67337 2009-11-05  Bruno Haible  <bruno@clisp.org>
67339         Tests for module 'inet_pton'.
67340         * modules/inet_pton-tests: New file.
67341         * tests/test-inet_pton.c: New file.
67343 2009-11-05  Bruno Haible  <bruno@clisp.org>
67345         Tests for module 'inet_ntop'.
67346         * modules/inet_ntop-tests: New file.
67347         * tests/test-inet_ntop.c: New file.
67349 2009-11-04  Eric Blake  <ebb9@byu.net>
67351         stdlib-safer: wrap all mkstemp variants
67352         * modules/mkostemp (configure.ac): Set witness.
67353         * modules/mkostemps (configure.ac): Likewise.
67354         * modules/mkstemps (configure.ac): Likewise.
67355         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
67356         (mkstemps_safer): Wrap more functions.
67357         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
67358         wrapping.
67359         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
67360         (mkstemps_safer): Implement the wrappers.
67362         mkstemps, mkostemps: new modules
67363         * modules/mkostemps: New module.
67364         * modules/mkstemps: Likewise.
67365         * lib/mkostemps.c (mkostemps): New file.
67366         * lib/mkstemps.c (mkstemps): Likewise.
67367         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
67368         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
67369         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
67370         * modules/stdlib (Makefile.am): Substitute them.
67371         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
67372         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
67373         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
67374         * doc/gnulib.texi (Glibc stdlib.h): Include them.
67375         * MODULES.html.sh (File system functions): Mention them.
67377         tempname: resync from glibc
67378         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
67379         same values for __GT_FILE as glibc.  Abort even when assertions
67380         are disabled.
67381         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
67382         match its value otherwise.  Allow idempotent inclusion.
67383         * lib/mkdtemp.c (mkdtemp): Adjust caller.
67384         * lib/mkostemp.c (mkostemp): Likewise.
67385         * lib/mkstemp.c (mkstemp): Likewise.
67386         * lib/tmpfile.c (tmpfile): Likewise.
67387         * NEWS: Document this.
67389         utimens: fix use of futimens on older Linux
67390         * lib/utimens.c (fdutimens): Use updated, rather than original,
67391         timespec to avoid bug in older Linux kernel.
67392         Reported by Simon Josefsson.
67394 2009-11-04  Bruno Haible  <bruno@clisp.org>
67396         Make num_processors more flexible and consistent.
67397         * lib/nproc.h (enum nproc_query): New type.
67398         (num_processors): Add a 'query' argument.
67399         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
67400         (num_processors): Add a 'query' argument. Test the value of the
67401         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
67402         mingw, count the number of CPUs available for the current process.
67403         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
67404         Check for sched_getaffinity and sched_getaffinity_np.
67405         * modules/nproc (Depends-on): Add c-ctype, extensions.
67406         * NEWS: Mention the change.
67408 2009-11-03  Bruno Haible  <bruno@clisp.org>
67410         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
67412 2009-11-03  Jim Meyering  <meyering@redhat.com>
67414         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
67415         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
67416         if it is defined.
67418 2009-11-02  Eric Blake  <ebb9@byu.net>
67420         mktime, timegm: share common declaration
67421         * lib/mktime-internal.h: New file.
67422         * lib/mktime.c: Use it rather than open-coding a declaration.
67423         * lib/timegm.c: Likewise.
67424         * modules/mktime (Files): Ship it.
67425         * modules/timegm (Files): Likewise.
67426         Suggested by Bruno Haible.
67428         test-update-copyright: update test to match script changes
67429         * tests/test-update-copyright.sh: Avoid hard-coding perl
67430         location.  Don't update *.bak created by earlier runs.
67432 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
67433             Simon Josefsson  <simon@josefsson.org>
67434             Bruno Haible  <bruno@clisp.org>
67436         Fix link error on Solaris 8.
67437         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
67438         also in libnsl. Define also INET_PTON_LIB.
67439         * modules/inet_pton (Link): New section.
67441 2009-11-02  Simon Josefsson  <simon@josefsson.org>
67442             Bruno Haible  <bruno@clisp.org>
67444         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
67445         * modules/inet_ntop (Link): New section.
67446         Reported by Boyan Kasarov <bkasarov@gmail.com>.
67448 2009-11-02  Eric Blake  <ebb9@byu.net>
67450         maint: avoid compiler warnings in m4 macros
67451         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
67452         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
67454 2009-11-02  Simon Josefsson  <simon@josefsson.org>
67456         * m4/pmccabe2html.m4: Remove file.
67457         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
67458         function.  Change maintainer.
67459         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
67460         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
67461         Courtès).
67463 2009-10-31  Eric Blake  <ebb9@byu.net>
67465         fseeko: fix m4 regression
67466         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
67467         regression from 2009-10-27.
67468         Reported by Ralf Wildenhues.
67470 2009-10-31  Jim Meyering  <meyering@redhat.com>
67472         inttostr: aesthetics and improved (compile-time) safety
67473         Define inttype_is_signed rather than inttype_is_unsigned,
67474         since the sole use is via "#if inttype_is_signed".
67475         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
67476         inttype_is_unsigned.
67477         * lib/offtostr.c (inttype_is_signed): Likewise.
67478         * lib/uinttostr.c (inttype_is_signed): Likewise.
67479         * lib/umaxtostr.c (inttype_is_signed): Likewise.
67480         * lib/inttostr.c (inttostr): Use verify to cross-check the
67481         inttype_is_signed value and the signedness of the actual type.
67482         * modules/inttostr (Depends-on): Add verify.
67484 2009-10-30  Eric Blake  <ebb9@byu.net>
67486         build: avoid compiler warnings
67487         * lib/fchmodat.c (lchmod): Mark unused variables.
67488         * lib/getopt.c (_getopt_initialize): Likewise.
67489         * lib/mktime.c (__mktime_internal): Provide prototype.
67490         * lib/inttostr.c (inttostr): Avoid compiler warning even with
67491         older gcc that do not understand #pragma GCC diagnostic.
67492         * lib/uinttostr.c (inttype_is_unsigned): Define.
67493         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
67495 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
67497         stat: fix compilation on AIX
67498         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
67499         only see struct stat64.
67501 2009-10-30  Eric Blake  <ebb9@byu.net>
67503         exclude: make more robust
67504         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
67505         rather than masking a coding bug.
67506         Suggested by Bruno Haible.
67508 2009-10-30  Jim Meyering  <meyering@redhat.com>
67510         perl scripts: remove #!/usr/bin/perl in favor of more portable...
67511         Rather than putting #!/usr/bin/perl on the first line,
67512         start with a variant of what's recommended by "man perlrun" that
67513         invokes the first "perl" program from your shell's search path.
67514         * build-aux/gitlog-to-changelog: Replace #!... as above.
67515         Add a "Local Variables" perl mode setting.
67516         Prompted by a patch from Ludovic Courtès.
67517         Improved by Eric Blake.
67518         * build-aux/useless-if-before-free: Likewise.
67519         * build-aux/announce-gen: Likewise.
67520         * build-aux/update-copyright: Likewise.
67522 2009-10-29  Eric Blake  <ebb9@byu.net>
67524         filenamecat-lgpl: adjust clients
67525         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
67526         filenamecat.
67527         * modules/renameat (Depends-on): Likewise.
67529         filenamecat: split into filenamecat-lgpl
67530         * modules/filenamecat-lgpl: New module.
67531         * modules/filenamecat (Files): Move library-safe files into
67532         filenamecat-lgpl.
67533         (Depends-on): Add filenamecat-lgpl.
67534         (configure.ac): Declare witness.
67535         * lib/filenamecat.h (file_name_concat): Only declare when using
67536         GPL module.
67537         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
67538         Move...
67539         * lib/filenamecat-lgpl.c: ...into new file.
67540         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
67541         (gl_FILE_NAME_CONCAT): Use it.
67542         * MODULES.html.sh (File system functions): Mention new module.
67544         argp: avoid memory leak
67545         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
67546         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
67547         base_name, since the latter malloc()s and can call exit().
67548         Leak introduced 2006-07-03.
67550         dirname-lgpl: adjust clients that don't need full dirname
67551         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
67552         * modules/filenamecat (Depends-on): Likewise.
67553         * modules/linkat (Depends-on): Likewise.
67554         * modules/mkancesdirs (Depends-on): Likewise.
67555         * modules/mkdir (Depends-on): Likewise.
67556         * modules/openat (Depends-on): Likewise.
67557         * modules/savewd (Depends-on): Likewise.
67558         * modules/rename (Depends-on): Likewise.
67559         (License): Relax license.
67560         * modules/mkdir-tests (Depends-on): Drop progname.
67561         (Makefile.am): Delete unneeded LDADD.
67562         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
67564         dirname: split into dirname-lgpl
67565         * modules/dirname-lgpl: New module.
67566         * modules/dirname (Files): Move library-safe files into
67567         dirname-lgpl.
67568         (Depends-on): Add dirname-lgpl.
67569         (configure.ac): Declare witness.
67570         * modules/double-slash-root (License): Relax license.
67571         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
67572         module.
67573         * lib/dirname.c (dir_len, mdir_name): Move...
67574         * lib/dirname-lgpl.c: ...into new file.
67575         * lib/basename.c (last_component, base_len): Move...
67576         * lib/basename-lgpl.c: ...into new file.
67577         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
67578         (gl_DIRNAME): Use it.
67579         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
67580         Mention new module.
67581         * modules/dirname-tests (Depends-on): Add progname.
67582         * tests/test-dirname.c (program_name): Delete.
67584         mkdir: make safe for libraries
67585         * modules/mkdir (Depends-on): Drop xalloc.
67586         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
67587         exit.
67589         tests: avoid some compiler warnings
67590         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
67591         literals.
67592         * tests/test-memchr.c (main): Avoid type mismatch.
67593         * tests/test-arpa_inet.c (main): Avoid unused parameters.
67594         * tests/test-base64.c (main): Likewise.
67595         * tests/test-getdelim.c (main): Likewise.
67596         * tests/test-gethostname.c (main): Likewise.
67597         * tests/test-getline.c (main): Likewise.
67598         * tests/test-netinet_in.c (main): Likewise.
67599         * tests/test-select.c (open_server_socket, main): Likewise.
67600         * tests/test-select-stdin.c (main): Likewise.
67601         * tests/test-sockets.c (main): Likewise.
67602         * tests/test-strsignal.c (main): Likewise.
67603         * tests/test-sys_select.c (main): Likewise.
67604         * tests/test-sys_socket.c (main): Likewise.
67605         * tests/test-u64.c (main): Likewise.
67606         * tests/test-xfprintf-posix.c (main): Likewise.
67607         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
67609         sockets: avoid compiler warning
67610         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
67612         maint: detect usage(1) and other suspicious exits
67613         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
67615 2009-10-29  Jim Meyering  <meyering@redhat.com>
67617         timespec: long-to-int truncation could make timespec_cmp malfunction
67618         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
67619         a multiple of 2^32 nanoseconds as no difference.
67621 2009-10-28  Jim Meyering  <meyering@redhat.com>
67623         fprintftime: wrap macro code argument in "do {...} while(0)"
67624         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
67625         cpy macro must be a statement that can be followed by a semicolon.
67626         Now that the else clause contains a comment and is hence longer
67627         than one line, I require curly braces.  That in turn requires
67628         that we wrap this code block in the standard do...while(0).
67630         fprintftime: remove stray semicolon from previous change
67631         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
67633         fprintftime: avoid a warning about ignored fwrite return value
67634         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
67635         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
67636         that is unsafe.
67637         * modules/fprintftime (Depends-on): Add ignore-value.
67639         exclude: avoid an unwarranted warning
67640         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
67642 2009-10-27  Eric Blake  <ebb9@byu.net>
67644         fseek: avoid compilation failure when fflush is replaced
67645         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
67646         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
67647         module is in use.
67648         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
67649         module is not in use; since REPLACE_FSEEK worked otherwise.
67650         (GNULIB_FTELLO): Likewise for ftell.
67651         Reported by Ian Beckwith and others.
67653 2009-10-27  Bruno Haible  <bruno@clisp.org>
67655         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
67656         Reported by Jim Meyering.
67658 2009-10-27  Jim Meyering  <jim@meyering.net>
67659             Bruno Haible  <bruno@clisp.org>
67661         Avoid warning despite dropping the return value of fwrite.
67662         * lib/unicodeio.c: Include ignore-value.h.
67663         (fwrite_success_callback): Explicitly ignore fwrite's return value.
67664         * modules/unicodeio (Depends-on): Add ignore-value.
67666 2009-10-26  Eric Blake  <ebb9@byu.net>
67668         areadlinkat: fix fallback path
67669         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
67670         pointer and zero.
67672 2009-10-22  Pádraig Brady  <P@draigBrady.com>
67674         Use a better IO block size for modern systems
67675         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
67676         * lib/md2.c: Likewise.
67677         * lib/md4.c: Likewise.
67678         * lib/md5.c: Likewise.
67679         * lib/sha1.c: Likewise.
67680         * lib/sha256.c: Likewise.
67681         * lib/sha512.c: Likewise.
67683 2009-10-22  Eric Blake  <ebb9@byu.net>
67685         tests: avoid several compiler warnings
67686         * tests/test-getcwd.c (main): Avoid buffer underflow.
67687         * tests/test-getdate.c (main): String literals are not safe with
67688         putenv, so use setenv.  Declare unused argument.
67689         * modules/getdate-tests (Depends-on): Add setenv.
67690         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
67691         problems with string literals in char *.
67692         * tests/test-hash.c (main): Avoid shadowing declaration.
67693         (insert_new): Treat string literals as char const *.
67694         * tests/test-getopt.h (test_getopt): Likewise.
67695         (getopt_loop): Alter types to minimize casting elsewhere.
67696         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
67697         (test_getopt_long_posix): Likewise.
67698         (do_getopt_long): Add wrapper to minimize casting.
67699         * tests/test-atexit.c (clear_temp_file): Use void.
67700         * tests/test-areadlink-with-size.c (main): Declare unused
67701         arguments.
67702         * tests/test-areadlink.c (main): Likewise.
67703         * tests/test-areadlinkat-with-size.c (main): Likewise.
67704         * tests/test-areadlinkat.c (main): Likewise.
67705         * tests/test-canonicalize-lgpl.c (main): Likewise.
67706         * tests/test-canonicalize.c (main): Likewise.
67707         * tests/test-dirent-safer.c (main): Likewise.
67708         * tests/test-dirname.c (main): Likewise.
67709         * tests/test-dup2.c (main): Likewise.
67710         * tests/test-fchdir.c (main): Likewise.
67711         * tests/test-fcntl-h.c (main): Likewise.
67712         * tests/test-fcntl-safer.c (main): Likewise.
67713         * tests/test-fdopendir.c (main): Likewise.
67714         * tests/test-fdutimensat.c (main): Likewise.
67715         * tests/test-fflush.c (main): Likewise.
67716         * tests/test-filenamecat.c (main): Likewise.
67717         * tests/test-filevercmp.c (main): Likewise.
67718         * tests/test-fopen-safer.c (main): Likewise.
67719         * tests/test-fopen.c (main): Likewise.
67720         * tests/test-fpending.c (main): Likewise.
67721         * tests/test-fpurge.c (main): Likewise.
67722         * tests/test-freading.c (main): Likewise.
67723         * tests/test-fstatat.c (main): Likewise.
67724         * tests/test-fsync.c (main): Likewise.
67725         * tests/test-futimens.c (main): Likewise.
67726         * tests/test-getndelim2.c (main): Likewise.
67727         * tests/test-gettimeofday.c (main): Likewise.
67728         * tests/test-getopt.c (main): Likewise.
67729         * tests/test-i-ring.c (main): Likewise.
67730         * tests/test-inttypes.c (main): Likewise.
67731         * tests/test-link.c (main): Likewise.
67732         * tests/test-lstat.c (main): Likewise.
67733         * tests/test-math.c (main): Likewise.
67734         * tests/test-md5.c (main): Likewise.
67735         * tests/test-memchr2.c (main): Likewise.
67736         * tests/test-memrchr.c (main): Likewise.
67737         * tests/test-mkdir.c (main): Likewise.
67738         * tests/test-mkdirat.c (main): Likewise.
67739         * tests/test-mkfifoat.c (main): Likewise.
67740         * tests/test-open.c (main): Likewise.
67741         * tests/test-openat-safer.c (main): Likewise.
67742         * tests/test-openat.c (main): Likewise.
67743         * tests/test-quotearg.c (main): Likewise.
67744         * tests/test-rawmemchr.c (main): Likewise.
67745         * tests/test-readlink.c (main): Likewise.
67746         * tests/test-remove.c (main): Likewise.
67747         * tests/test-rename.c (main): Likewise.
67748         * tests/test-renameat.c (main): Likewise.
67749         * tests/test-rmdir.c (main): Likewise.
67750         * tests/test-sha1.c (main): Likewise.
67751         * tests/test-signal.c (main): Likewise.
67752         * tests/test-sigaction.c (main): Likewise.
67753         * tests/test-stat.c (main): Likewise.
67754         * tests/test-stat-time.c (main): Likewise.
67755         * tests/test-stddef.c (main): Likewise.
67756         * tests/test-stdint.c (main): Likewise.
67757         * tests/test-stdio.c (main): Likewise.
67758         * tests/test-stdlib.c (main): Likewise.
67759         * tests/test-strchrnul.c (main): Likewise.
67760         * tests/test-strerror.c (main): Likewise.
67761         * tests/test-string.c (main): Likewise.
67762         * tests/test-strtod.c (main): Likewise.
67763         * tests/test-strverscmp.c (main): Likewise.
67764         * tests/test-symlink.c (main): Likewise.
67765         * tests/test-symlinkat.c (main): Likewise.
67766         * tests/test-sys_stat.c (main): Likewise.
67767         * tests/test-sys_time.c (main): Likewise.
67768         * tests/test-time.c (main): Likewise.
67769         * tests/test-unistd.c (main): Likewise.
67770         * tests/test-unlink.c (main): Likewise.
67771         * tests/test-unlinkat.c (main): Likewise.
67772         * tests/test-utimens.c (main): Likewise.
67773         * tests/test-utimensat.c (main): Likewise.
67774         * tests/test-version-etc.c (main): Likewise.
67775         * tests/test-wchar.c (main): Likewise.
67776         * tests/test-wctype.c (main): Likewise.
67777         * tests/test-xprintf-posix.c (main): Likewise.
67778         * tests/test-posixtm.c (main): Likewise.
67779         (STREQ): Delete unused macro.
67780         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
67781         shadowed variables.
67782         * tests/test-memchr.c (main): Likewise.
67784 2009-10-21  Eric Blake  <ebb9@byu.net>
67786         areadlinkat: avoid failure on older glibc
67787         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
67788         rather than mis-comparing 0 against FUNC_RESULT of char*.
67790 2009-10-21  Bruno Haible  <bruno@clisp.org>
67792         * modules/stpncpy (License): Relicense under LGPLv2+.
67793         Reported by David Lutterkort <lutter@redhat.com>.
67795 2009-10-20  Eric Blake  <ebb9@byu.net>
67797         utimensat: work around Solaris 9 bug
67798         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
67799         has trailing slash bugs.
67800         * tests/test-lutimens.h (test_lutimens): Enhance test.
67801         * tests/test-utimens.h (test_utimens): Likewise.
67802         * doc/posix-functions/utime.texi (utime): Enhance documentation.
67803         * doc/posix-functions/utimes.texi (utimes): Likewise.
67804         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
67805         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
67806         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
67807         * doc/posix-functions/futimens.texi (futimens): Likewise.
67809         fdutimensat: new module
67810         * modules/fdutimensat: New file.
67811         * lib/fdutimensat.c (fdutimensat): Likewise.
67812         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
67813         * MODULES.html.sh (File system functions): Mention module.
67814         * modules/fdutimensat-tests: New test.
67815         * tests/test-fdutimensat.c: Likewise.
67817         doc: regenerate INSTALL
67818         * doc/INSTALL: Reflect recent autoconf update.
67819         * doc/INSTALL.ISO: Likewise.
67820         * doc/INSTALL.UTF-8: Likewise.
67822 2009-10-20  Pádraig Brady  <P@draigBrady.com>
67824         acl: warn if ACL support is not detected
67825         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
67827 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
67829         * lib/nproc.h: Add extern "C" block for C++.
67831 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
67832             Bruno Haible  <bruno@clisp.org>
67834         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
67835         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
67836         * doc/posix-functions/isalpha.texi: Likewise.
67837         * doc/posix-functions/isblank.texi: Likewise.
67838         * doc/posix-functions/iscntrl.texi: Likewise.
67839         * doc/posix-functions/isdigit.texi: Likewise.
67840         * doc/posix-functions/isgraph.texi: Likewise.
67841         * doc/posix-functions/islower.texi: Likewise.
67842         * doc/posix-functions/isprint.texi: Likewise.
67843         * doc/posix-functions/ispunct.texi: Likewise.
67844         * doc/posix-functions/isspace.texi: Likewise.
67845         * doc/posix-functions/isupper.texi: Likewise.
67846         * doc/posix-functions/isxdigit.texi: Likewise.
67848 2009-10-18  Bruno Haible  <bruno@clisp.org>
67850         Tests for module 'isblank'.
67851         * modules/isblank-tests: New file.
67852         * tests/test-isblank.c: New file.
67854         New module 'isblank'.
67855         * lib/isblank.c: New file.
67856         * m4/isblank.m4: New file.
67857         * modules/isblank: New file.
67858         * doc/posix-functions/isblank.texi: Mention the new module.
67860 2009-10-18  Bruno Haible  <bruno@clisp.org>
67862         New module 'ctype'.
67863         * lib/ctype.in.h: New file.
67864         * m4/ctype.m4: New file.
67865         * modules/ctype: New file.
67866         * doc/posix-headers/ctype.texi: Mention the new module.
67868 2009-10-18  Jim Meyering  <meyering@redhat.com>
67870         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
67871         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
67872         right after its initialization, rather than farther down.
67873         Keeping these in close proximity makes it easier to ensure
67874         that each such variable is initialized.  E.g.,
67876             LIB_CLOCK_GETTIME=
67877             AC_SUBST([LIB_CLOCK_GETTIME])
67879         This change also increments these serial numbers.
67880         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
67881         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
67882         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
67884 2009-10-18  Bruno Haible  <bruno@clisp.org>
67886         Don't let environment variables perturb build.
67887         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
67888         (gl_PREREQ_GETHRXTIME): ... not here.
67890 2009-10-18  Bruno Haible  <bruno@clisp.org>
67892         Avoid symlink attack in localcharset module.
67893         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
67894         (O_NOFOLLOW): Define fallback.
67895         (get_charset_aliases): Don't open the file if it is a symbolic link.
67896         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
67897         gl_FCNTL_H.
67898         (gl_FCNTL_H): Require it.
67899         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
67900         * modules/localcharset (Files): Add m4/fcntl_h.m4.
67901         Reported by Fergal Glynn <fglynn@veracode.com>.
67903 2009-10-18  Bruno Haible  <bruno@clisp.org>
67905         Implement nproc for mingw.
67906         * lib/nproc.c: Include <windows.h>
67907         (num_processors): On native Windows platforms, try GetSystemInfo.
67909 2009-10-18  Bruno Haible  <bruno@clisp.org>
67911         Implement nproc for IRIX.
67912         * lib/nproc.c: Include <sys/sysmp.h>.
67913         (num_processors): On IRIX systems, try sysmp.
67914         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
67916 2009-10-18  Bruno Haible  <bruno@clisp.org>
67918         Implement nproc for HP-UX.
67919         * lib/nproc.c: Include <sys/pstat.h>
67920         (num_processors): On HP-UX systems, try pstat_getdynamic.
67921         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
67922         pstat_getdynamic.
67924 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
67925             Bruno Haible  <bruno@clisp.org>
67927         Implement nproc for NetBSD, OpenBSD.
67928         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
67929         (ARRAY_SIZE): New macro.
67930         (num_processors): On BSD systems, try sysctl of HW_NCPU.
67931         * m4/nproc.m4: New file.
67932         * modules/nproc (Files): Add m4/nproc.m4.
67933         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
67934         (Makefile.am): Instead, augment lib_SOURCES.
67936 2009-10-18  Bruno Haible  <bruno@clisp.org>
67938         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
67939         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
67940         sys/param.h.
67942 2009-10-16  Eric Blake  <ebb9@byu.net>
67944         utimensat: new module
67945         * modules/utimensat: New file.
67946         * lib/utimensat.c (utimensat): Likewise.
67947         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
67948         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
67949         so we can work around Linux bugs.
67950         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
67951         * modules/sys_stat (Makefile.am): Substitute them.
67952         * lib/sys_stat.in.h (utimensat): Declare it.
67953         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
67954         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
67955         * modules/utimensat-tests: New test.
67956         * tests/test-utimensat.c: Likewise.
67958         utimens: let lutimens work on non-symlinks
67959         * lib/utimens.c (lutimens): Fall back to utimens rather than
67960         failing with ENOSYS, when file is not a symlink.
67961         (utimens): Reduce redirection.
67962         * tests/test-lutimens.h (test_lutimens): Update test to cover
67963         non-symlinks.
67964         * tests/test-utimens.h (test_utimens): Update test to cover
67965         symlinks.
67966         * tests/test-utimens.c (main): Update caller.
67968         utimens: cache whether utimensat syscall works
67969         * lib/utimens.c (utimensat_works_really): New cache variable.
67970         (fdutimens, lutimens): Use it to avoid failing syscall.
67972         test-stat-time, test-utimens: improve portability
67973         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
67974         ext4 on alpha, and for cygwin.
67975         * tests/test-utimens-common.h: New file.
67976         (nap): Factor delays into single function.
67977         * tests/test-lutimens.h (test_lutimens): Use new header.
67978         * tests/test-futimens.h (test_futimens): Likewise.
67979         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
67980         timestamps to occur from same machine, as was done previously for
67981         test_utimens.
67982         * modules/utimens-tests (Files): Ship new file.
67983         * modules/futimens-tests (Files): Likewise.
67984         Reported in part by Jim Meyering.
67986         sys_stat: sort replacement declarations
67987         * lib/sys_stat.in.h: Sort declarations.
67988         * lib/futimens.c (futimens): Fix typo.
67990 2009-10-15  Jim Meyering  <meyering@redhat.com>
67992         don't let environment settings perturb build
67993         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
67994         could cause a configure-time and/or build-time malfunction.
67995         Typically, a configure-time function-in-library test is performed
67996         via code like this:
67998           LIB_VAR=
67999           AC_SUBST([LIB_VAR])
68000           prefix_saved_LIBS=$LIBS
68001             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
68002                        [test "$ac_cv_search_FUNC" = "none required" ||
68003                         LIB_VAR=$ac_cv_search_FUNC])
68004           LIBS=$prefix_saved_LIBS
68006         However, in each of the files affected by this change, the LIB_VAR=
68007         initialization was omitted.  Thus, when set in the environment, its
68008         value would propagate into generated Makefiles when FUNC is not found
68009         in LIB_NAME.
68010         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
68011         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
68012         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
68014 2009-10-14  Eric Blake  <ebb9@byu.net>
68016         fchdir: avoid infinite recursion in mingw
68017         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
68018         recursing.
68020         test-stat-time: port to mingw
68021         * tests/test-stat-time.c (force_unlink): Return a value.
68022         (test_ctime) [W32]: Fix compilation error.
68023         (nap): Don't call usleep with too large an argument.  Use
68024         force_unlink.
68025         * doc/pastposix-functions/usleep.texi (usleep): Document the
68026         portability issue.
68028 2009-10-13  Jim Meyering  <meyering@redhat.com>
68030         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
68031         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
68032         * modules/pipe-filter-ii: Likewise.
68033         * modules/sys_socket-tests: Likewise.
68034         * modules/tsearch-tests: Likewise.
68035         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
68036         (check): Depend on it.
68038 2009-10-12  Eric Blake  <ebb9@byu.net>
68040         utimens-tests: port to NFS file systems
68041         * tests/test-utimens.h (test_utimens): Refactor utimecmp
68042         comparisons to avoid spurious failures from timestamp drift
68043         between NFS machines.
68045 2009-10-12  Eric Blake  <ebb9@byu.net>
68047         stat-time-tests: minor cleanups
68048         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
68049         * tests/test-stat-time.c (nap): Separate assignment from call.
68050         Suggested by Paolo Bonzini and Bruno Haible.
68052         sys_stat: guarantee struct timespec
68053         * lib/sys_stat.in.h (includes): Always include <time.h>
68054         * modules/sys_stat (Depends-on): Add time.
68055         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
68056         mode_t permission values.
68057         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
68058         get at subsecond timestamps.
68060 2009-10-10  Eric Blake  <ebb9@byu.net>
68062         futimens: new module
68063         * modules/futimens: New file.
68064         * lib/futimens.c (futimens): Likewise.
68065         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
68066         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
68067         we can work around Linux bugs.
68068         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
68069         * modules/sys_stat (Makefile.am): Substitute them.
68070         * lib/sys_stat.in.h (futimens): Declare it.
68071         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
68072         * doc/posix-functions/futimens.texi (futimens): Likewise.
68073         * modules/futimens-tests: New test.
68074         * tests/test-futimens.c: Likewise.
68076         utimens: introduce fdutimens
68077         * lib/utimens.h (fdutimens): New prototype.
68078         * lib/utimens.c (gl_futimens): Move guts...
68079         (fdutimens): ...to new interface.
68080         * tests/test-utimens.c (do_fdutimens): Use it.
68082         utimens: add UTIME_NOW and UTIME_OMIT support
68083         * lib/utimens.c (validate_timespec, update_timespec): New helper
68084         functions.
68085         (gl_futimens, lutimens): Use them.
68086         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
68087         stdbool, sys_stat.
68088         (Link): Mention resulting library dependency.
68089         * modules/utimecmp (Link): Likewise.
68090         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
68091         (Makefile.am): Pick up library dependency.
68092         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
68093         definition.
68094         * tests/test-sys_stat.c: Test the definitions.
68095         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
68096         * NEWS: Document library dependency.
68098         utimecmp: support symlink timestamps
68099         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
68100         hashing when possible.  Use pathconf when available.
68101         (SYSCALL_RESOLUTION): Recognize tighter resolution.
68102         * modules/utimecmp (Depends-on): Add lstat.
68104         utimens: add lutimens interface
68105         * lib/utimens.c (lutimens): New function.
68106         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
68107         * lib/utimens.h (lutimens): Declare new interface.
68108         * tests/test-utimens.c (main): Enhance test.
68109         * tests/test-lutimens.h (test_lutimens): New file.
68110         * modules/utimens-tests (Files): Distribute it.
68111         (Depends-on): Add symlink.
68112         (configure.ac): Check for usleep.
68114         utimens: validate futimens usage
68115         * lib/utimens.c (gl_futimens): Require valid fd up front, using
68116         fewer syscalls on failure later on.  Avoid compiler warning on
68117         mingw.
68118         * modules/utimens (Depends-on): Add dup2.
68120         utimens: add test
68121         * modules/utimens-tests: New test.
68122         * tests/test-utimens.h: New file.
68123         * tests/test-futimens.h: Likewise.
68124         * tests/test-utimens.c: Likewise.
68126         doc: mention timestamp portability issues
68127         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
68128         instead.
68129         * doc/posix-functions/utime.texi (utime): Likewise.
68130         * doc/posix-functions/utimes.texi (utimes): Likewise.
68131         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
68132         instead.
68133         * doc/posix-functions/futimens.texi (futimens): Mention utimens
68134         module.
68135         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
68136         Mention weakness with symlink timestamps.
68137         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
68138         to utimensat/futimens instead.
68139         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
68141         test-dup2: enhance test
68142         * tests/test-dup2.c (main): Also check AT_FDCWD.
68144         test-stat-time: avoid more spurious failures
68145         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
68146         xfs; and avoid race if the two timestamps cross quantization edge.
68148         relocatable: prefer 'file system' over 'filesystem'
68149         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
68150         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
68151         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
68152         * doc/relocatable.texi (Enabling Relocatability): Likewise.
68153         * lib/relocatable.c (compute_curr_prefix): Likewise.
68155 2009-10-10  Jim Meyering  <meyering@redhat.com>
68157         stat-time-tests: check for the usleep function
68158         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
68160 2009-10-10  Bruno Haible  <bruno@clisp.org>
68162         * modules/xnanosleep: Put the Link section after the Include section.
68164 2009-10-09  Eric Blake  <ebb9@byu.net>
68166         dup2: work around FreeBSD 6.1 bug
68167         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
68168         * doc/posix-functions/dup2.texi (dup2): Document it.
68169         Reported by Nelson H. F. Beebe and Jim Meyering.
68171         test-stat-time: port to buggy NFS clients
68172         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
68173         (test_ctime): Also skip test if mtime and ctime are skewed.
68175         maint: prefer 'file system' over 'filesystem'
68176         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
68177         * doc/posix-functions/lstat.texi (lstat): Likewise.
68178         * lib/file-has-acl.c (file_has_acl): Likewise.
68179         * lib/fwriteerror.c [TEST]: Likewise.
68180         * tests/test-areadlink.h (test_areadlink): Likewise.
68181         * tests/test-areadlinkat-with-size.c (main): Likewise.
68182         * tests/test-areadlinkat.c (main): Likewise.
68183         * tests/test-canonicalize-lgpl.c (main): Likewise.
68184         * tests/test-canonicalize.c (main): Likewise.
68185         * tests/test-fstatat.c (main): Likewise.
68186         * tests/test-linkat.c (main): Likewise.
68187         * tests/test-lstat.h (test_lstat_func): Likewise.
68188         * tests/test-mkdir.h (test_mkdir): Likewise.
68189         * tests/test-readlink.h (test_readlink): Likewise.
68190         * tests/test-remove.c (main): Likewise.
68191         * tests/test-rename.h (test_rename): Likewise.
68192         * tests/test-renameat.c (main): Likewise.
68193         * tests/test-rmdir.h (test_rmdir_func): Likewise.
68194         * tests/test-symlink.h (test_symlink): Likewise.
68195         * tests/test-symlinkat.c (main): Likewise.
68196         * tests/test-unlink.h (test_unlink_func): Likewise.
68197         * tests/test-unlinkat.c (main): Likewise.
68199         maint: make realtime library usage explicit
68200         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
68201         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
68202         * modules/settime (Link): Likewise.
68203         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
68205         test-stat-time: speed up execution
68206         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
68207         warning on mingw.
68208         (nap): New helper function.
68209         (prepare_test): Use it to reduce sleep time.
68210         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
68211         execution.
68212         * modules/stat-time-tests (configure.ac): Check for usleep.
68214 2009-10-09  Jim Meyering  <meyering@redhat.com>
68216         selinux-h: always use getfilecon wrappers
68217         * lib/getfilecon.c: New file.
68218         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
68219         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
68220         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
68221         (fgetfilecon): Provide a stub.
68222         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
68223         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
68224         file unconditionally.
68225         When <selinux/selinux.h> is found, arrange to use wrappers.
68226         * modules/selinux-h (Files): Add getfilecon.c.
68227         (Makefile.am): Substitute include-next-related bits
68228         into the now-always-generated selinux/selinux.h file.
68229         * doc/glibc-functions/lgetfilecon.texi: New file.
68230         * doc/glibc-functions/fgetfilecon.texi: New file.
68231         * doc/glibc-functions/getfilecon.texi: New file.
68232         * doc/glibc-functions/getfilecon-desc.texi: New file.
68233         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
68234         which to pull in the new files.
68235         * MODULES.html.sh (Misc): Add selinux-h.
68237 2009-10-08  Jim Meyering  <meyering@redhat.com>
68239         unistd: fix comment typo
68240         * lib/unistd.in.h (euidaccess): Fix a comment typo.
68242 2009-10-08  Eric Blake  <ebb9@byu.net>
68244         areadlink: use SIZE_MAX consistently
68245         * modules/areadlink (Depends-on): Add stdint.
68246         * modules/areadlink-with-size (Depends-on): Likewise.
68247         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
68248         gives NULL; drop sys/types, since unistd gives size_t; and add
68249         stdint for SIZE_MAX.
68250         (SIZE_MAX): Rely on headers.
68251         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
68252         and add stdint.
68253         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
68254         (SIZE_MAX): Likewise.
68255         (INITIAL_BUF_SIZE): Turn into enum.
68256         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
68258 2009-10-08  Jim Meyering  <meyering@redhat.com>
68260         areadlinkat: avoid compilation failure
68261         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
68262         Fix typo in comment.
68264 2009-10-07  Eric Blake  <ebb9@byu.net>
68266         areadlinkat-with-size: new module
68267         * modules/areadlinkat-with-size: New module.
68268         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
68269         * lib/areadlink.h (areadlinkat): Declare it.
68270         * MODULES.html.sh (File system functions): Mention it.
68271         * modules/areadlinkat-with-size-tests: New test.
68272         * tests/test-areadlinkat-with-size.c: New file.
68274         xreadlinkat: new module
68275         * modules/xreadlinkat: New module.
68276         * lib/xreadlinkat.c (xreadlinkat): New file.
68277         * lib/xreadlink.h (xreadlinkat): Declare it.
68278         * MODULES.html.sh (File system functions): Mention it.
68280         areadlinkat: new module
68281         * lib/at-func.c (FUNC_FAIL): New define.
68282         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
68283         * modules/areadlinkat: New module.
68284         * lib/linkat.c (areadlinkat): Move...
68285         * lib/areadlinkat.c (areadlinkat): ...to new file.
68286         * lib/areadlink.h (areadlinkat): Declare it.
68287         * modules/linkat (Depends-on): Add areadlinkat.
68288         * MODULES.html.sh (File system functions): Mention it.
68289         * modules/areadlinkat-tests: New test.
68290         * tests/test-areadlinkat.c: New file.
68292         areadlink, areadlink-with-size: add tests
68293         * modules/areadlink-tests: New test.
68294         * modules/areadlink-with-size-tests: Likewise.
68295         * tests/test-areadlink.h: New file.
68296         * tests/test-areadlink.c: Likewise.
68297         * tests/test-areadlink-with-size.c: Likewise.
68299         maint: minor cleanups
68300         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
68301         _UNUSED_PARAMETER_ instead.
68302         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
68303         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
68304         * modules/linkat-tests (Files): Distribute test-link.h.
68306         openat, utimens: whitespace cleanup
68307         * lib/openat.c: Prefer space throughout, rather than mix of 8
68308         spaces vs. tabs.
68309         * lib/at-func.c: Likewise.
68310         * lib/utimens.c: Likewise.
68312         openat: avoid using wrong fd
68313         * lib/openat.c (openat_permissive): Reject user's fd if saving the
68314         working directory chooses same fd.
68315         * lib/at-func.c (AT_FUNC_NAME): Likewise.
68317         mkdir, mkdirat: fix cygwin 1.5.x bug
68318         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
68319         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
68320         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
68321         bug.
68322         (gl_PREREQ_MKDIR): Delete unused macro.
68323         * modules/mkdir (Files): Track file rename.
68324         (configure.ac): Update macro name.
68325         * modules/openat (Depends-on): Add mkdir.
68326         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
68328         mkdir, mkdirat: add tests
68329         * modules/mkdir-tests: New test.
68330         * tests/test-mkdir.h: New file.
68331         * tests/test-mkdir.c: Likewise.
68332         * tests/test-mkdirat.c: Likewise.
68333         * modules/openat-tests (Files): Add new files.
68334         (Makefile.am): Run new test.
68336 2009-10-06  Eric Blake  <ebb9@byu.net>
68338         doc: tweak *at function documentation
68339         * doc/posix-functions/faccessat.texi (faccessat): Mention
68340         known issue with replacement.
68341         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
68342         * doc/posix-functions/linkat.texi (linkat): Likewise.
68343         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
68344         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
68345         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
68346         * doc/posix-functions/renameat.texi (renameat): Likewise.
68347         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
68349         openat: fix GNU/Hurd bug in unlinkat
68350         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
68351         broken.
68352         * doc/posix-functions/unlink.texi (unlink): Document this.
68353         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
68355         fdopendir: fix GNU/Hurd bug
68356         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
68357         allowing non-directory fds.
68358         * lib/fdopendir.c (rpl_fdopendir): Work around it.
68359         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
68360         * modules/dirent (Makefile.am): Substitute it.
68361         * lib/dirent.in.h (fdopendir): Declare replacement.
68362         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
68363         * tests/test-fdopendir.c (main): Test something other than
68364         /dev/null, since on Hurd that behaves like a directory.
68366         test-symlink: port to GNU/Hurd
68367         * tests/test-symlink.h (test_symlink): Relax expected errno.
68369         doc: tweak more cygwin information
68370         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
68371         now compatible with glibc.
68372         * doc/posix-functions/getopt.texi (getopt): Likewise.
68374         getopt-gnu: add another test
68375         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
68376         guarantee behavior relied on by m4.
68377         * tests/test-getopt.c (main): Use it.
68378         * modules/getopt-posix-tests (Depends-on): Add setenv.
68379         See http://lists.gnu.org/r/bug-m4/2006-09/msg00028.html.
68381         getopt: fix compilation on darwin
68382         * lib/getopt.in.h (includes): Leave breadcrumbs during system
68383         include.
68384         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
68385         Reported by Ludovic Courtès.
68387 2009-10-06  Bruno Haible  <bruno@clisp.org>
68389         * modules/size_max (Description): Discourage its use.
68390         Reported by Simon Josefsson.
68392 2009-10-06  Jim Meyering  <meyering@redhat.com>
68394         linkat: avoid compilation failure
68395         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
68397 2009-10-05  Eric Blake  <ebb9@byu.net>
68399         linkat: support Linux 2.6.17
68400         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
68401         linkat on Linux, but allow cache variable override.
68402         * lib/linkat.c (rpl_linkat): Define override.
68403         * modules/linkat (Depends-on): Add symlinkat.
68404         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
68405         * modules/unistd (Makefile.am): Substitute it.
68406         * lib/unistd.in.h (linkat): Declare replacement.
68407         Reported by Pádraig Brady.
68409         quotearg: port test to systems with C.UTF-8 locale
68410         * tests/test-quotearg.c (struct result_strings): Add another
68411         member, differentiating between C.ASCII and C.UTF-8 handling.
68412         (compare_strings): Add parameter.
68413         (main): Adjust all callers.
68415         getopt: avoid clash with FreeBSD _getopt_internal
68416         * lib/getopt.in.h (_getopt_internal): Override the name.
68417         * lib/getopt_int.h (includes): Pick up any overrides.
68418         Reported by Reuben Thomas.
68420         hash: allow C89 compilation
68421         * lib/hash.c (check_tuning): Move declaration before statement.
68422         Reported by Reuben Thomas.
68424 2009-10-05  Karl Berry  <karl@gnu.org>
68426         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
68428 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
68429             Bruno Haible  <bruno@clisp.org>
68431         * lib/uname.c (uname): Use a table-driven algorithm to compute
68432         Windows NT versions.
68434 2009-10-04  Bruno Haible  <bruno@clisp.org>
68436         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
68437         program_invocation_short_name.
68438         * modules/progname (configure.ac): Test for presence of
68439         program_invocation_short_name.
68440         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
68442 2009-10-04  Bruno Haible  <bruno@clisp.org>
68444         * lib/progname.c (set_program_name): Fix comment.
68445         Reported by Jim Meyering.
68447 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
68448             Bruno Haible  <bruno@clisp.org>
68450         * lib/uname.c: Include <string.h>.
68451         (uname): Do only one call to GetVersionEx in the common case.
68453 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
68454             Bruno Haible  <bruno@clisp.org>
68456         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
68457         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
68458         (uname): Add support for Windows CE and various non-x86 CPU types.
68460 2009-10-03  Bruno Haible  <bruno@clisp.org>
68462         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
68463         invocation to tests/configure.ac.
68464         Reported by Ian Beckwith <ianb@erislabs.net>.
68466 2009-10-02  Eric Blake  <ebb9@byu.net>
68468         fchdir: avoid compiler warning
68469         * lib/fchdir.c (canonicalize_file_name)
68470         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
68472         test-open: support mingw errno values
68473         * tests/test-open.h (test_open): Relax test.
68474         * tests/test-fopen.h (test_fopen): Likewise.
68475         * tests/test-openat-safer.c (main): Likewise.
68477         open: fix opening directory on mingw
68478         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
68480         test-open: on GNU/Hurd, /dev/null is a directory
68481         * tests/test-fopen.h (main): Rename...
68482         (test_fopen): ...to this.  Use a guaranteed non-directory when
68483         confirming open behavior on trailing slash.
68484         * tests/test-openat-safer.c (main): Likewise.
68485         * tests/test-open.h (main): Likewise....
68486         (test_open): ...to this.
68487         * tests/test-fopen.c (main): Adjust caller.
68488         * tests/test-fopen-safer.c (main): Likewise.
68489         * tests/test-open.c (main): Likewise.
68490         * tests/test-fcntl-safer.c (main): Likewise.
68491         Reported by Samuel Thibault.
68493         rename, fchdir: don't ignore chdir failure
68494         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
68495         * lib/rename.c (rpl_rename) [W32]: Likewise.
68496         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
68497         an empty destination directory if source cannot be renamed,
68498         although there is still possibility for failure.
68499         * doc/posix-functions/rename.texi (rename): Document the race.
68500         Reported by Jim Meyering.
68502         maint: cleanup whitespace in recent commits
68503         * lib/rename.c (rpl_rename): Remove tabs.
68504         * tests/test-link.h (test_link): Likewise.
68505         * lib/fchdir.c (get_name): Likewise.
68506         Reported by Jim Meyering.
68508 2009-10-02  Ben Pfaff  <blp@gnu.org>
68510         relocatable-prog-wrapper: Add missing dependency on
68511         double-slash-root.
68512         * modules/relocatable-prog-wrapper: Add dependency.
68513         Reported by Ian Beckwith <ianb@erislabs.net>.
68515 2009-10-02  Eric Blake  <ebb9@byu.net>
68517         renameat: fix Solaris bugs
68518         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
68519         needed fixing.
68520         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
68521         * modules/stdio (Makefile.am): Substitute it.
68522         * lib/stdio.in.h (renameat): Declare replacement.
68523         * lib/renameat.c (rpl_renameat): Implement fix.
68525         renameat: new module
68526         * modules/renameat: New file.
68527         * lib/renameat.c (renameat): Likewise.
68528         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
68529         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
68530         * modules/stdio (Makefile.am): Substitute them.
68531         * lib/stdio.in.h (renameat): Declare it.
68532         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
68533         * doc/posix-functions/renameat.texi (renameat): Likewise.
68534         * modules/renameat-tests: New test.
68535         * tests/test-renameat.c: Likewise.
68537         rename: fix mingw bugs
68538         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
68539         directory overwrite bugs.
68541         rename: fix another cygwin 1.5 bug
68542         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
68543         checks.
68544         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
68545         unnecessary cygwin workarounds.  Also work around bug with moving
68546         full directory onto an empty one.
68547         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
68549         rename-dest-slash: merge into rename module
68550         * modules/rename-dest-slash (Status): Mark obsolete.
68551         (Depends-on): Add rename.
68552         (Files): Let rename do it all.
68553         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
68554         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
68555         * m4/rename-dest-slash.m4: ...so this file can be deleted.
68556         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
68557         * lib/rename.c (rpl_rename): Update comments.
68559         rename: fix cygwin 1.5.x bugs
68560         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
68561         * lib/rename.c (rpl_rename): Work around them.
68562         * modules/rename (Depends-on): Add same-inode.
68564         rename: fix Solaris 10 bug
68565         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
68566         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
68567         was the only bug.
68569         rename: fix Solaris 9 bug
68570         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
68571         on non-directory.  Avoid calling exit.
68572         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
68573         strdup.
68574         * modules/rename-tests (Depends-on): Drop lstat.
68575         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
68576         (gl_PREREQ_RENAME): Delete unused macro.
68578         rename-dest-slash: fix NetBSD bug
68579         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
68580         links.
68581         * modules/rename-dest-slash (Depends-on): Add same-inode.
68583         rename-tests: new test, exposes several platform bugs
68584         * modules/rename-tests: New file.
68585         * tests/test-rename.h: Likewise.
68586         * tests/test-rename.c: Likewise.
68587         * doc/posix-functions/rename.texi (rename): Improve documentation,
68588         including bugs that will eventually be fixed in gnulib.
68590 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
68592         * lib/uname.c: Include <stdlib.h>
68593         (uname): Assume version info is available.
68595 2009-10-02  Jim Meyering  <meyering@redhat.com>
68597         gnu-web-doc-update: correct --help output
68598         * build-aux/gnu-web-doc-update: Make --help output relevant.
68600         gnu-web-doc-update: add standard options
68601         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
68603         gnu-web-doc-update: New module.
68604         Use this script to automatically update the on-line web documentation
68605         for your GNU project at http://www.gnu.org/software/$pkg/manual/
68606         * modules/gnu-web-doc-update: New file, from coreutils.
68607         * build-aux/gnu-web-doc-update: New script.
68609 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
68611         link: LoadLibrary is not needed.
68612         * lib/link.c: Use GetModuleHandle.
68614 2009-10-01  Eric Blake  <ebb9@byu.net>
68616         getopt: bump serial number
68617         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
68618         change.
68620         tests: tighten link, rmdir, and remove tests
68621         * tests/test-link.h (includes): No need to use <config.h> here.
68622         Clean up if directory hard link was created, otherwise test for
68623         trailing '.'.
68624         * tests/test-linkat.c (main): Simplify.
68625         * tests/test-remove.c (main): Enhance test for trailing '.'.
68626         * tests/test-rmdir.h (test_rmdir_func): Likewise.
68628 2009-10-01  Jim Meyering  <meyering@redhat.com>
68630         maint.mk: requiring "make major" was annoying, for a "minor" release.
68631         What is intended is "stable", to contrast with alpha and beta,
68632         so require "make stable", not "make major".
68633         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
68634         (get_tool_versions): Likewise.
68635         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
68637 2009-09-30  Ben Pfaff  <blp@gnu.org>
68639         Fix broken build of replacement for Windows tmpfile().
68640         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
68641         flags argument added along with the 'mkostemp' module.
68643 2009-09-28  Bruno Haible  <bruno@clisp.org>
68645         Avoid identifier clash with POSIX function 'remove' defined as a macro.
68646         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
68647         to 'remove_elt'.
68648         (gl_list_remove): Update.
68649         * lib/gl_list.c (gl_list_remove): Update.
68650         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
68651         to 'remove_elt'.
68652         (gl_oset_remove): Update.
68653         * lib/gl_list.c (gl_oset_remove): Update.
68654         Reported by Eric Blake.
68656 2009-09-28  Eric Blake  <ebb9@byu.net>
68658         doc: mention yet more cygwin 1.7 status
68659         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
68660         cygwin.
68661         * doc/glibc-functions/execvpe.texi (execvpe): New file.
68662         * doc/gnulib.texi (Glibc unistd.h): Mention it.
68664         argp: fix test failure
68665         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
68666         that are not upper-case.  Pass correct range to tolower.
68668 2009-09-27  Jim Meyering  <meyering@redhat.com>
68670         test-yesno: work around sparc-dash here-document infelicity
68671         Without this change, the literal \177 byte in a here document
68672         would make dash 0.5.5.1-3 access uninitialized memory.
68673         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
68674         Instead, use a marker, "@", and filter through tr to create the desired
68675         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
68677 2009-09-27  Bruno Haible  <bruno@clisp.org>
68679         Disable untested support for new flavours of ACLs on AIX.
68680         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
68681         progress.
68682         * lib/set-mode-acl.c (qset_acl): Likewise.
68684 2008-12-07  Bruno Haible  <bruno@clisp.org>
68686         Add support for new flavours of ACLs on AIX. (Untested.)
68687         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
68688         (file_has_acl): Add support for newer AIX.
68689         * lib/set-mode-acl.c (qset_acl): Likewise.
68690         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
68691         Rainer Tammer <tammer@tammer.net>.
68693 2009-09-26  Eric Blake  <ebb9@byu.net>
68695         argp: fix compilation of getopt
68696         * lib/getopt.in.h (includes): Use different guard than glibc.
68697         Reported by Sergey Poznyakoff.
68699         doc: mention more cygwin 1.7 status
68700         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
68701         bug.
68702         * doc/posix-functions/execl.texi (execl): Likewise.
68703         * doc/posix-functions/execle.texi (execle): Likewise.
68704         * doc/posix-functions/execlp.texi (execlp): Likewise.
68705         * doc/posix-functions/execv.texi (execv): Likewise.
68706         * doc/posix-functions/execve.texi (execve): Likewise.
68707         * doc/posix-functions/execvp.texi (execvp): Likewise.
68708         * doc/glibc-functions/canonicalize_file_name.texi
68709         (canonicalize_file_name): Cygwin 1.7 now provides this.
68710         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
68711         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
68712         on AT_SYMLINK_NOFOLLOW.
68714 2009-09-24  Eric Blake  <ebb9@byu.net>
68716         test-linkat: make test more robust
68717         * tests/test-linkat.c (main): Avoid collision with EEXIST.
68719         getopt: fix inclusion guards for cygwin
68720         * modules/getopt-posix (Depends-on): Add include-next.
68721         (Makefile.am): Substitute more items in replacement header.
68722         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
68723         <getopt.h>.
68724         * lib/getopt.in.h (includes): Use split inclusion guard, and
68725         prefer <getopt.h> over include <unistd.h> when one is present.
68726         (option): Also override name of 'struct option'.
68728         same-inode: revert prior change; it is not yet ready
68729         * NEWS: Undo mention of this change.
68730         * lib/same-inode.h (same-inode.h): Undo tri-state change.
68731         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
68732         * lib/cycle-check.c (cycle_check): Likewise.
68733         * lib/same.c (same_name): Likewise.
68734         * lib/at-func2.c (at_func2): Likewise.
68736 2009-09-23  Eric Blake  <ebb9@byu.net>
68738         linkat: new module
68739         * modules/linkat: New file.
68740         * lib/at-func2.c (at_func2): Likewise.
68741         * lib/linkat.c (linkat): Likewise.
68742         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
68743         * lib/openat-priv.h (at_func2): Add declaration.
68744         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
68745         * modules/unistd (Makefile.am): Substitute them.
68746         * lib/unistd.in.h (linkat): Declare it.
68747         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
68748         * doc/posix-functions/linkat.texi (linkat): Likewise.
68749         * doc/posix-functions/link.texi (link): Tweak wording.
68750         * tests/test-link.c (main): Move guts...
68751         * tests/test-link.h (test_link): ...into new file.
68752         * modules/linkat-tests: New test.
68753         * tests/test-linkat.c: Likewise.
68754         * modules/link-tests (Files): Ship new file.
68755         (Depends-on): Add stdbool.
68757         dirname: add library-safe mdir_name
68758         * lib/dirname.h (mdir_name): New prototype.
68759         * lib/dirname.c (dir_name): Move guts...
68760         (mdir_name): ...to new function that avoids xalloc_die.
68762         fchdir: another mingw fix
68763         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
68764         * lib/fchdir.c (get_name): New helper method; skips canonicalize
68765         on mingw (where it has not yet been ported), and make it optional
68766         elsewhere.
68767         (_gl_register_fd): Use it.
68769         same-inode: make SAME_INODE tri-state, to port to mingw
68770         * NEWS: Mention this change.
68771         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
68772         st_ino always being 0.
68773         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
68774         * lib/cycle-check.c (cycle_check): Likewise.
68775         * lib/same.c (same_name): Likewise.
68777         lstat: avoid mingw compilation error
68778         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
68779         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
68780         lstat ourselves.
68781         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
68782         was adequate.
68783         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
68784         the checks for lstat.
68785         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
68787         link: fix test failure on Solaris 9
68788         * lib/link.c (rpl_link): Don't assume link will catch bogus
68789         trailing slash on source.
68791         test-symlinkat: enhance test
68792         * tests/test-readlink.c (main): Move guts...
68793         * tests/test-readlink.h (test_readlink): ...into new file.
68794         * tests/test-symlink.c (main): Move guts...
68795         * tests/test-symlink.h (test_symlink): ...into new file.
68796         * tests/test-symlinkat.c (main): Use new files for further
68797         coverage.
68798         (do_symlink, do_readlink): New helper functions.
68799         * modules/symlink-tests (Files): Ship new file.
68800         (Depends-on): Add stdbool.
68801         * modules/readlink-tests (Files): Ship new file.
68802         (Depends-on): Add stdbool.
68803         * modules/symlinkat-tests (Files): Use new files.
68805 2009-09-23  Eric Blake  <ebb9@byu.net>
68807         readlink: document portability issue with symlink length
68808         * doc/posix-functions/lstat.texi (lstat): Mention that some file
68809         systems have bogus st_size on symlinks, and mention the
68810         areadlink-with-size module.
68811         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
68812         * doc/posix-functions/readlink.texi (readlink): Mention the
68813         areadlink module, and ERANGE failure.
68814         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
68815         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
68817         readlink: fix Solaris 9 bug with trailing slash
68818         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
68819         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
68820         * doc/posix-functions/readlink.texi (readlink): Document this.
68821         * modules/readlink-tests: New test.
68822         * tests/test-readlink.c: Likewise.
68824         readlink: fix cygwin 1.5.x bug with return type
68825         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
68826         * lib/unistd.in.h (readlink): Use ssize_t.
68827         * lib/readlink.c (readlink): Likewise.
68828         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
68829         * modules/unistd (Makefile.am): Substitute it.
68830         * lib/unistd.in.h (readlink): Declare replacement.
68831         * doc/posix-functions/readlink.texi (readlink): Document this.
68833         symlink: use throughout gnulib
68834         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
68835         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
68836         symlink is not used.
68837         * modules/symlinkat (Depends-on): Add symlink.
68838         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
68839         * modules/canonicalize-tests (Depends-on): Likewise.
68840         * modules/lstat-tests (Depends-on): Likewise.
68841         * modules/openat-tests (Depends-on): Likewise.
68842         * modules/remove-tests (Depends-on): Likewise.
68843         * modules/rmdir-tests (Depends-on): Likewise.
68844         * modules/unlink-tests (Depends-on): Likewise.
68845         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
68846         * tests/test-canonicalize.c (symlink): Likewise.
68847         * tests/test-fstatat.c (symlink): Likewise.
68848         * tests/test-lstat.c (symlink): Likewise.
68849         * tests/test-remove.c (symlink): Likewise.
68850         * tests/test-rmdir.c (symlink): Likewise.
68851         * tests/test-unlink.c (symlink): Likewise.
68852         * tests/test-unlinkat.c (symlink): Likewise.
68854         symlink: new module, for Solaris 9 bug
68855         * modules/symlink: New file.
68856         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
68857         * lib/symlink.c: Likewise.
68858         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
68859         * modules/unistd (Makefile.am): Substitute them.
68860         * lib/unistd.in.h (symlink): Declare replacement.
68861         * MODULES.html.sh (File system functions): Mention it.
68862         * doc/posix-functions/symlink.texi (symlink): Likewise.
68863         * modules/symlink-tests: New test.
68864         * tests/test-symlink.c: Likewise.
68866 2009-09-23  Bruno Haible  <bruno@clisp.org>
68868         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
68869         when needed.
68870         Test case: gnulib-tool --import --with-tests atexit inttypes.
68871         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
68873 2009-09-23  Bruno Haible  <bruno@clisp.org>
68875         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
68876         subcommand, not in a subshell.
68878 2009-09-22  Eric Blake  <ebb9@byu.net>
68880         unistd: sort replacement declarations
68881         * lib/unistd.in.h: Sort declarations.
68883         open, openat: minor optimization
68884         * lib/open.c (open): If open succeeded, len is non-zero.
68885         * lib/openat.c (rpl_openat): Likewise.
68887         link-follow: ensure correct result
68888         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
68889         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
68890         distinguish between possible failures.
68892 2009-09-21  Eric Blake  <ebb9@byu.net>
68894         fts: avoid compiler warning
68895         * lib/fts.c (dirent_inode_sort_may_be_useful)
68896         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
68898 2009-09-19  Bruno Haible  <bruno@clisp.org>
68900         * lib/progreloc.c (canonicalize_file_name): New declaration.
68902 2009-09-19  Eric Blake  <ebb9@byu.net>
68904         link: fix quoting
68905         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
68907         openat: fix openat bugs on Solaris 9
68908         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
68909         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
68910         * modules/openat (Depends-on): Add open.
68911         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
68912         * modules/fcntl-h (Makefile.am): Substitute it.
68913         * lib/fcntl.in.h (openat): Declare replacement.
68914         * doc/posix-functions/openat.texi (openat): Document this.
68916         openat: move fstatat and unlinkat into correct files
68917         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
68918         compiled.
68919         * lib/openat.c (fstatat, unlinkat): Move...
68920         * lib/fstatat.c (fstatat): ...into correct files.
68921         * lib/unlinkat.c (unlinkat): Likewise.
68923         openat: fix unlinkat bugs on Solaris 9
68924         * lib/unlinkat.c (unlinkat): New file.
68925         * modules/openat (Depends-on): Add unlink.
68926         (Files): Distribute it.
68927         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
68928         trailing slash behavior is broken.
68929         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
68930         * modules/unistd (Makefile.am): Substitute it.
68931         * lib/unistd.in.h (unlinkat): Declare replacement.
68932         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
68934         openat: fix fstatat bugs on Solaris 9
68935         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
68936         stat.
68937         * doc/posix-functions/fstatat.texi (fstatat): Document this.
68939         test-unlinkat: enhance test, to expose Solaris 9 bug
68940         * tests/test-unlink.c (main): Factor guts...
68941         * tests/test-unlink.h (test_rmdir_func): ...into new file.
68942         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
68943         * tests/test-rmdir.c (main): Adjust caller.
68944         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
68945         (unlinker): New helper function.
68946         (rmdirat): Enhance check.
68947         * modules/rmdir-tests (Depends-on): Add stdbool.
68948         * modules/unlink-tests (Depends-on): Likewise.
68949         (Files): Add test-unlink.h.
68950         * modules/openat-tests (Files): Likewise.
68951         (Depends-on): Add unlinkdir.
68953         test-fstatat: new test, to expose Solaris 9 bugs
68954         * tests/test-stat.c (main): Factor guts...
68955         * tests/test-stat.h (test_stat_func): ...into new file.
68956         * tests/test-lstat.c (main): Factor guts...
68957         * tests/test-lstat.h (test_lstat_func): ...into new file.
68958         * tests/test-fstatat.c: New file.
68959         * modules/stat-tests (Files): Add test-stat.h.
68960         * modules/lstat-tests (Files): Add test-lstat.h.
68961         (Depends-on): Add stdbool.
68962         * modules/openat-tests (Depends-on): Add pathmax.
68963         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
68964         (Makefile.am): Run new test.
68966         remove: new module, for mingw and Solaris 9 bugs
68967         * modules/remove: New file.
68968         * lib/remove.c: Likewise.
68969         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
68970         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
68971         * modules/stdio (Makefile.am): Use them.
68972         * lib/stdio.in.h (remove): Declare replacement.
68973         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
68974         * doc/posix-functions/remove.texi (remove): Likewise.
68975         * modules/remove-tests: New test.
68976         * tests/test-remove.c: Likewise.
68978         unlink: new module, for Solaris 9 bug
68979         * modules/unlink: New file.
68980         * lib/unlink.c: Likewise.
68981         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
68982         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
68983         * modules/unistd (Makefile.am): Use them.
68984         * lib/unistd.in.h (stat): Declare replacement.
68985         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
68986         * doc/posix-functions/unlink.texi (unlink): Likewise.
68987         * modules/unlink-tests: New test.
68988         * tests/test-unlink.c: Likewise.
68990         lstat: fix Solaris 9 bug
68991         * lib/lstat.c (lstat): Also check for trailing slash on
68992         non-symlink, non-directories.  Use stat module to simplify logic.
68993         * doc/posix-functions/lstat.texi (lstat): Document it.
68994         * modules/lstat-tests (Depends-on): Add errno, same-inode.
68995         (configure.ac): Check for symlink.
68996         * tests/test-lstat.c (main): Add more tests.
68998         stat: add as dependency to other modules
68999         * modules/chown (Depends-on): Add stat.
69000         * modules/euidaccess (Depends-on): Likewise.
69001         * modules/fchdir (Depends-on): Likewise.
69002         * modules/isdir (Depends-on): Likewise.
69003         * modules/link (Depends-on): Likewise.
69004         * modules/lstat (Depends-on): Likewise.
69005         * modules/mkdir-p (Depends-on): Likewise.
69006         * modules/modechange (Depends-on): Likewise.
69007         * modules/open (Depends-on): Likewise.
69008         * modules/readlink (Depends-on): Likewise.
69009         * modules/same (Depends-on): Likewise.
69011         stat: fix Solaris 9 bug
69012         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
69013         slash.
69014         * lib/stat.c (rpl_stat): Work around it.
69015         * doc/posix-functions/stat.texi (stat): Update documentation.
69017         stat: new module, for mingw bug
69018         * modules/stat: New file.
69019         * lib/stat.c: Likewise.
69020         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
69021         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
69022         * modules/sys_stat (Makefile.am): Use them.
69023         * lib/sys_stat.in.h (stat): Declare replacement.
69024         * lib/openat.c (fstatat): Deal with lstat and stat being function
69025         macros.
69026         * modules/openat (Depends-on): Add inline.
69027         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
69028         * doc/posix-functions/stat.texi (stat): Likewise.
69029         * modules/stat-tests: New test.
69030         * tests/test-stat.c: Likewise.
69032 2009-09-19  Jim Meyering  <meyering@redhat.com>
69034         syntax-check: detect unnecessary inclusion of canonicalize.h
69035         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
69037 2009-09-19  Eric Blake  <ebb9@byu.net>
69039         canonicalize-lgpl: adjust clients to use correct header
69040         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
69041         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
69042         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
69043         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
69044         * lib/progreloc.c (includes): Likewise.
69046 2009-09-19  Jim Meyering  <meyering@redhat.com>
69048         test-posixtm.c: correct a comment
69049         * tests/test-posixtm.c: Correct first-line comment.
69050         Spotted by Eric Blake.
69052 2009-09-16  Jim Meyering  <meyering@redhat.com>
69054         posixtm-tests: make T const-correct; add a test case
69055         * tests/test-posixtm.c (T): Declare const.
69056         Add a test for -(2^31+1).
69057         Remove useless can-succeed-only-in-2002 test.
69059         posixtm-tests: adjust the sole failing test
69060         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
69061         expected output matches what mktime now produces.  Cross-checked via
69062         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
69064         posixtm: move #ifdef'd tests into a new module
69065         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
69066         * tests/test-posixtm.c: ... this new file.
69067         * modules/posixtm-tests: New module.
69069 2009-09-19  Eric Blake  <ebb9@byu.net>
69071         openat: simplify use of at-func.c
69072         * lib/at-func.c (includes): Include prerequisites here, to
69073         simplify requirements on client files.
69074         * lib/openat-priv.h: Add double-inclusion guard.
69075         * lib/faccessat.c (includes): Simplify.
69076         * lib/fchmodat.c (includes): Likewise.
69077         * lib/fchownat.c (includes): Likewise.
69078         * lib/mkdirat.c (includes): Likewise.
69079         * lib/mkfifoat.c (includes): Likewise.
69080         * lib/symlinkat.c (includes): Likewise.
69082         openat: allow return of fd 0
69083         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
69084         * modules/save-cwd (Depends-on): Replace fcntl-safer with
69085         unistd-safer.
69086         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
69087         <fcntl.h>; this module does not leak fds.
69088         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
69089         must be allowed to return 0, leaving openat_safer to add the
69090         safety.
69091         (openat_permissive): Avoid writing to just-opened fd 2 if
69092         restoring the current directory fails.
69093         * lib/openat-die.c (openat_restore_fail): Add comment.
69094         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
69095         (save_cwd): Guarantee safe fd, but without use of open_safer.
69096         * tests/test-openat.c: New test.
69097         * modules/openat-tests (Files, Makefile.am): Distribute and build
69098         new file.
69100         relocatable-prog-wrapper: fix build
69101         * modules/relocatable-prog-wrapper (Files): Update name of
69102         canonicalize m4 file, broken on 2009-09-17.
69103         Reported by emad hajjar <aleppos@hotmail.com>.
69105 2009-09-19  Bruno Haible  <bruno@clisp.org>
69107         * lib/safe-alloc.h: Use the standard header with GPL copyright.
69108         * lib/safe-alloc.c: Likewise.
69109         Reported by Ian Beckwith <ianb@erislabs.net>.
69111 2009-09-18  Bruno Haible  <bruno@clisp.org>
69113         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
69114         Reported by <erobles@sensacd.com.mx>.
69116 2009-09-17  Eric Blake  <ebb9@byu.net>
69118         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
69119         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
69120         slashes when checking if last component is missing.
69121         * tests/test-canonicalize.c (main): Test this.
69123         canonicalize, canonicalize-lgpl: honor // if distinct from /
69124         * modules/canonicalize (Files): Add double-slash-root.m4.
69125         * modules/canonicalize-lgpl (Files): Likewise.
69126         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
69127         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
69128         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
69129         fallback definition.
69130         (canonicalize_filename_mode): Use it to protect //.
69131         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
69132         (__realpath): Likewise.
69133         * tests/test-canonicalize.c (main): Test this.
69134         * tests/test-canonicalize-lgpl.c (main): Likewise.
69135         * modules/canonicalize-tests (Depends-on): Add same-inode.
69136         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
69138         canonicalize-lgpl: fix glibc bug with trailing slash
69139         * m4/canonicalize-lgpl.m4: Move contents...
69140         * m4/canonicalize.m4: ...here.
69141         (gl_CANONICALIZE_LGPL): Factor realpath check...
69142         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
69143         glibc 2.3.5 bug, fixed 2005-04-27.
69144         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
69145         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
69146         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
69147         * modules/canonicalize-lgpl (Files): Manage file rename.
69148         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
69149         * modules/stdlib (Makefile.am): Substitute witness.
69150         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
69151         is needed.
69152         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
69153         replacement is required.
69154         * lib/canonicalize.c (canonicalize_file_name): Likewise.
69155         * doc/glibc-functions/canonicalize_file_name.texi
69156         (canonicalize_file_name): Document this.
69157         * doc/posix-functions/realpath.texi (realpath): Likewise.
69159         canonicalize-lgpl: reject non-directory with trailing slash
69160         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
69161         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
69162         catches failures in glibc 2.3.5.
69163         * tests/test-canonicalize.c (main): Likewise.
69165         canonicalize-lgpl: use native realpath if it works
69166         * lib/canonicalize-lgpl.c (realpath): Guard with
69167         FUNC_REALPATH_WORKS.
69168         * lib/stdlib.in.h (realpath): Make declaration optional based on
69169         HAVE_REALPATH.
69170         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
69171         native realpath works.
69172         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
69173         * modules/stdlib (Makefile.am): Substitute witness.
69175         canonicalize, canonicalize-lgpl: use <stdlib.h>
69176         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
69177         (Include): Mention <stdlib.h>.
69178         (configure.ac): Mention functions we provide.
69179         * modules/canonicalize (configure.ac): Likewise.
69180         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
69181         realpath if canonicalize_file_name is missing.
69182         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
69183         * modules/stdlib (Makefile.am): Substitute witnesses.
69184         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
69185         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
69186         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
69187         * NEWS: Document this.
69188         * doc/glibc-functions/canonicalize_file_name.texi
69189         (canonicalize_file_name): Likewise.
69190         * doc/posix-functions/realpath.texi (realpath): Likewise.
69191         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
69193         test-canonicalize: consolidate into single C program
69194         * tests/test-canonicalize.sh: Delete; move setup into...
69195         * tests/test-canonicalize.c (main): ...the program, making it
69196         easier to run in debugger.  Add some tests.
69197         * modules/canonicalize-tests (Files): Remove unused file.
69198         (Depends-on): Add progname.
69199         (configure.ac, Makefile.am): Simplify.
69201         test-canonicalize-lgpl: consolidate into single C program
69202         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
69203         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
69204         easier to run in debugger.  Add some tests.
69205         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
69206         (configure.ac, Makefile.am): Simplify.
69208         canonicalize: avoid resolvepath
69209         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
69210         unnecessary checks.
69211         * lib/canonicalize.c (includes): Simplify.
69212         (canonicalize_file_name): Drop resolvepath implementation.
69213         * modules/canonicalize (Depends-on): Drop filenamecat.
69215         canonicalize: don't lose errno
69216         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
69217         over calls to free.
69219         canonicalize: simplify errno handling
69220         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
69221         assignment.
69223         canonicalize, canonicalize-lgpl: update module dependencies
69224         * modules/canonicalize (Depends-on): Add extensions, lstat,
69225         pathmax, stdlib.
69226         (Files): Drop pathmax.h.
69227         (configure.ac): Adjust macro name.
69228         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
69229         lstat, stdlib, sys_stat.
69230         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
69231         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
69232         extensions.
69233         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
69234         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
69235         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
69236         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
69237         declaration, if available.
69238         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
69239         we can rely on the readlink module.
69240         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
69241         (includes): Use <unistd.h> unconditionally.
69243 2009-09-17  Eric Blake  <ebb9@byu.net>
69245         maint: make Include sections of modules consistent
69246         * modules/alloca: Use only header name; no need to list #include.
69247         * modules/alloca-opt: Likewise.
69248         * modules/arpa_inet: Likewise.
69249         * modules/canon-host: Likewise.
69250         * modules/configmake: Likewise.
69251         * modules/dirent: Likewise.
69252         * modules/eealloc: Likewise.
69253         * modules/environ: Likewise.
69254         * modules/fchdir: Likewise.
69255         * modules/fcntl: Likewise.
69256         * modules/fcntl-h: Likewise.
69257         * modules/gethrxtime: Likewise.
69258         * modules/gettime: Likewise.
69259         * modules/ignore-value: Likewise.
69260         * modules/inet_ntop: Likewise.
69261         * modules/inet_pton: Likewise.
69262         * modules/inttypes: Likewise.
69263         * modules/isnand-nolibm: Likewise.
69264         * modules/isnanf-nolibm: Likewise.
69265         * modules/mbchar: Likewise.
69266         * modules/mbfile: Likewise.
69267         * modules/mbiter: Likewise.
69268         * modules/mbuiter: Likewise.
69269         * modules/netdb: Likewise.
69270         * modules/netinet_in: Likewise.
69271         * modules/nproc: Likewise.
69272         * modules/pagealign_alloc: Likewise.
69273         * modules/poll: Likewise.
69274         * modules/printf-frexp: Likewise.
69275         * modules/pthread: Likewise.
69276         * modules/putenv: Likewise.
69277         * modules/random_r: Likewise.
69278         * modules/relocatable-prog: Likewise.
69279         * modules/search: Likewise.
69280         * modules/select: Likewise.
69281         * modules/selinux-h: Likewise.
69282         * modules/settime: Likewise.
69283         * modules/signal: Likewise.
69284         * modules/size_max: Likewise.
69285         * modules/socklen: Likewise.
69286         * modules/ssize_t: Likewise.
69287         * modules/stdarg: Likewise.
69288         * modules/stdbool: Likewise.
69289         * modules/stddef: Likewise.
69290         * modules/stdint: Likewise.
69291         * modules/stdio: Likewise.
69292         * modules/stdlib: Likewise.
69293         * modules/string: Likewise.
69294         * modules/strings: Likewise.
69295         * modules/sys_file: Likewise.
69296         * modules/sys_ioctl: Likewise.
69297         * modules/sys_select: Likewise.
69298         * modules/sys_socket: Likewise.
69299         * modules/sys_stat: Likewise.
69300         * modules/sys_time: Likewise.
69301         * modules/sys_times: Likewise.
69302         * modules/sys_utsname: Likewise.
69303         * modules/sys_wait: Likewise.
69304         * modules/sysexits: Likewise.
69305         * modules/time: Likewise.
69306         * modules/times: Likewise.
69307         * modules/tmpfile: Likewise.
69308         * modules/trim: Likewise.
69309         * modules/unistd: Likewise.
69310         * modules/wchar: Likewise.
69311         * modules/wctype: Likewise.
69313 2009-09-17  Bruno Haible  <bruno@clisp.org>
69315         Make getdate.y compile on QNX and NetBSD 5 / i386.
69316         * m4/getdate.m4 (gl_GETDATE): Conditionally define
69317         TIME_T_FITS_IN_LONG_INT.
69318         * lib/getdate.y (long_time_t): New type.
69319         (relative_time): Change type of 'seconds' field to long_time_t.
69320         (get_date): Update types of local variables. Check against overflow
69321         during conversion from long_time_t to time_t.
69322         Reported by Matt Kraai <kraai@ftbfs.org>
69323         and Hasso Tepper <hasso@netbsd.org>.
69325 2009-09-17  Bruno Haible  <bruno@clisp.org>
69327         * modules/COPYING: Update copyright years.
69328         * modules/README: Likeiwse.
69329         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
69330         Reported by Ian Beckwith <ianb@erislabs.net>.
69332 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
69334         * users.txt: Update references for gnuit package.
69336 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
69338         * m4/getdelim.m4: Fix typo in copyright line.
69340 2009-09-17  Bruno Haible  <bruno@clisp.org>
69342         * lib/atoll.c: Use the standard header with GPL copyright.
69343         * lib/argz.in.h: Likewise.
69344         * lib/glob.c: Likewise.
69345         * lib/glob-libc.h: Likewise.
69346         * lib/random_r.c: Likewise.
69347         * lib/siglist.h: Likewise.
69348         * lib/strsignal.c: Likewise.
69349         Reported by Ian Beckwith <ianb@erislabs.net>.
69351 2009-09-17  Eric Blake  <ebb9@byu.net>
69353         rmdir: ensure correct dependency order
69354         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
69356 2009-09-17  Bruno Haible  <bruno@clisp.org>
69358         Disable assertion that fails on NetBSD 5 / i386.
69359         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
69360         Reported by Sam Steingold <sds@gnu.org>
69361         and Hasso Tepper <hasso@netbsd.org>.
69363 2009-09-16  Eric Blake  <ebb9@byu.net>
69365         unlinkdir: port to mingw
69366         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
69367         on which no one can unlink a directory.
69369         stdlib: sort witness names
69370         * modules/stdlib (Makefile.am): Sort replacements.
69371         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
69372         * lib/stdlib.in.h: Likewise.
69374         parse-duration-tests: avoid link failure
69375         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
69376         LIBINTL.
69377         Reported by Tom G. Christensen.
69379         openat-tests: ensure unlinkat behaves like rmdir
69380         * tests/test-rmdir.c (main): Factor guts...
69381         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
69382         * modules/rmdir-tests (Files): Ship new file.
69383         * modules/openat-tests: New test.
69384         * tests/test-unlinkat.c: Likewise.
69386         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
69387         * modules/rmdir-errno (Status, Notice): Now obsolete.
69389         rmdir: work around cygwin 1.5.x and mingw bugs
69390         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
69391         * lib/rmdir.c (rmdir): Work around it.
69392         * modules/rmdir (Status, Notice): No longer obsolete.
69393         (Files): Add dos.m4.
69394         (Depends-on): Add unistd.
69395         (configure.ac): Set witnesses.
69396         (License): Relax to LGPLv2+.
69397         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
69398         * modules/unistd (Makefile.am): Substitute witnesses.
69399         * lib/unistd.in.h (rmdir): Declare replacement.
69400         * doc/posix-functions/rmdir.texi (rmdir): Document this.
69401         * modules/rmdir-tests: New tests.
69402         * tests/test-rmdir.c: Likewise.
69404 2009-09-15  Eric Blake  <ebb9@byu.net>
69406         fchdir: improve use of replacement functions
69407         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
69408         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
69409         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
69410         REPLACE_CLOSEDIR.
69411         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
69412         * modules/sys_stat (Makefile.am): Substitute correct witness.
69413         * modules/dirent (Makefile.am): Likewise.
69414         * modules/unistd (Makefile.am): Likewise.
69415         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
69416         * lib/unistd.in.h (dup): Likewise.
69417         * lib/sys_stat.in.h (fstat): Likewise.
69419         maint: ignore gnulib-tool temp files
69420         * .gitignore: Ignore files created during gnulib-tool --test.
69422 2009-09-13  Jim Meyering  <meyering@redhat.com>
69424         posixtm: don't reject a time that specify "60" as the number of seconds
69425         * lib/posixtm.c (posixtime): The code to reject invalid dates
69426         would also reject a time specified with the .60 suffix.
69427         But POSIX allows that, in order to accommodate leap seconds.
69428         So don't reject it.
69429         (main): Adjust tests accordingly.
69430         * modules/posixtm (Depends-on): Add stpcpy.
69432 2009-09-11  Jim Meyering  <meyering@redhat.com>
69434         announce-gen: include [$release_type] in emitted Subject:
69435         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
69436         e.g., [stable] in the emitted Subject: line.
69438 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69440         Remove obsolete macros from several modules.
69441         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
69442         obsolete Autoconf macros with their modern counterparts.
69443         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
69444         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
69445         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
69446         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
69447         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
69448         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
69449         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
69450         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
69451         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
69452         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
69453         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
69454         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
69455         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
69456         * m4/sockets.m4 (gl_SOCKETS): Likewise.
69457         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
69458         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
69459         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
69460         * m4/time_r.m4 (gl_TIME_R): Likewise.
69461         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
69462         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
69463         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
69465         Fix copyright header in build-aux scripts.
69466         * build-aux/git-version-gen: Fix copyright header to match GPLv3
69467         recommendation.
69468         * build-aux/ncftpput-ftp: Likewise.
69469         * build-aux/update-copyright: Likewise.
69471 2009-09-09  Eric Blake  <ebb9@byu.net>
69473         test-link: allow Linux choice of errno
69474         * tests/test-link.c (main): Relax test for alternate error.
69476         strndup: fix improper m4 caching
69477         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
69478         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
69479         (gl_PREREQ_STRNDUP): Delete.
69480         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
69481         * modules/string (Makefile.am): Substitute it.
69482         * lib/string.in.h (strndup): Modernize prototype.
69484         getcwd: port to mingw
69485         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
69486         different from the POSIX assumptions made throughout the getcwd
69487         module; fortunately, the mingw getcwd does not need replacement.
69488         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
69489         * modules/getcwd-tests: New test.
69490         * tests/test-getcwd.c: Likewise.
69492         link: fix platform bugs
69493         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
69494         * lib/link.c (link): Work around them.  Fix related mingw bug.
69495         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
69496         * modules/unistd (Makefile.am): Substitute it.
69497         * lib/unistd.in.h (link): Declare replacement.
69498         * doc/posix-functions/link.texi (link): Document this.
69499         * modules/link (Depends-on): Add strdup-posix, sys_stat.
69501         test-link: consolidate into single C program, test more cases
69502         * tests/test-link.sh: Delete.
69503         * tests/test-link.c: Test more error conditions.  Exposes bugs on
69504         at least Cygwin and Solaris.
69505         * modules/link-tests (Files): Remove unused file.
69506         (Depends-on): Add errno, sys_stat.
69507         (Makefile.am): Simplify.
69509 2009-09-08  Bruno Haible  <bruno@clisp.org>
69511         Work around towlower, towupper bug on mingw.
69512         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
69513         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
69514         * doc/posix-functions/towlower.texi: Mention the mingw bug.
69515         * doc/posix-functions/towupper.texi: Likewise.
69516         Reported by Eric Blake.
69518 2009-09-08  Jim Meyering  <meyering@redhat.com>
69520         build: don't try to run autoheader if we don't use it
69521         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
69522         is not used in configure.ac.
69524 2009-09-08  Eric Blake  <ebb9@byu.net>
69526         euidaccess: fix compilation error
69527         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
69529         rawmemchr: relax license
69530         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
69531         okay.
69532         Reported by Jim Meyering.
69534         mkfifoat: new module
69535         * modules/mkfifoat: New file.
69536         * lib/mkfifoat.c: Likewise.
69537         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
69538         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
69539         * modules/sys_stat (Makefile.am): Use them.
69540         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
69541         * MODULES.html.sh (File system functions): Mention module.
69542         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
69543         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
69544         * modules/mkfifoat-tests: New test.
69545         * tests/test-mkfifoat.c: Likewise.
69547         strchrnul: relax license
69548         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
69549         okay.
69550         Reported by Jim Meyering.
69552 2009-09-08  Eric Blake  <ebb9@byu.net>
69554         fstatat: fix compilation on Solaris
69555         * lib/fstatat.c (includes): Add fcntl.h.
69556         Reported by Pádraig Brady.
69558 2009-09-07  Eric Blake  <ebb9@byu.net>
69560         rename: modernize replacement
69561         * modules/rename (Depends-on): Add stdio.
69562         (configure.ac): Declare witness.
69563         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
69564         stdio take care of replacement.
69565         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
69566         * modules/stdio (Makefile.am): Substitute them.
69567         * lib/stdio.in.h (rename): Declare replacement.
69568         * lib/rename.c (includes): Allow cross-compilation to non-windows
69569         machines.
69570         * doc/posix-functions/rename.texi (rename): Improve
69571         documentation.
69573         stdio: sort witness names
69574         * modules/stdio (Makefile.am): Sort replacements.
69575         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
69576         * lib/stdio.in.h: Likewise.
69578         getcwd: minor cleanups
69579         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
69580         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
69582         openat: provide more convenience names
69583         * modules/faccessat (configure.ac): Add C witness.
69584         * lib/unistd.in.h (readlinkat): Fix typo.
69585         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
69586         convenience wrappers.
69587         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
69588         wrappers in syntax checks.
69590 2009-09-06  Eric Blake  <ebb9@byu.net>
69592         doc: fix comments in recent patches
69593         * lib/faccessat.c: Mention correct function.
69594         * lib/fchmodat.c: Likewise.
69595         * lib/fchownat.c: Likewise.
69596         * lib/symlinkat.c: Likewise.
69597         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
69598         constants.
69600         faccessat, symlinkat: continue cleanup of previous patch
69601         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
69602         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
69603         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
69604         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
69605         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
69606         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
69607         set.
69609 2009-09-06  Bruno Haible  <bruno@clisp.org>
69611         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
69612         (fstatat): Declare if GNULIB_FSTATAT is set.
69613         (mkdirat): Declare if GNULIB_MKDIRAT is set.
69614         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
69615         (unlinkat): Declare if GNULIB_UNLINKAT is set.
69616         * modules/fcntl-h (Files): Remove m4/openat.m4.
69617         * modules/sys_stat (Files): Remove m4/openat.m4.
69618         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
69619         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
69620         * modules/unistd (Files): Remove m4/openat.m4.
69621         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
69622         GNULIB_OPENAT.
69623         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
69624         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
69625         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
69626         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
69627         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
69628         gl_OPENAT_DEFAULTS.
69629         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
69630         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
69631         Don't require gl_OPENAT_DEFAULTS.
69632         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
69633         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
69634         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
69635         (gl_OPENAT_DEFAULTS): Remove macro.
69637 2009-09-06  Bruno Haible  <bruno@clisp.org>
69639         * modules/openat (configure.ac): Remove unneeded witness.
69641 2009-09-06  Bruno Haible  <bruno@clisp.org>
69643         Set errno to ENOSYS when a function is entirely unsupported.
69644         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
69645         EOPNOTSUPP.
69646         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
69647         * modules/chown (Depends-on): Remove errno.
69649 2009-09-06  Bruno Haible  <bruno@clisp.org>
69651         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
69653 2009-09-06  Bruno Haible  <bruno@clisp.org>
69655         * lib/sys_stat.in.h: Fix preprocessor command indentation.
69657 2009-09-06  Ben Pfaff  <blp@gnu.org>
69658             Bruno Haible  <bruno@clisp.org>
69660         Work around a glibc bug in strtok_r.
69661         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
69662         Undefine if UNDEFINE_STRTOK_R is set.
69663         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
69664         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
69665         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
69666         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
69667         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
69668         UNDEFINE_STRTOK_R.
69669         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
69671 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
69673         exclude: minor fix
69674         * lib/exclude.c: Include wctype.h
69676 2009-09-06  Akim Demaille  <demaille@gostai.com>
69678         bootstrap: improve error message
69679         * build-aux/bootstrap (find_tool): Upon failure, report the list
69680         of candidates.
69681         Honor the initial value of the envvar.
69683 2009-09-05  Eric Blake  <ebb9@byu.net>
69685         symlinkat: new module
69686         * modules/symlinkat: New file.
69687         * lib/symlinkat.c: Likewise.
69688         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
69689         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
69690         * modules/unistd (Makefile.am): Use them.
69691         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
69692         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
69693         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
69694         * MODULES.html.sh (File system functions): Mention module.
69695         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
69696         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
69697         * modules/symlinkat-tests: New test.
69698         * tests/test-symlinkat.c: Likewise.
69700         test-openat-safer: add more checks
69701         * tests/test-openat-safer.c (main): Check more code paths.
69703 2009-09-05  Jim Meyering  <meyering@redhat.com>
69705         syntax-check: detect unnecessary inclusion of openat.h
69706         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
69708 2009-09-05  Bruno Haible  <bruno@clisp.org>
69710         Support towlower, towupper.
69711         * doc/posix-functions/towlower.texi: Mention module wctype.
69712         * doc/posix-functions/towupper.texi: Likewise.
69713         * lib/wctype.in.h (towlower, towupper): New functions.
69714         * tests/test-wctype.c: Include stdio.h, stdlib.h.
69715         (ASSERT): New macro.
69716         (e): New variable.
69717         (main): Test also towlower, towupper. Test WEOF argument.
69718         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
69720 2009-09-05  Bruno Haible  <bruno@clisp.org>
69722         Fix conversion behaviour when the input is invalid.
69723         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
69724         mark occurring in first pass of indirect conversion.
69725         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
69726         input.
69727         Found by clang's static analyzer.
69729 2009-09-05  Bruno Haible  <bruno@clisp.org>
69731         * tests/test-striconveh.c (main): Test indirect conversion on platforms
69732         where direct conversion is possible.
69734 2009-09-04  Eric Blake  <ebb9@byu.net>
69736         openat: fail with ENOENT on empty name
69737         * lib/openat-proc.c (openat_proc_name): Special-case the empty
69738         buffer.
69740         link-follow: fix logic bug in prior patch
69741         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
69742         reversed sense of yes and no in prior patch.  Avoid confusing
69743         compilation failure with desired semantics.
69745         link-follow: accommodate mingw and cross-compilation
69746         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
69747         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
69748         cross-compilation results to -1, to make linkat easier to
69749         implement when cross-compiling.  Trivially support mingw.
69750         * modules/link-follow (configure.ac): Call new name.
69751         * NEWS: Mention this.
69753 2009-09-03  Eric Blake  <ebb9@byu.net>
69755         faccessat: compile replacement
69756         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
69757         needed.
69759         fts: fix compilation error
69760         * lib/fts.c (includes): Re-add "openat.h", for
69761         openat_needs_fchdir.
69763         faccessat: new module
69764         * modules/faccessat: New file.
69765         * lib/faccessat.c: Likewise.
69766         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
69767         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
69768         * modules/unistd (Makefile.am): Use it.
69769         * lib/unistd.in.h (faccessat): Declare it.
69770         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
69771         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
69772         * MODULES.html.sh (File system functions): Mention it.
69773         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
69774         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
69776         euidaccess: prefer POSIX over non-standard implementation
69777         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
69778         * lib/euidaccess.c (euidaccess): Use it if available.
69780         openat: make template easier to use
69781         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
69782         AT_FUNC_F2 to be undefined.
69783         (VALIDATE_FLAG): New macro; use it to reject bad flags.
69784         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
69785         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
69786         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
69787         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
69788         Likewise.
69789         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
69790         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
69791         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
69792         Likewise.
69794         openat: declare in POSIX headers
69795         * NEWS: Mention this.
69796         * modules/openat (configure.ac): Declare witnesses.
69797         (Depends-on): Add fcntl-h, sys_stat, unistd.
69798         (Include): Mention correct headers.
69799         * modules/fcntl-h (Depends-on): Add link-warning.
69800         (Files): Add openat.m4.
69801         (Makefile.am): Substitute witnesses.
69802         * modules/sys_stat (Files, Makefile.am): Likewise.
69803         * modules/unistd (Files, Makefile.am): Likewise.
69804         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
69805         (gl_OPENAT_DEFAULTS): New macro.
69806         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
69807         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
69808         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
69809         (SYS_STAT_H): Remove unused variable.
69810         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
69811         * lib/fcntl--.h (includes): Remove unneeded header.
69812         * lib/openat-safer.c (includes): Likewise.
69813         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
69814         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
69815         appropriate headers.
69816         (__OPENAT_PREFIX): Delete.
69817         * lib/fcntl.in.h (openat): Provide declaration.
69818         (AT_FDCWD): Fix Solaris bug.
69819         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
69820         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
69821         * lib/fchmodat.c (includes):  Adjust to find declaration.
69822         * lib/fchownat.c (includes): Likewise.
69823         * lib/mkdirat.c (includes): Likewise.
69824         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
69825         still visible.
69827 2009-09-02  Eric Blake  <ebb9@byu.net>
69829         errno: use consistently
69830         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
69831         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
69832         * lib/canonicalize.c (ELOOP): Likewise.
69833         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
69834         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
69835         * lib/lchown.c (EOPNOTSUPP): Likewise.
69836         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
69837         * lib/savewd.c (ESTALE): Likewise.
69838         * lib/settime.c (ENOSYS): Likewise.
69839         * lib/utimens.c (ENOSYS): Likewise.
69840         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
69841         * lib/chdir-safer.c (ELOOP): Likewise.
69842         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
69843         * modules/c-stack (Depends-on): Add errno.
69844         * modules/canonicalize (Depends-on): Likewise.
69845         * modules/chdir-safer (Depends-on): Likewise.
69846         * modules/fdopendir (Depends-on): Likewise.
69847         * modules/inet_ntop (Depends-on): Likewise.
69848         * modules/inet_pton (Depends-on): Likewise.
69849         * modules/lchown (Depends-on): Likewise.
69850         * modules/openat (Depends-on): Likewise.
69851         * modules/savewd (Depends-on): Likewise.
69852         * modules/settime (Depends-on): Likewise.
69853         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
69855         fts: avoid leaking fds
69856         * modules/fts (Depends-on): Add cloexec.
69857         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
69858         flag.
69860         fts: make directory fds more robust
69861         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
69862         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
69864         backupfile, chdir-long, fts, savedir: make safer
69865         * lib/backupfile.c (includes): Use "dirent--.h", since
69866         numbered_backup can write to stderr during readdir.
69867         * lib/savedir.c (includes): Likewise.
69868         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
69869         emulation can write to stderr on failure.
69870         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
69871         * lib/getcwd.c: Document why opendir_safer is unused.
69872         * lib/glob.c: Likewise.
69873         * lib/scandir.c: Likewise.
69874         * lib/openat-proc.c: Likewise, for open_safer.
69875         * modules/backupfile (Depends-on): Add dirent-safer.
69876         * modules/savedir (Depends-on): Likewise.
69877         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
69878         * modules/chdir-long (Depends-on): Add openat-safer.
69880         openat-safer: new module
69881         * modules/openat-safer: New file.
69882         * lib/openat-safer.c: Likewise.
69883         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
69884         * lib/fcntl-safer.h (openat_safer): Declare.
69885         * lib/fcntl--.h (openat): Override.
69886         * MODULES.html.sh (File descriptor based I/O): Mention it.
69887         * lib/openat.h: Add double-inclusion guards.
69888         * lib/openat.c (includes): Only include "fcntl-safer.h", not
69889         "fcntl--.h", so we can implement openat.
69890         * modules/openat-safer-tests: New test.
69891         * tests/test-openat-safer.c: New file.
69893         dirent-safer: new module
69894         * modules/dirent-safer: New file.
69895         * lib/dirent--.h: Likewise.
69896         * lib/dirent-safer.h: Likewise.
69897         * lib/opendir-safer.c: Likewise.
69898         * m4/dirent-safer.m4: Likewise.
69899         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
69900         * modules/dirent-safer-tests: New test.
69901         * tests/test-dirent-safer.c: New file.
69902         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
69904         fdopendir: optimize on mingw
69905         * lib/unistd.in.h (_gl_directory_name): New prototype.
69906         * lib/fchdir.c (_gl_directory_name): Implement it.
69907         (fchdir): Use it to simplify implementation.
69908         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
69909         fchdir, when available, to avoid calling [f]chdir().
69911         fdopendir: split into its own module
69912         * lib/openat.c (fdopendir): Move...
69913         * lib/fdopendir.c: ...into new file.
69914         * modules/fdopendir: New module.
69915         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
69916         * modules/openat (Depends-on): Add fdopendir.
69917         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
69918         fdopendir here.
69919         * modules/savedir (Depends-on): Only need fdopendir, not full
69920         openat.
69921         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
69922         * lib/openat.h (fdopendir): Drop prototype.
69923         * lib/dirent.in.h (fdopendir): Provide prototype.
69924         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
69925         * modules/dirent (Makefile.am): Substitute them.
69926         * MODULES.html.sh (File system functions): Mention it.
69927         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
69928         * modules/fdopendir-tests: New file.
69929         * tests/test-fdopendir.c: Likewise.
69931         fchdir: use more consistent macro convention
69932         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
69933         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
69934         REPLACE_FCHDIR, rather than relying on config.h macros.
69935         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
69936         inside a single make-time REPLACE_FCHDIR block, rather than using
69937         the config.h FCHDIR_REPLACEMENT.
69938         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
69939         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
69940         Manage fstat replacement.
69941         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
69942         REPLACE_FCHDIR.
69943         * modules/sys_stat (Files): Add m4/unistd_h.m4.
69944         (Makefile.am): Substitute REPLACE_FCHDIR.
69945         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
69946         FCHDIR_REPLACEMENT.
69947         * lib/dup-safer.c (dup_safer): Likewise.
69948         * lib/dup2.c (rpl_dup2): Likewise.
69949         * lib/dup3.c (rpl_dup3): Likewise.
69950         * lib/open.c (rpl_open): Likewise.
69952         fchdir: simplify error handling, and support dup3
69953         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
69954         stdbool, malloc-posix, realloc-posix.
69955         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
69956         (ensure_dirs_slot): Return false on allocation failure.
69957         (rpl_dup2): Delete.
69958         (_gl_register_dup): New function.
69959         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
69960         (_gl_register_fd): Close fd on allocation failure.
69961         * lib/fcntl.in.h (_gl_register_fd): Update signature.
69962         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
69963         prototype.
69964         (rpl_dup2_fchdir): Delete prototype.
69965         * lib/open.c (open): Update caller.
69966         * lib/dup2.c (dup2): Track fchdir metadata.
69967         * lib/dup3.c (dup3): Likewise.
69968         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
69969         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
69971 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69973         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
69974         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
69975         don't pass arguments to AC_OUTPUT.
69977 2009-09-02  Bruno Haible  <bruno@clisp.org>
69979         * modules/mkdtemp (License): Relicense under LGPLv2+.
69980         Reported by Paolo Bonzini.
69982 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69984         Replace uses of obsolete autoconf macros in Jim's modules.
69985         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
69986         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
69987         can evoke a warning from autoconf when run with -Wobsolete
69988         enabled.  They were declared obsolete for good reasons (see
69989         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
69990         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
69991         should not continue using the deprecated macros.
69992         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
69993         obsolete Autoconf macros with modern counterparts.
69994         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
69995         * m4/dos.m4 (gl_AC_DOS): Likewise.
69996         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
69997         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
69998         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
69999         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
70000         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
70001         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
70002         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
70003         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
70004         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
70005         Likewise.
70006         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
70007         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
70008         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
70009         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
70010         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
70011         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
70013 2009-09-01  Eric Blake  <ebb9@byu.net>
70015         fchdir: fix off-by-one bug in previous patch
70016         * lib/fchdir.c (rpl_fstat): Use correct bounds.
70017         (_gl_unregister_fd): Delete useless if.
70019 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
70021         maint.mk: sort the list of syntax-check rules
70022         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
70023         easier to get a sense of progress when the rules are run sequentially
70024         and take a long time.
70026 2009-09-01  Simon Josefsson  <simon@josefsson.org>
70028         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
70029         * modules/netinet_in: Likewise.
70030         * modules/sys_file: Likewise.
70031         * modules/sys_ioctl: Likewise.
70032         * modules/sys_select: Likewise.
70033         * modules/sys_socket: Likewise.
70034         * modules/sys_stat: Likewise.
70035         * modules/sys_time: Likewise.
70036         * modules/sys_times: Likewise.
70037         * modules/sys_utsname: Likewise.
70038         * modules/sys_wait: Likewise.
70040 2009-09-01  Jim Meyering  <meyering@redhat.com>
70042         fts: help ensure that return values are not ignored
70043         * lib/fts_.h (__GNUC_PREREQ): Define.
70044         (__attribute_warn_unused_result__): Define.
70045         (fts_children, fts_close, fts_open, fts_read): Declare with
70046         __attribute_warn_unused_result__.
70048         fts: fts_close now fails also when closing a dir file descriptor fails
70049         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
70050         and propagate to caller, along with errno.
70052         announce-gen: correct formatting in --help output
70053         * build-aux/announce-gen (usage): Move the one-line description in
70054         --help output "up", to where it belongs, just after Usage:.
70056 2009-08-31  Eric Blake  <ebb9@byu.net>
70058         fchdir: port to mingw
70059         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
70060         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
70061         opened, then use a substitute.
70062         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
70063         replacement.
70064         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
70065         (_gl_register_fd): No need to check stat if open already filters
70066         all directories.
70067         (fchdir): Fix error condition to match POSIX.
70068         * modules/fchdir (Depends-on): Add sys_stat.
70069         * doc/posix-functions/open.texi (open): Document the limitation.
70070         * modules/fchdir-tests: New file.
70071         * tests/test-fchdir.c: Likewise.
70073         canonicalize: allow cross-testing from cygwin to mingw
70074         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
70075         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
70076         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
70077         Likewise.
70078         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
70079         target does not support symlinks.
70080         * tests/test-canonicalize-lgpl.sh: Likewise.
70082         chown: avoid compilation warning on mingw
70083         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
70084         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
70085         mingw.
70086         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
70087         * modules/chown (Depends-on): Add errno.
70089 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
70091         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
70092         command.
70094 2009-08-31  Jim Meyering  <meyering@redhat.com>
70096         canonicalize: remove useless initialization
70097         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
70098         initialization of local, "end".
70100 2009-08-30  Bruno Haible  <bruno@clisp.org>
70102         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
70103         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
70104         ENOSYS.
70106 2009-08-30  Bruno Haible  <bruno@clisp.org>
70108         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
70109         /usr/xpg4/bin/tr when it exists.
70110         * tests/test-pipe-filter-gi1.sh: Likewise.
70112 2009-08-30  Bruno Haible  <bruno@clisp.org>
70114         Work around deficient /usr/bin/id program on Solaris.
70115         * tests/test-file-has-acl.sh (ID): New variable.
70116         * tests/test-set-mode-acl.sh (ID): Likewise.
70117         * tests/test-copy-acl.sh (ID): Likewise.
70118         * tests/test-copy-file.sh (ID): Likewise.
70120 2009-08-30  Bruno Haible  <bruno@clisp.org>
70122         New module 'xstriconveh'.
70123         * lib/xstriconveh.h: New file.
70124         * lib/xstriconveh.c: New file.
70125         * modules/xstriconveh: New file.
70127 2009-08-30  Bruno Haible  <bruno@clisp.org>
70129         Make it easier to use mem_cd_iconveh.
70130         * lib/striconveh.h (iconveh_t): New type.
70131         (iconveh_open, iconveh_close): New declarations.
70132         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
70133         with a single 'const iconveh_t *' argument.
70134         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
70135         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
70136         with a single 'const iconveh_t *' argument.
70137         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
70138         * tests/test-striconveh.c (main): Update.
70139         * NEWS: Mention the change.
70141 2009-08-30  Bruno Haible  <bruno@clisp.org>
70143         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
70144         problem.
70146 2009-08-30  Bruno Haible  <bruno@clisp.org>
70148         Work around iconv_open problem on Solaris.
70149         * lib/iconv_open-solaris.gperf: New file.
70150         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
70151         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
70152         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
70153         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
70154         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
70155         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
70157 2009-08-29  Jim Meyering  <meyering@redhat.com>
70159         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
70160         * top/maint.mk (cvs-check): Remove target; it was just an alias
70161         to the better-named vc-diff-check.
70162         (maintainer-distcheck): Remove rule.  It was used only from
70163         the (alpha/beta/major) target, and all of its commands but one
70164         were coreutils-specific.
70165         (vc-dist): Remove rule.
70166         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
70167         Run vc-diff-check, not vc-dist.
70168         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
70170 2009-08-27  Bruno Haible  <bruno@clisp.org>
70172         * tests/test-bitrotate.c (main): Remove test that uses a shift count
70173         of 0.
70175 2009-08-27  Bruno Haible  <bruno@clisp.org>
70177         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
70178         compilers.
70179         * doc/func.texi: Document the SunPRO C bug.
70181 2009-08-27  Bruno Haible  <bruno@clisp.org>
70183         Fix link error on Solaris.
70184         * tests/test-parse-duration.c (xstrdup): Remove function.
70186 2009-08-26  Pádraig Brady  <P@draigbrady.com>
70188         ignore-value: handle pointer types, too
70189         * lib/ignore-value.h (__attribute__): Remove definition.
70190         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
70191         of a more concise and more-often effective "(void) i" statement.
70192         (ignore_ptr): New function to suppress warnings from functions that
70193         return pointers, and to make it explicit that one function doesn't
70194         handle all cases.
70196 2009-08-25  Bruno Haible  <bruno@clisp.org>
70198         dup2: work around a Linux bug.
70199         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
70200         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
70201         * doc/posix-functions/dup2.texi: Mention the Linux bug.
70202         Reported by Simon Josefsson.
70204 2009-08-25  Jim Meyering  <meyering@redhat.com>
70206         libguestfs uses gnulib
70207         * users.txt: Add libguestfs.
70209 2009-08-24  Eric Blake  <ebb9@byu.net>
70211         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
70212         * lib/pipe2.c (includes): Add binary-io.h.
70213         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
70215 2009-08-24  Bruno Haible  <bruno@clisp.org>
70217         Tolerate declared but missing accept4 syscall.
70218         * lib/accept4.c (accept4): Invoke original accept4 function first, if
70219         available.
70220         * lib/sys_socket.in.h (accept4): If the function is already present,
70221         override it.
70222         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
70223         * modules/accept4 (Makefile.am): Compile accept4.c always.
70224         Reported by Paolo Bonzini and Eric Blake.
70226 2009-08-23  Bruno Haible  <bruno@clisp.org>
70228         New module 'accept4'.
70229         * lib/sys_socket.in.h (accept4): New declaration.
70230         * lib/accept4.c: New file.
70231         * m4/accept4.m4: New file.
70232         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
70233         GNULIB_ACCEPT4, HAVE_ACCEPT4.
70234         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
70235         HAVE_ACCEPT4.
70236         * modules/accept4: New file.
70237         * doc/glibc-functions/accept4.texi: Mention the new module.
70239 2009-08-24  Jim Meyering  <meyering@redhat.com>
70241         progname: also set global program_invocation_name, when possible
70242         Before this change, a libtool-enabled program that calls glibc's
70243         error function would report the program name as
70244         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
70245         * modules/progname (configure.ac): Check for a declaration of
70246         program_invocation_name.
70247         * lib/progname.c:  Include <errno.h>.
70248         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
70249         Set program_invocation_name.
70251 2009-08-23  Bruno Haible  <bruno@clisp.org>
70253         * lib/dup3.c: Include <string.h>.
70255 2009-08-23  Bruno Haible  <bruno@clisp.org>
70257         * lib/dup3.c (dup3): Test only once whether the system actually exists.
70258         * lib/pipe2.c (pipe2): Likewise.
70259         Suggested by Eric Blake.
70261 2009-08-23  Bruno Haible  <bruno@clisp.org>
70263         Tolerate declared but missing dup3 syscall.
70264         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
70265         * lib/unistd.in.h (dup3): If the function is already present,
70266         override it.
70267         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
70268         * modules/dup3 (Makefile.am): Compile dup3.c always.
70269         Reported by Paolo Bonzini.
70271 2009-08-23  Bruno Haible  <bruno@clisp.org>
70273         Tolerate declared but missing pipe2 syscall.
70274         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
70275         available.
70276         * lib/unistd.in.h (pipe2): If the function is already present,
70277         override it.
70278         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
70279         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
70280         Reported by Paolo Bonzini.
70282 2009-08-23  Bruno Haible  <bruno@clisp.org>
70284         * lib/pipe2.c (pipe2): Move #ifs inside function.
70286 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
70288         quotearg: document limitations of quote_these_too
70289         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
70290         those limitations are created.
70291         * lib/quotearg.h (set_char_quoting): Document that digits and
70292         letters that are special after backslash are not permitted.
70293         (quotearg_char): Cross-reference set_char_quoting documentation.
70295 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
70297         quotearg: implement custom_quoting_style
70298         * lib/quotearg.c: (struct quoting_options): Add left_quote and
70299         right_quote fields.
70300         (set_custom_quoting): New public function.
70301         (quotearg_buffer_restyled): Add left_quote and right_quote
70302         arguments, handle them very much like locale quoting, and update
70303         all uses.
70304         (quotearg_n_custom): New public function.
70305         (quotearg_n_custom_mem): New public function.
70306         (quotearg_custom): New public function.
70307         (quotearg_custom_mem): New public function.
70308         * lib/quotearg.h: Prototype and document new public functions.
70309         (enum quoting_style): For escape_quoting_style and
70310         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
70311         ignored even though they're otherwise like c_quoting_style.
70312         Add custom_quoting_style member and document with comparison to
70313         clocale_quoting_style.
70314         * tests/test-quotearg.c (custom_quotes): New array.
70315         (custom_results): New array.
70316         (main): Extend to test custom quoting.
70318 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
70320         quotearg: fix right quote escaping when it's in quote_these_too
70321         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
70322         quote, be sure to prepend only one backslash.
70323         * tests/test-quotearg.c (use_quote_double_quotes): New function.
70324         (main): Test it.
70326 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
70328         quotearg-tests: test escaping of embedded locale quotes
70329         * tests/test-quotearg.c (struct result_strings): Add member for
70330         new input.
70331         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
70332         (inputs): Add new input.
70333         (results_g): Add expected results.
70334         (flag_results): Likewise.
70335         (locale_results): Likewise.
70336         (compare_strings): Check those.
70338 2009-08-23  Bruno Haible  <bruno@clisp.org>
70340         Tests for module 'dup3'.
70341         * modules/dup3-tests: New file.
70342         * tests/test-dup3.c: New file.
70344         New module 'dup3'.
70345         * lib/unistd.in.h (dup3): New declaration.
70346         * lib/dup3.c: New file.
70347         * m4/dup3.m4: New file.
70348         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
70349         HAVE_DUP3.
70350         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
70351         * modules/dup3: New file.
70352         * doc/glibc-functions/dup3.texi: Mention the new module.
70354 2009-08-23  Bruno Haible  <bruno@clisp.org>
70356         Tweak the dup2 test.
70357         * tests/test-dup2.c (main): Create the test file empty. Verify that an
70358         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
70359         the test file is still empty. Fix argument order of lseek.
70361 2009-08-23  Bruno Haible  <bruno@clisp.org>
70363         Avoid test link errors when the modules getopt-gnu, gettext are used.
70364         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
70365         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
70367 2009-08-23  Bruno Haible  <bruno@clisp.org>
70369         Fix getdtablesize() on mingw.
70370         * lib/getdtablesize.c (getdtablesize): Implement differently.
70371         * lib/unistd.in.h (getdtablesize): Improve comment.
70373 2009-08-23  Bruno Haible  <bruno@clisp.org>
70375         New module 'mkostemp'.
70376         Based on Ulrich Drepper's 2007-08-10 change in glibc.
70377         * lib/stdlib.in.h (mksotemp): New declaration.
70378         * lib/mkostemp.c: New file, from glibc with modifications.
70379         * lib/tempname.h (GT_FILE): Remove outdated comment.
70380         (gen_tempname): Add flags argument.
70381         * lib/tempname.c (__GT_BIGFILE): Remove macro.
70382         (__GT_FILE): Map to 1.
70383         (small_open, large_open): Remove macros.
70384         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
70385         * lib/mkstemp.c (mkstemp): Update.
70386         * lib/mkdtemp.c (mkdtemp): Likewise.
70387         * m4/mkostemp.m4: New file.
70388         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
70389         HAVE_MKOSTEMP.
70390         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
70391         HAVE_MKOSTEMP.
70392         * modules/mkostemp: New file, based on modules/mkstemp.
70393         * doc/glibc-functions/mkostemp.texi: Mention the new module.
70394         * NEWS: Mention the change.
70396 2009-08-23  Bruno Haible  <bruno@clisp.org>
70398         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
70399         Reported by Eric Blake.
70401 2009-08-23  Bruno Haible  <bruno@clisp.org>
70403         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
70404         Reported by Eric Blake.
70406 2009-08-23  Bruno Haible  <bruno@clisp.org>
70408         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
70409         * modules/pipe2 (Depends-on): Likewise.
70411 2009-08-23  Eric Blake  <ebb9@byu.net>
70413         fcntl-h: add O_TTY_INIT support
70414         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
70415         * tests/test-fcntl-h.c (o): Test it.
70416         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
70418         fcntl-h: rename from fcntl, in preparation for fcntl(2)
70419         * modules/fcntl: Move <fcntl.h> header replacement...
70420         * modules/fcntl-h: ...to new name, so as not to collide with
70421         like-named function.
70422         * tests/test-fcntl.c: Rename...
70423         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
70424         * modules/fcntl-tests: Rename...
70425         * modules/fcntl-h-tests: ...to this.  Update test file name.
70426         * modules/chdir-long (Depends-on): Update clients.
70427         * modules/chdir-safer (Depends-on): Likewise.
70428         * modules/fcntl-safer (Depends-on): Likewise.
70429         * modules/fts (Depends-on): Likewise.
70430         * modules/mkancesdirs (Depends-on): Likewise.
70431         * modules/mkdir-p (Depends-on): Likewise.
70432         * modules/open (Depends-on): Likewise.
70433         * modules/savewd (Depends-on): Likewise.
70434         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
70435         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
70437 2009-08-22  Bruno Haible  <bruno@clisp.org>
70439         * modules/binary-io (License): Relicense under LGPL.
70440         * modules/pipe2 (License): Likewise.
70442 2009-08-22  Bruno Haible  <bruno@clisp.org>
70444         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
70445         return value.
70446         * lib/pipe-filter-gi.c (filter_init): Likewise.
70447         Reported by Eric Blake.
70449 2009-08-22  Bruno Haible  <bruno@clisp.org>
70451         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
70452         * modules/pipe (Depends-on): Add pipe2.
70454 2009-08-22  Bruno Haible  <bruno@clisp.org>
70456         Tests for module 'pipe2'.
70457         * modules/pipe2-tests: New file.
70458         * tests/test-pipe2.c: New file.
70460         New module 'pipe2'.
70461         * lib/unistd.in.h (pipe2): New declaration.
70462         * lib/pipe2.c: New file.
70463         * m4/pipe2.m4: New file.
70464         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
70465         HAVE_PIPE2.
70466         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
70467         * modules/pipe2: New file.
70468         * doc/glibc-functions/pipe2.texi: Mention the new module.
70470 2009-08-22  Bruno Haible  <bruno@clisp.org>
70472         Reference some new glibc functions.
70473         * doc/glibc-functions/accept4.texi: New file.
70474         * doc/glibc-functions/dup3.texi: New file.
70475         * doc/glibc-functions/mkostemp.texi: New file.
70476         * doc/glibc-functions/pipe2.texi: New file.
70477         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
70478         (Glibc sys/socket.h): Refer to accept4.
70479         (Glibc unistd.h): Refer to dup3, pipe2.
70480         Reported by Eric Blake.
70482 2009-08-22  Jim Meyering  <meyering@redhat.com>
70483             Bruno Haible  <bruno@clisp.org>
70485         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
70486         This makes it so packages using automake-1.11's silent-rules option
70487         can print e.g., a single "GEN    configmake.h" line, rather than
70488         the 30+ statements that perform the job.  If you want to see the
70489         actual commands, you can still run "make V=1".
70490         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
70491         so that make output is abbreviated when those variables are defined
70492         appropriately.
70493         * modules/argz: Likewise.
70494         * modules/arpa_inet: Likewise.
70495         * modules/byteswap: Likewise.
70496         * modules/configmake: Likewise.
70497         * modules/dirent: Likewise.
70498         * modules/errno: Likewise.
70499         * modules/fcntl: Likewise.
70500         * modules/float: Likewise.
70501         * modules/fnmatch: Likewise.
70502         * modules/getopt-posix: Likewise.
70503         * modules/glob: Likewise.
70504         * modules/iconv_open: Likewise.
70505         * modules/inttypes: Likewise.
70506         * modules/localcharset: Likewise.
70507         * modules/locale: Likewise.
70508         * modules/math: Likewise.
70509         * modules/netdb: Likewise.
70510         * modules/netinet_in: Likewise.
70511         * modules/poll: Likewise.
70512         * modules/posix_spawnp-tests: Likewise.
70513         * modules/sched: Likewise.
70514         * modules/search: Likewise.
70515         * modules/selinux-h: Likewise.
70516         * modules/signal: Likewise.
70517         * modules/spawn: Likewise.
70518         * modules/stdarg: Likewise.
70519         * modules/stdbool: Likewise.
70520         * modules/stddef: Likewise.
70521         * modules/stdint: Likewise.
70522         * modules/stdio: Likewise.
70523         * modules/stdlib: Likewise.
70524         * modules/string: Likewise.
70525         * modules/strings: Likewise.
70526         * modules/sys_file: Likewise.
70527         * modules/sys_ioctl: Likewise.
70528         * modules/sys_select: Likewise.
70529         * modules/sys_socket: Likewise.
70530         * modules/sys_stat: Likewise.
70531         * modules/sys_time: Likewise.
70532         * modules/sys_times: Likewise.
70533         * modules/sys_utsname: Likewise.
70534         * modules/sys_wait: Likewise.
70535         * modules/sysexits: Likewise.
70536         * modules/time: Likewise.
70537         * modules/unistd: Likewise.
70538         * modules/wchar: Likewise.
70539         * modules/wctype: Likewise.
70541 2009-08-22  Jim Meyering  <meyering@redhat.com>
70543         announce-gen: detect write failure
70544         * build-aux/announce-gen: Add Coda at end.
70545         Remove equivalent-but-more-verbose block at top.
70547 2009-08-19  Akim Demaille  <demaille@gostai.com>
70549         bootstrap: --help to stdout.
70550         * bootstrap (usage): Don't send --help to stderr.
70551         Use a here doc instead of a long string.
70553 2009-08-21  Eric Blake  <ebb9@byu.net>
70555         test-popen-safer: split from test-popen
70556         * tests/test-popen.c (main): Move...
70557         * tests/test-popen.h: ...into new file.
70558         * tests/test-popen-safer2.c: New file.
70559         * modules/popen-tests (Files): Add test-popen.h.
70560         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
70561         Suggested by Bruno Haible.
70563         test-fcntl-safer: split from test-open
70564         * tests/test-open.c (main): Move...
70565         * tests/test-open.h: ...into new file.
70566         * tests/test-fcntl-safer.c: New file.
70567         * modules/open-tests (Files): Add test-open.h.
70568         * modules/fcntl-safer-tests: New file.
70569         Suggested by Bruno Haible.
70571         test-fopen-safer: split from test-fopen
70572         * tests/test-fopen.c (main): Move...
70573         * tests/test-fopen.h: ...into new file.
70574         * tests/test-fopen-safer.c: New file.
70575         * modules/fopen-tests (Files): Add test-fopen.h.
70576         * modules/fopen-safer-tests: New file.
70577         Suggested by Bruno Haible.
70579 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
70581         popen-safer: test O_CLOEXEC at run-time.
70582         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
70584 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
70586         fcntl: move more flags to the header
70587         * lib/cloexec.c: Do not define FD_CLOEXEC here.
70588         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
70589         * lib/fcntl.in.h: Do both things here.
70591 2009-08-21  Jim Meyering  <meyering@redhat.com>
70593         consistently remove $@-t before redirecting to it
70594         * modules/argz: Remove $@-t and $@ before redirecting to the former.
70595         * modules/alloca-opt: Likewise.
70596         * modules/byteswap: Likewise.
70597         * modules/fnmatch: Likewise.
70598         * modules/getopt-posix: Likewise.
70599         * modules/glob: Likewise.
70600         * modules/poll: Likewise.
70601         * modules/posix_spawnp-tests: Likewise.
70602         * modules/sys_socket: Likewise.
70603         * modules/sysexits: Likewise.
70605 2009-08-21  Eric Blake  <ebb9@byu.net>
70607         popen: simplify access to original popen
70608         * lib/popen.c (rpl_popen): No need to worry about popen being a
70609         macro.
70610         Reported by Bruno Haible.
70612 2009-08-20  Eric Blake  <ebb9@byu.net>
70614         build: avoid some compiler warnings
70615         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
70616         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
70617         type.
70618         (new_exclude_segment, excluded_file_pattern_p)
70619         (excluded_file_name_p): Reduce scope.
70620         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
70621         old-style declaration.
70623 2009-08-20  Simon Josefsson  <simon@josefsson.org>
70625         * tests/test-exclude1.sh: Handle Windows EOL.
70626         * tests/test-exclude2.sh: Likewise.
70627         * tests/test-exclude3.sh: Likewise.
70628         * tests/test-exclude4.sh: Likewise.
70629         * tests/test-exclude5.sh: Likewise.
70630         * tests/test-exclude6.sh: Likewise.
70631         * tests/test-exclude7.sh: Likewise.
70633 2009-08-19  Akim Demaille  <demaille@gostai.com>
70635         bootstrap: find sha1sum when named gsha1sum.
70636         * bootstrap (find_tool): New.
70637         ($SHA1SUM): New.
70638         Use it.
70640 2009-08-20  Jim Meyering  <meyering@redhat.com>
70642         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
70643         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
70644         expression that converts "." in a file name to "\." in the resulting
70645         regexp.  Start with a dummy statement, so that prior shell variable
70646         definitions are expanded portably.  Reported by Simon Josefsson.
70648 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
70650         Fix polling for writeability of a screen buffer.
70651         * lib/poll.c: Distinguish input and screen buffers for the
70652         Win32 implementation.
70653         * lib/select.c: Likewise.
70655 2009-08-19  Eric Blake  <ebb9@byu.net>
70657         popen-safer: prevent popen from clobbering std descriptors
70658         * modules/popen-safer: New file.
70659         * lib/popen-safer.c: Likewise.
70660         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
70661         * lib/stdio--.h (popen): Provide override.
70662         * lib/stdio-safer.h (popen_safer): Provide declaration.
70663         * tests/test-popen.c (includes): Partially test this.
70664         * modules/popen-safer-tests: New file, for more tests.
70665         * tests/test-popen-safer.c: Likewise.
70666         * MODULES.html.sh (file stream based Input/Output): Mention it.
70668         tests: test some of the *-safer modules
70669         * modules/fopen-safer (Depends-on): Add fopen.
70670         * modules/fcntl-safer (Depends-on): Add fcntl.
70671         * modules/stdlib-safer (Depends-on): Add stdlib.
70672         (configure.ac): Set indicator.
70673         * modules/unistd-safer (configure.ac): Likewise.
70674         * modules/tmpfile-safer (configure.ac): Likewise.
70675         (Depends-on): Add tmpfile.
70676         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
70677         active.
70678         * tests/test-fopen.c (includes): Test safer versions when they are
70679         in use.
70680         * tests/test-open.c (includes): Likewise.
70682         popen: fix cygwin 1.5 bug when stdin closed
70683         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
70684         * modules/popen: New file.
70685         * modules/popen-tests: Likewise.
70686         * tests/test-popen.c: Likewise.
70687         * m4/popen.m4: Likewise.
70688         * lib/popen.c: Likewise.
70689         * lib/stdio.in.h (popen): New declaration.
70690         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
70691         * modules/stdio (Makefile.am): Likewise.
70692         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
70694 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
70696         maint.mk: give full control over update-copyright exclusions
70697         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
70698         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
70699         (update-copyright): Don't force inclusion of top-level
70700         ChangeLog.  Don't force exclusion of all COPYING files, but make
70701         them the default exclusion instead.
70703 2009-08-16  Bruno Haible  <bruno@clisp.org>
70705         Fix test failures on Solaris 10.
70706         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
70707         tests when Solaris iconv() is used.
70708         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
70709         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
70710         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
70711         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
70712         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
70714 2009-08-16  Bruno Haible  <bruno@clisp.org>
70716         Fix test failures on Solaris 10.
70717         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
70718         'tr' program and pass it as first argument.
70719         * tests/test-pipe-filter-gi1.sh: Likewise.
70720         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
70721         program as first argument.
70722         * tests/test-pipe-filter-gi1.c (main): Likewise.
70724 2009-08-16  Eric Blake  <ebb9@byu.net>
70726         fpurge: fix previous commits
70727         * modules/fpurge (Makefile.am): Make replacement conditional,
70728         partially reverting 2007-04-29 change; missed in previous
70729         attempt.
70730         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
70731         is missing.
70733 2009-08-16  Bruno Haible  <bruno@clisp.org>
70735         Clarify fpurge's effect on the file position.
70736         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
70737         * tests/test-fpurge.c (main): Make a second pass for checking the file
70738         position.
70740 2009-08-16  Bruno Haible  <bruno@clisp.org>
70742         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
70743         declaration of fpurge is missing.
70744         * tests/test-fpurge.c (main): Check that the file has not more contents
70745         than expected. Close the file before removing it.
70747 2009-08-15  Eric Blake  <ebb9@byu.net>
70749         fpurge: don't wrap working cygwin implementation
70750         * lib/fpurge.c (fpurge): Fix comment typo.
70751         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
70752         1.7 to avoid replacement.
70753         * tests/test-fpurge.c (main): Enhance test.
70755 2009-08-15  Eric Blake  <ebb9@byu.net>
70756         and Jim Meyering  <meyering@redhat.com>
70758         test-update-copyright: skip if perl is insufficient
70759         * tests/test-update-copyright.sh: Failure to run maintainer tool
70760         should not cause testsuite failure on cygwin 1.5.
70762 2009-08-14  Eric Blake  <ebb9@byu.net>
70764         doc: mention more functions added in cygwin 1.7.0
70765         * doc/posix-headers/limits.texi (limits.h): Update for recent
70766         cygwin additions.
70767         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
70768         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
70769         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
70770         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
70771         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
70773 2009-08-14  Eric Blake  <ebb9@byu.net>
70775         maint.mk: simplify update-copyright rule
70776         * top/maint.mk (update-copyright-local): Delete, and document how
70777         to do it in cfg.mk instead.
70778         (update-copyright-exclude-regexp): Delete, and document how to do
70779         it in .x-update-copyright instead.
70780         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
70781         exclude ChangeLog.
70783 2009-08-14  Bruno Haible  <bruno@clisp.org>
70785         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
70787 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
70789         maint.mk: support update-copyright-env
70790         * top/maint.mk (update-copyright-env): Define place-holder.
70791         (update-copyright): Expand $(update-copyright-env) before
70792         invoking update-copyright.
70794 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
70796         update-copyright: implement forced reformatting
70797         * build-aux/update-copyright: Implement and document
70798         UPDATE_COPYRIGHT_FORCE.
70799         * tests/test-update-copyright.sh: Test it.
70801 2009-08-14  Eric Blake  <ebb9@byu.net>
70802         and Bruno Haible  <bruno@clisp.org>
70804         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
70805         * tests/test-locale.c: Revert previous patch related to NULL.
70806         * tests/test-stdio.c: Likewise.
70807         * tests/test-stdlib.c: Likewise.
70808         * tests/test-string.c: Likewise.
70809         * tests/test-unistd.c: Likewise.
70810         * modules/time-tests (Depends-on): Add verify.
70811         * modules/wchar-tests (Depends-on): Likewise.
70812         * tests/test-time.c: Test for NULL compliance.
70813         * tests/test-wchar.c: Likewise.
70814         * modules/locale (Depends-on): Add stddef.
70815         * modules/stdio (Depends-on): Likewise.
70816         * modules/stdlib (Depends-on): Likewise.
70817         * modules/string (Depends-on): Likewise.
70818         * modules/time (Depends-on): Likewise.
70819         * modules/unistd (Depends-on): Likewise.
70820         * modules/wchar (Depends-on): Likewise.
70821         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
70822         * lib/stdlib.in.h (includes): Likewise.
70823         * lib/string.in.h (includes): Likewise.
70824         * lib/time.in.h (includes): Likewise.
70825         * lib/unistd.in.h (includes): Likewise.
70826         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
70827         replaced.
70828         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
70829         * m4/stddef_h.m4: New file.
70830         * modules/stddef: Likewise.
70831         * lib/stddef.in.h: Likewise.
70832         * modules/stddef-tests: Likewise.
70833         * tests/test-stddef.c: Likewise.
70834         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
70835         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
70836         * doc/posix-headers/locale.texi (locale.h): Likewise.
70837         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
70838         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
70839         * doc/posix-headers/string.texi (string.h): Likewise.
70840         * doc/posix-headers/time.texi (time.h): Likewise.
70841         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
70842         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
70844 2009-08-14  Eric Blake  <ebb9@byu.net>
70846         doc: improve git diff of texinfo files
70847         * .gitattributes: Add rule for *.texi files, with hint on how to
70848         use it.
70849         Copied from m4, and based on a report by Bruno Haible.
70851 2009-08-14  Bruno Haible  <bruno@clisp.org>
70853         Disable multithread support by default on Cygwin 1.5.x for real.
70854         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
70856 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
70858         update-copyright: much ado about intervals
70859         * build-aux/update-copyright: Implement and document
70860         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
70861         of copyright year intervals.
70862         Also, document UPDATE_COPYRIGHT_YEAR.
70863         * tests/test-update-copyright.sh: Test it.
70865         update-copyright: convert 2-digit to 4-digit years
70866         * build-aux/update-copyright: Implement and document.
70867         * tests/test-update-copyright.sh: Update.
70869 2009-08-14  Jim Meyering  <meyering@redhat.com>
70871         test-exclude: avoid coreutils "make check" failure
70872         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
70873         just as in test-argmatch.c.
70875 2009-08-13  Eric Blake  <ebb9@byu.net>
70877         test-dup2: fix bad assumption
70878         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
70879         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
70881         test-version-etc: fix CRLF portability issue
70882         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
70883         recognize \r.
70884         * tests/test-argp-version-etc-1.sh: Likewise.
70886         getopt: update client modules
70887         * modules/argp (Depends-on): Use getopt-gnu.
70888         * modules/git-merge-changelog (Depends-on): Likewise.
70889         * modules/long-options (Depends-on): Likewise.
70890         * modules/xstrtol (Depends-on): Likewise.
70892 2009-08-13  Simon Josefsson  <simon@josefsson.org>
70894         * tests/test-version-etc.sh: Don't fail on different
70895         project/version.  Don't fail on CRLF differences.  Rewrite to use
70896         multiple -e instead of multiple sed forks, suggested by Eric Blake
70897         <ebb9@byu.net>.
70898         * tests/test-argp-version-etc-1.sh: Likewise.
70900 2009-08-13  Simon Josefsson  <simon@josefsson.org>
70902         * tests/test-version-etc.sh: Don't fail on different
70903         project/version.
70905 2009-08-12  Bruno Haible  <bruno@clisp.org>
70907         Tests for modules 'getopt-posix', 'getopt-gnu'.
70908         * modules/getopt-posix-tests: New file.
70909         * tests/test-getopt.c: New file.
70910         * tests/test-getopt.h: New file.
70911         * tests/test-getopt_long.h: New file.
70913         New modules 'getopt-posix', 'getopt-gnu'.
70914         * modules/getopt-gnu: New file, renamed from modules/getopt.
70915         * modules/getopt-posix: New file.
70916         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
70917         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
70918         (gl_GETOPT): Remove macro.
70919         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
70920         Disable the test against BSD systems that declare optreset. Test
70921         against mingw bug. Test against lack of support of optional arguments
70922         on many platforms.
70923         * doc/glibc-headers/getopt.texi: Update module name and list of
70924         relevant platforms.
70925         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
70926         'getopt-gnu' and more portability problems.
70927         * NEWS: Mention the changes.
70929 2009-08-12  Bruno Haible  <bruno@clisp.org>
70931         Ensure that optarg etc. get declared by <unistd.h>.
70932         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
70933         AC_USE_SYSTEM_EXTENSIONS.
70934         * modules/getopt (Depends-on): Add 'extensions'.
70936 2009-08-12  Bruno Haible  <bruno@clisp.org>
70938         Avoid test link errors.
70939         * modules/pipe-filter-ii-tests (Makefile.am): Define
70940         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
70941         * modules/pipe-filter-gi-tests (Makefile.am): Define
70942         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
70943         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
70945 2009-08-12  Bruno Haible  <bruno@clisp.org>
70947         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
70948         gl_GETOPT_SUBSTITUTE before.
70949         (gl_GETOPT): Use it.
70950         * m4/argp.m4 (gl_ARGP): Update.
70951         Reported by Sergey Poznyakoff.
70953         * m4/getopt.m4: Reorder macros.
70954         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
70955         (gl_GETOPT_SUBSTITUTE): Remove macro.
70957 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
70959         Minor improvement in gitlog-to-changelog
70961         * build-aux/gitlog-to-changelog: New option `--format' makes
70962         output format string configurable.
70964 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
70966         Optimize exclude: use hash tables for non-wildcard patterns.
70968         * lib/exclude.c: Include hash.h and mbuiter.h
70969         (struct exclude_pattern, exclude_segment): New data types.
70970         (struct exclude): Rewrite.
70971         (fnmatch_pattern_has_wildcards): New function.
70972         (new_exclude_segment, free_exclude_segment): New functions.
70973         (excluded_file_pattern_p, excluded_file_name_p): New functions.
70974         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
70975         * lib/exclude.h (is_fnmatch_pattern): New prototype.
70976         * modules/exclude: Depend on hash and mbuiter.
70978         * modules/exclude-tests: New file.
70979         * tests/test-exclude.c: New file.
70980         * tests/test-exclude1.sh: New file.
70981         * tests/test-exclude2.sh: New file.
70982         * tests/test-exclude3.sh: New file.
70983         * tests/test-exclude4.sh: New file.
70984         * tests/test-exclude5.sh: New file.
70985         * tests/test-exclude6.sh: New file.
70986         * tests/test-exclude7.sh: New file.
70988 2009-08-12  Bruno Haible  <bruno@clisp.org>
70990         Ensure that getopt() gets declared by <unistd.h>.
70991         * lib/unistd.in.h: Conditionally include getopt.h.
70992         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
70993         Set GNULIB_UNISTD_H_GETOPT.
70994         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
70995         GNULIB_UNISTD_H_GETOPT.
70996         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
70998 2009-08-12  Bruno Haible  <bruno@clisp.org>
71000         Clarify logic.
71001         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
71002         gl_replace_getopt instead of GETOPT_H.
71004 2009-08-12  Bruno Haible  <bruno@clisp.org>
71006         * m4/getopt.m4: Add comments.
71008 2009-08-12  Bruno Haible  <bruno@clisp.org>
71010         Disable multithread support by default on Cygwin 1.5.x.
71011         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
71012         set gl_use_threads=no if not specified otherwise.
71014 2009-08-11  Bruno Haible  <bruno@clisp.org>
71016         Avoid compilation error on NetBSD 5.0.
71017         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
71018         * tests/test-stdio.c: Likewise.
71019         * tests/test-stdlib.c: Likewise.
71020         * tests/test-string.c: Likewise.
71021         * tests/test-unistd.c: Likewise.
71022         Reported by Greg Troxel <gdt@ir.bbn.com>
71023         at <https://savannah.gnu.org/support/?106973>.
71025 2009-08-11  Bruno Haible  <bruno@clisp.org>
71027         * modules/dup2-tests (Depends-on): Remove close.
71029         Undo 2009-07-19 commit.
71030         * modules/acl-tests (Depends-on): Remove close.
71031         * modules/binary-io-tests (Depends-on): Likewise.
71032         * modules/closein-tests (Depends-on): Likewise.
71033         * modules/flock-tests (Depends-on): Likewise.
71034         * modules/fsync-tests (Depends-on): Likewise.
71035         * modules/lseek-tests (Depends-on): Likewise.
71036         * modules/pipe-tests (Depends-on): Likewise.
71037         * modules/posix_spawn-tests (Depends-on): Likewise.
71038         * modules/posix_spawnp-tests (Depends-on): Likewise.
71039         * modules/stat-time-tests (Depends-on): Likewise.
71040         * modules/yesno-tests (Depends-on): Likewise.
71042 2009-08-10  Bruno Haible  <bruno@clisp.org>
71044         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
71046 2009-08-10  Bruno Haible  <bruno@clisp.org>
71048         Fix a gcc warning.
71049         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
71051 2009-08-10  Bruno Haible  <bruno@clisp.org>
71053         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
71054         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
71055         not only the first time.
71056         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
71057         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
71058         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
71059         is 1, not only the first time.
71061 2009-08-10  Bruno Haible  <bruno@clisp.org>
71063         Make it possible to use module 'gethostname' without module 'close'.
71064         * lib/unistd.in.h (close): Evoke a link error only if
71065         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
71066         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
71067         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
71068         * modules/unistd (Makefile.am): Substitute
71069         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
71070         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
71071         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
71072         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
71073         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
71074         * modules/sys_ioctl (Makefile.am): Substitute
71075         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
71076         * modules/socket (configure.ac): On native Windows, set
71077         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
71078         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
71079         Reported by Sam Steingold <sds@gnu.org>.
71081 2009-08-10  Bruno Haible  <bruno@clisp.org>
71083         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
71084         * modules/ioctl (configure.ac): Likewise.
71086 2009-08-10  Bruno Haible  <bruno@clisp.org>
71088         Avoid collision between gnulib wrapper and libintl wrapper.
71089         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
71090         already defined in intl/printf.c.
71091         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
71092         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
71094 2009-08-09  Bruno Haible  <bruno@clisp.org>
71096         Make <sys/select.h> really self-contained, also on Solaris 10.
71097         * lib/sys_select.in.h: Include <string.h>.
71098         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
71099         Solaris 10 problem.
71100         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
71101         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
71102         Reported by Jim Meyering.
71104 2009-08-09  Bruno Haible  <bruno@clisp.org>
71106         Avoid warnings from 'aclocal' that are due to a use of macro name
71107         AM_XGETTEXT_OPTION that is not defined in automake.
71108         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
71109         automake.
71110         * modules/error (configure.ac): Likewise.
71111         * modules/propername (configure.ac): Likewise.
71112         * modules/vasprintf (configure.ac): Likewise.
71113         * modules/verror (configure.ac): Likewise.
71114         * modules/xprintf (configure.ac): Likewise.
71115         * modules/xvasprintf (configure.ac): Likewise.
71117 2009-08-08  Bruno Haible  <bruno@clisp.org>
71119         Avoid compilation error in C++ mode.
71120         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
71121         Reported by Sam Steingold <sds@gnu.org>.
71123 2009-08-08  Bruno Haible  <bruno@clisp.org>
71125         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
71126         for the various Unix platforms.
71127         * doc/posix-headers/limits.texi: Update platforms list regarding
71128         HOST_NAME_MAX.
71129         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
71131 2009-08-07  Jim Meyering  <meyering@redhat.com>
71133         selinux-at: fix typo in a comment
71134         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
71135         Spotted by Paolo Bonzini.
71137         selinux-at: remove redundant m4 code, add documentation
71138         * modules/selinux-at (configure.ac): Remove redundant code.
71139         LIB_SELINUX is already set via the dependent module, selinux-h.
71140         (Include): Add quotes around selinux-at.h.
71141         * lib/selinux-at.h: Add documentation.
71142         Reported by Bruno Haible in
71143         http://marc.info/?l=gnulib-bug&m=124958988300749
71145 2009-08-07  Bruno Haible  <bruno@clisp.org>
71147         Avoid link error on MacOS X 10.3 and 10.4.
71148         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
71149         on non-ELF systems.
71150         * lib/argp-pv.c (argp_program_version): Likewise.
71151         Reported by Simon Josefsson.
71153 2009-08-07  Simon Josefsson  <simon@josefsson.org>
71155         * tests/test-version-etc.sh: Use $EXEEXT.
71157 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
71159         update-copyright: update documentation to point to maint.mk
71160         * build-aux/update-copyright: Here.
71162 2009-08-06  Jim Meyering  <meyering@redhat.com>
71164         maint.mk: support update-copyright-local
71165         * top/maint.mk (update-copyright-local): Define place-holder.
71166         (update-copyright): Depend on $(update-copyright-local).
71168 2009-08-06  Jim Meyering  <meyering@redhat.com>
71170         selinux-at: new module
71171         Initially written for coreutils, this module will soon be
71172         used by findutils, too.
71173         * MODULES.html.sh [Misc]: Add selinux-at.
71174         * lib/selinux-at.h: New file, from coreutils.
71175         * lib/selinux-at.c: Likewise.
71176         * modules/selinux-at: Likewise.
71177         (License): Change from LGPL to GPL, since it depends
71178         on the GPL'd openat module.
71180         doc: update README
71181         * README: Remove references to cogito.
71182         Remove cvs-repo-updating instructions from 2007.
71183         Don't imply that CVS is better if you have limited disk space.
71185 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
71187         update-copyright: support C-style comments
71188         * build-aux/update-copyright: Implement and document.
71189         * tests/test-update-copyright.sh: Test.
71191 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
71193         update-copyright: support omitted "(C)"
71194         * build-aux/update-copyright: Implement and document.  Also,
71195         allow variable whitespace before "(C)".
71196         * tests/test-update-copyright.sh: Test.
71198 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
71200         update-copyright: don't trip on non-FSF copyright statements
71201         * build-aux/update-copyright: Fix so that the first correctly
71202         formatted FSF copyright statement is recognized no matter what
71203         appears before it.  Update documentation.
71204         * tests/test-update-copyright.sh: Test that.
71206 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
71208         update-copyright: clean up code a little
71209         * build-aux/update-copyright: Append "_re" to the name of any
71210         variable holding a regular expression.
71211         Replace "old" and "new" with "stmt" in variable names.
71212         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
71213         handled correctly.
71214         Format code more consistently.
71216 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
71218         update-copyright-tests: improve portability
71219         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
71220         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
71222 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
71224         update-copyright: support @copyright{} and &copy;
71225         * build-aux/update-copyright: Implement and document.
71226         * tests/test-update-copyright.sh: Test.
71228 2009-08-04  Jim Meyering  <meyering@redhat.com>
71230         update-copyright-tests: correctly test EOL=\r\n handling
71231         * tests/test-update-copyright.sh: Put \r at the end of some lines
71232         for the dos-eol tests.  Based on a patch by Joel E. Denny.
71234         maint.mk: make update-copyright exclusion list more configurable
71235         * top/maint.mk (update-copyright): Default to excluding COPYING,
71236         but allow an override, in case someone does want to update that file.
71238         maint.mk: don't update copyright date in COPYING
71239         * top/maint.mk (update-copyright): Exclude COPYING.
71241         maint.mk: add a copyright-updating rule
71242         * top/maint.mk (update-copyright): New rule.
71243         Derived from coreutils/Makefile.am.
71245         update-copyright: rename some variables
71246         * build-aux/update-copyright: Rename a few variables for clarity.
71247         Tweak syntax.  List Joel E. Denny as coauthor.
71249 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
71251         update-copyright: fix bug for 2-digit last year and add tests
71252         * build-aux/update-copyright: Fix bug.
71253         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
71254         specified.
71255         * modules/update-copyright-tests: New
71256         * tests/test-update-copyright.sh: New.
71258 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
71260         update-copyright: handle leading tabs in line prefix
71261         * build-aux/update-copyright: Count leading tabs as 8 spaces
71262         when computing margin.  This helps with the formatting of
71263         ChangeLogs, for example.
71264         Fix documentation a little.
71266 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
71268         update-copyright: support EOL=\r\n
71269         * build-aux/update-copyright: Implement that.
71271 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
71273         update-copyright: automatically format copyright statements
71274         * build-aux/update-copyright: Implement that.
71275         Also, be a little more predictable and safer by always failing
71276         when the full copyright format is not perfectly recognized as an
71277         unbroken whole.  Discussed at
71278         <http://lists.gnu.org/r/bug-gnulib/2009-07/msg00131.html>.
71279         Rewrite documentation.
71281 2009-08-03  Bruno Haible  <bruno@clisp.org>
71283         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
71285 2009-08-02  Bruno Haible  <bruno@clisp.org>
71287         Tests for module 'uname'.
71288         * modules/uname-tests: New file.
71289         * tests/test-uname.c: New file.
71291         New module 'uname'.
71292         * lib/uname.c: New file.
71293         * m4/uname.m4: New file.
71294         * modules/uname: New file.
71295         * doc/posix-functions/uname.texi: Mention the new module.
71297 2009-08-02  Bruno Haible  <bruno@clisp.org>
71299         Tests for module 'sys_utsname'.
71300         * modules/sys_utsname-tests: New file.
71301         * tests/test-sys_utsname.c: New file.
71303         New module 'sys_utsname'.
71304         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
71305         * m4/sys_utsname_h.m4: New file.
71306         * modules/sys_utsname: New file.
71307         * doc/posix-headers/sys_utsname.texi: Mention the new module.
71309 2009-08-02  Bruno Haible  <bruno@clisp.org>
71311         Implicitly initialize the sockets library.
71312         * lib/gethostname.c: Include sockets.h.
71313         (rpl_gethostname): Invoke gl_sockets_startup.
71314         * lib/socket.c: Include sockets.h.
71315         (rpl_socket): Invoke gl_sockets_startup.
71316         * modules/gethostname (Depends-on): Add sockets.
71317         * modules/socket (Depends-on): Likewise.
71318         * tests/test-poll.c: Don't include sockets.h.
71319         (main): Don't invoke gl_sockets_startup.
71320         * tests/test-select.c: Don't include sockets.h.
71321         (main): Don't invoke gl_sockets_startup.
71323 2009-08-02  Bruno Haible  <bruno@clisp.org>
71325         Allow multiple calls to gl_sockets_startup.
71326         * lib/sockets.c (initialized_sockets_version): New variable.
71327         (gl_sockets_startup): Do nothing if already called for this or a higher
71328         version.
71329         (gl_sockets_cleanup): Reset initialized_sockets_version.
71331 2009-08-03  Simon Josefsson  <simon@josefsson.org>
71333         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
71334         different project/version.
71336 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
71337             Bruno Haible  <bruno@clisp.org>
71339         Tests for module 'pipe-filter-gi'.
71340         * modules/pipe-filter-gi-tests: New file.
71341         * tests/test-pipe-filter-gi1.sh: New file.
71342         * tests/test-pipe-filter-gi1.c: New file.
71343         * tests/test-pipe-filter-gi2.sh: New file.
71344         * tests/test-pipe-filter-gi2-main.c: New file.
71345         * tests/test-pipe-filter-gi2-child.c: New file.
71347         New module 'pipe-filter-gi'.
71348         * lib/pipe-filter-gi.c: New file.
71349         * modules/pipe-filter-gi: New file.
71351 2009-08-02  Bruno Haible  <bruno@clisp.org>
71352             Paolo Bonzini  <bonzini@gnu.org>
71354         Tests for module 'pipe-filter-ii'.
71355         * modules/pipe-filter-ii-tests: New file.
71356         * tests/test-pipe-filter-ii1.sh: New file.
71357         * tests/test-pipe-filter-ii1.c: New file.
71358         * tests/test-pipe-filter-ii2.sh: New file.
71359         * tests/test-pipe-filter-ii2-main.c: New file.
71360         * tests/test-pipe-filter-ii2-child.c: New file.
71362         New module 'pipe-filter-ii'.
71363         * lib/pipe-filter.h: New file.
71364         * lib/pipe-filter-ii.c: New file.
71365         * lib/pipe-filter-aux.h: New file.
71366         * modules/pipe-filter-ii: New file.
71368 2009-08-02  Simon Josefsson  <simon@josefsson.org>
71370         * lib/gc-libgcrypt.c: Change copyright to FSF.
71371         * lib/gc-gnulib.c: Likewise.
71373 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
71375         * lib/gethostname.c: Include limits.h.
71377 2009-08-02  Simon Josefsson  <simon@josefsson.org>
71378             Bruno Haible  <bruno@clisp.org>
71380         Ensure HOST_NAME_MAX as part of the gethostname module.
71381         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
71382         define also HOST_NAME_MAX.
71383         * tests/test-gethostname.c: Include <limits.h>.
71384         (main): Check also HOST_NAME_MAX.
71385         * doc/posix-headers/limits.texi: Document the mingw problem.
71387 2009-08-02  Bruno Haible  <bruno@clisp.org>
71389         * lib/gethostname.c (gethostname): Fix handling of large len argument.
71390         Add comments.
71392 2009-03-31  Simon Josefsson  <simon@josefsson.org>
71394         * lib/gethostname.c: Add Windows wrapper.
71395         * m4/gethostname.m4: Look for gethostname in -lws2_32.
71396         * modules/gethostname: Depend on sys_socket & errno, for also
71397         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
71398         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
71400 2009-07-31  Jim Meyering  <meyering@redhat.com>
71402         getloadavg: fix symbol name in comment
71403         * lib/getloadavg.c: Correct a typo I introduced when adding
71404         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
71405         Matt Kraai spotted the problem.
71407 2009-07-29  Matt Kraai  <mkraai@beckman.com>
71409         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
71410         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
71411         code also if ! defined N_NAME_POINTER.
71412         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
71413         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
71414         but the n_name member is a 12-byte array.
71416 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
71418         update-copyright: generalize comment handling
71419         * build-aux/update-copyright: Handle copyright statements
71420         within more comment styles.
71421         Document usage.
71422         Report any file with an external copyright holder or parse failure.
71424 2009-07-29  Jim Meyering  <meyering@redhat.com>
71426         mktime: correct setting of REPLACE_MKTIME
71427         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
71429         update-copyright: new module
71430         * modules/update-copyright: New file.
71431         * build-aux/update-copyright: New file.
71432         * MODULES.html.sh (maint+release support): Add update-copyright.
71434 2009-07-27  Bruno Haible  <bruno@clisp.org>
71436         Fix compilation error when <ctime> is used and mktime is replaced.
71437         * lib/time.in.h (mktime): New declaration.
71438         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
71439         REPLACE_MKTIME instead of defining mktime in config.h.
71440         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
71441         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
71442         Reported by Ross McFarland <rwmcfa1@neces.com>.
71444 2009-07-27  Bruno Haible  <bruno@clisp.org>
71446         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
71447         Reported by Matt Kraai <mkraai@beckman.com>.
71449 2009-07-25  Jim Meyering  <meyering@redhat.com>
71451         maint.mk: avoid warnings about missing files
71452         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
71453         diagnostic when .prev-version does not exist.
71454         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
71455         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
71456         nonexistent cfg.mk.
71457         Suggestions from Simon Josefsson.
71459 2009-07-25  Bruno Haible  <bruno@clisp.org>
71461         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
71462         defined as macros. Needed on QNX 6.4.1.
71463         Reported by Matt Kraai <mkraai@beckman.com>.
71465 2009-07-23  Jim Meyering  <meyering@redhat.com>
71467         maint.mk: invoke "make dist" with a working value of XZ_OPT
71468         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
71470 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
71472         Make fseeko.c compile on QNX.
71473         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
71475 2009-07-22  Peter Simons  <simons@cryp.to>
71477         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
71478         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
71479         * lib/md4.h: Likewise.
71480         * lib/md5.h: Likewise.
71481         * lib/sha1.h: Likewise.
71482         * lib/sha256.h: Likewise.
71483         * lib/sha512.h: Likewise.
71485         tests-sha1: don't assign literal string to 'char *' variable
71486         * tests/test-sha1.c (main): Declare locals with "const" to match
71487         attributes of the right hand side.
71489 2009-07-21  Eric Blake  <ebb9@byu.net>
71491         dup2: fix more mingw problems
71492         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
71493         fd to itself.
71494         * doc/posix-functions/dup2.texi (dup2): Document the bug.
71495         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
71496         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
71497         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
71498         care of mingw bugs.
71500 2009-07-21  Jim Meyering  <meyering@redhat.com>
71502         vc-list-files: avoid failure when /bin/sh is dash
71503         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
71504         On some Debian based systems, /bin/sh is a symlink to dash, and running
71505         this command would omit the "/" following each 'tests' prefix:
71506           dash -x build-aux/vc-list-files -C . tests
71507         That is because bash and dash work differently:
71508           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
71509           bash ok
71510           dash odd
71512 2009-07-21  Eric Blake  <ebb9@byu.net>
71514         dup2-tests: test previous patch
71515         * modules/dup2-tests: New file.
71516         * tests/test-dup2.c: Likewise.
71517         * tests/test-open.c (main): Avoid unspecified behavior.
71518         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
71519         test.
71521         dup2: work around mingw and cygwin 1.5 bug
71522         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
71523         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
71524         * modules/unistd (Makefile.am): Substitute it.
71525         * lib/unistd.in.h (dup2): Declare the replacement.
71526         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
71527         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
71528         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
71529         * modules/execute (Depends-on): Add dup2.
71530         * modules/fseterr (Depends-on): Likewise.
71531         * modules/pipe (Depends-on): Likewise.
71532         * modules/posix_spawn-internal (Depends-on): Likewise.
71534 2009-07-21  Bruno Haible  <bruno@clisp.org>
71536         * modules/.gitattributes: New file.
71538 2009-07-20  Bruno Haible  <bruno@clisp.org>
71540         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
71541         (main): Use it.
71543 2009-07-20  Eric Blake  <ebb9@byu.net>
71545         test-pipe: make a bit more robust.
71546         * tests/test-pipe.c (myerr): Allow error messages regardless of
71547         what we do to stderr.
71548         (test_pipe): Rearrange to avoid deadlock.
71549         (child_main): Try a larger read, to ensure we avoided deadlock.
71550         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
71551         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
71552         if misused.
71554 2009-07-19  Jim Meyering  <meyering@redhat.com>
71556         fts: avoid false-positive cycle-detection
71557         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
71558         for each new command line argument.
71560 2009-07-19  Bruno Haible  <bruno@clisp.org>
71562         Fix build error on mingw with the modules sys_select and unistd.
71563         * modules/acl-tests (Depends-on): Add close.
71564         * modules/binary-io-tests (Depends-on): Likewise.
71565         * modules/closein-tests (Depends-on): Likewise.
71566         * modules/flock-tests (Depends-on): Likewise.
71567         * modules/fsync-tests (Depends-on): Likewise.
71568         * modules/lseek-tests (Depends-on): Likewise.
71569         * modules/pipe-tests (Depends-on): Likewise.
71570         * modules/posix_spawn-tests (Depends-on): Likewise.
71571         * modules/posix_spawnp-tests (Depends-on): Likewise.
71572         * modules/stat-time-tests (Depends-on): Likewise.
71573         * modules/yesno-tests (Depends-on): Likewise.
71575 2009-07-19  Bruno Haible  <bruno@clisp.org>
71577         Unify conditionals.
71578         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
71579         macros, not at the compiler macros.
71580         * lib/pipe.c: Likewise.
71581         * lib/execute.c: Likewise.
71582         * lib/spawni.c: Likewise.
71584 2009-07-19  Bruno Haible  <bruno@clisp.org>
71586         Fix handling of closed stdin/stdout/stderr on mingw.
71587         * lib/w32spawn.h: Include unistd.h.
71588         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
71589         file descriptor with O_NOINHERIT flag.
71590         (fd_safer_noinherit): New function, based on fd-safer.c.
71591         (dup_safer_noinherit): New function, based on dup-safer.c.
71592         (undup_safer_noinherit): New function.
71593         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
71594         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
71595         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
71596         instead of fd_safer.
71597         * tests/test-pipe.c: Include <windows.h>.
71598         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
71599         result.
71601         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
71602         from main.
71603         (test_pipe): Pass an extra argument for disambiguation.
71604         (main): Invoke parent_main or child_main.
71606         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
71607         consistently.
71609 2009-07-18  Eric Blake  <ebb9@byu.net>
71611         test-pipe: fix mingw build
71612         * tests/test-pipe.c (main): Avoid fcntl on mingw.
71614 2009-07-18  Bruno Haible  <bruno@clisp.org>
71616         * modules/pipe-tests (Makefile.am): Fix typo.
71618 2009-07-18  Eric Blake  <ebb9@byu.net>
71620         error: fix mingw build
71621         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
71622         Reported by Bruno Haible.
71624         error: avoid undefined use of stdout
71625         * lib/error.c (error, error_at_line): Check that fd 1 is open
71626         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
71627         is handling faults and the close_stdout module wants to report the
71628         detection of closed stdout as an error.
71630 2009-07-17  Eric Blake  <ebb9@byu.net>
71632         pipe: be robust in face of closed fds
71633         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
71634         should cause child to misbehave.
71635         * modules/pipe-tests: New module.
71636         * tests/test-pipe.c: New file.
71637         * tests/test-pipe.sh: New file.
71638         Reported by Akim Demaille.
71640 2009-07-14  Bruno Haible  <bruno@clisp.org>
71642         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
71643         Reported by anonymous kc.
71645 2009-07-07  Jim Meyering  <meyering@redhat.com>
71647         maint.mk: don't look for translatable strings in *.m4 or *.mk
71648         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
71649         when searching for translatable strings.
71651 2009-07-05  Jim Meyering  <meyering@redhat.com>
71653         remove superfluous parentheses in STREQ definition
71654         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
71655         * lib/getugroups.c (STREQ): Likewise.
71656         * lib/fnmatch.c (STREQ): Likewise.
71657         Spotted by Bruno Haible.
71659 2009-07-04  Jim Meyering  <meyering@redhat.com>
71661         argv-iter: new module
71662         * MODULES.html.sh: Add argv-iter.
71663         * lib/argv-iter.c, lib/argv-iter.h: New files.
71664         * modules/argv-iter: New file.
71665         * modules/argv-iter-tests: New file.
71666         * tests/test-argv-iter.c: Test it.
71668 2009-07-04  Bruno Haible  <bruno@clisp.org>
71670         Fix assertion.
71671         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
71672         contains more exact copies of a given entry than file2, leave the extra
71673         copies unpaired rather than aborting.
71674         Reported by Eric Blake.
71676 2009-07-02  Bruno Haible  <bruno@clisp.org>
71678         Speedup git-merge-changelog for git cherry-pick.
71679         * lib/git-merge-changelog.c (struct entries_mapping): New type.
71680         (entries_mapping_get): New function, extracted from compute_mapping.
71681         (entries_mapping_reverse_get): New function.
71682         (compute_mapping): Add a 'full' argument. Return the result in a
71683         'struct entries_mapping'.
71684         (main): Update. Access the mappings through entries_mapping_get.
71685         Reported by Eric Blake.
71687 2009-07-02  Bruno Haible  <bruno@clisp.org>
71689         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
71690         best_i.
71692 2009-07-02  Bruno Haible  <bruno@clisp.org>
71694         Speed up approximate search for matching ChangeLog entries.
71695         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
71696         argument. Call fstrcmp_bounded instead of fstrcmp.
71697         (compute_mapping, try_split_merged_entry, main): Update callers.
71699 2009-07-02  Bruno Haible  <bruno@clisp.org>
71701         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
71703 2009-06-30  Bruno Haible  <bruno@clisp.org>
71705         Reduce the number of uc_is_cased calls.
71706         * lib/unicase.h (casing_suffix_context_t): Add
71707         'first_char_except_ignorable' field.
71708         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
71709         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
71710         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
71711         Update initializer.
71712         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
71713         case-ignorable characters.
71714         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
71715         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
71716         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
71717         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
71718         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
71720 2009-06-30  Bruno Haible  <bruno@clisp.org>
71722         Tests for module 'unicase/ignorable'.
71723         * modules/unicase/ignorable-tests: New file.
71724         * tests/unicase/test-ignorable.c: New file, generated by
71725         gen-uni-tables.
71727         Tests for module 'unicase/cased'.
71728         * modules/unicase/cased-tests: New file.
71729         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
71730         * tests/unicase/test-predicate-part1.h: New file, derived from
71731         tests/unictype/test-predicate-part1.h.
71732         * tests/unicase/test-predicate-part2.h: New file, same as
71733         tests/unictype/test-predicate-part2.h.
71735         Fix evaluation of "Before C" condition of FINAL_SIGMA.
71736         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
71737         (output_casing_properties): New function.
71738         (main): Call it.
71739         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
71740         * lib/unicase/cased.c: Include unictype/bitmap.h.
71741         (uc_is_cased): Define through a bitmap lookup.
71742         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
71743         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
71744         (uc_is_case_ignorable): Define through a bitmap lookup.
71745         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
71746         lib/unictype/bitmap.h.
71747         (Depends-on): Add inline. Clean up.
71748         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
71749         lib/unictype/bitmap.h.
71750         (Depends-on): Add inline. Clean up.
71751         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
71752         recognition.
71753         * tests/unicase/test-u16-tolower.c (main): Likewise.
71754         * tests/unicase/test-u32-tolower.c (main): Likewise.
71756 2009-06-30  Bruno Haible  <bruno@clisp.org>
71758         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
71759         * lib/unicase/u16-casemap.c: Likewise.
71760         * lib/unicase/u32-casemap.c: Likewise.
71762 2009-06-29  Bruno Haible  <bruno@clisp.org>
71764         Define u32_casefold as a wrapper around u32_ct_casefold.
71765         * lib/unicase/u32-casefold.c: Update.
71766         * modules/unicase/u32-casefold (Depends-on): Add
71767         unicase/u32-ct-casefold, unicase/empty-prefix-context,
71768         unicase/empty-suffix-context. Clean up.
71770         Define u16_casefold as a wrapper around u16_ct_casefold.
71771         * lib/unicase/u16-casefold.c: Update.
71772         * modules/unicase/u16-casefold (Depends-on): Add
71773         unicase/u16-ct-casefold, unicase/empty-prefix-context,
71774         unicase/empty-suffix-context. Clean up.
71776         Define u8_casefold as a wrapper around u8_ct_casefold.
71777         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
71778         * lib/unicase/u8-casefold.c: Update.
71779         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
71780         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
71782         Define u32_totitle as a wrapper around u32_ct_totitle.
71783         * lib/unicase/u32-totitle.c: Update.
71784         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
71785         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
71787         Define u16_totitle as a wrapper around u16_ct_totitle.
71788         * lib/unicase/u16-totitle.c: Update.
71789         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
71790         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
71792         Define u8_totitle as a wrapper around u8_ct_totitle.
71793         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
71794         functions.
71795         (FUNC): Delegate to U_CT_TOTITLE.
71796         * lib/unicase/u8-totitle.c: Update.
71797         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
71798         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
71800         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
71801         invocation.
71802         * modules/unicase/u32-tolower (Depends-on): Add
71803         unicase/empty-prefix-context, unicase/empty-suffix-context.
71805         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
71806         invocation.
71807         * modules/unicase/u16-tolower (Depends-on): Add
71808         unicase/empty-prefix-context, unicase/empty-suffix-context.
71810         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
71811         * modules/unicase/u8-tolower (Depends-on): Add
71812         unicase/empty-prefix-context, unicase/empty-suffix-context.
71814         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
71815         invocation.
71816         * modules/unicase/u32-toupper (Depends-on): Add
71817         unicase/empty-prefix-context, unicase/empty-suffix-context.
71819         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
71820         invocation.
71821         * modules/unicase/u16-toupper (Depends-on): Add
71822         unicase/empty-prefix-context, unicase/empty-suffix-context.
71824         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
71825         * modules/unicase/u8-toupper (Depends-on): Add
71826         unicase/empty-prefix-context, unicase/empty-suffix-context.
71828         New module 'unicase/u32-ct-casefold'.
71829         * lib/unicase/u32-ct-casefold.c: New file.
71830         * modules/unicase/u32-ct-casefold: New file.
71832         New module 'unicase/u16-ct-casefold'.
71833         * lib/unicase/u16-ct-casefold.c: New file.
71834         * modules/unicase/u16-ct-casefold: New file.
71836         New module 'unicase/u8-ct-casefold'.
71837         * lib/unicase/u8-ct-casefold.c: New file.
71838         * lib/unicase/u-ct-casefold.h: New file, derived from
71839         lib/unicase/u-casefold.h.
71840         * modules/unicase/u8-ct-casefold: New file.
71842         New module 'unicase/u32-ct-totitle'.
71843         * lib/unicase/u32-ct-totitle.c: New file.
71844         * modules/unicase/u32-ct-totitle: New file.
71846         New module 'unicase/u16-ct-totitle'.
71847         * lib/unicase/u16-ct-totitle.c: New file.
71848         * modules/unicase/u16-ct-totitle: New file.
71850         New module 'unicase/u8-ct-totitle'.
71851         * lib/unicase/u8-ct-totitle.c: New file.
71852         * lib/unicase/u-ct-totitle.h: New file, derived from
71853         lib/unicase/u-totitle.h.
71854         * modules/unicase/u8-ct-totitle: New file.
71856         New module 'unicase/u32-ct-tolower'.
71857         * lib/unicase/u32-ct-tolower.c: New file.
71858         * modules/unicase/u32-ct-tolower: New file.
71860         New module 'unicase/u16-ct-tolower'.
71861         * lib/unicase/u16-ct-tolower.c: New file.
71862         * modules/unicase/u16-ct-tolower: New file.
71864         New module 'unicase/u8-ct-tolower'.
71865         * lib/unicase/u8-ct-tolower.c: New file.
71866         * modules/unicase/u8-ct-tolower: New file.
71868         New module 'unicase/u32-ct-toupper'.
71869         * lib/unicase/u32-ct-toupper.c: New file.
71870         * modules/unicase/u32-ct-toupper: New file.
71872         New module 'unicase/u16-ct-toupper'.
71873         * lib/unicase/u16-ct-toupper.c: New file.
71874         * modules/unicase/u16-ct-toupper: New file.
71876         New module 'unicase/u8-ct-toupper'.
71877         * lib/unicase/u8-ct-toupper.c: New file.
71878         * modules/unicase/u8-ct-toupper: New file.
71880         Add context arguments to u*_casemap functions.
71881         * lib/unicase/unicasemap.h: Include unicase.h.
71882         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
71883         suffix_context arguments.
71884         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
71885         functions.
71886         (FUNC): Add prefix_context and suffix_context arguments. Use
71887         uc_is_cased and uc_is_case_ignorable.
71888         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
71889         * lib/unicase/u16-casemap.c: Likewise.
71890         * lib/unicase/u32-casemap.c: Likewise.
71891         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
71892         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
71893         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
71894         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
71895         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
71896         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
71898         New module 'unicase/u32-suffix-context'.
71899         * lib/unicase/u32-suffix-context.c: New file.
71900         * modules/unicase/u32-suffix-context: New file.
71902         New module 'unicase/u16-suffix-context'.
71903         * lib/unicase/u16-suffix-context.c: New file.
71904         * modules/unicase/u16-suffix-context: New file.
71906         New module 'unicase/u8-suffix-context'.
71907         * lib/unicase/u8-suffix-context.c: New file.
71908         * lib/unicase/u-suffix-context.h: New file.
71909         * modules/unicase/u8-suffix-context: New file.
71911         New module 'unicase/empty-suffix-context'.
71912         * lib/unicase/empty-suffix-context.c: New file.
71913         * modules/unicase/empty-suffix-context: New file.
71915         New module 'unicase/u32-prefix-context'.
71916         * lib/unicase/u32-prefix-context.c: New file.
71917         * modules/unicase/u32-prefix-context: New file.
71919         New module 'unicase/u16-prefix-context'.
71920         * lib/unicase/u16-prefix-context.c: New file.
71921         * modules/unicase/u16-prefix-context: New file.
71923         New module 'unicase/u8-prefix-context'.
71924         * lib/unicase/u8-prefix-context.c: New file.
71925         * lib/unicase/u-prefix-context.h: New file.
71926         * lib/unicase/context.h: New file.
71927         * modules/unicase/u8-prefix-context: New file.
71929         New module 'unicase/empty-prefix-context'.
71930         * lib/unicase/empty-prefix-context.c: New file.
71931         * modules/unicase/empty-prefix-context: New file.
71933         New module 'unicase/ignorable'.
71934         * lib/unicase/ignorable.c: New file.
71935         * modules/unicase/ignorable: New file.
71937         New module 'unicase/cased'.
71938         * lib/unicase/caseprop.h: New file.
71939         * lib/unicase/cased.c: New file.
71940         * modules/unicase/cased: New file.
71942         New functions for case mapping of substrings.
71943         * lib/unicase.h (casing_prefix_context_t): New type.
71944         (unicase_empty_prefix_context): New variable.
71945         (u8_casing_prefix_context, u16_casing_prefix_context,
71946         u32_casing_prefix_context, u8_casing_prefixes_context,
71947         u16_casing_prefixes_context, u32_casing_prefixes_context): New
71948         declarations.
71949         (casing_suffix_context_t): New type.
71950         (unicase_empty_suffix_context): New variable.
71951         (u8_casing_suffix_context, u16_casing_suffix_context,
71952         u32_casing_suffix_context, u8_casing_suffixes_context,
71953         u16_casing_suffixes_context, u32_casing_suffixes_context,
71954         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
71955         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
71956         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
71957         declarations.
71959 2009-06-28  Jim Meyering  <meyering@redhat.com>
71961         boostrap: indent only with spaces
71962         * build-aux/bootstrap: Indent only with spaces, never TABs.
71964         bootstrap: split long lines
71965         * build-aux/bootstrap: Keep line length < 80.
71967         bootstrap: sync from coreutils
71968         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
71969         just as autoreconf does.  Verify a list of prerequisite
71970         package-name,version-number pairs if defined in bootstrap.conf.
71971         Refer to README-prereq, if prerequisites are not satisfied.
71973 2009-06-27  Eric Blake  <ebb9@byu.net>
71975         tests: add test for bogus NULL definition
71976         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
71977         * tests/test-stdlib.c: Likewise.
71978         * tests/test-string.c: Likewise.
71979         * tests/test-locale.c: Likewise.
71980         * tests/test-unistd.c: Likewise.
71981         * modules/stdio-tests (Depends-on): Add verify.
71982         * modules/stdlib-tests (Depends-on): Likewise.
71983         * modules/string-tests (Depends-on): Likewise.
71984         * modules/locale-tests (Depends-on): Likewise.
71985         * modules/unistd-tests (Depends-on): Likewise.
71987 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
71989         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
71990         self-explaining comment.
71991         * m4/selinux-selinux-h: Update serial.
71992         (gl_LIBSELINUX): New macro, adding a warning for missing development
71993         packages to code extracted from...
71994         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
71995         Add warning for missing development packages here, too.
71997 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
71999         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
72001 2009-06-25  Eric Blake  <ebb9@byu.net>
72003         version-etc: fix regression
72004         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
72005         gcc.
72006         (version_etc): Use it, to catch bugs with trailing NULL.
72007         * lib/version-etc.c (version_etc_arn): Delete unused argument.
72008         (version_etc_va): Fix logic bug.
72009         * modules/version-etc-tests: Add test.
72010         * tests/test-version-etc.c: New file.
72011         * tests/test-version-etc.sh: Likewise.
72013 2009-06-25  Sam Steingold  <sds@gnu.org>
72015         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
72016         mbtowc declaration.
72018 2009-06-25  Eric Blake  <ebb9@byu.net>
72020         fpurge: migrate into <stdio.h>
72021         * lib/fpurge.h: Delete...
72022         * lib/stdio.in.h (fpurge): ...and declare here, instead.
72023         * lib/fpurge.c (fpurge): Change declaring header.
72024         * modules/fpurge (Files): Drop deleted file.
72025         (Depends-on): Add stdio.
72026         (configure.ac): Set witness.
72027         * modules/stdio (Makefile.am): Support fpurge macros.
72028         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
72029         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
72030         * lib/fflush.c: Update client.
72031         * tests/test-fpurge.c: Likewise.
72032         * NEWS: Mention the change.
72034 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
72036         * lib/argp-version-etc.c (program_authors): Add const
72037         qualifier.
72038         * lib/version-etc.c: Fix typos in the comments.
72039         * modules/argp-version-etc: Depends on version-etc.
72041 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
72043         argp-version-etc: new module.
72045         * lib/argp-version-etc.c: New file.
72046         * lib/argp-version-etc.h: New file.
72047         * modules/argp-version-etc: New file.
72048         * modules/argp-version-etc-tests: New file.
72049         * tests/test-argp-version-etc.c: New test.
72050         * tests/test-argp-version-etc-1.sh: New test.
72052 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
72054         Provide additional interfaces and documentation for version-etc
72055         module.
72057         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
72058         interfaces.
72059         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
72060         prototypes.
72062 2009-06-24  Bruno Haible  <bruno@clisp.org>
72064         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
72065         HAVE_LIB${NAME} macro.
72066         Reported by Sam Steingold <sds@gnu.org>.
72068 2009-06-23  Simon Josefsson  <simon@josefsson.org>
72070         * modules/hash-tests (test_hash_LDADD): Link to libintl when
72071         needed.
72073 2009-06-21  Bruno Haible  <bruno@clisp.org>
72075         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
72076         work.
72077         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
72078         together with LIB${NAME}, LTLIB${NAME}.
72079         Reported by Sam Steingold <sds@gnu.org>.
72081 2009-06-20  Jim Meyering  <meyering@redhat.com>
72083         tests: make sc_require_test_exit_idiom more generic
72084         * top/maint.mk (Exit_witness_file): New overridable variable.
72085         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
72086         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
72088 2009-06-19  Jim Meyering  <meyering@redhat.com>
72090         hash: reverse order of src/dst parameters in an internal interface
72091         * lib/hash.c (transfer_entries): Reverse order of parameters to
72092         put DST before SRC.  Adjust callers.
72094         tests: test-hash: avoid wholesale duplication
72095         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
72096         Instead, use a loop and add a single conditional.
72098         tests: test-hash: allow seed selection via a command line argument
72099         * tests/test-hash.c (get_seed): New function.
72100         (main): Use it.
72102 2009-06-19  Eric Blake  <ebb9@byu.net>
72104         hash: avoid memory leak on allocation failure
72105         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
72106         failure.  Factor repeated algorithm...
72107         (transfer_entries): ...into new helper routine.
72108         (hash_delete): React to hash_rehash return value.
72110         hash: reduce memory pressure in hash_rehash no-op case
72111         * lib/hash.c (next_prime): Avoid overflow.
72112         (hash_initialize): Factor bucket size computation...
72113         (compute_bucket_size): ...into new helper function.
72114         (hash_rehash): Use new function and open coding to reduce memory
72115         pressure, and avoid a memory leak in USE_OBSTACK code.
72116         Reported by Jim Meyering.
72118 2009-06-18  Eric Blake  <ebb9@byu.net>
72120         hash: make rotation more obvious
72121         * modules/hash (Depends-on): Add bitrotate and stdint.
72122         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
72123         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
72124         (SIZE_MAX): Rely on headers for definition.
72125         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
72126         (raw_hasher): Use rotr_sz.
72127         Suggested by Jim Meyering.
72129         hash: fix memory leak in last patch
72130         * lib/hash.c (hash_rehash): Avoid memory leak.
72132         hash: avoid no-op rehashing
72133         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
72135         hash: provide default callback functions
72136         * lib/hash.c (raw_hasher, raw_comparator): New functions.
72137         (hash_initialize): Use them as defaults.
72138         * tests/test-hash.c (main): Test this.
72140         hash: minor optimization
72141         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
72142         when possible.
72143         (hash_initialize): Document this promise.
72144         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
72145         * tests/test-hash.c (hash_compare_strings): Test this.
72147 2009-06-18  Bruno Haible  <bruno@clisp.org>
72149         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
72150         going to be replaced anyway.
72152 2009-06-18  Bruno Haible  <bruno@clisp.org>
72154         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
72155         in one place.
72156         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
72157         be replaced anyway.
72159 2009-06-18  Eric Blake  <ebb9@byu.net>
72161         hash: check for resize before insertion
72162         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
72163         threshold before insertion, so that a pathological hash_rehash
72164         that fills every bucket can still trigger another rehash.
72166 2009-06-18  Jim Meyering  <meyering@redhat.com>
72168         hash-tests: add a loop around the small tests
72169         * tests/test-hash.c (main): Repeat small tests with selected
72170         small initial table sizes.
72172 2009-06-17  Eric Blake  <ebb9@byu.net>
72174         hash: minor cleanups
72175         * lib/hash.h (hash_entry): Make opaque, by moving...
72176         * lib/hash.c (hash_entry): ...here.
72177         (hash_insert): Clarify restrictions on what can be inserted.
72178         (hash_get_next): Clarify when it is safe to remove an element
72179         during traversal.
72180         (check_tuning): Skip verification when tuning is known safe.
72181         (hash_initialize): Clarify restrictions on tuning.
72183 2009-06-17  Jim Meyering  <jim@meyering.net>
72184         and Eric Blake  <ebb9@byu.net>
72186         hash-tests: new module
72187         * modules/hash-tests: New file.
72188         * tests/test-hash.c: New file.
72190 2009-06-17  Eric Blake  <ebb9@byu.net>
72192         strstr-simple: document new module
72193         * MODULES.html.sh: Document new module.
72195         strstr, strcasestr: replace on platforms with broken memchr
72196         * modules/strstr: Split into...
72197         * modules/strstr-simple: ...new module that does not care about
72198         performance, but does care about glibc bug.
72199         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
72200         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
72201         if platform memchr is broken, per Debian bug 521737.
72202         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
72203         memchr.
72204         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
72205         * doc/posix-functions/strstr.texi (strstr): Document the fix.
72206         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
72207         * modules/mountlist (Depends-on): Add strstr-simple.
72208         * modules/gen-uni-tables (Depends-on): Likewise.
72209         * modules/argz (Depends-on): Add strstr.
72211 2009-06-17  Bruno Haible  <bruno@clisp.org>
72213         * modules/posix_spawn-internal (Depends-on): Add errno.
72215 2009-06-17  Bruno Haible  <bruno@clisp.org>
72217         Define missing ESTALE on Interix 3.5.
72218         * lib/errno.in.h (ESTALE): Assign a value if missing.
72219         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
72220         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
72221         missing.
72222         * doc/posix-headers/errno.texi: Mention the Interix bug.
72223         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
72225 2009-06-15  Eric Blake  <ebb9@byu.net>
72227         memchr, memchr2: add valgrind exception
72228         * lib/memchr.valgrind: New file.
72229         * lib/memchr2.valgrind: New file.
72230         * modules/memchr (Files): Distribute valgrind file.
72231         * modules/memchr2 (Files): Likewise.
72233         docs: memchr is no longer obsolete
72234         * MODULES.html.sh: Move memchr from obsolete to string.h section.
72235         * lib/string.in.h (memchr): Simplify logic.
72237 2009-06-14  Jim Meyering  <meyering@redhat.com>
72239         link-follow: fix the "checking..." message to not mention trailing slash
72240         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
72241         never considered trailing slashes.
72243 2009-06-14  Bruno Haible  <bruno@clisp.org>
72245         * m4/memchr.m4: Mention also the bug on IA-64.
72246         * doc/posix-functions/memchr.texi: Likewise.
72248 2009-06-12  Eric Blake  <ebb9@byu.net>
72250         memchr: detect broken x86_64 and alpha implementations
72251         * modules/memchr-tests (Depends-on): Move mmap detection...
72252         * modules/memchr (Depends-on): ...here.
72253         (configure.ac): Set indicator.
72254         * lib/string.in.h (memchr): Declare replacement.
72255         * modules/string (Makefile.am): Trigger replacement.
72256         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
72257         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
72258         bugs.
72259         * doc/posix-functions/memchr.texi (memchr): Document the bug.
72260         * modules/getpagesize (License): Relax license.
72262 2009-06-11  Bruno Haible  <bruno@clisp.org>
72264         * lib/idpriv.h: Add more references.
72266 2009-06-08  Bruno Haible  <bruno@clisp.org>
72268         Tests for module 'idpriv-droptemp'.
72269         * modules/idpriv-droptemp-tests: New file.
72270         * tests/test-idpriv-droptemp.sh: New file.
72271         * tests/test-idpriv-droptemp.su.sh: New file.
72272         * tests/test-idpriv-droptemp.c: New file.
72274         New module 'idpriv-droptemp'.
72275         * lib/idpriv-droptemp.c: New file.
72276         * modules/idpriv-droptemp: New file.
72278 2009-06-08  Bruno Haible  <bruno@clisp.org>
72280         Tests for module 'idpriv-drop'.
72281         * modules/idpriv-drop-tests: New file.
72282         * tests/test-idpriv-drop.sh: New file.
72283         * tests/test-idpriv-drop.su.sh: New file.
72284         * tests/test-idpriv-drop.c: New file.
72286         New module 'idpriv-drop'.
72287         * lib/idpriv.h: New file.
72288         * lib-idpriv-drop.c: New file.
72289         * m4/idpriv.m4: New file.
72290         * modules/idpriv-drop: New file.
72292 2009-06-08  Bruno Haible  <bruno@clisp.org>
72294         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
72295         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
72296         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
72297         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
72298         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
72299         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
72300         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
72302 2009-06-08  Eric Blake  <ebb9@byu.net>
72304         test-strstr: use memory fence, when possible
72305         * tests/test-strstr.c (main): Use memory fence, in order to be
72306         more likely to trigger Debian bug 521737.
72307         * modules/strstr-tests (Files): Pull in additional files.
72309         memchr: no longer obsolete, for wider field testing
72310         * modules/memchr (Status, Notice): Delete, this module is no
72311         longer obsolete.
72312         * modules/vasnprintf (Depends-on): Add memchr.
72314 2009-06-07  Jim Meyering  <meyering@redhat.com>
72316         hash: declare some functions with the warn_unused_result attribute
72317         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
72319 2009-06-07  Bruno Haible  <bruno@clisp.org>
72321         * tests/test-alignof.c: Don't test int64_t if it does not exist.
72322         Reported by Eric Blake.
72324 2009-06-06  Eric Blake  <ebb9@byu.net>
72326         test-alignof: fix typo with long double
72327         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
72328         compiler error.
72330 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
72332         Escape non-texinfo { and }s.
72333         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
72334         markup error.
72336 2009-06-04  Jim Meyering  <meyering@redhat.com>
72338         gitlog-to-changelog: don't infloop on an empty commit log
72339         * build-aux/gitlog-to-changelog: Warn about an empty log message.
72340         Reported by Boris Petersen <transacid@centerim.org>.
72342 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
72344         version-etc: extend for packagers
72345         Add three new configure options, intended for packagers:
72346           --with-packager="packager name"
72347           --with-packager-version="packager-specific version"
72348           --with-packager-bug-reports="packager bug reporting"
72349         An example with coreutils:
72350           $ ./configure \
72351             --with-packager=Gentoo \
72352             --with-packager-bug-report=http://bugs.gentoo.org/ \
72353             --with-packager-version="patchset 1.6"
72354           $ ./src/ls --version | head -n2
72355           ls (GNU coreutils) 7.1-dirty
72356           Packaged by Gentoo (patchset 1.6)
72357         Note that the bug reporting info via --help doesn't show up because
72358         coreutils uses its own custom emit_bug_reporting_address() implementation
72359         in src/system.h.  If it didn't, it'd look like:
72360           $ ./src/ls --help | tail -n4
72361           Report bugs to <bug-coreutils@gnu.org>.
72362           Report Gentoo bugs to <http://bugs.gentoo.org/>.
72363           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
72364           General help using GNU software: <http://www.gnu.org/gethelp/>.
72365         * lib/version-etc.c: Print new information, if provided.
72366         * m4/version-etc.m4: New file.
72367         * modules/version-etc (Files): Add m4/version-etc.m4.
72368         (configure.ac): Add gl_VERSION_ETC.
72370 2009-05-31  Bruno Haible  <bruno@clisp.org>
72372         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
72373         and 'int64_t'.
72374         * modules/alignof-tests (Dependencies): Add stdint.
72375         Reported by Eric Blake.
72377 2009-05-31  Bruno Haible  <bruno@clisp.org>
72379         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
72380         restriction due to compiler bugs.
72381         Reported by Eric Blake.
72383 2009-05-31  Simon Josefsson  <simon@josefsson.org>
72384             Bruno Haible  <bruno@clisp.org>
72386         Fix test-alignof failure.
72387         * lib/alignof.h (alignof_slot): New macro.
72388         (alignof_type): New macro, with the same semantics as the previous
72389         'alignof'.
72390         (alignof): Alias to alignof_slot.
72391         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
72392         check that the results are usable as constant expressions.
72394 2009-05-31  Bruno Haible  <bruno@clisp.org>
72396         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
72397         * tests/test-memchr.c (main): Check that memchr does not read past the
72398         first occurrence of the byte.
72399         * tests/test-strstr.c (main): Update comment.
72400         Suggested by Eric Blake.
72402 2009-05-30  Bruno Haible  <bruno@clisp.org>
72404         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
72405         detail how to use dumpbin.
72406         Reported by David Byron <dbyron@dbyron.com>.
72408 2009-06-02  Simon Josefsson  <simon@josefsson.org>
72410         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
72412 2009-06-02  Simon Josefsson  <simon@josefsson.org>
72414         * m4/manywarnings.m4: Add GCC 4.4 warnings.
72416 2009-05-28  Bruno Haible  <bruno@clisp.org>
72418         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
72419         build-aux/ files.
72421 2009-05-28  Simon Josefsson  <simon@josefsson.org>
72423         * gnulib-tool (func_import): Transform license on build-aux/ files too.
72425 2009-05-27  Simon Josefsson  <simon@josefsson.org>
72427         * gnulib-tool (sed_transform_main_lib_file)
72428         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
72429         regexps.
72431 2009-05-26  Simon Josefsson  <simon@josefsson.org>
72433         * tests/test-strstr.c: Add another self-test.
72434         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
72435         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
72437 2009-05-23  Bruno Haible  <bruno@clisp.org>
72439         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
72440         change.
72442 2009-05-21  Bruno Haible  <bruno@clisp.org>
72444         Simplify use of mode_t varargs.
72445         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
72446         uses 'mode_t' or 'int'.
72447         * lib/openat.c (openat): Likewise.
72448         * lib/open-safer.c (open_safer): Likewise.
72449         * m4/mode_t.m4: New file.
72450         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
72451         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
72452         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
72453         * modules/open (Files): Add m4/mode_t.m4.
72454         * modules/openat (Files): Likewise.
72455         * modules/fcntl-safer (Files): Likewise.
72456         Suggested by Eric Blake.
72458 2009-05-21  Pádraig Brady  <P@draigbrady.com>
72460         * doc/glibc-functions/fallocate.texi: New file.
72461         * doc/gnulib.texi: Include it.
72463 2009-05-21  Eric Blake  <ebb9@byu.net>
72464             Bruno Haible  <bruno@clisp.org>
72466         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
72467         invocations.
72468         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
72470 2009-05-21  Eric Blake  <ebb9@byu.net>
72471             Bruno Haible  <bruno@clisp.org>
72473         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
72474         include_next. Fix of 2008-11-20 commit.
72475         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
72476         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
72477         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
72478         NEXT_MATH_H.
72479         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
72480         instead of NEXT_MATH_H.
72482 2009-05-21  Bruno Haible  <bruno@clisp.org>
72484         Avoid redefinition warnings for SIZE_MAX.
72485         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
72486         Reported by Simon Josefsson.
72488 2009-05-21  Bruno Haible  <bruno@clisp.org>
72490         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
72491         AC_CACHE_VAL.
72493 2009-05-20  Bruno Haible  <bruno@clisp.org>
72495         Make zeroptr.h work on mingw.
72496         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
72497         mprotect.
72498         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
72499         * modules/memchr2-tests (configure.ac): Likewise.
72500         * modules/memcmp-tests (configure.ac): Likewise.
72501         * modules/memmem-tests (configure.ac): Likewise.
72502         * modules/memrchr-tests (configure.ac): Likewise.
72503         Reported by Simon Josefsson.
72505 2009-05-20  Simon Josefsson  <simon@josefsson.org>
72507         * tests/test-glob.c: Include string.h for strcmp prototype.
72509 2009-05-20  Simon Josefsson  <simon@josefsson.org>
72511         * modules/getdelim (Depends-on): Add explicit stdint, although it
72512         was implicitly already pulled in via realloc-posix.
72513         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
72515 2009-05-20  Simon Josefsson  <simon@josefsson.org>
72517         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
72518         G. Christensen" <tgc@jupiterrise.com>.
72519         * m4/sys_socket_h.m4: Check for sa_family_t.
72520         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
72521         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
72522         * tests/test-sys_socket.c: Check that sa_family_t works.
72524 2009-05-18  Eric Blake  <ebb9@byu.net>
72526         maint.mk: allow gnulib_dir in VPATH build
72527         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
72529 2009-05-15  Jim Meyering  <meyering@redhat.com>
72531         maint.mk: Give gnulib_dir a default definition.
72532         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
72533         Thus, most packages no longer need to specify this variable in cfg.mk
72535 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
72537         rename.m4: fix typos that would make non-mingw cross-configure fail
72538         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
72540 2009-05-13  Eric Blake  <ebb9@byu.net>
72542         mmap-anon: avoid out-of-order autoconf expansion
72543         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
72544         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
72545         * modules/memchr-tests (Depends-on): Add extensions.
72546         * modules/memchr2-tests (Depends-on): Add extensions.
72547         * modules/memcmp-tests (Depends-on): Add extensions.
72548         * modules/memmem-tests (Depends-on): Add extensions.
72549         * modules/memrchr-tests (Depends-on): Add extensions.
72551 2009-05-13  Bruno Haible  <bruno@clisp.org>
72553         Make some tests ISO C 99 compliant.
72554         * tests/zerosize-ptr.h: New file.
72555         * tests/test-memchr.c: Include zerosize-ptr.h.
72556         (main): Use a zero-size object pointer instead of NULL.
72557         * tests/test-memchr2.c: Include zerosize-ptr.h.
72558         (main): Use a zero-size object pointer instead of NULL.
72559         * tests/test-memcmp.c: Include zerosize-ptr.h.
72560         (main): Use a zero-size object pointer instead of NULL.
72561         * tests/test-memmem.c: Include zerosize-ptr.h.
72562         (main): Use a zero-size object pointer instead of NULL.
72563         * tests/test-memrchr.c: Include zerosize-ptr.h.
72564         (main): Use a zero-size object pointer instead of NULL.
72565         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
72566         m4/mmap-anon.m4.
72567         (Depends-on): Add getpagesize.
72568         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
72569         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
72570         m4/mmap-anon.m4.
72571         (Depends-on): Add getpagesize.
72572         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
72573         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
72574         m4/mmap-anon.m4.
72575         (Depends-on): Add getpagesize.
72576         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
72577         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
72578         m4/mmap-anon.m4.
72579         (Depends-on): Add getpagesize.
72580         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
72581         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
72582         m4/mmap-anon.m4.
72583         (Depends-on): Add getpagesize.
72584         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
72586 2009-05-12  Bruno Haible  <bruno@clisp.org>
72588         Tests for module 'alignof'.
72589         * modules/alignof-tests: New file.
72590         * tests/test-alignof.c: New file.
72592 2009-05-12  Bruno Haible  <bruno@clisp.org>
72594         Fix alignof macro.
72595         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
72596         vendor compilers that are always correct.
72598 2009-05-12  Bruno Haible  <bruno@clisp.org>
72600         Make the MAP_ANONYMOUS detection work on HP-UX 11.
72601         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
72602         not whether its fully works.
72604 2009-05-12  Bruno Haible  <bruno@clisp.org>
72606         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
72608 2009-05-12  Jim Meyering  <meyering@redhat.com>
72610         * top/maint.mk: Adjust backslash alignment.
72612 2009-05-11  Simon Josefsson  <simon@josefsson.org>
72614         * top/maint.mk: Make $(srcdir)/build-aux configurable.
72616 2009-05-11  Eric Blake  <ebb9@byu.net>
72618         argp: avoid undefined behavior
72619         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
72620         macros.
72622 2009-05-08  Simon Josefsson  <simon@josefsson.org>
72624         * tests/test-vc-list-files-git.sh: Do git config of user.email and
72625         user.name to prevent git commit from complaining.
72627 2009-05-10  Bruno Haible  <bruno@clisp.org>
72629         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
72630         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
72631         it rewrites every file name only once.
72632         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
72634 2009-05-08  Bruno Haible  <bruno@clisp.org>
72636         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
72637         instead of 'max'.
72639 2009-05-08  Simon Josefsson  <simon@josefsson.org>
72641         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
72642         sockaddr_storage test.
72644 2009-05-07  Simon Josefsson  <simon@josefsson.org>
72646         * modules/sys_socket (Makefile.am): Substitute
72647         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
72648         * m4/sys_socket_h.m4: Check for sockaddr_storage.
72649         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
72650         * tests/test-sys_socket.c: Check sockaddr_storage.
72652 2009-05-08  Bruno Haible  <bruno@clisp.org>
72654         New module 'alignof'.
72655         * lib/alignof.h: New file.
72656         * modules/alignof: New file.
72658 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
72659             Bruno Haible  <bruno@clisp.org>
72661         Fix test-file-has-acl on FreeBSD.
72662         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
72663         mask is implicitly added.
72664         * tests/test-file-has-acl.c: Include <signal.h>.
72665         (main): Terminate the test after 5 seconds.
72666         * modules/acl-tests (configure.ac): Check for alarm function.
72668 2009-05-04  Bruno Haible  <bruno@clisp.org>
72670         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
72671         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
72672         * modules/errno (configure.ac): Drop AC_REQUIRE.
72673         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
72674         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
72676 2009-05-04  Simon Josefsson  <simon@josefsson.org>
72678         * modules/glob-tests: New module.
72679         * tests/test-glob.c: Add.
72681 2009-05-04  Simon Josefsson  <simon@josefsson.org>
72683         * modules/fnmatch-tests: New module.
72684         * tests/test-fnmatch.c: Add.
72686 2009-05-04  Eric Blake  <ebb9@byu.net>
72688         maint: make the new no-submodule-changes rule VPATH-safe
72689         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
72691 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
72692             Bruno Haible  <bruno@clisp.org>
72694         acl: Fix infinite loop on FreeBSD.
72695         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
72696         of return value from acl_get_entry.
72697         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
72698         Likewise.
72700 2009-05-03  Bruno Haible  <bruno@clisp.org>
72702         * lib/acl-internal.h (acl_entries): Clarify return value.
72703         * lib/acl_entries.c (acl_entries): Likewise.
72705 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
72707         Bug fix in acl module.
72708         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
72710 2009-05-03  Bruno Haible  <bruno@clisp.org>
72712         Create gperf-generated file in the source dir, not in the build dir.
72713         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
72714         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
72715         * modules/unicase/locale-language (unicase/locale-languages.h):
72716         Likewise.
72717         * modules/unicase/special-casing (unicase/special-casing-table.h):
72718         Likewise.
72719         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
72720         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
72721         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
72722         Reported by Ralf Wildenhues.
72724 2009-05-03  Bruno Haible  <bruno@clisp.org>
72726         * modules/fnmatch (Description, configure.ac): Taken from
72727         fnmatch-posix.
72728         * modules/fnmatch-posix: Turn into a symbolic reference to the
72729         'fnmatch' module, and deprecate.
72730         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
72732 2009-05-03  Bruno Haible  <bruno@clisp.org>
72734         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
72735         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
72736         Reported by Ralf Wildenhues.
72738 2009-05-04  Simon Josefsson  <simon@josefsson.org>
72740         * m4/fnmatch.m4: Fix fnmatch re-define.
72742 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
72744         priv-set: new module and tests; adapt write-any-file
72745         * lib/priv-set.c: New file.
72746         * lib/priv-set.h: New file.
72747         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
72748         * lib/write-any-file.c: Simplify by using priv-set module.
72749         * m4/priv-set.m4: New file.
72750         * modules/priv-set: New file.
72751         * modules/unlinkdir: Add dependency on priv-set module.
72752         * modules/write-any-file: Likewise.
72754         Tests for module 'priv-set'.
72755         * modules/priv-set-tests: New file.
72756         * tests/test-priv-set.c: New file.
72758 2009-05-03  Jim Meyering  <meyering@redhat.com>
72759             Bruno Haible  <bruno@clisp.org>
72761         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
72762         use the converted UTF-8 variant of the name instead.
72764 2009-05-03  Jim Meyering  <meyering@redhat.com>
72766         tests: tighten some getdate tests
72767         * tests/test-getdate.c (main): Tighten tests: require equality,
72768         not just greater than.  Set TZ envvar to UTC0.
72770 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
72772         getdate: correctly interpret "next monday" when run on a Monday
72773         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
72774         that e.g., "next tues" (when run on a tuesday) results in a date
72775         that is one week in the future, and not today's date.
72776         I.e., add a week when the wday is the same as the current one.
72777         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
72778         and earlier by Martin Bernreuther and Jan Minář.
72779         * tests/test-getdate.c (main): Check that "next DAY" is always in
72780         the future and that "last DAY" is always in the past.
72782 2009-05-02  Jim Meyering  <meyering@redhat.com>
72784         build: ensure that a release build fails when a submodule is unclean
72785         * top/maint.mk (no-submodule-changes): New rule.
72786         (alpha beta major): Depend on it.
72788 2009-05-02  Bruno Haible  <bruno@clisp.org>
72790         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
72791         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
72792         shell variable gl_fnmatch_required to detect which variant is
72793         requested.
72794         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
72795         gl_FUNC_FNMATCH_POSIX.
72796         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
72797         exclude fnmatch-posix.
72799 2009-05-02  Bruno Haible  <bruno@clisp.org>
72801         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
72802         * modules/mbsrtowcs (License): Change to LGPLv2+.
72803         * modules/strnlen1 (License): Likewise.
72804         Reported by Simon Josefsson.
72806 2009-05-02  Bruno Haible  <bruno@clisp.org>
72808         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
72809         "cross".
72810         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
72811         gnulib-tool was called with option --source-base=lib.
72813 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72815         Use automake *-local hooks without commands, for extensibility.
72816         * modules/localcharset (Makefile.am): Rename install-exec-local
72817         rule to install-exec-localcharset, and make it a prerequisite of
72818         install-exec-local.  Likewise, rename the uninstall-local rule to
72819         uninstall-localcharset, and make it a prerequisite of the former.
72821 2009-05-01  Bruno Haible  <bruno@clisp.org>
72823         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
72824         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
72825         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
72826         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
72827         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
72828         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
72829         m4/locale-zh.m4, m4/codeset.m4.
72831         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
72832         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
72833         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
72834         m4/locale-zh.m4.
72836         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
72837         REPLACE_WCRTOMB if mbstate_t must be replaced.
72838         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
72839         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
72841 2009-05-01  Bruno Haible  <bruno@clisp.org>
72843         Avoid compiler warnings when redefining macros defined by <libintl.h>.
72844         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
72845         dngettext, dcngettext, textdomain, bindtextdomain,
72846         bind_textdomain_codeset): Undefine before redefining.
72848 2009-04-30  Bruno Haible  <bruno@clisp.org>
72850         Fix bug introduced on 2009-04-25.
72851         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
72852         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
72853         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
72854         is defined.
72855         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
72856         is defined.
72857         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
72858         is defined.
72859         Reported by Elbert_Pol <elbert.pol@gmail.com>.
72861 2009-04-28  Bruno Haible  <bruno@clisp.org>
72863         Comment tweaks.
72864         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
72865         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
72866         * lib/unicase.h (u*_casexfrm): Likewise.
72867         Reported by Paolo Bonzini.
72869 2009-04-28  Bruno Haible  <bruno@clisp.org>
72871         Fix a compilation error.
72872         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
72873         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
72874         Reported by Jim Meyering.
72876 2009-04-27  Bruno Haible  <bruno@clisp.org>
72878         New module 'libunistring'.
72879         * modules/libunistring: New file.
72880         * m4/libunistring.m4: New file.
72881         * MODULES.html.sh (Unicode string functions): Add it.
72883 2009-04-27  Eric Blake  <ebb9@byu.net>
72885         maint.mk: allow package-specific header to provide <config.h>
72886         * top/maint.mk (sc_require_config_h): New variable.
72887         (sc_require_config_h, sc_require_config_h_first): Use it.
72889 2009-04-27  Simon Josefsson  <simon@josefsson.org>
72891         * top/maint.mk (sc_avoid_if_before_free): Except
72892         useless-if-before-free script.
72894 2009-04-27  Eric Blake  <ebb9@byu.net>
72896         maintainer-makefile: depend on all required helper scripts
72897         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
72898         useless-if-before-free.
72899         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
72900         version, rather than assuming gnulib checkout is available.
72901         Reported by Simen Josefsson.
72903 2009-04-26  Bruno Haible  <bruno@clisp.org>
72905         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
72906         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
72907         "../" or "..".
72909 2009-04-26  Bruno Haible  <bruno@clisp.org>
72911         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
72912         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
72913         AC_LIB_HAVE_LINKFLAGS.
72915 2009-04-26  Bruno Haible  <bruno@clisp.org>
72917         Simplify calling convention of u*_conv_from_encoding.
72918         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
72919         u32_conv_from_encoding): Expect a resultbuf argument and return the
72920         result directly as a pointer.
72921         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
72922         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
72923         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
72924         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
72925         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
72926         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
72927         Update.
72928         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
72929         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
72930         * lib/vasnprintf.c (VASNPRINTF): Update.
72931         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
72932         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
72933         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
72934         * NEWS: Mention the change.
72936 2009-04-26  Bruno Haible  <bruno@clisp.org>
72938         Simplify calling convention of u*_conv_to_encoding.
72939         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
72940         u32_conv_to_encoding): Expect a resultbuf argument and return the
72941         result directly as a pointer.
72942         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
72943         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
72944         freeing scaled_offsets if mem_iconveha failed.
72945         * lib/unicase/u-casexfrm.h (FUNC): Update.
72946         * lib/uninorm/u-normxfrm.h (FUNC): Update.
72947         * lib/vasnprintf.c (VASNPRINTF): Update.
72948         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
72949         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
72950         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
72951         * NEWS: Mention the change.
72953 2009-04-26  Bruno Haible  <bruno@clisp.org>
72955         Avoid test failures on AIX and OSF/1.
72956         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
72957         malloc(0).
72958         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
72959         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
72960         Likewise.
72961         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
72962         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
72963         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
72964         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
72965         * doc/posix-functions/malloc.texi: Document the portability problem
72966         related to malloc(0).
72968 2009-04-26  Bruno Haible  <bruno@clisp.org>
72970         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
72971         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
72972         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
72974 2009-04-25  Bruno Haible  <bruno@clisp.org>
72976         Avoid link error when creating a namespace clean library.
72977         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
72978         as macro with arguments if already defined as an alias.
72979         * lib/signbitf.c (gl_signbitf): Don't undefine.
72980         * lib/signbitd.c (gl_signbitd): Don't undefine.
72981         * lib/signbitl.c (gl_signbitl): Don't undefine.
72983 2009-04-25  Jim Meyering  <meyering@redhat.com>
72985         vc-list-files: fix another quoting bug
72986         * build-aux/vc-list-files: Avoid sed backslash expansion
72987         of pathological directory names.
72989 2009-04-25  Eric Blake  <ebb9@byu.net>
72991         vc-list-files: fix shell quoting error
72992         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
72993         timestamp.
72995 2009-04-25  Jim Meyering  <meyering@redhat.com>
72997         vc-list-files: restore lost functionality with subdir argument
72998         * build-aux/vc-list-files: When given a non-"." sub-directory
72999         argument, substitute the $dir/ prefix back onto each resulting name.
73000         Otherwise, coreutils' root_tests check would fail.
73002 2009-04-24  Eric Blake  <ebb9@byu.net>
73004         vc-list-files: ignore git symlinks
73005         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
73006         than ls-files, to ignore git symlinks.
73008         maint.mk: import improvements from m4
73009         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
73010         (move_if_change): Delete unused macro.
73011         (news-date-check, vc-diff-check): Support VPATH builds.
73012         (announcement): Likewise.  Split --bootstrap-tools list...
73013         (boostrap-tools): ...into separate list, which can be overridden
73014         in cfg.mk.
73015         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
73016         requiring dependency on useless-if-before-free module.
73017         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
73018         Support VPATH builds.
73020 2009-04-24  Jim Meyering  <meyering@redhat.com>
73022         maint.mk: remove coreutils-specific rules and variables
73023         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
73024         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
73025         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
73027         maint.mk: remove obsolete rule
73028         * top/maint.mk (rel-check): Remove rule.
73029         (WGET, WGETFLAGS): Remove now-unused variables.
73031 2009-04-24  Simon Josefsson  <simon@josefsson.org>
73033         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
73034         consistency.
73036         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
73037         '$(PATH_SEPARATOR)' instead of ':'.
73039 2009-04-24  Simon Josefsson  <simon@josefsson.org>
73041         * lib/getopt1.c (main): Use 'const' for static array.
73043 2009-04-24  Simon Josefsson  <simon@josefsson.org>
73045         * top/maint.mk: Sync with coreutils.
73046         * NEWS: Explain incompatibilities.
73048 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73049             Bruno Haible  <bruno@clisp.org>
73051         Fix cross-compilation results.
73052         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
73053         statement, as third argument of AC_TRY_RUN.
73054         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
73055         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
73056         Likewise.
73057         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
73058         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
73059         Likewise.
73060         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
73061         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
73062         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
73064 2009-04-20  Bruno Haible  <bruno@clisp.org>
73066         Avoid test failure on mingw.
73067         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
73069 2009-04-20  Bruno Haible  <bruno@clisp.org>
73071         Avoid compilation error on mingw.
73072         * modules/localename-tests (Depends-on): Add locale.
73074 2009-04-19  Bruno Haible  <bruno@clisp.org>
73076         Support for building a shared library on Windows platforms.
73077         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
73078         (main): Test the presence of UNINORM_NFC here.
73079         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
73080         (main): Test the presence of UNINORM_NFD here.
73081         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
73082         (main): Test the presence of UNINORM_NFKC here.
73083         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
73084         (main): Test the presence of UNINORM_NFKD here.
73086 2009-04-19  Bruno Haible  <bruno@clisp.org>
73088         Avoid a compiler warning.
73089         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
73090         Change type of variable 'sequence'.
73092 2009-04-19  Bruno Haible  <bruno@clisp.org>
73094         * modules/configmake (Makefile.am): When the contents of configmake.h
73095         does not change, arrange to preserve its modification time.
73097 2009-04-17  Simon Josefsson  <simon@josefsson.org>
73099         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
73100         gettext domain.
73102 2009-04-16  Jim Meyering  <meyering@redhat.com>
73104         useless-if-before-free: improve conversion code
73105         * build-aux/useless-if-before-free: Adjust code-in-comment to match
73106         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
73108 2009-04-14  Bruno Haible  <bruno@clisp.org>
73110         * modules/fcntl (Depends-on): Add extensions.
73111         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
73113 2009-04-12  Ben Pfaff  <blp@gnu.org>
73115         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
73116         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
73118 2009-03-20  Ben Pfaff  <blp@gnu.org>
73120         Make rename replace existing destinations on Windows.
73121         * m4/rename.m4: Add test for Mingw.
73122         * lib/rename.c: Add rename replacement that uses MoveFileEx with
73123         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
73124         * doc/posix-functions/rename.texi: Document.
73126 2009-04-10  Bruno Haible  <bruno@clisp.org>
73128         New include file "iconveh.h".
73129         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
73130         * lib/striconveh.h: Include it.
73131         (enum iconv_ilseq_handler): Remove definition.
73132         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
73133         striconveh.h.
73134         * lib/striconveha.c: Include striconveh.h.
73135         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
73136         * modules/striconveh (Files): Add lib/iconveh.h.
73137         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
73138         lib/striconveh.h.
73140 2009-04-10  Bruno Haible  <bruno@clisp.org>
73142         * lib/uniconv.h: Update comment.
73144 2009-04-10  Bruno Haible  <bruno@clisp.org>
73146         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
73147         always.
73148         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
73149         * lib/unistr/u16-mbtouc-aux.c: Likewise.
73150         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
73151         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
73152         "unistring-notinline.h", so that the function gets defined always.
73153         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
73154         * lib/unistr/u8-uctomb.c: Likewise.
73155         * lib/unistr/u16-mbtouc.c: Likewise.
73156         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
73157         * lib/unistr/u16-uctomb.c: Likewise.
73158         * lib/unistr/u32-mbtouc.c: Likewise.
73159         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
73160         * lib/unistr/u32-uctomb.c: Likewise.
73162 2009-04-10  Bruno Haible  <bruno@clisp.org>
73164         Mark 'utime' obsolete.
73165         * modules/utime (Status, Notice): New sections.
73166         Suggested by Jim Meyering.
73168         Fix cross-compile guess for utime test.
73169         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
73170         autoconf.
73171         * doc/posix-functions/utime.texi: Give more precisions.
73172         Reported by Jan <ipif@ymail.com>.
73174 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
73176         filevercmp: correct today's change
73177         * lib/filevercmp.c: Also handle coreutils' test inputs.
73178         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
73180         Fix regression in 'filevercmp' module. Thanks Sven Joachim
73181         for reporting it.
73182         * lib/filevercmp.c: Special handle for "", "." and "..".
73183         * tests/test-filevercmp.c: Enlarge the set suite.
73185 2009-04-07  Jim Meyering  <meyering@redhat.com>
73187         useless-if-before-free: show how to remove braced useless free, too
73188         * build-aux/useless-if-before-free: still only in a comment, though.
73190 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
73192         maint.mk: import changes to syntax-check macros from coreutils
73193         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
73194         Use them in the relevant macros.
73196 2009-04-06  Bruno Haible  <bruno@clisp.org>
73198         Fix unportable use of bit-fields.
73199         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
73200         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
73201         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
73203 2009-04-06  Bruno Haible  <bruno@clisp.org>
73205         Avoid test failures on AIX and OSF/1.
73206         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
73207         that malloc(0) = NULL.
73208         * tests/unicase/test-u8-tolower.c (check): Likewise.
73209         * tests/unicase/test-u8-totitle.c (check): Likewise.
73210         * tests/unicase/test-u8-toupper.c (check): Likewise.
73211         * tests/unicase/test-u16-casefold.c (check): Likewise.
73212         * tests/unicase/test-u16-tolower.c (check): Likewise.
73213         * tests/unicase/test-u16-totitle.c (check): Likewise.
73214         * tests/unicase/test-u16-toupper.c (check): Likewise.
73215         * tests/unicase/test-u32-casefold.c (check): Likewise.
73216         * tests/unicase/test-u32-tolower.c (check): Likewise.
73217         * tests/unicase/test-u32-totitle.c (check): Likewise.
73218         * tests/unicase/test-u32-toupper.c (check): Likewise.
73219         * tests/uninorm/test-u8-nfc.c (check): Likewise.
73220         * tests/uninorm/test-u8-nfd.c (check): Likewise.
73221         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
73222         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
73223         * tests/uninorm/test-u16-nfc.c (check): Likewise.
73224         * tests/uninorm/test-u16-nfd.c (check): Likewise.
73225         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
73226         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
73227         * tests/uninorm/test-u32-nfc.c (check): Likewise.
73228         * tests/uninorm/test-u32-nfd.c (check): Likewise.
73229         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
73230         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
73232 2009-04-05  Bruno Haible  <bruno@clisp.org>
73234         Work around an autoconf limitation.
73235         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
73236         comment line if it would be longer than 3 KB.
73238 2009-04-05  Bruno Haible  <bruno@clisp.org>
73240         Avoid test failure with libiconv-1.13.
73241         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
73242         of the expected test results.
73244 2009-04-05  Bruno Haible  <bruno@clisp.org>
73246         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
73247         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
73248         that it should be installed.
73250 2009-04-05  Bruno Haible  <bruno@clisp.org>
73252         * gnulib-tool: New option --copy-file.
73253         (func_usage): Document it.
73254         (func_dest_tmpfilename): Moved out of func_import.
73255         (func_add_file, func_update_file): New functions, extracted from
73256         func_import.
73257         (func_import): Update.
73259 2009-04-05  Karl Berry  <karl@gnu.org>
73261         * README: prominently mention gnulib-tool.
73262         Rearrange sections so getting the code is near the top.
73264 2009-04-05  Bruno Haible  <bruno@clisp.org>
73266         * lib/unicase.h: Mention u*_cmp2.
73267         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
73268         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
73269         * lib/unicase/ulc-casecmp.c: Likewise.
73270         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
73271         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
73272         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
73273         unistr/u8-cmp.
73274         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
73275         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
73276         unistr/u16-cmp.
73277         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
73278         unistr/u32-cmp.
73280         * lib/uninorm.h: Mention u*_cmp2.
73281         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
73282         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
73283         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
73284         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
73285         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
73286         unistr/u8-cmp.
73287         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
73288         unistr/u16-cmp.
73289         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
73290         unistr/u32-cmp.
73292         New module 'unistr/u32-cmp2'.
73293         * lib/unistr/u32-cmp2.c: New file.
73294         * modules/unistr/u32-cmp2: New file.
73296         New module 'unistr/u16-cmp2'.
73297         * lib/unistr/u16-cmp2.c: New file.
73298         * modules/unistr/u16-cmp2: New file.
73300         New module 'unistr/u8-cmp2'.
73301         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
73302         * lib/unistr/u8-cmp2.c: New file.
73303         * lib/unistr/u-cmp2.h: New file.
73304         * modules/unistr/u8-cmp2: New file.
73306 2009-04-05  Bruno Haible  <bruno@clisp.org>
73308         * lib/unictype.h (uc_property_is_valid): New macro.
73309         * tests/unictype/test-pr_byname.c (main): Use it.
73311         * lib/unistr.h: Doc fixes.
73312         * lib/uniconv.h: Doc fixes.
73313         * lib/unictype.h: Doc fixes.
73315 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
73317         Port coreutils 7.2 to Solaris 8.
73319         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
73320         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
73321         for Solaris 8.  This is a bit of a hack, as it means it's the
73322         caller's responsibility to add -lnsl if needed, but most likely it
73323         won't be needed since only getaddrinfo uses this and getaddrinfo
73324         isn't needed on Solaris 8.
73326         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
73327         problem to Solaris 8 encountered with coreutils 7.2, which
73328         resulted in a message "fnmatch.c:292: warning: passing argument 4
73329         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
73330         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
73332 2009-04-03  Simon Josefsson  <simon@josefsson.org>
73334         * m4/ld-version-script.m4: Add FIXME comment.
73336 2009-04-02  Simon Josefsson  <simon@josefsson.org>
73338         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
73339         SOVERSION variable.
73341 2009-04-02  Bruno Haible  <bruno@clisp.org>
73343         * Makefile (info, html, dvi, pdf): Combine the rules.
73344         Suggested by Jim Meyering.
73346 2009-04-01  Bruno Haible  <bruno@clisp.org>
73348         * Makefile (info, html, dvi, pdf): New targets.
73349         Reported by Reuben Thomas <rrt@sc3d.org>.
73351 2009-04-01  Bruno Haible  <bruno@clisp.org>
73353         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
73354         can be put into PATH.
73355         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
73357 2009-04-01  Bruno Haible  <bruno@clisp.org>
73359         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
73361 2009-04-01  Bruno Haible  <bruno@clisp.org>
73363         Rename module 'visibility'.
73364         * modules/lib-symbol-visibility: Renamed from modules/visibility.
73365         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
73366         * doc/gnulib.texi: Update.
73367         * MODULES.html.sh (Misc): Update.
73368         * NEWS: Mention the change.
73370 2009-04-01  Simon Josefsson  <simon@josefsson.org>
73372         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
73373         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
73374         Eric Blake <ebb9@byu.net> for review.
73375         * MODULES.html.sh: Add lib-msvc-compat.
73376         * doc/gnulib.texi: Link to new section.
73377         * m4/ld-output-def.m4: New file.
73378         * doc/ld-output-def.texi: New file.
73380 2009-04-01  Simon Josefsson  <simon@josefsson.org>
73382         Rename ld-version-script to lib-symbol-versions.  Suggested by
73383         Bruno Haible <bruno@clisp.org>.
73384         * modules/ld-version-script: Renamed to lib-symbol-versions.
73385         * doc/ld-version-script.texi: Fix module name.
73386         * MODULES.html.sh: Add lib-symbol-versions.
73388 2009-03-31  Simon Josefsson  <simon@josefsson.org>
73390         * modules/u64-tests: New file.
73391         * tests/test-u64.c: New file.
73393 2009-03-04  Simon Josefsson  <simon@josefsson.org>
73395         * MODULES.html.sh: Mention u64.
73396         * modules/u64: New module.
73397         * modules/crypto/sha512: Depend on u64 module instead of providing
73398         u64.h.
73400 2009-03-27  Eric Blake  <ebb9@byu.net>
73402         test-strerror: make debugging EAI_SYSTEM easier
73403         * modules/getaddrinfo-tests (Depends-on): Add strerror.
73404         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
73405         failure was EAI_SYSTEM.
73407 2009-03-25  Bruno Haible  <bruno@clisp.org>
73409         Fix a problem with --enable-relocatable on Solaris 7.
73410         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
73411         since 2008-02-24.
73413 2009-03-25  Eric Blake  <ebb9@byu.net>
73415         test-sockets: avoid gcc warning
73416         * tests/test-sockets.c (main): Silence compiler warning.
73418 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
73420         New modules nproc, pthread, contributed by Glen Lenker.
73422         * MODULES.html.sh: Add pthread, nproc.
73423         * lib/nproc.c: New file.
73424         * lib/nproc.h: New file.
73425         * lib/pthread.in.h: New file.
73426         * m4/pthread.m4: New file.
73427         * modules/nproc: New file.
73428         * modules/pthread: New file.
73430 2009-03-24  Simon Josefsson  <simon@josefsson.org>
73432         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
73433         New variable.
73435 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
73437         filevercmp: handle simple~ and numbered.~3~ backup suffixes
73438         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
73439         * tests/test-filevercmp.c: Add tests for backup suffixes.
73441 2009-03-24  Simon Josefsson  <simon@josefsson.org>
73443         * modules/stdlib (Depends-on): Add stdint, needed when defining
73444         struct random_data on, for example, HP-UX 10.20.  Reported by
73445         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
73447 2009-03-24  Simon Josefsson  <simon@josefsson.org>
73449         * lib/readline.c (readline): Call fflush on stdout after printing
73450         prompt.
73452 2009-03-20  Bruno Haible  <bruno@clisp.org>
73454         Remove dependency from 'close' module to -lws2_32 on native Windows.
73455         * lib/close-hook.h: New file.
73456         * lib/close-hook.c: New file.
73457         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
73458         w32sock.h.
73459         (_gl_close_fd_maybe_socket): Remove function.
73460         (rpl_close): Invoke execute_all_close_hooks instead of
73461         _gl_close_fd_maybe_socket.
73462         * lib/sockets.c: Include close-hook.h, w32sock.h.
73463         (close_fd_maybe_socket): New function, essentially from lib/close.c.
73464         (close_sockets_hook): New variable.
73465         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
73466         (gl_sockets_cleanup): Unregister it.
73467         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
73468         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
73469         * modules/close-hook: New file.
73470         * modules/close (Files): Remove lib/w32sock.h.
73471         (Depends-on): Add close-hook.
73472         (Link): Remove section.
73473         * modules/sockets (Files): Add lib/w32sock.h.
73474         (Depends-on): Add close-hook.
73475         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
73476         invocation.
73477         * NEWS: Mention that LIB_CLOSE is gone.
73479 2009-03-23  Eric Blake  <ebb9@byu.net>
73481         signal-tests: test previous patch
73482         * tests/test-signal.c: New file.
73483         * modules/signal-tests: Likewise.
73485         signal.h: always support 'volatile sig_atomic_t'
73486         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
73487         (gl_SIGNAL_H_DEFAULTS): Add a default.
73488         * modules/signal (Makefile.am): Substitute if needed.
73489         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
73490         users can blindly add volatile.
73491         * doc/posix-headers/signal.texi (signal.h): Document it.
73492         Reported by Matthew Woehlke.
73494 2009-03-23  Jim Meyering  <meyering@redhat.com>
73496         pathmax: PATH_MAX: use pathconf only when available
73497         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
73498         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
73499         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
73500         This avoids a link failure in a PSP cross-compilation environment
73501         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
73503         * lib/vasnprintf.c (divide): Fix typo in comment.
73505 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73507         * gnulib-tool (func_filter_filelist): Fix comment.
73509 2009-03-20  Bruno Haible  <bruno@clisp.org>
73511         Make sockets.h self-contained.
73512         * lib/sockets.c: Include sockets.h first.
73513         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
73515 2009-03-19  Eric Blake  <ebb9@byu.net>
73517         doc: mention more functions added in cygwin 1.7.0
73518         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
73519         addition.
73520         * doc/posix-functions/log2f.texi: Likewise.
73522 2009-03-19  Jim Meyering  <meyering@redhat.com>
73524         fsusage: avoid syntax error due to statement-before-declaration
73525         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
73526         after all declarations.  Reported by Matthew Woehlke in
73527         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
73529 2009-03-18  Eric Blake  <ebb9@byu.net>
73531         build-aux/compile: sync from automake
73532         * build-aux/compile: New file, from automake.
73533         * config/srclist.txt: Mention build-aux/compile.
73535 2009-03-17  Bruno Haible  <bruno@clisp.org>
73537         * lib/git-merge-changelog.c: Fix typo in comment.
73538         Reported by Reuben Thomas <rrt@sc3d.org>.
73540 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
73542         * m4/regex.m4: update and improve help for
73543         --without-included-regex.
73545 2009-03-17  Simon Josefsson  <simon@josefsson.org>
73547         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
73548         failure on missing include files.
73550 2009-03-17  Eric Blake  <ebb9@byu.net>
73552         doc: mention more functions added in cygwin 1.7.0
73553         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
73554         addition.
73555         * doc/posix-functions/fwscanf.texi: Likewise.
73556         * doc/posix-functions/swprintf.texi: Likewise.
73557         * doc/posix-functions/swscanf.texi: Likewise.
73558         * doc/posix-functions/vfwprintf.texi: Likewise.
73559         * doc/posix-functions/vfwscanf.texi: Likewise.
73560         * doc/posix-functions/vswprintf.texi: Likewise.
73561         * doc/posix-functions/vswscanf.texi: Likewise.
73562         * doc/posix-functions/vwprintf.texi: Likewise.
73563         * doc/posix-functions/vwscanf.texi: Likewise.
73564         * doc/posix-functions/wcscasecmp.texi: Likewise.
73565         * doc/posix-functions/wcsdup.texi: Likewise.
73566         * doc/posix-functions/wcsftime.texi: Likewise.
73567         * doc/posix-functions/wcsncasecmp.texi: Likewise.
73568         * doc/posix-functions/wprintf.texi: Likewise.
73569         * doc/posix-functions/wscanf.texi: Likewise.
73570         * doc/glibc-functions/gethostbyname2.texi: Likewise.
73572 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73574         maint.mk: really add $(AM_MAKEFLAGS)
73575         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
73576         was inadvertently omitted in the last commit.
73577         Spotted by Bruno Haible.
73579         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
73580         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
73581         $(AM_MAKEFLAGS)' rather than plain `make'.
73583         gnulib-tool: execute $MAKE not make
73584         * gnulib-tool: Default $MAKE to 'make'.
73585         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
73586         than make.  Initialize $MAKE in the do-autobuild script.
73588         gnulib-tool: use $MAKE not make in generated files
73589         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
73590         make, in generated files.  Initialize $MAKE in the do-autobuild
73591         script.
73593         * top/GNUmakefile (_have-git-version-gen): Fix typo.
73595         GNUmakefile: disable parallelism only for multiple, recursive targets
73596         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
73597         additions in the Makefile.
73598         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
73599         by Automake.
73600         (.NOTPARALLEL): Only disable parallel builds if multiple targets
73601         are listed on the command line and at least one of them is
73602         listed in $(ALL_RECURSIVE_TARGETS).
73604 2009-03-14  Bruno Haible  <bruno@clisp.org>
73606         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
73607         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
73608         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
73609         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
73610         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
73611         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
73612         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
73613         unistr/u8-uctomb.
73614         * modules/unistr/u8-strchr (Depends-on): Likewise.
73615         * modules/unistr/u8-strrchr (Depends-on): Likewise.
73616         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
73617         unistr/u16-uctomb.
73618         * modules/unistr/u16-strchr (Depends-on): Likewise.
73619         * modules/unistr/u16-strrchr (Depends-on): Likewise.
73621 2009-03-12  Bruno Haible  <bruno@clisp.org>
73623         Work around select() bug on Interix 3.5.
73624         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
73625         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
73626         * m4/select.m4: New file.
73627         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
73628         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
73629         * modules/select (Files): Add m4/select.m4.
73630         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
73631         * modules/nanosleep (Depends-on): Add select.
73632         * modules/poll (Depends-on): Likewise.
73633         * doc/posix-functions/select.texi: Mention the Interix bug.
73634         Reported by Markus Duft <mduft@gentoo.org>.
73636         * lib/select.c: Renamed from lib/winsock-select.c.
73637         * modules/select (Files): Add lib/select.c, remove
73638         lib/winsock-select.c.
73639         (configure.ac): Update.
73641 2009-03-12  Jim Meyering  <meyering@redhat.com>
73643         avoid gcc warnings about unused macro definitions
73644         * lib/readtokens.c (STREQ): Remove unused definition.
73645         * lib/xmalloc.c (SIZE_MAX): Likewise.
73646         * lib/openat-die.c (N_): Likewise.
73647         * lib/mountlist.c (SIZE_MAX): Remove definition.
73648         Instead, include <stdint.h>.
73649         * lib/readutmp.c: Likewise.
73650         * modules/readutmp (Depends-on): Add stdint.
73651         * modules/mountlist (Depends-on): Add stdint.
73652         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
73654 2009-03-10  Bruno Haible  <bruno@clisp.org>
73656         Tests for module 'mbmemcasecoll'.
73657         * modules/mbmemcasecoll-tests: New file.
73658         * tests/test-mbmemcasecoll1.sh: New file.
73659         * tests/test-mbmemcasecoll2.sh: New file.
73660         * tests/test-mbmemcasecoll3.sh: New file.
73661         * tests/test-mbmemcasecoll.c: New file.
73663         New module 'mbmemcasecoll'.
73664         * lib/mbmemcasecoll.h: New file.
73665         * lib/mbmemcasecoll.c: New file.
73666         * modules/mbmemcasecoll: New file.
73668         * tests/test-mbmemcasecmp.h: New file, extracted from
73669         tests/test-mbmemcasecmp.c.
73670         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
73671         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
73672         (main): Update.
73673         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
73675 2009-03-09  Bruno Haible  <bruno@clisp.org>
73677         Tests for module 'mbmemcasecmp'.
73678         * modules/mbmemcasecmp-tests: New file.
73679         * tests/test-mbmemcasecmp1.sh: New file.
73680         * tests/test-mbmemcasecmp2.sh: New file.
73681         * tests/test-mbmemcasecmp3.sh: New file.
73682         * tests/test-mbmemcasecmp.c: New file.
73684         New module 'mbmemcasecmp'.
73685         * lib/mbmemcasecmp.h: New file.
73686         * lib/mbmemcasecmp.c: New file.
73687         * modules/mbmemcasecmp: New file.
73689 2009-03-09  Bruno Haible  <bruno@clisp.org>
73691         Tests for module 'unicase/ulc-casecoll'.
73692         * modules/unicase/ulc-casecoll-tests: New file.
73693         * tests/unicase/test-ulc-casecoll1.sh: New file.
73694         * tests/unicase/test-ulc-casecoll2.sh: New file.
73695         * tests/unicase/test-ulc-casecoll.c: New file.
73697         New module 'unicase/ulc-casecoll'.
73698         * lib/unicase.h (ulc_casecoll): New declaration.
73699         * lib/unicase/ulc-casecoll.c: New file.
73700         * modules/unicase/ulc-casecoll: New file.
73702         New module 'unicase/ulc-casexfrm'.
73703         * lib/unicase.h (ulc_casexfrm): New declaration.
73704         * lib/unicase/ulc-casexfrm.c: New file.
73705         * modules/unicase/ulc-casexfrm: New file.
73707 2009-03-09  Bruno Haible  <bruno@clisp.org>
73709         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
73710         invocations.
73712         * m4/mbscasecmp.m4: Remove file.
73713         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
73714         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
73716         * m4/mbscasestr.m4: Remove file.
73717         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
73718         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
73720         * m4/mbschr.m4: Remove file.
73721         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
73722         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
73724         * m4/mbscspn.m4: Remove file.
73725         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
73726         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
73728         * m4/mbslen.m4: Remove file.
73729         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
73730         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
73732         * m4/mbsncasecmp.m4: Remove file.
73733         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
73734         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
73736         * m4/mbsnlen.m4: Remove file.
73737         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
73738         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
73740         * m4/mbspbrk.m4: Remove file.
73741         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
73742         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
73744         * m4/mbspcasecmp.m4: Remove file.
73745         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
73746         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
73748         * m4/mbsrchr.m4: Remove file.
73749         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
73750         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
73752         * m4/mbssep.m4: Remove file.
73753         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
73754         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
73756         * m4/mbsspn.m4: Remove file.
73757         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
73758         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
73760         * m4/mbsstr.m4: Remove file.
73761         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
73762         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
73764         * m4/mbstok_r.m4: Remove file.
73765         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
73766         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
73768         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
73770         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
73771         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
73773         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
73775 2009-03-08  Bruno Haible  <bruno@clisp.org>
73777         Tests for module 'unicase/ulc-casecmp'.
73778         * modules/unicase/ulc-casecmp-tests: New file.
73779         * tests/unicase/test-ulc-casecmp1.sh: New file.
73780         * tests/unicase/test-ulc-casecmp2.sh: New file.
73781         * tests/unicase/test-ulc-casecmp.c: New file.
73783         New module 'unicase/ulc-casecmp'.
73784         * lib/unicase.h (ulc_casecmp): New declaration.
73785         * lib/unicase/ulc-casecmp.c: New file.
73786         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
73787         'const SRC_UNIT *'.
73788         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
73789         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
73790         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
73791         * modules/unicase/ulc-casecmp: New file.
73793         Tests for module 'unicase/u32-is-cased'.
73794         * modules/unicase/u32-is-cased-tests: New file.
73795         * tests/unicase/test-u32-is-cased.c: New file.
73797         Tests for module 'unicase/u16-is-cased'.
73798         * modules/unicase/u16-is-cased-tests: New file.
73799         * tests/unicase/test-u16-is-cased.c: New file.
73801         Tests for module 'unicase/u8-is-cased'.
73802         * modules/unicase/u8-is-cased-tests: New file.
73803         * tests/unicase/test-u8-is-cased.c: New file.
73804         * tests/unicase/test-is-cased.h: New file.
73806         New module 'unicase/u32-is-cased'.
73807         * lib/unicase/u32-is-cased.c: New file.
73808         * modules/unicase/u32-is-cased: New file.
73810         New module 'unicase/u16-is-cased'.
73811         * lib/unicase/u16-is-cased.c: New file.
73812         * modules/unicase/u16-is-cased: New file.
73814         New module 'unicase/u8-is-cased'.
73815         * lib/unicase/u8-is-cased.c: New file.
73816         * lib/unicase/u-is-cased.h: New file.
73817         * modules/unicase/u8-is-cased: New file.
73819         Tests for module 'unicase/u32-is-casefolded'.
73820         * modules/unicase/u32-is-casefolded-tests: New file.
73821         * tests/unicase/test-u32-is-casefolded.c: New file.
73823         Tests for module 'unicase/u16-is-casefolded'.
73824         * modules/unicase/u16-is-casefolded-tests: New file.
73825         * tests/unicase/test-u16-is-casefolded.c: New file.
73827         Tests for module 'unicase/u8-is-casefolded'.
73828         * modules/unicase/u8-is-casefolded-tests: New file.
73829         * tests/unicase/test-u8-is-casefolded.c: New file.
73830         * tests/unicase/test-is-casefolded.h: New file.
73832         New module 'unicase/u32-is-casefolded'.
73833         * lib/unicase/u32-is-casefolded.c: New file.
73834         * modules/unicase/u32-is-casefolded: New file.
73836         New module 'unicase/u16-is-casefolded'.
73837         * lib/unicase/u16-is-casefolded.c: New file.
73838         * modules/unicase/u16-is-casefolded: New file.
73840         New module 'unicase/u8-is-casefolded'.
73841         * lib/unicase/u8-is-casefolded.c: New file.
73842         * modules/unicase/u8-is-casefolded: New file.
73844         Tests for module 'unicase/u32-is-titlecase'.
73845         * modules/unicase/u32-is-titlecase-tests: New file.
73846         * tests/unicase/test-u32-is-titlecase.c: New file.
73848         Tests for module 'unicase/u16-is-titlecase'.
73849         * modules/unicase/u16-is-titlecase-tests: New file.
73850         * tests/unicase/test-u16-is-titlecase.c: New file.
73852         Tests for module 'unicase/u8-is-titlecase'.
73853         * modules/unicase/u8-is-titlecase-tests: New file.
73854         * tests/unicase/test-u8-is-titlecase.c: New file.
73855         * tests/unicase/test-is-titlecase.h: New file.
73857         New module 'unicase/u32-is-titlecase'.
73858         * lib/unicase/u32-is-titlecase.c: New file.
73859         * modules/unicase/u32-is-titlecase: New file.
73861         New module 'unicase/u16-is-titlecase'.
73862         * lib/unicase/u16-is-titlecase.c: New file.
73863         * modules/unicase/u16-is-titlecase: New file.
73865         New module 'unicase/u8-is-titlecase'.
73866         * lib/unicase/u8-is-titlecase.c: New file.
73867         * modules/unicase/u8-is-titlecase: New file.
73869         Tests for module 'unicase/u32-is-lowercase'.
73870         * modules/unicase/u32-is-lowercase-tests: New file.
73871         * tests/unicase/test-u32-is-lowercase.c: New file.
73873         Tests for module 'unicase/u16-is-lowercase'.
73874         * modules/unicase/u16-is-lowercase-tests: New file.
73875         * tests/unicase/test-u16-is-lowercase.c: New file.
73877         Tests for module 'unicase/u8-is-lowercase'.
73878         * modules/unicase/u8-is-lowercase-tests: New file.
73879         * tests/unicase/test-u8-is-lowercase.c: New file.
73880         * tests/unicase/test-is-lowercase.h: New file.
73882         New module 'unicase/u32-is-lowercase'.
73883         * lib/unicase/u32-is-lowercase.c: New file.
73884         * modules/unicase/u32-is-lowercase: New file.
73886         New module 'unicase/u16-is-lowercase'.
73887         * lib/unicase/u16-is-lowercase.c: New file.
73888         * modules/unicase/u16-is-lowercase: New file.
73890         New module 'unicase/u8-is-lowercase'.
73891         * lib/unicase/u8-is-lowercase.c: New file.
73892         * modules/unicase/u8-is-lowercase: New file.
73894         Tests for module 'unicase/u32-is-uppercase'.
73895         * modules/unicase/u32-is-uppercase-tests: New file.
73896         * tests/unicase/test-u32-is-uppercase.c: New file.
73898         Tests for module 'unicase/u16-is-uppercase'.
73899         * modules/unicase/u16-is-uppercase-tests: New file.
73900         * tests/unicase/test-u16-is-uppercase.c: New file.
73902         Tests for module 'unicase/u8-is-uppercase'.
73903         * modules/unicase/u8-is-uppercase-tests: New file.
73904         * tests/unicase/test-u8-is-uppercase.c: New file.
73905         * tests/unicase/test-is-uppercase.h: New file.
73907         New module 'unicase/u32-is-uppercase'.
73908         * lib/unicase/u32-is-uppercase.c: New file.
73909         * modules/unicase/u32-is-uppercase: New file.
73911         New module 'unicase/u16-is-uppercase'.
73912         * lib/unicase/u16-is-uppercase.c: New file.
73913         * modules/unicase/u16-is-uppercase: New file.
73915         New module 'unicase/u8-is-uppercase'.
73916         * lib/unicase/u8-is-uppercase.c: New file.
73917         * modules/unicase/u8-is-uppercase: New file.
73919         New module 'unicase/u32-is-invariant'.
73920         * lib/unicase/u32-is-invariant.c: New file.
73921         * modules/unicase/u32-is-invariant: New file.
73923         New module 'unicase/u16-is-invariant'.
73924         * lib/unicase/u16-is-invariant.c: New file.
73925         * modules/unicase/u16-is-invariant: New file.
73927         New module 'unicase/u8-is-invariant'.
73928         * lib/unicase/u8-is-invariant.c: New file.
73929         * lib/unicase/invariant.h: New file.
73930         * lib/unicase/u-is-invariant.h: New file.
73931         * modules/unicase/u8-is-invariant: New file.
73933         Tests for module 'unicase/u32-casecoll'.
73934         * modules/unicase/u32-casecoll-tests: New file.
73935         * tests/unicase/test-u32-casecoll.c: New file.
73937         Tests for module 'unicase/u16-casecoll'.
73938         * modules/unicase/u16-casecoll-tests: New file.
73939         * tests/unicase/test-u16-casecoll.c: New file.
73941         Tests for module 'unicase/u8-casecoll'.
73942         * modules/unicase/u8-casecoll-tests: New file.
73943         * tests/unicase/test-u8-casecoll.c: New file.
73945         New module 'unicase/u32-casecoll'.
73946         * lib/unicase/u32-casecoll.c: New file.
73947         * modules/unicase/u32-casecoll: New file.
73949         New module 'unicase/u16-casecoll'.
73950         * lib/unicase/u16-casecoll.c: New file.
73951         * modules/unicase/u16-casecoll: New file.
73953         New module 'unicase/u8-casecoll'.
73954         * lib/unicase/u8-casecoll.c: New file.
73955         * lib/unicase/u-casecoll.h: New file.
73956         * modules/unicase/u8-casecoll: New file.
73958         New module 'unicase/u32-casexfrm'.
73959         * lib/unicase/u32-casexfrm.c: New file.
73960         * modules/unicase/u32-casexfrm: New file.
73962         New module 'unicase/u16-casexfrm'.
73963         * lib/unicase/u16-casexfrm.c: New file.
73964         * modules/unicase/u16-casexfrm: New file.
73966         New module 'unicase/u8-casexfrm'.
73967         * lib/unicase/u8-casexfrm.c: New file.
73968         * lib/unicase/u-casexfrm.h: New file.
73969         * modules/unicase/u8-casexfrm: New file.
73971         Tests for module 'unicase/u32-casecmp'.
73972         * modules/unicase/u32-casecmp-tests: New file.
73973         * tests/unicase/test-u32-casecmp.c: New file.
73975         Tests for module 'unicase/u16-casecmp'.
73976         * modules/unicase/u16-casecmp-tests: New file.
73977         * tests/unicase/test-u16-casecmp.c: New file.
73979         Tests for module 'unicase/u8-casecmp'.
73980         * modules/unicase/u8-casecmp-tests: New file.
73981         * tests/unicase/test-u8-casecmp.c: New file.
73982         * tests/unicase/test-casecmp.h: New file.
73984         New module 'unicase/u32-casecmp'.
73985         * lib/unicase/u32-casecmp.c: New file.
73986         * modules/unicase/u32-casecmp: New file.
73988         New module 'unicase/u16-casecmp'.
73989         * lib/unicase/u16-casecmp.c: New file.
73990         * modules/unicase/u16-casecmp: New file.
73992         New module 'unicase/u8-casecmp'.
73993         * lib/unicase/u8-casecmp.c: New file.
73994         * lib/unicase/u-casecmp.h: New file.
73995         * modules/unicase/u8-casecmp: New file.
73997         Tests for module 'unicase/u32-casefold'.
73998         * modules/unicase/u32-casefold-tests: New file.
73999         * tests/unicase/test-u32-casefold.c: New file.
74001         Tests for module 'unicase/u16-casefold'.
74002         * modules/unicase/u16-casefold-tests: New file.
74003         * tests/unicase/test-u16-casefold.c: New file.
74005         Tests for module 'unicase/u8-casefold'.
74006         * modules/unicase/u8-casefold-tests: New file.
74007         * tests/unicase/test-u8-casefold.c: New file.
74009         New module 'unicase/u32-casefold'.
74010         * lib/unicase/u32-casefold.c: New file.
74011         * modules/unicase/u32-casefold: New file.
74013         New module 'unicase/u16-casefold'.
74014         * lib/unicase/u16-casefold.c: New file.
74015         * modules/unicase/u16-casefold: New file.
74017         New module 'unicase/u8-casefold'.
74018         * lib/unicase/u8-casefold.c: New file.
74019         * lib/unicase/u-casefold.h: New file.
74020         * modules/unicase/u8-casefold: New file.
74022         New module 'unicase/tocasefold'.
74023         * lib/unicase/casefold.h: New file.
74024         * lib/unicase/tocasefold.c: New file.
74025         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
74026         * modules/unicase/tocasefold: New file.
74028         Tests for module 'unicase/u32-totitle'.
74029         * modules/unicase/u32-totitle-tests: New file.
74030         * tests/unicase/test-u32-totitle.c: New file.
74032         Tests for module 'unicase/u16-totitle'.
74033         * modules/unicase/u16-totitle-tests: New file.
74034         * tests/unicase/test-u16-totitle.c: New file.
74036         Tests for module 'unicase/u8-totitle'.
74037         * modules/unicase/u8-totitle-tests: New file.
74038         * tests/unicase/test-u8-totitle.c: New file.
74040         New module 'unicase/u32-totitle'.
74041         * lib/unicase/u32-totitle.c: New file.
74042         * modules/unicase/u32-totitle: New file.
74044         New module 'unicase/u16-totitle'.
74045         * lib/unicase/u16-totitle.c: New file.
74046         * modules/unicase/u16-totitle: New file.
74048         New module 'unicase/u8-totitle'.
74049         * lib/unicase/u8-totitle.c: New file.
74050         * lib/unicase/u-totitle.h: New file.
74051         * modules/unicase/u8-totitle: New file.
74053         Tests for module 'unicase/u32-tolower'.
74054         * modules/unicase/u32-tolower-tests: New file.
74055         * tests/unicase/test-u32-tolower.c: New file.
74057         Tests for module 'unicase/u16-tolower'.
74058         * modules/unicase/u16-tolower-tests: New file.
74059         * tests/unicase/test-u16-tolower.c: New file.
74061         Tests for module 'unicase/u8-tolower'.
74062         * modules/unicase/u8-tolower-tests: New file.
74063         * tests/unicase/test-u8-tolower.c: New file.
74065         New module 'unicase/u32-tolower'.
74066         * lib/unicase/u32-tolower.c: New file.
74067         * modules/unicase/u32-tolower: New file.
74069         New module 'unicase/u16-tolower'.
74070         * lib/unicase/u16-tolower.c: New file.
74071         * modules/unicase/u16-tolower: New file.
74073         New module 'unicase/u8-tolower'.
74074         * lib/unicase/u8-tolower.c: New file.
74075         * modules/unicase/u8-tolower: New file.
74077         Tests for module 'unicase/u32-toupper'.
74078         * modules/unicase/u32-toupper-tests: New file.
74079         * tests/unicase/test-u32-toupper.c: New file.
74081         Tests for module 'unicase/u16-toupper'.
74082         * modules/unicase/u16-toupper-tests: New file.
74083         * tests/unicase/test-u16-toupper.c: New file.
74085         Tests for module 'unicase/u8-toupper'.
74086         * modules/unicase/u8-toupper-tests: New file.
74087         * tests/unicase/test-u8-toupper.c: New file.
74089         New module 'unicase/u32-toupper'.
74090         * lib/unicase/u32-toupper.c: New file.
74091         * modules/unicase/u32-toupper: New file.
74093         New module 'unicase/u16-toupper'.
74094         * lib/unicase/u16-toupper.c: New file.
74095         * modules/unicase/u16-toupper: New file.
74097         New module 'unicase/u8-toupper'.
74098         * lib/unicase/u8-toupper.c: New file.
74099         * modules/unicase/u8-toupper: New file.
74101         New module 'unicase/u32-casemap'.
74102         * lib/unicase/u32-casemap.c: New file.
74103         * modules/unicase/u32-casemap: New file.
74105         New module 'unicase/u16-casemap'.
74106         * lib/unicase/u16-casemap.c: New file.
74107         * modules/unicase/u16-casemap: New file.
74109         New module 'unicase/u8-casemap'.
74110         * lib/unicase/unicasemap.h: New file.
74111         * lib/unicase/u8-casemap.c: New file.
74112         * lib/unicase/u-casemap.h: New file.
74113         * modules/unicase/u8-casemap: New file.
74115         New module 'unicase/special-casing'.
74116         * lib/unicase/special-casing.h: New file.
74117         * lib/unicase/special-casing.c: New file.
74118         * lib/unicase/special-casing-table.gperf: New file, generated by
74119         gen-uni-tables.c.
74120         * modules/unicase/special-casing: New file.
74122         Tests for module 'unicase/locale-language'.
74123         * modules/unicase/locale-language-tests: New file.
74124         * tests/unicase/test-locale-language.sh: New file.
74125         * tests/unicase/test-locale-language.c: New file.
74127         New module 'unicase/locale-language'.
74128         * lib/unicase/locale-language.c: New file.
74129         * lib/unicase/locale-languages.gperf: New file.
74130         * modules/unicase/locale-language: New file.
74132         Generate more tables for case conversion and case folding.
74133         * lib/gen-uni-tables.c (SCC_*): New enum items.
74134         (struct special_casing_rule): New type.
74135         (casing_rules, num_casing_rules, allocated_casing_rules): New
74136         variables.
74137         (add_casing_rule, fill_casing_rules): New functions.
74138         (struct casefold_rule): New type.
74139         (casefolding_rules, num_casefolding_rules,
74140         allocated_casefolding_rules): New variables.
74141         (fill_casefolding_rules): New function.
74142         (unicode_casefold): New variable.
74143         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
74144         sort_casing_rules, output_casing_rules): New functions.
74145         (main): Accept to more arguments: SpecialCasing.txt and
74146         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
74147         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
74148         Output mapping for casefolding.
74150         * lib/unicase.h: Include stdbool.h, uninorm.h.
74151         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
74152         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
74153         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
74154         arguments.
74155         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
74156         resultp arguments.
74157         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
74158         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
74159         resultp arguments.
74160         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
74161         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
74162         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
74163         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
74164         declarations.
74165         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
74167 2009-03-08  Bruno Haible  <bruno@clisp.org>
74169         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
74170         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
74171         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
74172         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
74174 2009-03-07  Bruno Haible  <bruno@clisp.org>
74176         Adjust u*_normcmp, u*_normcoll API.
74177         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
74178         u16_normcoll, u32_normcoll): Change failure conventions.
74179         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
74180         errno and return -1.
74181         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
74183 2009-03-07  Bruno Haible  <bruno@clisp.org>
74185         Tests for module 'uninorm/u32-normcoll'.
74186         * modules/uninorm/u32-normcoll-tests: New file.
74187         * tests/uninorm/test-u32-normcoll.c: New file.
74189         Tests for module 'uninorm/u16-normcoll'.
74190         * modules/uninorm/u16-normcoll-tests: New file.
74191         * tests/uninorm/test-u16-normcoll.c: New file.
74193         Tests for module 'uninorm/u8-normcoll'.
74194         * modules/uninorm/u8-normcoll-tests: New file.
74195         * tests/uninorm/test-u8-normcoll.c: New file.
74197 2009-03-07  Bruno Haible  <bruno@clisp.org>
74199         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
74200         tests/uninorm/test-u32-normcmp.c.
74201         * tests/uninorm/test-u32-normcmp.c: Include it.
74202         (test_nonascii): New function, extracted from main. Add some more
74203         tests.
74204         (main): Invoke test_ascii and test_nonascii.
74205         * modules/uninorm/u32-normcmp-tests (Files): Add
74206         tests/uninorm/test-u32-normcmp.h.
74207         (Depends-on): Remove uninorm/u32-normcmp.
74209         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
74210         tests/uninorm/test-u16-normcmp.c.
74211         * tests/uninorm/test-u16-normcmp.c: Include it.
74212         (test_nonascii): New function, extracted from main. Add some more
74213         tests.
74214         (main): Invoke test_ascii and test_nonascii.
74215         * modules/uninorm/u16-normcmp-tests (Files): Add
74216         tests/uninorm/test-u16-normcmp.h.
74217         (Depends-on): Remove uninorm/u16-normcmp.
74219         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
74220         tests/uninorm/test-u8-normcmp.c.
74221         * tests/uninorm/test-u8-normcmp.c: Include it.
74222         (test_nonascii): New function, extracted from main. Add some more
74223         tests.
74224         (main): Invoke test_ascii and test_nonascii.
74225         * modules/uninorm/u8-normcmp-tests (Files): Add
74226         tests/uninorm/test-u8-normcmp.h.
74227         (Depends-on): Remove uninorm/u8-normcmp.
74229 2009-03-07  Bruno Haible  <bruno@clisp.org>
74231         New module 'uninorm/u32-normcoll'.
74232         * lib/uninorm/u32-normcoll.c: New file.
74233         * modules/uninorm/u32-normcoll: New file.
74235         New module 'uninorm/u16-normcoll'.
74236         * lib/uninorm/u16-normcoll.c: New file.
74237         * modules/uninorm/u16-normcoll: New file.
74239         New module 'uninorm/u8-normcoll'.
74240         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
74241         declarations.
74242         * lib/uninorm/u8-normcoll.c: New file.
74243         * lib/uninorm/u-normcoll.h: New file.
74244         * modules/uninorm/u8-normcoll: New file.
74246         New module 'uninorm/u32-normxfrm'.
74247         * lib/uninorm/u32-normxfrm.c: New file.
74248         * modules/uninorm/u32-normxfrm: New file.
74250         New module 'uninorm/u16-normxfrm'.
74251         * lib/uninorm/u16-normxfrm.c: New file.
74252         * modules/uninorm/u16-normxfrm: New file.
74254         New module 'uninorm/u8-normxfrm'.
74255         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
74256         declarations.
74257         * lib/uninorm/u8-normxfrm.c: New file.
74258         * lib/uninorm/u-normxfrm.h: New file.
74259         * modules/uninorm/u8-normxfrm: New file.
74261 2009-03-07  Bruno Haible  <bruno@clisp.org>
74263         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
74264         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
74265         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
74267 2009-03-07  Bruno Haible  <bruno@clisp.org>
74269         New module 'memxfrm'.
74270         * lib/memxfrm.h: New file.
74271         * lib/memxfrm.c: New file.
74272         * modules/memxfrm: New file.
74274 2009-03-07  Bruno Haible  <bruno@clisp.org>
74276         New module 'memcmp2'.
74277         * lib/memcmp2.h: New file.
74278         * lib/memcmp2.c: New file.
74279         * modules/memcmp2: New file.
74281 2009-03-07  Bruno Haible  <bruno@clisp.org>
74283         Tests for module 'uninorm/decomposing-form'.
74284         * modules/uninorm/decomposing-form-tests: New file.
74285         * tests/uninorm/test-decomposing-form.c: New file.
74287         New module 'uninorm/decomposing-form'.
74288         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
74289         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
74290         Add 'decomposing_variant' field.
74291         * lib/uninorm/decomposing-form.c: New file.
74292         * lib/uninorm/nfc.c (uninorm_nfc): Update.
74293         * lib/uninorm/nfd.c (uninorm_nfd): Update.
74294         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
74295         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
74296         * modules/uninorm/decomposing-form: New file.
74297         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
74298         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
74300 2009-03-07  Bruno Haible  <bruno@clisp.org>
74302         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
74303         strings.
74305 2009-03-06  Bruno Haible  <bruno@clisp.org>
74307         Tests for module 'uninorm/u32-normcmp'.
74308         * tests/uninorm/test-u32-normcmp.c: New file.
74309         * modules/uninorm/u32-normcmp-tests: New file.
74311         Tests for module 'uninorm/u16-normcmp'.
74312         * tests/uninorm/test-u16-normcmp.c: New file.
74313         * modules/uninorm/u16-normcmp-tests: New file.
74315         Tests for module 'uninorm/u8-normcmp'.
74316         * tests/uninorm/test-u8-normcmp.c: New file.
74317         * modules/uninorm/u8-normcmp-tests: New file.
74319         New module 'uninorm/u32-normcmp'.
74320         * lib/uninorm/u32-normcmp.c: New file.
74321         * modules/uninorm/u32-normcmp: New file.
74323         New module 'uninorm/u16-normcmp'.
74324         * lib/uninorm/u16-normcmp.c: New file.
74325         * modules/uninorm/u16-normcmp: New file.
74327         New module 'uninorm/u8-normcmp'.
74328         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
74329         declarations.
74330         * lib/uninorm/u8-normcmp.c: New file.
74331         * lib/uninorm/u-normcmp.h: New file.
74332         * modules/uninorm/u8-normcmp: New file.
74334 2009-03-06  Bruno Haible  <bruno@clisp.org>
74336         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
74337         Reported by Eric Blake.
74339 2009-03-06  Eric Blake  <ebb9@byu.net>
74340             Bruno Haible  <bruno@clisp.org>
74342         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
74343         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
74344         condition.
74345         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
74346         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
74347         condition.
74348         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
74350 2009-03-06  Eric Blake  <ebb9@byu.net>
74352         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
74353         to avoid compiler warnings.
74354         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
74356 2009-03-05  Bruno Haible  <bruno@clisp.org>
74358         * tests/test-ftell.c (main): Disable test beyond end of file on
74359         FreeMiNT.
74360         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
74362 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
74364         * lib/filevercmp.c: Move hidden files up in ordering.
74365         * tests/test-filevercmp.c: Add tests for hidden files.
74367 2009-03-04  Bruno Haible  <bruno@clisp.org>
74369         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
74370         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
74371         AM_CFLAGS.
74372         Reported by Simon Josefsson.
74374 2009-03-03  Bruno Haible  <bruno@clisp.org>
74376         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
74377         Reported by Simon Josefsson.
74379         * doc/ld-version-script.texi: Update node reference.
74381 2009-03-03  Bruno Haible  <bruno@clisp.org>
74383         * modules/visibility (License): Change to 'unlimited'.
74384         Suggested by Simon Josefsson.
74386 2009-03-03  Jim Meyering  <meyering@redhat.com>
74388         unlinkdir: cannot_unlink_dir may modify process state
74389         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
74390         it's neither thread-safe nor appropriate for use in a library.
74392 2009-03-03  Eric Blake  <ebb9@byu.net>
74394         test-closein: silence test under Darwin
74395         * tests/test-closein.sh: Ignore stderr from cat, since we don't
74396         care if it dies from EPIPE or EBADF.
74398 2009-03-03  Bruno Haible  <bruno@clisp.org>
74400         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
74401         earlier.
74402         * doc/visibility.texi: Fix @node and @section.
74404 2009-03-03  Simon Josefsson  <simon@josefsson.org>
74406         * doc/gnulib.texi: Link to sections for ld version script and
74407         visibility.
74408         * doc/visibility.texi: Add @node and @section.
74409         * modules/ld-version-script: New module.
74410         * m4/ld-version-script.m4: New file.
74411         * doc/ld-version-script.texi: New file.
74413 2009-03-02  David Lutterkort  <lutter@redhat.com>
74415         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
74416         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
74418 2009-03-02  Bruno Haible  <bruno@clisp.org>
74420         * doc/visibility.texi: Mention libtool's -export-symbols option.
74422 2009-03-02  Jim Meyering  <meyering@redhat.com>
74424         announce-gen: new option: --no-print-checksums
74425         * build-aux/announce-gen (usage): Describe it.
74426         (print_checksums): Print a newline here, not in the [*] footnote.
74427         (main): Honor it.
74429 2009-03-01  Bruno Haible  <bruno@clisp.org>
74431         Use socklen_t in the native Windows replacements prototypes.
74432         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
74433         instead of 'int'.
74434         * lib/getsockopt.c (rpl_getsockopt): Likewise.
74435         * lib/setsockopt.c (rpl_setsockopt): Likewise.
74436         * modules/getsockopt (Depends-on): Add socklen.
74437         * modules/setsockopt (Depends-on): Add socklen.
74439 2009-03-01  Bruno Haible  <bruno@clisp.org>
74441         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
74442         least 4.2.
74444 2009-03-01  Eric Blake  <ebb9@byu.net>
74445             Bruno Haible  <bruno@clisp.org>
74447         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
74448         error messages.
74449         * lib/wait-process.c (wait_subprocess): Omit error message about
74450         deadly signal sent to the child of termsigp != NULL.
74452 2009-03-01  Eric Blake  <ebb9@byu.net>
74454         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
74456 2009-03-01  Bruno Haible  <bruno@clisp.org>
74458         Avoid a gcc warning.
74459         * tests/test-sched.c (b): Make global.
74460         Reported by Eric Blake.
74462 2009-01-19  Martin Lambers  <marlam@marlam.de>
74464         Provide POSIX semantics for socket timeout options on W32.
74465         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
74466         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
74467         * modules/setsockopt: Depend on sys_time module for struct timeval.
74468         * modules/getsockopt: Depend on sys_time module for struct timeval.
74470 2009-03-01  Simon Josefsson  <simon@josefsson.org>
74472         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
74473         __USE_GNU, for consistency with netdb.in.h.
74474         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
74476 2009-03-01  Bruno Haible  <bruno@clisp.org>
74478         More support for FreeMiNT.
74479         * lib/fseeko.c (rpl_fseeko): Complete last commit.
74480         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
74482 2009-03-01  Bruno Haible  <bruno@clisp.org>
74484         More support for FreeMiNT.
74485         * lib/fpurge.c (fpurge): Correct last commit.
74486         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
74488 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74490         Fix unportable awk script in vc-list-files.
74491         * build-aux/vc-list-files: In the replacement awk script, use
74492         substr with a second argument of 1, not zero.
74493         Report by Simon Josefsson.
74495 2009-02-28  Bruno Haible  <bruno@clisp.org>
74497         More support for FreeMiNT.
74498         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
74499         to FreeMiNT today.
74500         * lib/fwriting.c (fwriting): Likewise.
74501         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
74503 2009-02-28  Bruno Haible  <bruno@clisp.org>
74505         * tests/test-freadseek.c (main): Disable test beyond end of file on
74506         FreeMiNT.
74507         * tests/test-ftello.c (main): Likewise.
74508         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
74510 2009-02-28  Bruno Haible  <bruno@clisp.org>
74512         Add tentative support for FreeMiNT.
74513         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
74514         * lib/fpurge.c (fpurge): Likewise.
74515         * lib/freadable.c (freadable): Likewise.
74516         * lib/freading.c (freading): Likewise.
74517         * lib/freadptr.c (freadptr): Likewise.
74518         * lib/freadseek.c (freadptrinc): Likewise.
74519         * lib/fseeko.c (rpl_fseeko): Likewise.
74520         * lib/fseterr.c (fseterr): Likewise.
74521         * lib/fwritable.c (fwritable): Likewise.
74522         * lib/fwriting.c (fwriting): Likewise.
74523         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
74524         Hourihane.
74525         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
74527 2009-02-28  Bruno Haible  <bruno@clisp.org>
74529         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
74530         SIGCHLD.
74531         Reported by Jim Meyering.
74533 2009-02-28  Bruno Haible  <bruno@clisp.org>
74535         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
74536         Mention the results of these tests on various platforms.
74537         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
74538         order.
74539         * doc/posix-functions/printf.texi: Likewise.
74540         * doc/posix-functions/snprintf.texi: Likewise.
74541         * doc/posix-functions/sprintf.texi: Likewise.
74542         * doc/posix-functions/vfprintf.texi: Likewise.
74543         * doc/posix-functions/vprintf.texi: Likewise.
74544         * doc/posix-functions/vsnprintf.texi: Likewise.
74545         * doc/posix-functions/vsprintf.texi: Likewise.
74546         * doc/glibc-functions/obstack_printf.texi: Likewise.
74547         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
74549 2009-02-28  Bruno Haible  <bruno@clisp.org>
74551         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
74552         Reported by Loïc Minier <lool@dooz.org>.
74554 2009-02-27  Bruno Haible  <bruno@clisp.org>
74556         * gnulib-tool (func_import): Make the sed expression used to create the
74557         sed script for updating the .gitignore file POSIX compliant.
74558         Reported by Eric Blake.
74560 2009-02-27  Bruno Haible  <bruno@clisp.org>
74562         * gnulib-tool (sed): Don't alias as "sed --posix".
74563         Reported by Eric Blake.
74565 2009-02-27  Bruno Haible  <bruno@clisp.org>
74567         Avoid test link errors.
74568         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
74569         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
74570         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
74571         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
74572         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
74574 2009-02-27  Bruno Haible  <bruno@clisp.org>
74576         Avoid spurious "(cached)" in configure output.
74577         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
74578         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
74579         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
74580         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
74581         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
74582         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
74583         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
74584         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
74585         Reported by Eric Blake.
74587 2009-02-27  Eric Blake  <ebb9@byu.net>
74589         printf: fix regression in previous patch
74590         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
74592 2009-02-27  Bruno Haible  <bruno@clisp.org>
74594         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
74595         value.
74596         * lib/stdint.in.h: Likewise.
74597         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
74599 2009-02-27  Eric Blake  <ebb9@byu.net>
74601         doc: mention more functions added in cygwin 1.7.0
74602         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
74603         addition.
74604         * doc/posix-functions/open_wmemstream.texi: Likewise.
74605         * doc/posix-functions/wcsnlen.texi: Likewise.
74606         * doc/posix-functions/wcsnrtombs.texi: Likewise.
74607         * doc/posix-functions/wcstod.texi: Likewise.
74608         * doc/posix-functions/wcstof.texi: Likewise.
74609         * doc/posix-functions/wcstoimax.texi: Likewise.
74610         * doc/posix-functions/wcstok.texi: Likewise.
74611         * doc/posix-functions/wcstoumax.texi: Likewise.
74613         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
74614         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
74615         * doc/posix-functions/fprintf.texi: Update.
74616         * doc/posix-functions/printf.texi: Update.
74617         * doc/posix-functions/snprintf.texi: Update.
74618         * doc/posix-functions/sprintf.texi: Update.
74619         * doc/posix-functions/vfprintf.texi: Update.
74620         * doc/posix-functions/vprintf.texi: Update.
74621         * doc/posix-functions/vsnprintf.texi: Update.
74622         * doc/posix-functions/vsprintf.texi: Update.
74623         * doc/glibc-functions/obstack_printf.texi: Update.
74624         * doc/glibc-functions/obstack_vprintf.texi: Update.
74626 2009-02-26  Eric Blake  <ebb9@byu.net>
74628         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
74629         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
74630         compilation bug by using runtime conversion.
74631         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
74632         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
74633         * modules/ceill-tests (Files): Use nan.h.
74634         * modules/floorl-tests (Files): Likewise.
74635         * modules/frexpl-tests (Files): Likewise.
74636         * modules/isnanl-tests (Files): Likewise.
74637         * modules/ldexpl-tests (Files): Likewise.
74638         * modules/roundl-tests (Files): Likewise.
74639         * modules/truncl-tests (Files): Likewise.
74640         * tests/test-ceill.c (main): Use a working NaN.
74641         * tests/test-floorl.c (main): Likewise.
74642         * tests/test-frexpl.c (main): Likewise.
74643         * tests/test-isnan.c (test_long_double): Likewise.
74644         * tests/test-isnanl.h (main): Likewise.
74645         * tests/test-ldexpl.h (main): Likewise.
74646         * tests/test-roundl.h (main): Likewise.
74647         * tests/test-truncl.h (main): Likewise.
74648         See http://lists.gnu.org/r/bug-gnulib/2009-02/msg00190.html.
74650 2009-02-26  Eric Blake  <ebb9@byu.net>
74651             Bruno Haible  <bruno@clisp.org>
74653         Work around a *printf bug with %ls on Solaris.
74654         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
74655         precision is specified, sprintf stops converting the wide string
74656         argument when the number of bytes that have been produced by this
74657         conversion equals or exceeds the precision.
74658         * doc/posix-functions/fprintf.texi: Update.
74659         * doc/posix-functions/printf.texi: Update.
74660         * doc/posix-functions/snprintf.texi: Update.
74661         * doc/posix-functions/sprintf.texi: Update.
74662         * doc/posix-functions/vfprintf.texi: Update.
74663         * doc/posix-functions/vprintf.texi: Update.
74664         * doc/posix-functions/vsnprintf.texi: Update.
74665         * doc/posix-functions/vsprintf.texi: Update.
74666         * doc/glibc-functions/obstack_printf.texi: Update.
74667         * doc/glibc-functions/obstack_vprintf.texi: Update.
74669 2009-02-26  Eric Blake  <ebb9@byu.net>
74671         stdlib: favor compiler check of random.h
74672         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
74673         to avoid an ObjC random.h installed by Swarm.
74675 2009-02-26  Bruno Haible  <bruno@clisp.org>
74677         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
74678         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
74679         Reported by Gary V. Vaughan <gary@gnu.org>.
74681 2009-02-26  Bruno Haible  <bruno@clisp.org>
74683         Fix *printf behaviour regarding the %ls directive.
74684         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
74685         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
74686         NEED_PRINTF_DIRECTIVE_LS.
74687         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
74688         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
74689         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
74690         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
74691         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
74692         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
74693         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
74694         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
74695         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
74696         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
74697         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
74698         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
74699         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
74700         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
74701         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
74702         * doc/posix-functions/fprintf.texi: Update.
74703         * doc/posix-functions/printf.texi: Update.
74704         * doc/posix-functions/snprintf.texi: Update.
74705         * doc/posix-functions/sprintf.texi: Update.
74706         * doc/posix-functions/vfprintf.texi: Update.
74707         * doc/posix-functions/vprintf.texi: Update.
74708         * doc/posix-functions/vsnprintf.texi: Update.
74709         * doc/posix-functions/vsprintf.texi: Update.
74710         * doc/glibc-functions/obstack_printf.texi: Update.
74711         * doc/glibc-functions/obstack_vprintf.texi: Update.
74712         Reported by Eric Blake.
74714 2009-02-25  Bruno Haible  <bruno@clisp.org>
74716         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
74717         with known value.
74718         Reported by Gary V. Vaughan <gary@gnu.org>.
74720 2009-02-25  Bruno Haible  <bruno@clisp.org>
74722         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
74723         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
74724         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
74725         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
74726         Reported by Gary V. Vaughan <gary@gnu.org>.
74728 2009-02-25  Bruno Haible  <bruno@clisp.org>
74730         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
74731         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
74732         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
74733         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
74734         Reported by Gary V. Vaughan <gary@gnu.org>.
74736 2009-02-25  Eric Blake  <ebb9@byu.net>
74738         tests: skip fseek/ftell tests if ungetc is broken
74739         * m4/ungetc.m4: New file.
74740         * modules/fseek-tests: Split test, so ungetc dependency is
74741         separate from rest of test.
74742         * modules/fseeko-tests: Likewise.
74743         * modules/ftell-tests: Likewise.
74744         * modules/ftello-tests: Likewise.
74745         * tests/test-fseek.c (main): Isolate ungetc dependency.
74746         * tests/test-fseeko.c (main): Likewise.
74747         * tests/test-ftell.c (main): Likewise.
74748         * tests/test-ftello.c (main): Likewise.
74749         * tests/test-fseek2.sh: New file.
74750         * tests/test-fseeko2.sh: Likewise.
74751         * tests/test-ftell2.sh: Likewise.
74752         * tests/test-ftello2.sh: Likewise.
74754 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
74756         test-getaddrinfo: fix usage of skip return code 77
74757         * tests/test-gettaddrinfo.c: Return skip code 77 only
74758         for first occurrence of skip (4x77 is not 77)
74760 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
74762         strtod: avoid C99 decl-after-statement
74763         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
74765 2009-02-24  Eric Blake  <ebb9@byu.net>
74767         strtod: detect HP-UX 11.31 bug
74768         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
74769         Reported by Gary V. Vaughan.
74771 2009-02-23  Bruno Haible  <bruno@clisp.org>
74773         Fix invalid read past end of memory block.
74774         * lib/vasnprintf.c (DCHAR_SET): Define.
74775         (local_wcslen): Define only when needed.
74776         (local_strnlen, local_wcsnlen): New functions.
74777         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
74778         directives that involve a conversion ourselves.
74779         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
74780         wcsnlen, mbrtowc, wcrtomb.
74781         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
74782         * tests/test-vasprintf-posix.c (test_function): Likewise.
74783         * tests/test-snprintf-posix.h (test_function): Likewise.
74784         * tests/test-sprintf-posix.h (test_function): Likewise.
74785         Reported by Ben Pfaff <blp@cs.stanford.edu>.
74787 2009-02-22  Bruno Haible  <bruno@clisp.org>
74789         Implement new clarified decomposition of Hangul syllables.
74790         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
74791         of type LTV, return only a pairwise decomposition.
74792         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
74793         Likewise.
74794         * tests/uninorm/test-decomposition.c (main): Updated expected result.
74795         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
74796         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
74798 2009-02-22  Bruno Haible  <bruno@clisp.org>
74800         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
74801         zero-length results and shrink excess allocated memory.
74802         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
74803         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
74804         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
74805         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
74806         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
74807         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
74808         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
74809         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
74810         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
74811         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
74812         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
74813         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
74815 2009-02-21  Bruno Haible  <bruno@clisp.org>
74817         * doc/gnulib.texi: Include safe-alloc.texi earlier.
74818         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
74819         spaces after a period. Put a space between a macro name and its
74820         argument list. Trivial rewordings.
74821         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
74822         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
74823         (main): Return 0 explicitly.
74825 2009-02-21  Bruno Haible  <bruno@clisp.org>
74827         Tests for module 'uninorm/filter'.
74828         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
74829         * modules/uninorm/filter-tests: New file.
74831         New module 'uninorm/filter'.
74832         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
74833         uninorm_filter_flush, uninorm_filter_free): New declarations.
74834         * lib/uninorm/uninorm-filter.c: New file.
74835         * modules/uninorm/filter: New file.
74837 2009-02-21  Bruno Haible  <bruno@clisp.org>
74839         Tests for module 'uninorm/nfkc'.
74840         * tests/uninorm/test-nfkc.c: New file.
74841         * tests/uninorm/test-u8-nfkc.c: New file.
74842         * tests/uninorm/test-u16-nfkc.c: New file.
74843         * tests/uninorm/test-u32-nfkc.c: New file.
74844         * tests/uninorm/test-u32-nfkc-big.sh: New file.
74845         * tests/uninorm/test-u32-nfkc-big.c: New file.
74846         * modules/uninorm/nfkc-tests: New file.
74848         New module 'uninorm/nfkc'.
74849         * lib/uninorm/nfkc.c: New file.
74850         * modules/uninorm/nfkc: New file.
74852         Tests for module 'uninorm/nfkd'.
74853         * tests/uninorm/test-nfkd.c: New file.
74854         * tests/uninorm/test-u8-nfkd.c: New file.
74855         * tests/uninorm/test-u16-nfkd.c: New file.
74856         * tests/uninorm/test-u32-nfkd.c: New file.
74857         * tests/uninorm/test-u32-nfkd-big.sh: New file.
74858         * tests/uninorm/test-u32-nfkd-big.c: New file.
74859         * modules/uninorm/nfkd-tests: New file.
74861         New module 'uninorm/nfkd'.
74862         * lib/uninorm/nfkd.c: New file.
74863         * modules/uninorm/nfkd: New file.
74865         Tests for module 'uninorm/nfc'.
74866         * tests/uninorm/test-nfc.c: New file.
74867         * tests/uninorm/test-u8-nfc.c: New file.
74868         * tests/uninorm/test-u16-nfc.c: New file.
74869         * tests/uninorm/test-u32-nfc.c: New file.
74870         * tests/uninorm/test-u32-nfc-big.sh: New file.
74871         * tests/uninorm/test-u32-nfc-big.c: New file.
74872         * modules/uninorm/nfc-tests: New file.
74874         New module 'uninorm/nfc'.
74875         * lib/uninorm/nfc.c: New file.
74876         * modules/uninorm/nfc: New file.
74878         Tests for module 'uninorm/nfd'.
74879         * tests/uninorm/test-nfd.c: New file.
74880         * tests/uninorm/test-u8-nfd.c: New file.
74881         * tests/uninorm/test-u16-nfd.c: New file.
74882         * tests/uninorm/test-u32-nfd.c: New file.
74883         * tests/uninorm/test-u32-nfd-big.sh: New file.
74884         * tests/uninorm/test-u32-nfd-big.c: New file.
74885         * tests/uninorm/test-u32-normalize-big.h: New file.
74886         * tests/uninorm/test-u32-normalize-big.c: New file.
74887         * tests/uninorm/NormalizationTest.txt: New file, created from
74888         Unicode 5.1.0 NormalizationTest.txt.
74889         * modules/uninorm/nfd-tests: New file.
74891         New module 'uninorm/nfd'.
74892         * lib/uninorm/nfd.c: New file.
74893         * modules/uninorm/nfd: New file.
74895         New module 'uninorm/u32-normalize'.
74896         * lib/uninorm/u32-normalize.c: New file.
74897         * modules/uninorm/u32-normalize: New file.
74899         New module 'uninorm/u16-normalize'.
74900         * lib/uninorm/u16-normalize.c: New file.
74901         * modules/uninorm/u16-normalize: New file.
74903         New module 'uninorm/u8-normalize'.
74904         * lib/uninorm/u8-normalize.c: New file.
74905         * lib/uninorm/normalize-internal.h: New file.
74906         * lib/uninorm/u-normalize-internal.h: New file.
74907         * modules/uninorm/u8-normalize: New file.
74909         New module 'uninorm/decompose-internal'.
74910         * lib/uninorm/decompose-internal.c: New file.
74911         * modules/uninorm/decompose-internal: New file.
74913         Tests for module 'uninorm/composition'.
74914         * tests/uninorm/test-composition.c: New file.
74915         * modules/uninorm/composition-tests: New file.
74917         New module 'uninorm/composition'.
74918         * lib/uninorm/composition.c: New file.
74919         * lib/uninorm/composition-table.gperf: New file, generated by
74920         gen-uni-tables.
74921         * modules/uninorm/composition: New file.
74923         Tests for module 'uninorm/compat-decomposition'.
74924         * tests/uninorm/test-compat-decomposition.c: New file.
74925         * modules/uninorm/compat-decomposition-tests: New file.
74927         New module 'uninorm/compat-decomposition'.
74928         * lib/uninorm/decompose-internal.h: New file.
74929         * lib/uninorm/compat-decomposition.c: New file.
74930         * modules/uninorm/compat-decomposition: New file.
74932         Tests for module 'uninorm/canonical-decomposition'.
74933         * tests/uninorm/test-canonical-decomposition.c: New file.
74934         * modules/uninorm/canonical-decomposition-tests: New file.
74936         New module 'uninorm/canonical-decomposition'.
74937         * lib/uninorm/canonical-decomposition.c: New file.
74938         * modules/uninorm/canonical-decomposition: New file.
74940         Tests for module 'uninorm/decomposition'.
74941         * tests/uninorm/test-decomposition.c: New file.
74942         * modules/uninorm/decomposition-tests: New file.
74944         New module 'uninorm/decomposition'.
74945         * lib/uninorm/decomposition.c: New file.
74946         * modules/uninorm/decomposition: New file.
74948         New module 'uninorm/decomposition-table'.
74949         * lib/uninorm/decomposition-table.h: New file.
74950         * lib/uninorm/decomposition-table.c: New file.
74951         * lib/uninorm/decomposition-table1.h: New file, generated by
74952         gen-uni-tables.
74953         * lib/uninorm/decomposition-table2.h: New file, generated by
74954         gen-uni-tables.
74955         * modules/uninorm/decomposition-table: New file.
74957         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
74958         (UC_DECOMP_*): New enumeration items.
74959         (get_decomposition): New function.
74960         (struct decomp_table): New type.
74961         (output_decomposition, output_decomposition_tables): New functions.
74962         (unicode_composition_exclusions): New variable.
74963         (fill_composition_exclusions, debug_output_composition_tables): New
74964         functions.
74965         (main): Accept one more argument. Invoke fill_composition_exclusions.
74966         Output decomposition and composition tables.
74968         New module 'uninorm/base'.
74969         * lib/uninorm.h: New file.
74970         * lib/unictype.h: Update comment.
74971         * modules/uninorm/base: New file.
74973 2009-02-21  David Lutterkort  <lutter@redhat.com>
74975         Tests for module 'safe-alloc'.
74976         * tests/test-safe-alloc.c: New file.
74977         * modules/safe-alloc-tests: New file.
74979         New module 'safe-alloc'.
74980         * lib/safe-alloc.h: New file.
74981         * lib/safe-alloc.c: New file.
74982         * m4/safe-alloc.m4: New file.
74983         * modules/safe-alloc: New file.
74984         * doc/safe-alloc.texi: New file.
74985         * doc/gnulib.texi: Include it.
74986         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
74987         safe-alloc.
74989 2009-02-18  Bruno Haible  <bruno@clisp.org>
74991         Fix link error on non-glibc systems.
74992         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
74993         variable.
74994         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
74996 2009-02-18  Jim Meyering  <meyering@redhat.com>
74998         fts: avoid used-uninitialized error due to recent change
74999         * lib/fts.c (fts_read): Guard uses of the new member,
75000         parent->fts_n_dirs_remaining, since it's not relevant for
75001         the parent of a directory specified on the command-line.
75003 2009-02-17  James Youngman  <jay@gnu.org>
75004             Bruno Haible  <bruno@clisp.org>
75006         * m4/include_next.m4: Reformulate comment.
75008 2009-02-16  Jim Meyering  <meyering@redhat.com>
75010         fts: add #if guards so that the fts_lgpl module still builds
75011         * lib/fts.c: Guard just-added hash-table-using parts with
75012         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
75013         Reported by Simon Josefsson.
75015 2009-02-15  Bruno Haible  <bruno@clisp.org>
75017         * modules/array-mergesort-tests: New file.
75018         * tests/test-array-mergesort.c: New file.
75020         New module 'array-mergesort'.
75021         * modules/array-mergesort: New file.
75022         * lib/array-mergesort.h: New file.
75024 2009-02-15  Bruno Haible  <bruno@clisp.org>
75026         Fix 2009-02-07 commit.
75027         * lib/gen-uni-tables.c (output_predicate, output_category,
75028         output_combclass, output_bidi_category, output_decimal_digit,
75029         output_digit, output_numeric, output_mirror, output_scripts,
75030         output_ident_category, output_simple_mapping): Fix format directives.
75031         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
75033 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
75035         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
75036         fixes are available from IBM.
75038 2009-02-13  Jim Meyering  <meyering@redhat.com>
75040         fts: arrange not to stat non-directories in more cases
75041         This makes GNU find (when it doesn't need to stat each file)
75042         *much* more efficient at traversing reiserfs file systems.
75043         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
75044         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
75045         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
75046         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
75047         (leaf_optimization_applies): New function.
75048         (LCO_hash, LCO_compare): New helper functions.
75049         (link_count_optimize_ok): New function.
75050         (fts_stat): Initialize new member (if dir).
75051         (fts_read): Decrement parent's fts_n_dirs_remaining count if
75052         we've just stat'ed a directory.  Skip the stat call when possible.
75053         ---
75054         Note this AFS-related exchange:
75055         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
75056         and note find's pioctl call in find/fstype.c.
75057         But that is necessary only if you want to enable the
75058         optimization for AFS, and for now, I don't.
75060         fts: move a function definition "up" (no semantic change)
75061         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
75062         "up" to precede upcoming use of a related function.
75064 2009-02-11  Jim Meyering  <meyering@redhat.com>
75066         fts: correct internal computation of nlinks (optimization-related)
75067         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
75068         whether the current entry is a directory, so don't test it.
75070 2009-02-10  Bruno Haible  <bruno@clisp.org>
75072         Tests for module 'uniwbrk/ulc-wordbreaks'.
75073         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
75074         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
75075         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
75077         Tests for module 'uniwbrk/u32-wordbreaks'.
75078         * modules/uniwbrk/u32-wordbreaks-tests: New file.
75079         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
75081         Tests for module 'uniwbrk/u16-wordbreaks'.
75082         * modules/uniwbrk/u16-wordbreaks-tests: New file.
75083         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
75085         Tests for module 'uniwbrk/u8-wordbreaks'.
75086         * modules/uniwbrk/u8-wordbreaks-tests: New file.
75087         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
75089 2009-02-10  Bruno Haible  <bruno@clisp.org>
75091         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
75092         property.
75093         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
75094         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
75095         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
75097 2009-02-10  Simon Josefsson  <simon@josefsson.org>
75099         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
75100         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
75102 2009-02-10  Bruno Haible  <bruno@clisp.org>
75104         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
75105         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
75106         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
75107         * lib/unilbrk/u8-possible-linebreaks.c: Update.
75108         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
75109         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
75111 2009-02-09  Simon Josefsson  <simon@josefsson.org>
75113         * lib/sockets.h (gl_fd_to_handle): New function.
75115         * tests/test-sockets.c: Call gl_fd_to_handle.
75117 2009-02-09  Bruno Haible  <bruno@clisp.org>
75119         * doc/havelib.texi: Document the conventions on bi-arch systems.
75121 2009-02-08  Bruno Haible  <bruno@clisp.org>
75123         Document the AC_LIB_LINKFLAGS macro.
75124         * doc/havelib.texi: New file, mostly written on 2005-05-24.
75125         * doc/gnulib.texi: Include it.
75127 2009-02-08  Bruno Haible  <bruno@clisp.org>
75129         Fix wrong order of sections, compared to TOC.
75130         * doc/gnulib.texi: Include relocatable-maint.texi after the
75131         "Regular expressions" node, not before.
75133 2009-02-08  Bruno Haible  <bruno@clisp.org>
75135         Tests for module 'unicase/totitle'.
75136         * modules/unicase/totitle-tests: New file.
75138         Tests for module 'unicase/tolower'.
75139         * modules/unicase/tolower-tests: New file.
75141         Tests for module 'unicase/toupper'.
75142         * modules/unicase/toupper-tests: New file.
75143         * tests/unicase/test-mapping-part1.h: New file.
75144         * tests/unicase/test-mapping-part2.h: New file.
75146         New module 'unicase/totitle'.
75147         * modules/unicase/totitle: New file.
75148         * lib/unicase/totitle.c: New file.
75150         New module 'unicase/tolower'.
75151         * modules/unicase/tolower: New file.
75152         * lib/unicase/tolower.c: New file.
75154         New module 'unicase/toupper'.
75155         * modules/unicase/toupper: New file.
75156         * lib/unicase/toupper.c: New file.
75157         * lib/unicase/simple-mapping.h: New file.
75159         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
75160         (mapping_table): New structure.
75161         (output_simple_mapping): New function.
75162         (main): Invoke output_simple_mapping_test and output_simple_mapping.
75163         * modules/gen-uni-tables (Description): Update.
75164         * lib/unicase/toupper.h: New file, automatically generated by
75165         gen-uni-tables.
75166         * lib/unicase/tolower.h: New file, automatically generated by
75167         gen-uni-tables.
75168         * lib/unicase/totitle.h: New file, automatically generated by
75169         gen-uni-tables.
75170         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
75171         gen-uni-tables.
75172         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
75173         gen-uni-tables.
75174         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
75175         gen-uni-tables.
75177         New module 'unicase/base'.
75178         * modules/unicase/base: New file.
75179         * lib/unicase.h: New file.
75181 2009-02-08  Bruno Haible  <bruno@clisp.org>
75183         New module 'uniwbrk/ulc-wordbreaks'.
75184         * modules/uniwbrk/ulc-wordbreaks: New file.
75185         * lib/uniwbrk/ulc-wordbreaks.c: New file.
75187         New module 'uniwbrk/u32-wordbreaks'.
75188         * modules/uniwbrk/u32-wordbreaks: New file.
75189         * lib/uniwbrk/u32-wordbreaks.c: New file.
75191         New module 'uniwbrk/u16-wordbreaks'.
75192         * modules/uniwbrk/u16-wordbreaks: New file.
75193         * lib/uniwbrk/u16-wordbreaks.c: New file.
75195         New module 'uniwbrk/u8-wordbreaks'.
75196         * modules/uniwbrk/u8-wordbreaks: New file.
75197         * lib/uniwbrk/u8-wordbreaks.c: New file.
75198         * lib/uniwbrk/u-wordbreaks.h: New file.
75200         New module 'uniwbrk/table'.
75201         * modules/uniwbrk/table: New file.
75202         * lib/uniwbrk/wbrktable.h: New file.
75203         * lib/uniwbrk/wbrktable.c: New file.
75205         New module 'uniwbrk/wordbreak-property'.
75206         * modules/uniwbrk/wordbreak-property: New file.
75207         * lib/uniwbrk/wordbreak-property.c: New file.
75209         * lib/gen-uni-tables.c (WBP_*): New enum items.
75210         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
75211         (unicode_org_wbp): New variable.
75212         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
75213         New functions.
75214         (wbp_table): New structure.
75215         (output_wbp, output_wbrk_tables): New functions.
75216         (main): Accept additional argument. Invoke fill_org_wbp,
75217         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
75218         output_wbrk_tables.
75219         * modules/gen-uni-tables (Description): Update.
75220         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
75221         gen-uni-tables.
75223         New module 'uniwbrk/base'.
75224         * modules/uniwbrk/base: New file.
75225         * lib/uniwbrk.h: New file.
75227 2009-02-08  Bruno Haible  <bruno@clisp.org>
75229         Update to Unicode 5.1.0.
75230         * lib/gen-uni-tables.c (is_property_alphabetic): Include
75231         U+2185..U+2188.
75232         (is_property_default_ignorable_code_point): Don't include characters
75233         of category Cc or Cs and not-a-characters.
75234         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
75235         U+0D79, U+109E, U+109F, U+A60C.
75236         * lib/unictype/bidi_of.h: Regenerated.
75237         * lib/unictype/blocks.h: Regenerated.
75238         * lib/unictype/categ_C.h: Regenerated.
75239         * lib/unictype/categ_Cf.h: Regenerated.
75240         * lib/unictype/categ_Cn.h: Regenerated.
75241         * lib/unictype/categ_L.h: Regenerated.
75242         * lib/unictype/categ_Ll.h: Regenerated.
75243         * lib/unictype/categ_Lm.h: Regenerated.
75244         * lib/unictype/categ_Lo.h: Regenerated.
75245         * lib/unictype/categ_Lu.h: Regenerated.
75246         * lib/unictype/categ_M.h: Regenerated.
75247         * lib/unictype/categ_Mc.h: Regenerated.
75248         * lib/unictype/categ_Me.h: Regenerated.
75249         * lib/unictype/categ_Mn.h: Regenerated.
75250         * lib/unictype/categ_N.h: Regenerated.
75251         * lib/unictype/categ_Nd.h: Regenerated.
75252         * lib/unictype/categ_Nl.h: Regenerated.
75253         * lib/unictype/categ_No.h: Regenerated.
75254         * lib/unictype/categ_P.h: Regenerated.
75255         * lib/unictype/categ_Pd.h: Regenerated.
75256         * lib/unictype/categ_Pe.h: Regenerated.
75257         * lib/unictype/categ_Pf.h: Regenerated.
75258         * lib/unictype/categ_Pi.h: Regenerated.
75259         * lib/unictype/categ_Po.h: Regenerated.
75260         * lib/unictype/categ_Ps.h: Regenerated.
75261         * lib/unictype/categ_S.h: Regenerated.
75262         * lib/unictype/categ_Sk.h: Regenerated.
75263         * lib/unictype/categ_Sm.h: Regenerated.
75264         * lib/unictype/categ_So.h: Regenerated.
75265         * lib/unictype/categ_of.h: Regenerated.
75266         * lib/unictype/combining.h: Regenerated.
75267         * lib/unictype/ctype_alnum.h: Regenerated.
75268         * lib/unictype/ctype_alpha.h: Regenerated.
75269         * lib/unictype/ctype_graph.h: Regenerated.
75270         * lib/unictype/ctype_lower.h: Regenerated.
75271         * lib/unictype/ctype_print.h: Regenerated.
75272         * lib/unictype/ctype_punct.h: Regenerated.
75273         * lib/unictype/ctype_upper.h: Regenerated.
75274         * lib/unictype/decdigit.h: Regenerated.
75275         * lib/unictype/digit.h: Regenerated.
75276         * lib/unictype/mirror.h: Regenerated.
75277         * lib/unictype/numeric.h: Regenerated.
75278         * lib/unictype/pr_alphabetic.h: Regenerated.
75279         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
75280         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
75281         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
75282         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
75283         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
75284         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
75285         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
75286         * lib/unictype/pr_combining.h: Regenerated.
75287         * lib/unictype/pr_dash.h: Regenerated.
75288         * lib/unictype/pr_decimal_digit.h: Regenerated.
75289         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
75290         * lib/unictype/pr_deprecated.h: Regenerated.
75291         * lib/unictype/pr_diacritic.h: Regenerated.
75292         * lib/unictype/pr_extender.h: Regenerated.
75293         * lib/unictype/pr_format_control.h: Regenerated.
75294         * lib/unictype/pr_grapheme_base.h: Regenerated.
75295         * lib/unictype/pr_grapheme_extend.h: Regenerated.
75296         * lib/unictype/pr_grapheme_link.h: Regenerated.
75297         * lib/unictype/pr_id_continue.h: Regenerated.
75298         * lib/unictype/pr_id_start.h: Regenerated.
75299         * lib/unictype/pr_ideographic.h: Regenerated.
75300         * lib/unictype/pr_ignorable_control.h: Regenerated.
75301         * lib/unictype/pr_lowercase.h: Regenerated.
75302         * lib/unictype/pr_math.h: Regenerated.
75303         * lib/unictype/pr_numeric.h: Regenerated.
75304         * lib/unictype/pr_other_alphabetic.h: Regenerated.
75305         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
75306         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
75307         * lib/unictype/pr_other_id_continue.h: Regenerated.
75308         * lib/unictype/pr_other_lowercase.h: Regenerated.
75309         * lib/unictype/pr_other_math.h: Regenerated.
75310         * lib/unictype/pr_punctuation.h: Regenerated.
75311         * lib/unictype/pr_sentence_terminal.h: Regenerated.
75312         * lib/unictype/pr_soft_dotted.h: Regenerated.
75313         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
75314         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
75315         * lib/unictype/pr_unified_ideograph.h: Regenerated.
75316         * lib/unictype/pr_uppercase.h: Regenerated.
75317         * lib/unictype/pr_xid_continue.h: Regenerated.
75318         * lib/unictype/pr_xid_start.h: Regenerated.
75319         * lib/unictype/pr_zero_width.h: Regenerated.
75320         * lib/unictype/scripts.h: Regenerated.
75321         * lib/unictype/scripts_byname.gperf: Regenerated.
75322         * lib/unictype/sy_java_ident.h: Regenerated.
75323         * lib/unilbrk/lbrkprop1.h: Regenerated.
75324         * lib/unilbrk/lbrkprop2.h: Regenerated.
75325         * tests/unictype/test-categ_C.c: Regenerated.
75326         * tests/unictype/test-categ_Cf.c: Regenerated.
75327         * tests/unictype/test-categ_Cn.c: Regenerated.
75328         * tests/unictype/test-categ_L.c: Regenerated.
75329         * tests/unictype/test-categ_Ll.c: Regenerated.
75330         * tests/unictype/test-categ_Lm.c: Regenerated.
75331         * tests/unictype/test-categ_Lo.c: Regenerated.
75332         * tests/unictype/test-categ_Lu.c: Regenerated.
75333         * tests/unictype/test-categ_M.c: Regenerated.
75334         * tests/unictype/test-categ_Mc.c: Regenerated.
75335         * tests/unictype/test-categ_Me.c: Regenerated.
75336         * tests/unictype/test-categ_Mn.c: Regenerated.
75337         * tests/unictype/test-categ_N.c: Regenerated.
75338         * tests/unictype/test-categ_Nd.c: Regenerated.
75339         * tests/unictype/test-categ_Nl.c: Regenerated.
75340         * tests/unictype/test-categ_No.c: Regenerated.
75341         * tests/unictype/test-categ_P.c: Regenerated.
75342         * tests/unictype/test-categ_Pd.c: Regenerated.
75343         * tests/unictype/test-categ_Pe.c: Regenerated.
75344         * tests/unictype/test-categ_Pf.c: Regenerated.
75345         * tests/unictype/test-categ_Pi.c: Regenerated.
75346         * tests/unictype/test-categ_Po.c: Regenerated.
75347         * tests/unictype/test-categ_Ps.c: Regenerated.
75348         * tests/unictype/test-categ_S.c: Regenerated.
75349         * tests/unictype/test-categ_Sk.c: Regenerated.
75350         * tests/unictype/test-categ_Sm.c: Regenerated.
75351         * tests/unictype/test-categ_So.c: Regenerated.
75352         * tests/unictype/test-ctype_alnum.c: Regenerated.
75353         * tests/unictype/test-ctype_alpha.c: Regenerated.
75354         * tests/unictype/test-ctype_graph.c: Regenerated.
75355         * tests/unictype/test-ctype_lower.c: Regenerated.
75356         * tests/unictype/test-ctype_print.c: Regenerated.
75357         * tests/unictype/test-ctype_punct.c: Regenerated.
75358         * tests/unictype/test-ctype_upper.c: Regenerated.
75359         * tests/unictype/test-decdigit.h: Regenerated.
75360         * tests/unictype/test-digit.h: Regenerated.
75361         * tests/unictype/test-numeric.h: Regenerated.
75362         * tests/unictype/test-pr_alphabetic.c: Regenerated.
75363         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
75364         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
75365         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
75366         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
75367         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
75368         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
75369         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
75370         * tests/unictype/test-pr_combining.c: Regenerated.
75371         * tests/unictype/test-pr_dash.c: Regenerated.
75372         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
75373         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
75374         * tests/unictype/test-pr_deprecated.c: Regenerated.
75375         * tests/unictype/test-pr_diacritic.c: Regenerated.
75376         * tests/unictype/test-pr_extender.c: Regenerated.
75377         * tests/unictype/test-pr_format_control.c: Regenerated.
75378         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
75379         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
75380         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
75381         * tests/unictype/test-pr_id_continue.c: Regenerated.
75382         * tests/unictype/test-pr_id_start.c: Regenerated.
75383         * tests/unictype/test-pr_ideographic.c: Regenerated.
75384         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
75385         * tests/unictype/test-pr_lowercase.c: Regenerated.
75386         * tests/unictype/test-pr_math.c: Regenerated.
75387         * tests/unictype/test-pr_numeric.c: Regenerated.
75388         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
75389         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
75390         Regenerated.
75391         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
75392         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
75393         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
75394         * tests/unictype/test-pr_other_math.c: Regenerated.
75395         * tests/unictype/test-pr_punctuation.c: Regenerated.
75396         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
75397         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
75398         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
75399         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
75400         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
75401         * tests/unictype/test-pr_uppercase.c: Regenerated.
75402         * tests/unictype/test-pr_xid_continue.c: Regenerated.
75403         * tests/unictype/test-pr_xid_start.c: Regenerated.
75404         * tests/unictype/test-pr_zero_width.c: Regenerated.
75406         Update to Unicode 5.1.0.
75407         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
75408         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
75409         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
75410         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
75411         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
75412         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
75413         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
75414         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
75415         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
75416         (nonspacing_table_ind): Update.
75417         * tests/uniwidth/test-uc_width2.sh: Update expected result.
75419         Update to Unicode 5.1.0.
75420         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
75421         code transform.
75422         * lib/uniname/uniname.c (unicode_character_name,
75423         unicode_name_character): Add the range 0x1Fxxx to the code transform.
75424         * lib/uniname/uninames.h: Regenerated.
75425         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
75427 2009-02-07  Bruno Haible  <bruno@clisp.org>
75429         Merge gen-ctype and gen-lbrk into a single program.
75430         * lib/gen-uni-tables.c: New file, incorporating
75431         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
75432         Add directory prefixes to the names of the generated files.
75433         * lib/unictype/gen-ctype.c: Remove file.
75434         * lib/unilbrk/gen-lbrk.c: Remove file.
75435         * modules/gen-uni-tables: New file.
75436         * modules/unictype/gen-ctype: Remove file.
75437         * modules/unilbrk/gen-lbrk: Remove file.
75439 2009-02-07  Bruno Haible  <bruno@clisp.org>
75441         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
75443         New module 'unistr/u32-strcoll'.
75444         * modules/unistr/u32-strcoll: New file.
75445         * lib/unistr/u32-strcoll.c: New file.
75447         New module 'unistr/u16-strcoll'.
75448         * modules/unistr/u16-strcoll: New file.
75449         * lib/unistr/u16-strcoll.c: New file.
75451         New module 'unistr/u8-strcoll'.
75452         * modules/unistr/u8-strcoll: New file.
75453         * lib/unistr/u8-strcoll.c: New file.
75454         * lib/unistr/u-strcoll.h: New file.
75456 2009-02-07  Bruno Haible  <bruno@clisp.org>
75458         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
75459         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
75460         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
75461         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
75462         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
75463         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
75465 2009-02-07  Bruno Haible  <bruno@clisp.org>
75467         Make 64-bit clean.
75468         * lib/unictype/gen-ctype.c (output_predicate, output_category,
75469         output_combclass, output_bidi_category, output_decimal_digit,
75470         output_digit, output_numeric, output_mirror, output_scripts,
75471         output_ident_category): Use proper width specifier in format strings.
75473 2009-02-07  Bruno Haible  <bruno@clisp.org>
75475         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
75476         failure behaviour.
75478 2009-02-07  Jim Meyering  <meyering@redhat.com>
75480         regex: avoid compilation failure with upcoming gcc-4.4
75481         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
75482         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
75483         "... error: integer overflow in preprocessor expression".
75485 2009-02-05  Ben Pfaff  <blp@gnu.org>
75487         Fix link errors on Windows when close module is used.
75488         * modules/close: Add $(LIB_CLOSE) to Link section.
75489         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
75490         $(LIB_CLOSE) on Windows.
75492 2009-02-05  Jim Meyering  <meyering@redhat.com>
75494         still avoid unused-parameter warnings, but do it cleanly
75495         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
75496         (get_fs_usage): Cast to void instead.
75497         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
75498         (dev_from_mount_options, read_file_system_list): Cast to void.
75499         Prompted by Bruno Haible.
75501 2009-02-04  Jim Meyering  <meyering@redhat.com>
75503         fsusage.c: correct copyright year
75504         * lib/fsusage.c: Reflect year in which the change is pushed into
75506         avoid misc. warnings
75507         * lib/fsusage.c (UNUSED_PARAM): Define.
75508         (get_fs_usage): Mark parameter "disk" as unused.
75509         * lib/getugroups.c (getgrent): Use "void" in prototype.
75510         * lib/mountlist.c: Mark unused parameters.
75511         (read_file_system_list): Declare a local with "const".
75512         * lib/nanosleep.c (getnow): Declare static.
75513         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
75515         dirfd: set errno upon failure
75516         * lib/dirfd.c: Include <errno.h>.
75517         Set errno to ENOTSUP when returning -1.
75518         * modules/dirfd (Depends-on): Add errno.
75519         Suggested by John Kodis <kodis@comcast.net>.
75521 2009-02-01  Bruno Haible  <bruno@clisp.org>
75523         Don't assume sizeof (long) >= sizeof (void *).
75524         * lib/memcmp.c: Include stdint.h.
75525         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
75526         srcp2 to 'const byte *'.
75527         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
75528         types to uintptr_t.
75529         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
75530         * modules/memcmp (Depends-on): Add stdint.
75531         Reported by Ozkan Sezer <sezeroz@gmail.com>.
75533 2009-01-30  Eric Blake  <ebb9@byu.net>
75535         fix more require-before-expand issues
75536         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
75537         expand, AC_PROG_AWK.
75538         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
75540 2009-01-28  Eric Blake  <ebb9@byu.net>
75542         version-etc: use consistent URL formatting
75543         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
75544         Improve formatting.  Use fputs for string without %.
75546 2009-01-28  Jim Meyering  <meyering@redhat.com>
75548         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
75549         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
75550         "underquoted definition of NAME" from autoconf-2.59.
75552 2009-01-28  Bruno Haible  <bruno@clisp.org>
75554         * doc/gnulib.texi: Add "Obsolete modules" to index.
75556 2009-01-28  Jim Meyering  <meyering@redhat.com>
75558         useless-if-before-free: recognize more variants
75559         * build-aux/useless-if-before-free: Also recognize e.g.,
75560         if (NULL != p) free (p);
75562 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
75564         test-getaddrinfo: skip (don't fail) this test when there's no network
75565         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
75566         on the presumption that it means you lack network access.
75568 2009-01-26  Jim Meyering  <meyering@redhat.com>
75570         fflush: avoid warnings on modern systems
75571         * lib/fflush.c (rpl_fflush): Move declarations of locals,
75572         pos and result, into scopes where they're used.
75574 2009-01-26  Eric Blake  <ebb9@byu.net>
75576         Silence warning reintroduced by recent extensions patch.
75577         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
75578         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
75579         autoconf.
75581         Backport improved autoconf semantics of AC_DEFUN_ONCE.
75582         * m4/00gnulib.m4: New file.
75583         * gnulib-tool (func_get_filelist): Always use it.
75584         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
75585         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
75587 2009-01-25  Bruno Haible  <bruno@clisp.org>
75589         Make test-quotearg work on MacOS X and AIX.
75590         * tests/test-quotearg.sh: New file.
75591         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
75592         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
75593         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
75594         include <libintl.h>.
75595         (fake_locale): Remove variable.
75596         (gettext, dgettext, dcgettext): Remove functions.
75597         (main): Instead of setting a fake locale, set a real locale. Call
75598         textdomain and bindtextdomain.
75599         * modules/quotearg-tests (Files): Add the new files.
75600         (Depends-on): Add gettext, setenv, unsetenv.
75601         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
75602         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
75603         Augment TESTS_ENVIRONMENT.
75605 2009-01-25  Bruno Haible  <bruno@clisp.org>
75607         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
75608         fr_FR.ISO8859-1 locale on MacOS X.
75609         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
75610         ja_JP.eucJP locale on MacOS X.
75611         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
75612         zh_CN.GB18030 locale on MacOS X.
75614 2009-01-25  Bruno Haible  <bruno@clisp.org>
75616         Avoid link errors on MacOS X 10.3.
75617         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
75618         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
75620 2009-01-25  Bruno Haible  <bruno@clisp.org>
75622         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
75623         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
75624         * modules/pipe (Files): Remove m4/posix_spawn.m4.
75625         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
75626         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
75627         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
75628         posix_spawnattr_init, posix_spawnattr_setsigmask,
75629         posix_spawnattr_setflags, posix_spawnattr_destroy.
75631         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
75632         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
75633         * modules/execute (Files): Remove m4/posix_spawn.m4.
75634         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
75635         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
75636         posix_spawnattr_init, posix_spawnattr_setsigmask,
75637         posix_spawnattr_setflags, posix_spawnattr_destroy.
75639 2009-01-25  Bruno Haible  <bruno@clisp.org>
75641         * lib/glthread/threadlib.c: Include <stdlib.h>.
75643 2009-01-25  Bruno Haible  <bruno@clisp.org>
75645         * lib/glthread/threadlib.c (dummy): New declaration.
75647 2009-01-25  Bruno Haible  <bruno@clisp.org>
75649         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
75650         multibyte characters also for the GB18030 encoding. Don't crash when
75651         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
75653 2009-01-25  Bruno Haible  <bruno@clisp.org>
75655         Avoid redefining 'struct random_data' on OSF/1 5.1.
75656         * lib/stdlib.in.h: Include <random.h> if it exists.
75657         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
75658         HAVE_RANDOM_H. Include <random.h> when testing whether
75659         'struct random_data' exists.
75660         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
75662 2009-01-25  Bruno Haible  <bruno@clisp.org>
75664         Don't install charset.alias on MacOS X >= 10.3.
75665         * lib/localcharset.c (DARWIN7): New macro.
75666         (get_charset_aliases): Hardcode the result for Darwin7.
75667         * modules/localcharset (install-exec-local): Don't install
75668         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
75670 2009-01-25  Bruno Haible  <bruno@clisp.org>
75672         Don't install charset.alias on mingw and Cygwin.
75673         * modules/localcharset (install-exec-local): Don't install
75674         charset.alias on mingw and Cygwin, if the file does not yet exist.
75675         The result for these platforms is hardcoded in localcharset.c.
75677 2009-01-25  Bruno Haible  <bruno@clisp.org>
75679         Make it possible again to use AC_GNU_SOURCE together with gnulib.
75680         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
75681         before requiring AC_USE_SYSTEM_EXTENSIONS.
75683 2009-01-25  Jim Meyering  <meyering@redhat.com>
75685         c-strtod: avoid warnings
75686         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
75687         "assignment discards qualifiers from pointer target type" warnings.
75689 2009-01-24  Bruno Haible  <bruno@clisp.org>
75691         Add support for non-UTF-8 locales on MacOS X.
75692         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
75693         canonical encodings. For Darwin 7 and newer, don't map traditional
75694         encodings to UTF-8.
75695         Reported by Vincent Lefevre <vincent@vinc17.org>
75696         at <http://savannah.gnu.org/bugs/?25235>.
75698 2009-01-24  Bruno Haible  <bruno@clisp.org>
75700         * doc/gnulib.texi (Obsolete modules): New section.
75701         Reported by Mike Frysinger <vapier@gentoo.org>.
75703 2009-01-24  Bruno Haible  <bruno@clisp.org>
75705         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
75706         (%.dvi): New rule.
75708 2009-01-24  Bruno Haible  <bruno@clisp.org>
75710         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
75711         Reported by Eric Blake.
75713 2009-01-24  Bruno Haible  <bruno@clisp.org>
75715         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
75716         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
75717         Reported by Gary V. Vaughan <gary@gnu.org>.
75719 2009-01-24  Bruno Haible  <bruno@clisp.org>
75721         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
75723 2009-01-23  Bruno Haible  <bruno@clisp.org>
75725         Make c-strtod, c-strtold usable in libraries.
75726         * lib/c-strtod.c: Include string.h instead of xalloc.h.
75727         (C_STRTOD): Call strdup instead of xstrdup.
75728         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
75729         * modules/c-strtold (Depends-on): Likewise.
75730         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
75731         * NEWS: Mention the change.
75732         Reported by Michael Gold <mgold@ncf.ca>.
75734 2009-01-23  Jim Meyering  <meyering@redhat.com>
75736         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
75737         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
75738         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
75740 2009-01-23  Simon Josefsson  <simon@josefsson.org>
75742         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
75743         GNU CoreUtils.
75744         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
75745         * modules/version-etc (Description): Update.
75747 2009-01-22  Bruno Haible  <bruno@clisp.org>
75749         Cache the C locale object.
75750         * lib/c-strtod.c (c_locale_cache): New variable.
75751         (c_locale): New function.
75752         (C_STRTOD): Use it, and don't call freelocale.
75753         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
75754         Suggested by Paolo Bonzini.
75756 2009-01-21  Bruno Haible  <bruno@clisp.org>
75758         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
75759         conditions other than overflow.
75761 2009-01-21  Bruno Haible  <bruno@clisp.org>
75763         * lib/c-strtod.c: Include errno.h.
75764         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
75765         value from STRTOD_L and STRTOD.
75767 2009-01-21  Bruno Haible  <bruno@clisp.org>
75768         and Jim Meyering  <meyering@redhat.com>
75770         nanosleep: skip configure test (fail it) for apple universal builds
75771         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
75772         universal builds, assume that nanosleep does not work.
75773         * modules/nanosleep (Depends-on): Add multiarch.
75775         mktime: skip configure test (fail it) for apple universal builds
75776         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
75777         universal builds, assume that mktime does not work.
75778         * modules/mktime (Depends-on): Add multiarch.
75780 2009-01-21  Eric Blake  <ebb9@byu.net>
75782         multiarch: avoid expand-before-require warning
75783         * modules/multiarch (configure.ac): Require, rather than expand,
75784         gl_MULTIARCH.
75785         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
75786         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
75787         enforce that all clients require it.  Partial reversion of
75788         2008-12-29 patch.
75790         error: avoid expand-before-require warning
75791         * modules/errno (configure.ac): Require, rather than expand,
75792         gl_HEADER_ERRNO_H.
75793         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
75794         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
75795         enforce that all clients require it.
75797         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
75798         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
75799         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
75800         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
75802 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
75804         Revert:
75805         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
75807         regex: do not depend on obsolete modules.
75808         * modules/regex: Remove memcmp and memmove.
75810 2009-01-20  Bruno Haible  <bruno@clisp.org>
75812         Make the 'link' module link on Windows NT 4.
75813         * lib/link.c (_WIN32_WINNT): Don't define.
75814         (CreateHardLinkFuncType): New type.
75815         (CreateHardLinkFunc, initialized): New variables.
75816         (initialize): New function.
75817         (link): Invoke CreateHardLink indirectly through the function pointer.
75819 2009-01-20  Bruno Haible  <bruno@clisp.org>
75821         Fix compilation failure on mingw.
75822         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
75824 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
75826         * doc/c-strtod.texi: Mention a couple of restrictions.
75828 2009-01-20  Jim Meyering  <meyering@redhat.com>
75830         gettimeofday: move more declarations out of functions
75831         * lib/gettimeofday.c: Move extern declarations of tzset and
75832         gmtime out of containing functions.  Prompted by Bruno Haible.
75834 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
75836         regex: do not depend on obsolete modules.
75837         * modules/regex: Remove memcmp and memmove.
75839 2009-01-19  Bruno Haible  <bruno@clisp.org>
75841         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
75842         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
75843         gl_BIGENDIAN, not AC_C_BIGENDIAN.
75844         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
75845         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
75847 2009-01-19  Bruno Haible  <bruno@clisp.org>
75849         * tests/test-link.c: Include <errno.h>.
75850         (main): Exit with code 77 when a hard link cannot be created due to
75851         the file system.
75852         * tests/test-link.sh: Skip test when a hard link cannot be created due
75853         to the file system.
75854         Suggested by Eric Blake.
75856 2009-01-19  Martin Lambers  <marlam@marlam.de>
75858         * modules/link-tests: New file.
75859         * tests/test-link.sh: New file.
75860         * tests/test-link.c: New file.
75862 2009-01-19  Eric Blake  <ebb9@byu.net>
75864         doc: mention another function added in cygwin 1.7.0
75865         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
75866         Another new function in cygwin 1.7.
75868 2009-01-19  Bruno Haible  <bruno@clisp.org>
75870         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
75871         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
75872         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
75873         gl_BIGENDIAN, not AC_C_BIGENDIAN.
75874         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
75875         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
75876         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
75877         * m4/md4.m4 (gl_MD4): Likewise.
75878         * m4/md5.m4 (gl_MD5): Likewise.
75879         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
75880         * m4/sha1.m4 (gl_SHA1): Likewise.
75881         * m4/sha256.m4 (gl_SHA256): Likewise.
75882         * m4/sha512.m4 (gl_SHA512): Likewise.
75884 2009-01-19  Bruno Haible  <bruno@clisp.org>
75886         * modules/uniname/uniname-tests (Depends-on): Add progname.
75887         * tests/uniname/test-uninames.c: Include progname.h.
75888         (main): Call set_program_name.
75890         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
75891         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
75892         (main): Call set_program_name.
75894         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
75895         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
75896         (main): Call set_program_name.
75898         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
75899         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
75900         (main): Call set_program_name.
75902         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
75903         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
75904         (main): Call set_program_name.
75906         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
75907         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
75908         (main): Call set_program_name.
75910         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
75911         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
75912         (main): Call set_program_name.
75914         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
75915         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
75916         (main): Call set_program_name.
75918         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
75919         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
75920         (main): Call set_program_name.
75922 2009-01-19  Eric Blake  <ebb9@byu.net>
75924         test-unistd: test previous patch
75925         * tests/test-unistd.c: Test *_FILENO macros.
75927         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
75928         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
75929         Guarantee a definition.
75930         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
75931         * modules/unistd-safer (Depends-on): Add dependency on unistd.
75932         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
75933         * lib/dup-safer.c (STDERR_FILENO): Likewise.
75934         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
75935         Likewise.
75936         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
75937         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
75938         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
75939         Likewise.
75940         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
75941         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
75942         (STDERR_FILENO): Likewise.
75943         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
75944         (STDERR_FILENO): Likewise.
75945         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
75946         (STDERR_FILENO): Likewise.
75947         Reported by Elbert Pol.
75949 2009-01-19  Eric Blake  <ebb9@byu.net>
75951         doc: mention more functions added in cygwin 1.7.0
75952         * doc/posix-functions/abort.texi (abort): Update wording related
75953         to cygwin.
75954         * doc/posix-functions/daylight.texi (daylight): Likewise.
75955         * doc/posix-functions/optarg.texi (optarg): Likewise.
75956         * doc/posix-functions/optarg.texi (opterr): Likewise.
75957         * doc/posix-functions/optarg.texi (optind): Likewise.
75958         * doc/posix-functions/optarg.texi (optopt): Likewise.
75959         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
75960         worked in 1.5.x, and was withdrawn in 1.7.
75961         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
75962         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
75963         cygwin versions.
75964         * doc/posix-functions/perror.texi (perror): Likewise.
75965         * doc/posix-functions/printf.texi (printf): Likewise.
75966         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
75967         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
75968         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
75969         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
75970         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
75971         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
75972         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
75973         Likewise.
75974         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
75975         Likewise.
75976         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
75977         this function.
75978         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
75979         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
75980         Likewise.
75981         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
75982         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
75983         * doc/posix-functions/confstr.texi (confstr): Likewise.
75984         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
75985         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
75986         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
75987         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
75988         * doc/posix-functions/fputws.texi (fputws): Likewise.
75989         * doc/posix-functions/fwide.texi (fwide): Likewise.
75990         * doc/posix-functions/getwc.texi (getwc): Likewise.
75991         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
75992         * doc/posix-functions/putwc.texi (putwc): Likewise.
75993         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
75994         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
75995         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
75996         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
75997         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
75998         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
75999         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
76000         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
76001         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
76002         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
76003         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
76005 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
76007         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
76008         * lib/ioctl.c: Include <sys/ioctl.h>.
76010 2009-01-19  Simon Josefsson  <simon@josefsson.org>
76012         * modules/getdate-tests (Depends-on): Add progname.
76013         * tests/test-getdate.c: Use progname module, to avoid link errors
76014         on non-glibc systems.
76016 2009-01-18  Simon Josefsson  <simon@josefsson.org>
76018         * modules/filenamecat-tests (Depends-on): Add progname.
76019         * modules/fstrcmp-tests (Depends-on): Likewise.
76021         * tests/test-filenamecat.c: Use progname module, to avoid link
76022         errors on non-glibc systems.
76023         * tests/test-fstrcmp.c: Likewise.
76025 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
76027         gettimeofday: avoid warning: nested extern declaration of 'localtime'
76028         * lib/gettimeofday.c: Move extern declaration out of function.
76030 2009-01-18  Bruno Haible  <bruno@clisp.org>
76032         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
76033         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
76034         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
76036 2009-01-18  Bruno Haible  <bruno@clisp.org>
76038         * lib/strftime.c (MEMPCPY): Remove unused macro.
76039         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
76041 2009-01-18  Martin Lambers  <marlam@marlam.de>
76043         New module 'link'.
76044         * lib/unistd.in.h (link): New declaration.
76045         * lib/link.c: New file.
76046         * m4/link.m4: New file.
76047         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
76048         HAVE_LINK.
76049         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
76050         * modules/link: New file.
76051         * doc/posix-functions/link.texi: Mention the new module.
76053 2009-01-18  Bruno Haible  <bruno@clisp.org>
76055         * tests/test-avltree_list.c (main): Call set_program_name.
76056         * tests/test-avltree_oset.c (main): Likewise.
76057         * tests/test-obstack-printf.c: Include progname.h.
76058         (main): Call set_program_name.
76059         * tests/test-quotearg.c: Include progname.h.
76060         (main): Call set_program_name.
76061         * tests/test-xmemdup0.c: Include progname.h.
76062         (main): Call set_program_name.
76064 2009-01-18  Bruno Haible  <bruno@clisp.org>
76066         New module 'alphasort'.
76067         * lib/dirent.in.h (alphasort): New declaration.
76068         * lib/alphasort.c: New file, from glibc with modifications.
76069         * m4/alphasort.m4: New file.
76070         * modules/alphasort: New file.
76071         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
76072         HAVE_ALPHASORT.
76073         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
76074         HAVE_ALPHASORT.
76075         * doc/posix-functions/alphasort.texi: Mention the new module and the
76076         portability problems.
76078 2009-01-18  Bruno Haible  <bruno@clisp.org>
76080         New module 'scandir'.
76081         * lib/dirent.in.h (scandir): New declaration.
76082         * lib/scandir.c: New file, from glibc with modifications.
76083         * m4/scandir.m4: New file.
76084         * modules/scandir: New file.
76085         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
76086         HAVE_SCANDIR.
76087         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
76088         HAVE_SCANDIR.
76089         * doc/posix-functions/scandir.texi: Mention the new module and the
76090         portability problems.
76092 2009-01-17  Bruno Haible  <bruno@clisp.org>
76094         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
76095         Update documentation.
76096         (func_remove_suffix): Escape all dots in the suffix. Update
76097         documentation.
76098         (func_filter_filelist): Update documentation.
76099         Reported by Ralf Wildenhues.
76101 2009-01-17  Bruno Haible  <bruno@clisp.org>
76103         * modules/dprintf-posix-tests: New file.
76104         * tests/test-dprintf-posix.sh: New file.
76105         * tests/test-dprintf-posix.c: New file.
76107         New modules 'dprintf', 'dprintf-posix'.
76108         * lib/stdio.in.h (dprintf): New declaration.
76109         * lib/dprintf.c: New file.
76110         * m4/dprintf.m4: New file.
76111         * m4/dprintf-posix.m4: New file.
76112         * modules/dprintf: New file.
76113         * modules/dprintf-posix: New file.
76114         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
76115         HAVE_DPRINTF, REPLACE_DPRINTF.
76116         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
76117         HAVE_DPRINTF, REPLACE_DPRINTF.
76118         * doc/posix-functions/dprintf.texi: Mention the new modules.
76120 2009-01-17  Bruno Haible  <bruno@clisp.org>
76122         * modules/vdprintf-posix-tests: New file.
76123         * tests/test-vdprintf-posix.sh: New file.
76124         * tests/test-vdprintf-posix.c: New file.
76126         New modules 'vdprintf', 'vdprintf-posix'.
76127         * lib/stdio.in.h (vdprintf): New declaration.
76128         * lib/vdprintf.c: New file.
76129         * m4/vdprintf.m4: New file.
76130         * m4/vdprintf-posix.m4: New file.
76131         * modules/vdprintf: New file.
76132         * modules/vdprintf-posix: New file.
76133         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
76134         HAVE_VDPRINTF, REPLACE_VDPRINTF.
76135         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
76136         HAVE_VDPRINTF, REPLACE_VDPRINTF.
76137         * doc/posix-functions/vdprintf.texi: Mention the new modules.
76139 2009-01-17  Bruno Haible  <bruno@clisp.org>
76141         Fix replacement of fopen on mingw.
76142         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
76143         mingw.
76145 2009-01-17  Bruno Haible  <bruno@clisp.org>
76147         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
76148         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
76150 2009-01-17  Bruno Haible  <bruno@clisp.org>
76152         Avoid test-fflush2.sh failure on mingw.
76153         * tests/test-fflush2.c: Include binary-io.h.
76154         (main): Put standard input into binary mode.
76155         * modules/fflush-tests (Depends-on): Add binary-io.
76157 2009-01-17  Bruno Haible  <bruno@clisp.org>
76159         * lib/wchar.in.h: In another particular situation, include only the
76160         system's <wchar.h> file.
76161         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
76162         Reported by Albert Chin-A-Young <china@thewrittenword.com>
76163         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
76165 2009-01-17  Bruno Haible  <bruno@clisp.org>
76167         Support for stripping executables in --enable-relocatable.
76168         * build-aux/install-reloc: Expect one more argument, or an environment
76169         variable RELOC_STRIP_PROG. If set, strip the destination program and
76170         its wrapper.
76171         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
76172         RELOC_STRIP_PROG.
76173         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
76174         to set RELOCATABLE_STRIP.
76175         * NEWS: Mention the new Makefile requirement.
76177 2009-01-17  Bruno Haible  <bruno@clisp.org>
76179         * build-aux/install-reloc: Remove debugging information left over by
76180         C compiler on MacOS X.
76182 2009-01-17  Bruno Haible  <bruno@clisp.org>
76184         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
76185         * lib/progreloc.c (find_executable): Fix type of pointer passed to
76186         _NSGetExecutablePath.
76188 2009-01-16  Jim Meyering  <meyering@redhat.com>
76190         strerror: avoid warnings about discarding "const"
76191         * lib/strerror.c (rpl_strerror): Instead of returning a const
76192         string from each and every "case", use a variable, and add a single
76193         cast after the switch.
76195 2009-01-16  Albert Chin-A-Young  <china@thewrittenword.com>
76197         * lib/arpa_inet.in.h: Add extern "C" block for C++.
76199 2009-01-16  Bruno Haible  <bruno@clisp.org>
76201         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
76202         array initializer syntax that also works in C++ mode.
76203         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
76205 2009-01-16  Jim Meyering  <meyering@redhat.com>
76207         poll: suppress a warning
76208         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
76209         to ignore "...unsigned expression < 0 is always false" warnings.
76211 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
76213         poll: remove declarations of unused variables
76214         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
76215         sockbuf and optlen.
76217 2009-01-15  Bruno Haible  <bruno@clisp.org>
76219         Make fflush-after-ungetc POSIX compliant on BSD systems.
76220         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
76221         (clear_ungetc_buffer): Implement also for other systems.
76222         (rpl_fflush): On glibc systems, invoke
76223         clear_ungetc_buffer_preserving_position. Otherwise, invoke
76224         clear_ungetc_buffer after fetching the stream's position, not before.
76226 2009-01-15  Bruno Haible  <bruno@clisp.org>
76228         Make fflush-after-ungetc POSIX compliant on glibc systems.
76229         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
76230         after ungetc.
76231         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
76232         (rpl_fflush): On glibc systems, simply call the system's fflush
76233         function after clearing the ungetc buffer.
76234         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
76235         Instead, lseek only to the end of file, then use the system's fseeko
76236         for the rest. On glibc systems, reset the EOF indicator bit.
76238 2009-01-15  Jim Meyering  <meyering@redhat.com>
76240         openmp.m4: revert quote-adding change, for portability to older autoconf
76241         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
76242         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
76243         Simon Josefsson noticed the problem when using autoconf-2.61.
76245 2009-01-15  Bruno Haible  <bruno@clisp.org>
76247         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
76248         * tests/test-fflush2.c (ASSERT): Always fail.
76249         (main): Add two tests for fflush() after ungetc(), taking into account
76250         the Austin Group's clarification.
76251         Suggested by Eric Blake.
76253 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
76255         mktime.m4: remove K&R-style function prototypes
76256         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
76257         for the Sun C++ compiler.
76259 2009-01-14  Bruno Haible  <bruno@clisp.org>
76261         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
76262         while including <wchar.h>.
76263         * lib/wchar.in.h: In two particular situations on HP-UX, include only
76264         the system's <wchar.h> file.
76265         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
76267 2009-01-14  Bruno Haible  <bruno@clisp.org>
76269         * m4/csharp.m4: Don't mention gettext on the serial number line.
76270         * m4/csharpexec.m4: Likewise.
76271         * m4/eaccess.m4: Likewise.
76272         * m4/javaexec.m4: Likewise.
76273         * m4/sig_atomic_t.m4: Likewise.
76274         * m4/tmpdir.m4: Likewise.
76275         * m4/intldir.m4: Bump gettext version.
76276         * m4/lib-ld.m4: Likewise.
76278 2009-01-14  Bruno Haible  <bruno@clisp.org>
76280         * lib/progname.c (set_program_name): Add more comments.
76281         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
76283 2009-01-14  Simon Josefsson  <simon@josefsson.org>
76285         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
76286         were sys/stat.h does not define it.
76288 2009-01-14  Jim Meyering  <meyering@redhat.com>
76290         many *.m4 files: improve m4 quoting
76291         99% of this change was performed by running the following commands:
76292         git ls-files | grep '\.m4$' | xargs perl -pi \
76293           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
76294           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
76295           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
76296           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
76297         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
76298         The remainder were to add Copyright dates, increment serial numbers,
76299         undo some changes in comments, exclude m4/intl.m4, and add quotes
76300         around the "1" in ",1" where the unusual spacing prohibited the
76301         above regexps from doing the job.  For more details, see
76302         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
76303         * m4/acl.m4: Modified.
76304         * m4/afs.m4: Likewise.
76305         * m4/alloca.m4: Likewise.
76306         * m4/argp.m4: Likewise.
76307         * m4/argz.m4: Likewise.
76308         * m4/atexit.m4: Likewise.
76309         * m4/bison-i18n.m4: Likewise.
76310         * m4/bison.m4: Likewise.
76311         * m4/byteswap.m4: Likewise.
76312         * m4/c-stack.m4: Likewise.
76313         * m4/c-strtod.m4: Likewise.
76314         * m4/calloc.m4: Likewise.
76315         * m4/canonicalize-lgpl.m4: Likewise.
76316         * m4/chown.m4: Likewise.
76317         * m4/clock_time.m4: Likewise.
76318         * m4/codeset.m4: Likewise.
76319         * m4/copy-file.m4: Likewise.
76320         * m4/csharp.m4: Likewise.
76321         * m4/csharpcomp.m4: Likewise.
76322         * m4/csharpexec.m4: Likewise.
76323         * m4/d-ino.m4: Likewise.
76324         * m4/d-type.m4: Likewise.
76325         * m4/dirfd.m4: Likewise.
76326         * m4/double-slash-root.m4: Likewise.
76327         * m4/eaccess.m4: Likewise.
76328         * m4/eealloc.m4: Likewise.
76329         * m4/environ.m4: Likewise.
76330         * m4/errno_h.m4: Likewise.
76331         * m4/euidaccess.m4: Likewise.
76332         * m4/execute.m4: Likewise.
76333         * m4/fatal-signal.m4: Likewise.
76334         * m4/fchdir.m4: Likewise.
76335         * m4/fcntl_h.m4: Likewise.
76336         * m4/fileblocks.m4: Likewise.
76337         * m4/filenamecat.m4: Likewise.
76338         * m4/findprog.m4: Likewise.
76339         * m4/flexmember.m4: Likewise.
76340         * m4/fnmatch.m4: Likewise.
76341         * m4/fopen.m4: Likewise.
76342         * m4/fpending.m4: Likewise.
76343         * m4/fprintf-posix.m4: Likewise.
76344         * m4/free.m4: Likewise.
76345         * m4/frexp.m4: Likewise.
76346         * m4/frexpl.m4: Likewise.
76347         * m4/fsusage.m4: Likewise.
76348         * m4/ftruncate.m4: Likewise.
76349         * m4/gc-camellia.m4: Likewise.
76350         * m4/gc-random.m4: Likewise.
76351         * m4/gc.m4: Likewise.
76352         * m4/getaddrinfo.m4: Likewise.
76353         * m4/getcwd-abort-bug.m4: Likewise.
76354         * m4/getcwd-path-max.m4: Likewise.
76355         * m4/getdate.m4: Likewise.
76356         * m4/getdomainname.m4: Likewise.
76357         * m4/getgroups.m4: Likewise.
76358         * m4/gethostname.m4: Likewise.
76359         * m4/gethrxtime.m4: Likewise.
76360         * m4/getline.m4: Likewise.
76361         * m4/getloadavg.m4: Likewise.
76362         * m4/getndelim2.m4: Likewise.
76363         * m4/getpass.m4: Likewise.
76364         * m4/gettext.m4: Likewise.
76365         * m4/gettime.m4: Likewise.
76366         * m4/gettimeofday.m4: Likewise.
76367         * m4/gnulib-common.m4: Likewise.
76368         * m4/group-member.m4: Likewise.
76369         * m4/host-os.m4: Likewise.
76370         * m4/iconv.m4: Likewise.
76371         * m4/iconv_open.m4: Likewise.
76372         * m4/inet_ntop.m4: Likewise.
76373         * m4/inet_pton.m4: Likewise.
76374         * m4/inline.m4: Likewise.
76375         * m4/intldir.m4: Likewise.
76376         * m4/intlmacosx.m4: Likewise.
76377         * m4/intmax.m4: Likewise.
76378         * m4/intmax_t.m4: Likewise.
76379         * m4/inttypes.m4: Likewise.
76380         * m4/inttypes_h.m4: Likewise.
76381         * m4/inttypes-pri.m4: Likewise.
76382         * m4/isapipe.m4: Likewise.
76383         * m4/isnand.m4: Likewise.
76384         * m4/isnanf.m4: Likewise.
76385         * m4/isnanl.m4: Likewise.
76386         * m4/javacomp.m4: Likewise.
76387         * m4/javaexec.m4: Likewise.
76388         * m4/jm-winsz1.m4: Likewise.
76389         * m4/jm-winsz2.m4: Likewise.
76390         * m4/lchown.m4: Likewise.
76391         * m4/lcmessage.m4: Likewise.
76392         * m4/ldexpl.m4: Likewise.
76393         * m4/lib-ld.m4: Likewise.
76394         * m4/lib-link.m4: Likewise.
76395         * m4/libsigsegv.m4: Likewise.
76396         * m4/link-follow.m4: Likewise.
76397         * m4/localcharset.m4: Likewise.
76398         * m4/locale-fr.m4: Likewise.
76399         * m4/locale-ja.m4: Likewise.
76400         * m4/locale-tr.m4: Likewise.
76401         * m4/locale-zh.m4: Likewise.
76402         * m4/lock.m4: Likewise.
76403         * m4/longlong.m4: Likewise.
76404         * m4/ls-mntd-fs.m4: Likewise.
76405         * m4/lstat.m4: Likewise.
76406         * m4/malloc.m4: Likewise.
76407         * m4/mathl.m4: Likewise.
76408         * m4/mbrtowc.m4: Likewise.
76409         * m4/mbstate_t.m4: Likewise.
76410         * m4/mbswidth.m4: Likewise.
76411         * m4/memchr.m4: Likewise.
76412         * m4/memcmp.m4: Likewise.
76413         * m4/memcpy.m4: Likewise.
76414         * m4/memmem.m4: Likewise.
76415         * m4/memmove.m4: Likewise.
76416         * m4/mempcpy.m4: Likewise.
76417         * m4/memrchr.m4: Likewise.
76418         * m4/memset.m4: Likewise.
76419         * m4/minmax.m4: Likewise.
76420         * m4/mkdir-slash.m4: Likewise.
76421         * m4/mkdtemp.m4: Likewise.
76422         * m4/mktime.m4: Likewise.
76423         * m4/mmap-anon.m4: Likewise.
76424         * m4/mountlist.m4: Likewise.
76425         * m4/nanosleep.m4: Likewise.
76426         * m4/nls.m4: Likewise.
76427         * m4/nocrash.m4: Likewise.
76428         * m4/open.m4: Likewise.
76429         * m4/openat.m4: Likewise.
76430         * m4/openmp.m4: Likewise.
76431         * m4/pathmax.m4: Likewise.
76432         * m4/perl.m4: Likewise.
76433         * m4/physmem.m4: Likewise.
76434         * m4/pipe.m4: Likewise.
76435         * m4/po.m4: Likewise.
76436         * m4/poll.m4: Likewise.
76437         * m4/posixtm.m4: Likewise.
76438         * m4/posixver.m4: Likewise.
76439         * m4/printf-frexp.m4: Likewise.
76440         * m4/printf-frexpl.m4: Likewise.
76441         * m4/printf-posix.m4: Likewise.
76442         * m4/printf-posix-rpl.m4: Likewise.
76443         * m4/printf.m4: Likewise.
76444         * m4/progtest.m4: Likewise.
76445         * m4/putenv.m4: Likewise.
76446         * m4/readline.m4: Likewise.
76447         * m4/readlink.m4: Likewise.
76448         * m4/readutmp.m4: Likewise.
76449         * m4/realloc.m4: Likewise.
76450         * m4/regex.m4: Likewise.
76451         * m4/relocatable.m4: Likewise.
76452         * m4/relocatable-lib.m4: Likewise.
76453         * m4/rename-dest-slash.m4: Likewise.
76454         * m4/rename.m4: Likewise.
76455         * m4/rmdir-errno.m4: Likewise.
76456         * m4/rmdir.m4: Likewise.
76457         * m4/roundf.m4: Likewise.
76458         * m4/roundl.m4: Likewise.
76459         * m4/rpmatch.m4: Likewise.
76460         * m4/save-cwd.m4: Likewise.
76461         * m4/selinux-selinux-h.m4: Likewise.
76462         * m4/setenv.m4: Likewise.
76463         * m4/settime.m4: Likewise.
76464         * m4/sig2str.m4: Likewise.
76465         * m4/sig_atomic_t.m4: Likewise.
76466         * m4/signalblocking.m4: Likewise.
76467         * m4/signbit.m4: Likewise.
76468         * m4/sigpipe.m4: Likewise.
76469         * m4/sockets.m4: Likewise.
76470         * m4/sockpfaf.m4: Likewise.
76471         * m4/st_dm_mode.m4: Likewise.
76472         * m4/stat-time.m4: Likewise.
76473         * m4/stdbool.m4: Likewise.
76474         * m4/stdint.m4: Likewise.
76475         * m4/stdint_h.m4: Likewise.
76476         * m4/stpcpy.m4: Likewise.
76477         * m4/stpncpy.m4: Likewise.
76478         * m4/strcase.m4: Likewise.
76479         * m4/strchrnul.m4: Likewise.
76480         * m4/strcspn.m4: Likewise.
76481         * m4/strdup.m4: Likewise.
76482         * m4/strftime.m4: Likewise.
76483         * m4/strndup.m4: Likewise.
76484         * m4/strnlen.m4: Likewise.
76485         * m4/strpbrk.m4: Likewise.
76486         * m4/strptime.m4: Likewise.
76487         * m4/strsep.m4: Likewise.
76488         * m4/strtod.m4: Likewise.
76489         * m4/strtoimax.m4: Likewise.
76490         * m4/strtok_r.m4: Likewise.
76491         * m4/strtol.m4: Likewise.
76492         * m4/strtoll.m4: Likewise.
76493         * m4/strtoul.m4: Likewise.
76494         * m4/strtoull.m4: Likewise.
76495         * m4/strtoumax.m4: Likewise.
76496         * m4/strverscmp.m4: Likewise.
76497         * m4/threadlib.m4: Likewise.
76498         * m4/timegm.m4: Likewise.
76499         * m4/tm_gmtoff.m4: Likewise.
76500         * m4/tmpdir.m4: Likewise.
76501         * m4/tmpfile.m4: Likewise.
76502         * m4/tzset.m4: Likewise.
76503         * m4/uintmax_t.m4: Likewise.
76504         * m4/unlinkdir.m4: Likewise.
76505         * m4/unlocked-io.m4: Likewise.
76506         * m4/uptime.m4: Likewise.
76507         * m4/userspec.m4: Likewise.
76508         * m4/utimbuf.m4: Likewise.
76509         * m4/utime.m4: Likewise.
76510         * m4/utimes-null.m4: Likewise.
76511         * m4/utimes.m4: Likewise.
76512         * m4/vararrays.m4: Likewise.
76513         * m4/vasnprintf.m4: Likewise.
76514         * m4/vfprintf-posix.m4: Likewise.
76515         * m4/vprintf-posix.m4: Likewise.
76516         * m4/wait-process.m4: Likewise.
76517         * m4/wchar_t.m4: Likewise.
76518         * m4/wint_t.m4: Likewise.
76519         * m4/write-any-file.m4: Likewise.
76520         * m4/yield.m4: Likewise.
76522 2009-01-13  Bruno Haible  <bruno@clisp.org>
76524         Avoid test-copy-file.sh failures when ACL support insufficient.
76525         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
76526         TESTS_ENVIRONMENT.
76527         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
76528         Reported by Jim Meyering.
76530 2009-01-13  Bruno Haible  <bruno@clisp.org>
76532         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
76533         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
76534         * modules/unistdio/u8-printf-parse (Files): Likewise.
76535         * modules/unistdio/u32-printf-parse (Files): Likewise.
76536         * modules/unistdio/ulc-printf-parse (Files): Likewise.
76538 2009-01-13  Simon Josefsson  <simon@josefsson.org>
76540         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
76541         and m4/inttypes_h.m4 too.
76543 2009-01-12  Eric Blake  <ebb9@byu.net>
76545         tests: IRIX 6.2 cc can't compile -0.0 into .data
76546         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
76547         rather than at compile-time.
76548         * tests/test-floorl.c (minus_zero): Likewise.
76549         * tests/test-frexpl.c (minus_zero): Likewise.
76550         * tests/test-isnan.c (minus_zerol): Likewise.
76551         * tests/test-isnanl.h (minus_zero): Likewise.
76552         * tests/test-ldexpl.c (minus_zero): Likewise.
76553         * tests/test-roundl.c (minus_zero): Likewise.
76554         * tests/test-signbit.c (minus_zerol): Likewise.
76555         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
76556         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
76557         * tests/test-truncl.c (minus_zero): Likewise.
76558         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
76559         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
76560         Reported by Tom G. Christensen and Nelson H. F. Beebe.
76562 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
76564         regex: fix glibc bug 9697
76565         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
76566         handling.
76568 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
76570         regex: fix glibc bug 697
76571         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
76572         being NULL also if there are no backreferences.
76574 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
76576         regex: merge glibc changes
76577         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
76578         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
76579         re_string_skip_chars, re_string_reconstruct): Likewise.
76580         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
76582 2009-01-07  Jim Meyering  <meyering@redhat.com>
76584         poll: filter through cppi
76585         * lib/poll.c: Indent cpp directives to reflect nesting.
76587 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
76589         poll: don't return uninitialized
76590         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
76592 2009-01-06  Jeremy Olexa  <darkside@gentoo.org>  (tiny change)
76594         avoid compile failure on AIX 6.1
76595         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
76596         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
76598 2009-01-04  Jim Meyering  <meyering@redhat.com>
76600         remove duplicate inclusion of <stdio.h>
76601         * tests/test-fprintf-posix.c: Likewise.
76602         * tests/test-printf-posix.c: Likewise.
76603         * tests/test-snprintf-posix.c: Likewise.
76604         * tests/test-sprintf-posix.c: Likewise.
76605         * tests/test-vasprintf-posix.c: Likewise.
76606         * tests/test-vfprintf-posix.c: Likewise.
76607         * tests/test-vprintf-posix.c: Likewise.
76608         * tests/test-vsnprintf-posix.c: Likewise.
76609         * tests/test-vsprintf-posix.c: Likewise.
76611 2009-01-03  Jim Meyering  <meyering@redhat.com>
76613         gnulib-tool: fix sed-based filtering
76614         * gnulib-tool (func_filter_filelist): Remove extra backslash
76615         in sed_fff_filter definition.
76617 2009-01-02  Jim Meyering  <meyering@redhat.com>
76619         strftime: avoid compilation failure on Solaris 2.6
76620         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
76621         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
76622         Don't #define mbrlen or mbsinit, since now they're guaranteed to
76623         be available.  Reported by Tom G. Christensen.  Details in
76624         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
76626 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76627             Bruno Haible  <bruno@clisp.org>
76629         Speed up gnulib-tool by doing more string processing through shell
76630         built-ins.
76631         * gnulib-tool (fast_func_append): New variable.
76632         (func_remove_prefix, func_remove_suffix): New functions.
76633         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
76634         (func_filter_filelist): New function.
76635         (func_get_dependencies): Use func_remove_suffix instead of sed.
76636         (func_get_automake_snippet): Use func_filter_filelist instead of a
76637         subshell and sed invocation.
76639 2009-01-01  Bruno Haible  <bruno@clisp.org>
76641         Fix a security bug.
76642         * gnulib-tool (func_import, import, update): Don't allow the characters
76643         '"', '$', '`', '\' in macro arguments that become part of commands that
76644         are evaluated.
76646 2009-01-01  Bruno Haible  <bruno@clisp.org>
76648         * gnulib-tool (func_reset_sigpipe): Add more comments.
76650 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76652         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
76653         func_emit_tests_Makefile_am, func_import): Abort loops early if we
76654         already know the answer.
76656 2009-01-01  Jim Meyering  <meyering@redhat.com>
76658         * lib/version-etc.c (version_etc_va): Update copyright year.
76660 2008-12-30  Bruno Haible  <bruno@clisp.org>
76662         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
76663         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
76664         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
76666 2008-12-29  Eric Blake  <ebb9@byu.net>
76668         multiarch: avoid autoconf AC_REQUIRE bug
76669         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
76670         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
76671         2.63 and older.
76672         Reported by Bruno Haible, and analyzed in
76673         http://lists.gnu.org/r/bug-autoconf/2008-12/msg00039.html
76675 2008-12-29  Bruno Haible  <bruno@clisp.org>
76677         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
76678         files in subdirectories correctly.
76679         Reported by Ralf Wildenhues.
76681 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76683         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
76684         rather than 'join FILE -', for Solaris join.
76686 2008-12-29  Bruno Haible  <bruno@clisp.org>
76688         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
76689         quoting.
76690         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
76691         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
76692         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
76693         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
76694         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
76695         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
76696         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
76697         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
76698         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
76699         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
76700         * m4/nls.m4 (AM_NLS): Likewise.
76701         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
76702         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
76703         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
76704         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
76705         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
76706         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
76707         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
76708         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
76709         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
76710         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
76711         * m4/xsize.m4 (gl_XSIZE): Likewise.
76712         Suggested by Jim Meyering.
76714 2008-11-17  Bruce Korb  <bkorb@gnu.org>
76716         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
76717         * lib/parse-duration.c: use a switch instead of cascading if's.
76719 2008-12-29  Eric Blake  <ebb9@byu.net>
76721         wchar.h: supply WEOF on Irix 5.3
76722         * lib/wchar.in.h (wint_t): Also supply WEOF.
76723         * lib/wctype.in.h (wint_t): Likewise.
76724         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
76725         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
76726         Reported by Tom G. Christensen.
76728 2008-12-26  Bruno Haible  <bruno@clisp.org>
76730         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
76731         i486, i586, i686.
76733 2008-12-26  Bruno Haible  <bruno@clisp.org>
76735         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
76737 2008-12-26  Bruno Haible  <bruno@clisp.org>
76739         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
76740         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
76741         not __STDC_CONSTANT_MACROS.
76742         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
76744 2008-12-25  Bruno Haible  <bruno@clisp.org>
76746         Add support for universal builds to vasnprintf.
76747         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
76748         universal builds, guess no.
76749         * modules/vasnprintf-posix (Depends-on): Add multiarch.
76750         * modules/vasprintf-posix (Depends-on): Likewise.
76751         * modules/fprintf-posix (Depends-on): Likewise.
76752         * modules/vfprintf-posix (Depends-on): Likewise.
76753         * modules/snprintf-posix (Depends-on): Likewise.
76754         * modules/vsnprintf-posix (Depends-on): Likewise.
76755         * modules/sprintf-posix (Depends-on): Likewise.
76756         * modules/vsprintf-posix (Depends-on): Likewise.
76757         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
76758         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
76759         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
76760         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
76761         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
76762         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
76763         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
76765         Add support for universal builds to <inttypes.h>.
76766         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
76767         _SCNu64_PREFIX): In Apple
76768         universal builds, define directly, using _LP64.
76769         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
76770         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
76771         * modules/inttypes (Depends-on): Add multiarch.
76772         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
76774         Add support for universal builds to <stdint.h>.
76775         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
76776         universal builds, define directly, using _LP64.
76777         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
76778         Apple universal builds, don't test for the size and suffix of ptrdiff_t
76779         and size_t.
76780         * modules/stdint (Depends-on): Add multiarch.
76781         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
76783         New module 'multiarch'.
76784         * modules/multiarch: New file.
76785         * m4/multiarch.m4: New file.
76787 2008-12-25  Bruno Haible  <bruno@clisp.org>
76789         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
76791 2008-12-25  Bruno Haible  <bruno@clisp.org>
76793         * modules/btowc (License): Relicense under LGPLv2+.
76794         * modules/mbsinit (License): Likewise.
76795         * modules/mbrtowc (License): Likewise.
76796         * modules/wcrtomb (License): Likewise.
76797         * modules/streq (License): Likewise.
76798         Reported by David Lutterkort <lutter@redhat.com>.
76800 2008-12-23  Bruno Haible  <bruno@clisp.org>
76802         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
76804 2008-12-23  Bruno Haible  <bruno@clisp.org>
76806         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
76807         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
76808         GETADDRINFO_LIB, not in LIBS.
76809         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
76810         * modules/canon-host (Link): Likewise.
76811         * NEWS: Mention the change.
76812         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
76813         GETADDRINFO_LIB.
76815 2008-12-22  Bruno Haible  <bruno@clisp.org>
76817         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
76818         * doc/posix-functions/iswalpha_l.texi: Likewise.
76819         * doc/posix-functions/iswblank_l.texi: Likewise.
76820         * doc/posix-functions/iswcntrl_l.texi: Likewise.
76821         * doc/posix-functions/iswctype_l.texi: Likewise.
76822         * doc/posix-functions/iswdigit_l.texi: Likewise.
76823         * doc/posix-functions/iswgraph_l.texi: Likewise.
76824         * doc/posix-functions/iswlower_l.texi: Likewise.
76825         * doc/posix-functions/iswprint_l.texi: Likewise.
76826         * doc/posix-functions/iswpunct_l.texi: Likewise.
76827         * doc/posix-functions/iswspace_l.texi: Likewise.
76828         * doc/posix-functions/iswupper_l.texi: Likewise.
76829         * doc/posix-functions/iswxdigit_l.texi: Likewise.
76830         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
76831         * doc/posix-functions/open_wmemstream.texi: Likewise.
76832         * doc/posix-functions/swscanf.texi: Likewise.
76833         * doc/posix-functions/towctrans_l.texi: Likewise.
76834         * doc/posix-functions/towlower.texi: Likewise.
76835         * doc/posix-functions/towlower_l.texi: Likewise.
76836         * doc/posix-functions/towupper.texi: Likewise.
76837         * doc/posix-functions/towupper_l.texi: Likewise.
76838         * doc/posix-functions/vfwprintf.texi: Likewise.
76839         * doc/posix-functions/vfwscanf.texi: Likewise.
76840         * doc/posix-functions/vswscanf.texi: Likewise.
76841         * doc/posix-functions/vwprintf.texi: Likewise.
76842         * doc/posix-functions/vwscanf.texi: Likewise.
76843         * doc/posix-functions/wcpcpy.texi: Likewise.
76844         * doc/posix-functions/wcpncpy.texi: Likewise.
76845         * doc/posix-functions/wcscasecmp.texi: Likewise.
76846         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
76847         * doc/posix-functions/wcscoll_l.texi: Likewise.
76848         * doc/posix-functions/wcsdup.texi: Likewise.
76849         * doc/posix-functions/wcsncasecmp.texi: Likewise.
76850         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
76851         * doc/posix-functions/wcsnlen.texi: Likewise.
76852         * doc/posix-functions/wcsnrtombs.texi: Likewise.
76853         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
76854         * doc/posix-functions/wctrans_l.texi: Likewise.
76855         * doc/posix-functions/wctype_l.texi: Likewise.
76856         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
76857         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
76858         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
76859         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
76860         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
76861         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
76862         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
76863         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
76864         * doc/glibc-functions/wcschrnul.texi: Likewise.
76865         * doc/glibc-functions/wcsftime_l.texi: Likewise.
76866         * doc/glibc-functions/wcstod_l.texi: Likewise.
76867         * doc/glibc-functions/wcstof_l.texi: Likewise.
76868         * doc/glibc-functions/wcstol_l.texi: Likewise.
76869         * doc/glibc-functions/wcstold_l.texi: Likewise.
76870         * doc/glibc-functions/wcstoll_l.texi: Likewise.
76871         * doc/glibc-functions/wcstoq.texi: Likewise.
76872         * doc/glibc-functions/wcstoul_l.texi: Likewise.
76873         * doc/glibc-functions/wcstoull_l.texi: Likewise.
76874         * doc/glibc-functions/wcstouq.texi: Likewise.
76875         * doc/glibc-functions/wmempcpy.texi: Likewise.
76877 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
76878             Eric Blake  <ebb9@byu.net>
76879             Paolo Bonzini  <bonzini@gnu.org>
76880             Bruno Haible  <bruno@clisp.org>
76882         Make c-stack work on Haiku.
76883         * lib/c-stack.c (SA_ONSTACK): Define fallback.
76884         (c_stack_action): Use SA_ONSTACK flag.
76886 2008-12-22  Bruno Haible  <bruno@clisp.org>
76888         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
76890 2008-12-22  Bruno Haible  <bruno@clisp.org>
76892         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
76893         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
76894         being overridden.
76895         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
76896         New macros.
76897         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
76898         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
76899         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
76900         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
76902 2008-12-22  Bruno Haible  <bruno@clisp.org>
76904         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
76905         from test code.
76907 2008-12-22  Eric Blake  <ebb9@byu.net>
76909         Avoid gcc warnings on cygwin.
76910         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
76911         Avoid unused variable.
76912         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
76913         Likewise.
76915 2008-12-22  Bruno Haible  <bruno@clisp.org>
76917         Remove HAVE_MBRTOWC conditionals.
76918         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
76919         (mbscasecmp): Assume mbrtowc function.
76920         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
76921         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
76922         * lib/mbschr.c: Include mbuiter.h unconditionally.
76923         (mbschr): Assume mbrtowc function.
76924         * lib/mbscspn.c: Include mbuiter.h unconditionally.
76925         (mbscspn): Assume mbrtowc function.
76926         * lib/mbslen.c: Include mbuiter.h unconditionally.
76927         (mbslen): Assume mbrtowc function.
76928         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
76929         (mbsncasecmp): Assume mbrtowc function.
76930         * lib/mbsnlen.c: Include mbiter.h unconditionally.
76931         (mbsnlen): Assume mbrtowc function.
76932         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
76933         (mbspbrk): Assume mbrtowc function.
76934         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
76935         (mbspcasecmp): Assume mbrtowc function.
76936         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
76937         (mbsrchr): Assume mbrtowc function.
76938         * lib/mbssep.c: Include mbuiter.h unconditionally.
76939         (mbssep): Assume mbrtowc function.
76940         * lib/mbsspn.c: Include mbuiter.h unconditionally.
76941         (mbsspn): Assume mbrtowc function.
76942         * lib/mbsstr.c: Include mbuiter.h unconditionally.
76943         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
76944         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
76945         (mbstok_r): Assume mbrtowc function.
76946         * lib/propername.c: Include mbuiter.h unconditionally.
76947         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
76948         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
76949         (trim2): Assume mbrtowc function.
76950         * lib/mbswidth.c (mbsinit): Remove fallback definition.
76951         (mbsnwidth): Assume mbrtowc function.
76952         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
76953         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
76954         fallback definitions.
76955         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
76957 2008-12-22  Bruno Haible  <bruno@clisp.org>
76959         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
76961 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
76963         * modules/regex: Request emulations for the mb*/wc* functions we need.
76964         * m4/regex.m4: Don't look for those functions here.
76965         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
76967 2008-12-22  Bruno Haible  <bruno@clisp.org>
76969         * modules/fnmatch (Depends-on): Remove duplicated dependency.
76971 2008-12-21  Bruno Haible  <bruno@clisp.org>
76973         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
76974         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
76975         (Include): Remove conditionalization.
76976         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
76977         (Include): Remove conditionalization.
76978         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
76979         (Include): Remove conditionalization.
76980         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
76981         * m4/mbfile.m4 (gl_MBFILE): Likewise.
76982         * NEWS: Mention the change.
76983         Reported by Alan Hourihane <alanh@fairlite.co.uk>
76984         via Sergey Poznyakoff <gray@gnu.org.ua>.
76986 2008-12-21  Bruno Haible  <bruno@clisp.org>
76988         * MODULES.html.sh (Extended multibyte and wide character utilities
76989         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
76990         wcrtomb, wcsrtombs.
76991         (Support for systems lacking POSIX:2008): Add accept, bind, close,
76992         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
76993         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
76994         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
76996 2008-12-21  Bruno Haible  <bruno@clisp.org>
76998         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
77000 2008-12-21  Bruno Haible  <bruno@clisp.org>
77002         * modules/wcsnrtombs-tests: New file.
77003         * tests/test-wcsnrtombs1.sh: New file.
77004         * tests/test-wcsnrtombs2.sh: New file.
77005         * tests/test-wcsnrtombs3.sh: New file.
77006         * tests/test-wcsnrtombs4.sh: New file.
77007         * tests/test-wcsnrtombs.c: New file.
77009         New module 'wcsnrtombs'.
77010         * lib/wchar.in.h (wcsnrtombs): New declaration.
77011         * lib/wcsnrtombs.c: New file.
77012         * lib/wcsrtombs-state.c: New file.
77013         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
77014         (internal_state): Remove variable.
77015         * m4/wcsnrtombs.m4: New file.
77016         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
77017         compilation units.
77018         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
77019         HAVE_WCSNRTOMBS.
77020         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
77021         HAVE_WCSNRTOMBS.
77022         * modules/wcsnrtombs: New file.
77023         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
77024         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
77026 2008-12-21  Bruno Haible  <bruno@clisp.org>
77028         * modules/wcsrtombs-tests: New file.
77029         * tests/test-wcsrtombs1.sh: New file.
77030         * tests/test-wcsrtombs2.sh: New file.
77031         * tests/test-wcsrtombs3.sh: New file.
77032         * tests/test-wcsrtombs4.sh: New file.
77033         * tests/test-wcsrtombs.c: New file.
77035         New module 'wcsrtombs'.
77036         * lib/wchar.in.h (wcsrtombs): New declaration.
77037         * lib/wcsrtombs.c: New file.
77038         * m4/wcsrtombs.m4: New file.
77039         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
77040         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
77041         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
77042         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
77043         * modules/wcsrtombs: New file.
77044         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
77045         bugs.
77047 2008-12-21  Bruno Haible  <bruno@clisp.org>
77049         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
77050         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
77051         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
77052         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
77053         if not correct.
77054         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
77055         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
77056         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
77057         m4/locale-zh.m4, m4/codeset.m4.
77058         * doc/posix-functions/wcrtomb.texi: Document the bug.
77060 2008-12-21  Bruno Haible  <bruno@clisp.org>
77062         Work around a btowc() bug on IRIX 6.5.
77063         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
77064         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
77065         REPLACE_WTOBC if not.
77066         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
77067         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
77068         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
77070 2008-12-21  Bruno Haible  <bruno@clisp.org>
77072         * modules/wcrtomb-tests: New file.
77073         * tests/test-wcrtomb.sh: New file.
77074         * tests/test-wcrtomb.c: New file.
77076         New module 'wcrtomb'.
77077         * lib/wchar.in.h (wcrtomb): New declaration.
77078         * lib/wcrtomb.c: New file.
77079         * m4/wcrtomb.m4: New file.
77080         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
77081         HAVE_WCRTOMB.
77082         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
77083         HAVE_WCRTOMB.
77084         * modules/wcrtomb: New file.
77085         * doc/posix-functions/wcrtomb.texi: Mention the new module.
77087 2008-12-21  Bruno Haible  <bruno@clisp.org>
77089         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
77090         * modules/mbsrtowcs (Files): Likewise.
77091         * modules/wctob (Files): Likewise.
77092         * modules/c-strcase-tests (Files): Likewise.
77093         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
77094         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
77095         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
77096         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
77097         * modules/vasnprintf-posix-tests (Files): Likewise.
77099 2008-12-21  William Pursell  <bill.pursell@gmail.com>
77101         gitlog-to-changelog: pass all command-line arguments to git-log
77102         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
77103         it is sometimes convenient to filter the commits in various ways.
77104         gitlog-to-changelog only allows --since to specify a start date,
77105         but git-log itself supports many other filtering mechanisms.
77106         At the moment, I want to filter by branch name.  Rather than
77107         adding a --branch option to gitlog-to-changelog, it seems more
77108         flexible to simply pass all options directly to git-log and let
77109         git do the work.  Notice that this effectively makes --since a
77110         redundant option for gitlog-to-changelog, but removing it would
77111         require current usage to change since calls would then require
77112         an additional '--'.
77114 2008-12-21  Bruno Haible  <bruno@clisp.org>
77116         * modules/mbsnrtowcs-tests: New file.
77117         * tests/test-mbsnrtowcs1.sh: New file.
77118         * tests/test-mbsnrtowcs2.sh: New file.
77119         * tests/test-mbsnrtowcs3.sh: New file.
77120         * tests/test-mbsnrtowcs4.sh: New file.
77121         * tests/test-mbsnrtowcs.c: New file.
77123         New module 'mbsnrtowcs'.
77124         * lib/wchar.in.h (mbsnrtowcs): New declaration.
77125         * lib/mbsnrtowcs.c: New file.
77126         * lib/mbsrtowcs-state.c: New file.
77127         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
77128         (internal_state): Remove variable.
77129         * m4/mbsnrtowcs.m4: New file.
77130         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
77131         compilation units.
77132         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
77133         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
77134         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
77135         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
77136         * modules/mbsnrtowcs: New file.
77137         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
77138         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
77139         portability problem.
77141 2008-12-21  Bruno Haible  <bruno@clisp.org>
77143         Work around mbsrtowcs bug.
77144         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
77145         (gl_FUNC_MBSRTOWCS): Invoke it.
77146         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
77147         m4/locale-zh.m4.
77148         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
77150 2008-12-21  Bruno Haible  <bruno@clisp.org>
77152         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
77154 2008-12-21  Bruno Haible  <bruno@clisp.org>
77156         Update doc for AIX.
77157         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
77158         16-bit wchar_t type.
77159         * doc/posix-functions/btowc.texi: Likewise.
77160         * doc/posix-functions/fgetwc.texi: Likewise.
77161         * doc/posix-functions/fgetws.texi: Likewise.
77162         * doc/posix-functions/fputwc.texi: Likewise.
77163         * doc/posix-functions/fputws.texi: Likewise.
77164         * doc/posix-functions/fwide.texi: Likewise.
77165         * doc/posix-functions/fwprintf.texi: Likewise.
77166         * doc/posix-functions/fwscanf.texi: Likewise.
77167         * doc/posix-functions/getwchar.texi: Likewise.
77168         * doc/posix-functions/getwc.texi: Likewise.
77169         * doc/posix-functions/iswalnum.texi: Likewise.
77170         * doc/posix-functions/iswalpha.texi: Likewise.
77171         * doc/posix-functions/iswblank.texi: Likewise.
77172         * doc/posix-functions/iswcntrl.texi: Likewise.
77173         * doc/posix-functions/iswctype.texi: Likewise.
77174         * doc/posix-functions/iswdigit.texi: Likewise.
77175         * doc/posix-functions/iswgraph.texi: Likewise.
77176         * doc/posix-functions/iswlower.texi: Likewise.
77177         * doc/posix-functions/iswprint.texi: Likewise.
77178         * doc/posix-functions/iswpunct.texi: Likewise.
77179         * doc/posix-functions/iswspace.texi: Likewise.
77180         * doc/posix-functions/iswupper.texi: Likewise.
77181         * doc/posix-functions/iswxdigit.texi: Likewise.
77182         * doc/posix-functions/mbrtowc.texi: Likewise.
77183         * doc/posix-functions/mbsrtowcs.texi: Likewise.
77184         * doc/posix-functions/mbstowcs.texi: Likewise.
77185         * doc/posix-functions/mbtowc.texi: Likewise.
77186         * doc/posix-functions/putwchar.texi: Likewise.
77187         * doc/posix-functions/putwc.texi: Likewise.
77188         * doc/posix-functions/swprintf.texi: Likewise.
77189         * doc/posix-functions/tolower.texi: Likewise.
77190         * doc/posix-functions/toupper.texi: Likewise.
77191         * doc/posix-functions/towctrans.texi: Likewise.
77192         * doc/posix-functions/ungetwc.texi: Likewise.
77193         * doc/posix-functions/vswprintf.texi: Likewise.
77194         * doc/posix-functions/wcrtomb.texi: Likewise.
77195         * doc/posix-functions/wcscat.texi: Likewise.
77196         * doc/posix-functions/wcschr.texi: Likewise.
77197         * doc/posix-functions/wcscmp.texi: Likewise.
77198         * doc/posix-functions/wcscoll.texi: Likewise.
77199         * doc/posix-functions/wcscpy.texi: Likewise.
77200         * doc/posix-functions/wcscspn.texi: Likewise.
77201         * doc/posix-functions/wcsftime.texi: Likewise.
77202         * doc/posix-functions/wcslen.texi: Likewise.
77203         * doc/posix-functions/wcsncat.texi: Likewise.
77204         * doc/posix-functions/wcsncmp.texi: Likewise.
77205         * doc/posix-functions/wcsncpy.texi: Likewise.
77206         * doc/posix-functions/wcspbrk.texi: Likewise.
77207         * doc/posix-functions/wcsrchr.texi: Likewise.
77208         * doc/posix-functions/wcsrtombs.texi: Likewise.
77209         * doc/posix-functions/wcsspn.texi: Likewise.
77210         * doc/posix-functions/wcsstr.texi: Likewise.
77211         * doc/posix-functions/wcstod.texi: Likewise.
77212         * doc/posix-functions/wcstof.texi: Likewise.
77213         * doc/posix-functions/wcstoimax.texi: Likewise.
77214         * doc/posix-functions/wcstok.texi: Likewise.
77215         * doc/posix-functions/wcstold.texi: Likewise.
77216         * doc/posix-functions/wcstoll.texi: Likewise.
77217         * doc/posix-functions/wcstol.texi: Likewise.
77218         * doc/posix-functions/wcstombs.texi: Likewise.
77219         * doc/posix-functions/wcstoull.texi: Likewise.
77220         * doc/posix-functions/wcstoul.texi: Likewise.
77221         * doc/posix-functions/wcstoumax.texi: Likewise.
77222         * doc/posix-functions/wcswidth.texi: Likewise.
77223         * doc/posix-functions/wcsxfrm.texi: Likewise.
77224         * doc/posix-functions/wctob.texi: Likewise.
77225         * doc/posix-functions/wctomb.texi: Likewise.
77226         * doc/posix-functions/wctrans.texi: Likewise.
77227         * doc/posix-functions/wctype.texi: Likewise.
77228         * doc/posix-functions/wcwidth.texi: Likewise.
77229         * doc/posix-functions/wmemchr.texi: Likewise.
77230         * doc/posix-functions/wmemcmp.texi: Likewise.
77231         * doc/posix-functions/wmemcpy.texi: Likewise.
77232         * doc/posix-functions/wmemmove.texi: Likewise.
77233         * doc/posix-functions/wmemset.texi: Likewise.
77234         * doc/posix-functions/wprintf.texi: Likewise.
77235         * doc/posix-functions/wscanf.texi: Likewise.
77237 2008-12-21  Bruno Haible  <bruno@clisp.org>
77239         Update doc for HP-UX 11.11.
77240         * doc/posix-functions/btowc.texi: Clarify that the function is missing
77241         in HP-UX version 11.00, not in all versions of HP-UX 11.
77242         * doc/posix-functions/fwide.texi: Likewise.
77243         * doc/posix-functions/fwprintf.texi: Likewise.
77244         * doc/posix-functions/fwscanf.texi: Likewise.
77245         * doc/posix-functions/inet_ntop.texi: Likewise.
77246         * doc/posix-functions/inet_pton.texi: Likewise.
77247         * doc/posix-functions/mbrlen.texi: Likewise.
77248         * doc/posix-functions/mbrtowc.texi: Likewise.
77249         * doc/posix-functions/mbsinit.texi: Likewise.
77250         * doc/posix-functions/mbsrtowcs.texi: Likewise.
77251         * doc/posix-functions/swprintf.texi: Likewise.
77252         * doc/posix-functions/swscanf.texi: Likewise.
77253         * doc/posix-functions/towctrans.texi: Likewise.
77254         * doc/posix-functions/vfwprintf.texi: Likewise.
77255         * doc/posix-functions/vswprintf.texi: Likewise.
77256         * doc/posix-functions/vwprintf.texi: Likewise.
77257         * doc/posix-functions/wcrtomb.texi: Likewise.
77258         * doc/posix-functions/wcsrtombs.texi: Likewise.
77259         * doc/posix-functions/wcsstr.texi: Likewise.
77260         * doc/posix-functions/wctob.texi: Likewise.
77261         * doc/posix-functions/wctrans.texi: Likewise.
77262         * doc/posix-functions/wmemchr.texi: Likewise.
77263         * doc/posix-functions/wmemcmp.texi: Likewise.
77264         * doc/posix-functions/wmemcpy.texi: Likewise.
77265         * doc/posix-functions/wmemmove.texi: Likewise.
77266         * doc/posix-functions/wmemset.texi: Likewise.
77267         * doc/posix-functions/wprintf.texi: Likewise.
77268         * doc/posix-functions/wscanf.texi: Likewise.
77270 2008-12-21  Bruno Haible  <bruno@clisp.org>
77272         Work around a portability problem.
77273         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
77274         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
77276 2008-12-20  Bruno Haible  <bruno@clisp.org>
77278         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
77279         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
77280         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
77281         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
77282         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
77284         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
77285         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
77286         set.
77287         (GNULIB_defined_mbstate_t): New macro.
77288         (mbsinit): Redefine if REPLACE_MBSINIT is set.
77289         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
77290         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
77291         reuses the system's mbrtowc function but works around the bugs.
77292         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
77293         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
77294         macros.
77295         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
77296         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
77297         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
77298         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
77299         REPLACE_MBSINIT if mbsinit needs to be overridden.
77300         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
77301         REPLACE_MBSINIT, REPLACE_MBRTOWC.
77302         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
77303         REPLACE_MBSINIT, REPLACE_MBRTOWC.
77304         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
77305         m4/locale-zh.m4.
77306         (Depends): Add mbsinit.
77307         * modules/mbsinit (Depends): Add mbrtowc.
77308         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
77310 2008-12-20  Bruno Haible  <bruno@clisp.org>
77312         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
77313         so that there are no conversion errors on AIX.
77314         * tests/test-mbsrtowcs.c (main): LIkewise.
77316 2008-12-20  Bruno Haible  <bruno@clisp.org>
77318         Work around wctob bug on Solaris <= 9.
77319         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
77320         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
77321         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
77322         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
77323         * modules/wctob (Files): Add m4/locale-fr.m4.
77324         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
77326 2008-12-20  Bruno Haible  <bruno@clisp.org>
77328         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
77329         /dev/null.
77330         * tests/test-select-in.sh: Likewise.
77331         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
77333 2008-12-20  Bruno Haible  <bruno@clisp.org>
77335         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
77336         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
77337         Cygwin 1.5.x.
77339 2008-12-20  Bruno Haible  <bruno@clisp.org>
77341         Ensure mbstate_t is defined on HP-UX 11.11.
77342         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
77343         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
77344         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
77345         AC_USE_SYSTEM_EXTENSIONS.
77346         * modules/fnmatch (Depends-on): Add extensions.
77347         * modules/mbrlen (Depends-on): Likewise.
77348         * modules/mbrtowc (Depends-on): Likewise.
77349         * modules/mbsinit (Depends-on): Likewise.
77350         * modules/mbsrtowcs (Depends-on): Likewise.
77351         * modules/mbswidth (Depends-on): Likewise.
77352         * modules/quotearg (Depends-on): Likewise.
77353         * modules/strftime (Depends-on): Likewise.
77355 2008-12-20  Bruno Haible  <bruno@clisp.org>
77357         Ensure wctob is declared on IRIX 6.5.
77358         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
77359         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
77360         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
77361         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
77362         of HAVE_WCTOB.
77363         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
77364         HAVE_WCTOB.
77365         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
77367 2008-12-19  Bruno Haible  <bruno@clisp.org>
77369         * modules/mbsrtowcs-tests: New file.
77370         * tests/test-mbsrtowcs1.sh: New file.
77371         * tests/test-mbsrtowcs2.sh: New file.
77372         * tests/test-mbsrtowcs3.sh: New file.
77373         * tests/test-mbsrtowcs4.sh: New file.
77374         * tests/test-mbsrtowcs.c: New file.
77376         New module 'mbsrtowcs'.
77377         * lib/wchar.in.h (mbsrtowcs): New declaration.
77378         * lib/mbsrtowcs.c: New file.
77379         * m4/mbsrtowcs.m4: New file.
77380         * modules/mbsrtowcs: New file.
77381         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
77382         HAVE_MBSRTOWCS.
77383         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
77384         HAVE_MBSRTOWCS.
77385         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
77387 2008-12-19  Bruno Haible  <bruno@clisp.org>
77389         New module 'mbrlen'.
77390         * lib/wchar.in.h (mbrlen): New declaration.
77391         * lib/mbrlen.c: New file.
77392         * m4/mbrlen.m4: New file.
77393         * modules/mbrlen: New file.
77394         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
77395         HAVE_MBRLEN.
77396         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
77397         HAVE_MBRLEN.
77398         * doc/posix-functions/mbrlen.texi: Document the new module.
77400 2008-12-19  Bruno Haible  <bruno@clisp.org>
77402         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
77403         * modules/mbrtowc (Depends-on): Add verify.
77404         Suggested by Paul Eggert.
77406 2008-12-18  Bruno Haible  <bruno@clisp.org>
77408         * modules/mbsinit-tests: New file.
77409         * tests/test-mbsinit.sh: New file.
77410         * tests/test-mbsinit.c: New file.
77412 2008-12-18  Bruno Haible  <bruno@clisp.org>
77414         * modules/mbrtowc-tests: New file.
77415         * tests/test-mbrtowc1.sh: New file.
77416         * tests/test-mbrtowc2.sh: New file.
77417         * tests/test-mbrtowc3.sh: New file.
77418         * tests/test-mbrtowc4.sh: New file.
77419         * tests/test-mbrtowc.c: New file.
77421         New module 'mbrtowc'.
77422         * lib/wchar.in.h (mbstate_t): Override when the system does not have
77423         mbsinit and mbrtowc.
77424         (mbrtowc): New declaration.
77425         * lib/mbrtowc.c: New file.
77426         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
77427         * modules/mbrtowc: New file.
77428         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
77429         HAVE_MBRTOWC.
77430         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
77431         HAVE_MBRTOWC.
77432         * doc/posix-functions/mbrtowc.texi: Document the new module.
77434 2008-12-18  Bruno Haible  <bruno@clisp.org>
77436         New module 'wctob'.
77437         * lib/wchar.in.h (wctob): New declaration.
77438         * lib/wctob.c: New file.
77439         * m4/wctob.m4: New file.
77440         * modules/wctob: New file.
77441         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
77442         HAVE_WCTOB.
77443         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
77444         * doc/posix-functions/wctob.texi: Document the new module.
77446 2008-12-18  Bruno Haible  <bruno@clisp.org>
77448         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
77449         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
77451 2008-12-18  Simon Josefsson  <simon@josefsson.org>
77453         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
77454         G. Christensen" <tgc@jupiterrise.com>.
77456         * lib/flock.c: Need to include errno.h.  Reported by "Tom
77457         G. Christensen" <tgc@jupiterrise.com>.
77459         * lib/flock.c: Need to include string.h.  Reported by "Tom
77460         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
77461         <ebb9@byu.net>.
77463 2008-12-18  Bruno Haible  <bruno@clisp.org>
77465         * m4/locale-ja.m4: New file, from GNU gettext.
77467 2008-12-17  Bruno Haible  <bruno@clisp.org>
77469         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
77470         Suggested by Eric Blake.
77472 2008-12-17  Bruno Haible  <bruno@clisp.org>
77474         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
77476 2008-12-17  Bruno Haible  <bruno@clisp.org>
77478         * lib/mbsinit.c: Include verify.h. Verify an assumption.
77479         * modules/mbsinit (Depends-on): Add verify.
77480         Suggested by Paul Eggert.
77482 2008-12-17  Bruno Haible  <bruno@clisp.org>
77484         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
77485         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
77486         gl_FUNC_MBRTOWC.
77487         * m4/mbiter.m4 (gl_MBITER): LIkewise.
77488         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
77489         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
77490         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
77491         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
77492         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
77493         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
77494         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
77495         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
77496         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
77497         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
77498         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
77499         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
77500         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
77501         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
77502         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
77503         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
77504         * modules/trim (configure.ac): Likewise.
77506 2008-12-17  Bruno Haible  <bruno@clisp.org>
77508         * modules/btowc-tests: New file.
77509         * tests/test-btowc1.sh: New file.
77510         * tests/test-btowc2.sh: New file.
77511         * tests/test-btowc.c: New file.
77513         New module 'btowc'.
77514         * lib/wchar.in.h (btowc): New declaration.
77515         * lib/btowc.c: New file.
77516         * m4/btowc.m4: New file.
77517         * modules/btowc: New file.
77518         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
77519         HAVE_BTOWC.
77520         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
77521         * doc/posix-functions/btowc.texi: Document the new module.
77523 2008-12-17  Bruno Haible  <bruno@clisp.org>
77525         New module 'mbsinit'.
77526         * lib/wchar.in.h (mbsinit): New declaration.
77527         * lib/mbsinit.c: New file.
77528         * m4/mbsinit.m4: New file.
77529         * modules/mbsinit: New file.
77530         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
77531         HAVE_MBSINIT.
77532         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
77533         HAVE_MBSINIT.
77534         * doc/posix-functions/mbsinit.texi: Document the new module.
77536 2008-12-16  Bruno Haible  <bruno@clisp.org>
77538         * lib/unistd.in.h: Add comment.
77539         * tests/test-environ.c: Don't include <stdlib.h>.
77541 2008-12-16  Bruno Haible  <bruno@clisp.org>
77543         * lib/parse-duration.h (parse_duration): Document return value
77544         convention.
77545         * lib/parse-duration.c: Include specification header first. Add
77546         comments.
77547         (_): Remove macro.
77548         (parse_year_month_day, parse_hour_minute_second): Move side effects
77549         outside of strchr call.
77550         (parse_non_iso8601): Move side effects outside of isspace call.
77551         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
77552         call.
77554 2008-12-16  Bruno Haible  <bruno@clisp.org>
77556         * tests/test-parse-duration.sh: Produce no output when the test
77557         succeeds.
77559 2008-12-16  Bruno Haible  <bruno@clisp.org>
77561         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
77562         expressions.
77564 2008-12-15  Bruno Haible  <bruno@clisp.org>
77566         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
77567         * doc/glibc-functions/flistxattr.texi: Likewise.
77568         * doc/glibc-functions/fopencookie.texi: Likewise.
77569         * doc/glibc-functions/fremovexattr.texi: Likewise.
77570         * doc/glibc-functions/fsetxattr.texi: Likewise.
77571         * doc/glibc-functions/getxattr.texi: Likewise.
77572         * doc/glibc-functions/lgetxattr.texi: Likewise.
77573         * doc/glibc-functions/listxattr.texi: Likewise.
77574         * doc/glibc-functions/llistxattr.texi: Likewise.
77575         * doc/glibc-functions/lremovexattr.texi: Likewise.
77576         * doc/glibc-functions/lsetxattr.texi: Likewise.
77577         * doc/glibc-functions/removexattr.texi: Likewise.
77578         * doc/glibc-functions/setxattr.texi: Likewise.
77579         * doc/posix-functions/open_memstream.texi: Likewise.
77581 2008-12-15  Eric Blake  <ebb9@byu.net>
77583         Update doc for cygwin 1.7.
77584         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
77585         functions.
77586         * doc/posix-functions/fchmodat.texi: Likewise.
77587         * doc/posix-functions/fchownat.texi: Likewise.
77588         * doc/posix-functions/fdopendir.texi: Likewise.
77589         * doc/posix-functions/fmemopen.texi: Likewise.
77590         * doc/posix-functions/freeaddrinfo.texi: Likewise.
77591         * doc/posix-functions/fstatat.texi: Likewise.
77592         * doc/posix-functions/futimens.texi: Likewise.
77593         * doc/posix-functions/gai_strerror.texi: Likewise.
77594         * doc/posix-functions/getaddrinfo.texi: Likewise.
77595         * doc/posix-functions/getnameinfo.texi: Likewise.
77596         * doc/posix-functions/if_freenameindex.texi: Likewise.
77597         * doc/posix-functions/if_indextoname.texi: Likewise.
77598         * doc/posix-functions/if_nameindex.texi: Likewise.
77599         * doc/posix-functions/if_nametoindex.texi: Likewise.
77600         * doc/posix-functions/insque.texi: Likewise.
77601         * doc/posix-functions/linkat.texi: Likewise.
77602         * doc/posix-functions/llrint.texi: Likewise.
77603         * doc/posix-functions/llrintf.texi: Likewise.
77604         * doc/posix-functions/llrintl.texi: Likewise.
77605         * doc/posix-functions/lockf.texi: Likewise.
77606         * doc/posix-functions/lrintl.texi: Likewise.
77607         * doc/posix-functions/mkdirat.texi: Likewise.
77608         * doc/posix-functions/mkfifoat.texi: Likewise.
77609         * doc/posix-functions/mknodat.texi: Likewise.
77610         * doc/posix-functions/mq_close.texi: Likewise.
77611         * doc/posix-functions/mq_getattr.texi: Likewise.
77612         * doc/posix-functions/mq_notify.texi: Likewise.
77613         * doc/posix-functions/mq_open.texi: Likewise.
77614         * doc/posix-functions/mq_receive.texi: Likewise.
77615         * doc/posix-functions/mq_send.texi: Likewise.
77616         * doc/posix-functions/mq_setattr.texi: Likewise.
77617         * doc/posix-functions/mq_timedreceive.texi: Likewise.
77618         * doc/posix-functions/mq_timedsend.texi: Likewise.
77619         * doc/posix-functions/mq_unlink.texi: Likewise.
77620         * doc/posix-functions/open_memstream.texi: Likewise.
77621         * doc/posix-functions/openat.texi: Likewise.
77622         * doc/posix-functions/posix_fadvise.texi: Likewise.
77623         * doc/posix-functions/posix_fallocate.texi: Likewise.
77624         * doc/posix-functions/posix_madvise.texi: Likewise.
77625         * doc/posix-functions/posix_memalign.texi: Likewise.
77626         * doc/posix-functions/posix_openpt.texi: Likewise.
77627         * doc/posix-functions/readlinkat.texi: Likewise.
77628         * doc/posix-functions/remque.texi: Likewise.
77629         * doc/posix-functions/renameat.texi: Likewise.
77630         * doc/posix-functions/rintl.texi: Likewise.
77631         * doc/posix-functions/sem_unlink.texi: Likewise.
77632         * doc/posix-functions/shm_open.texi: Likewise.
77633         * doc/posix-functions/shm_unlink.texi: Likewise.
77634         * doc/posix-functions/signgam.texi: Likewise.
77635         * doc/posix-functions/sigset.texi: Likewise.
77636         * doc/posix-functions/stpcpy.texi: Likewise.
77637         * doc/posix-functions/stpncpy.texi: Likewise.
77638         * doc/posix-functions/strerror.texi: Likewise.
77639         * doc/posix-functions/strtod.texi: Likewise.
77640         * doc/posix-functions/symlinkat.texi: Likewise.
77641         * doc/posix-functions/unlinkat.texi: Likewise.
77642         * doc/posix-functions/utimensat.texi: Likewise.
77643         * doc/glibc-functions/bindresvport.texi: Likewise.
77644         * doc/glibc-functions/dn_expand.texi: Likewise.
77645         * doc/glibc-functions/exp10.texi: Likewise.
77646         * doc/glibc-functions/exp10f.texi: Likewise.
77647         * doc/glibc-functions/fgetxattr.texi: Likewise.
77648         * doc/glibc-functions/flistxattr.texi: Likewise.
77649         * doc/glibc-functions/fopencookie.texi: Likewise.
77650         * doc/glibc-functions/freeifaddrs.texi: Likewise.
77651         * doc/glibc-functions/fremovexattr.texi: Likewise.
77652         * doc/glibc-functions/fsetxattr.texi: Likewise.
77653         * doc/glibc-functions/getifaddrs.texi: Likewise.
77654         * doc/glibc-functions/getxattr.texi: Likewise.
77655         * doc/glibc-functions/lgetxattr.texi: Likewise.
77656         * doc/glibc-functions/listxattr.texi: Likewise.
77657         * doc/glibc-functions/llistxattr.texi: Likewise.
77658         * doc/glibc-functions/lremovexattr.texi: Likewise.
77659         * doc/glibc-functions/lsetxattr.texi: Likewise.
77660         * doc/glibc-functions/pow10.texi: Likewise.
77661         * doc/glibc-functions/pow10f.texi: Likewise.
77662         * doc/glibc-functions/rcmd_af.texi: Likewise.
77663         * doc/glibc-functions/removexattr.texi: Likewise.
77664         * doc/glibc-functions/res_init.texi: Likewise.
77665         * doc/glibc-functions/res_mkquery.texi: Likewise.
77666         * doc/glibc-functions/res_query.texi: Likewise.
77667         * doc/glibc-functions/res_querydomain.texi: Likewise.
77668         * doc/glibc-functions/res_send.texi: Likewise.
77669         * doc/glibc-functions/rresvport_af.texi: Likewise.
77670         * doc/glibc-functions/setxattr.texi: Likewise.
77671         * doc/glibc-functions/strcasestr.texi: Likewise.
77673 2008-12-15  Bruno Haible  <bruno@clisp.org>
77675         Fix compilation error on OSF/1 4.0.
77676         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
77677         <sys/time.h>, simply delegate to the system header.
77678         Reported by Daniel Richard G. <oss@teragram.com>.
77680 2008-12-15  Bruno Haible  <bruno@clisp.org>
77682         * doc/posix-functions/openat.texi: Mention the 'openat' module.
77683         * doc/posix-functions/fchmodat.texi: Likewise.
77684         * doc/posix-functions/fchownat.texi: Likewise.
77685         * doc/posix-functions/fdopendir.texi: Likewise.
77686         * doc/posix-functions/fstatat.texi: Likewise.
77687         * doc/posix-functions/mkdirat.texi: Likewise.
77688         * doc/posix-functions/unlinkat.texi: Likewise.
77690 2008-12-14  Bruno Haible  <bruno@clisp.org>
77692         Update doc for POSIX:2008.
77693         * doc/posix-functions/faccessat.texi: New file.
77694         * doc/posix-functions/fchmodat.texi: New file.
77695         * doc/posix-functions/fchownat.texi: New file.
77696         * doc/posix-functions/fdopendir.texi: New file.
77697         * doc/posix-functions/fstatat.texi: New file.
77698         * doc/posix-functions/futimens.texi: New file.
77699         * doc/posix-functions/linkat.texi: New file.
77700         * doc/posix-functions/mkdirat.texi: New file.
77701         * doc/posix-functions/mkfifoat.texi: New file.
77702         * doc/posix-functions/mknodat.texi: New file.
77703         * doc/posix-functions/open_wmemstream.texi: New file.
77704         * doc/posix-functions/openat.texi: New file.
77705         * doc/posix-functions/psiginfo.texi: New file.
77706         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
77707         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
77708         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
77709         * doc/posix-functions/readlinkat.texi: New file.
77710         * doc/posix-functions/renameat.texi: New file.
77711         * doc/posix-functions/strerror_l.texi: New file.
77712         * doc/posix-functions/symlinkat.texi: New file.
77713         * doc/posix-functions/unlinkat.texi: New file.
77714         * doc/posix-functions/utimensat.texi: New file.
77715         * doc/gnulib.texi (Function Substitutes): Add these subsections.
77717 2008-12-14  Bruno Haible  <bruno@clisp.org>
77719         Update doc for POSIX:2008.
77720         * doc/posix-functions/alphasort.texi: Renamed from
77721         doc/glibc-functions/alphasort.texi.
77722         * doc/posix-functions/dirfd.texi: Renamed from
77723         doc/glibc-functions/dirfd.texi.
77724         * doc/posix-functions/dprintf.texi: Renamed from
77725         doc/glibc-functions/dprintf.texi.
77726         * doc/posix-functions/duplocale.texi: Renamed from
77727         doc/glibc-functions/duplocale.texi.
77728         * doc/posix-functions/fexecve.texi: Renamed from
77729         doc/glibc-functions/fexecve.texi.
77730         * doc/posix-functions/fmemopen.texi: Renamed from
77731         doc/glibc-functions/fmemopen.texi.
77732         * doc/posix-functions/freelocale.texi: Renamed from
77733         doc/glibc-functions/freelocale.texi.
77734         * doc/posix-functions/getdate_err.texi: Renamed from
77735         doc/glibc-functions/getdate_err.texi.
77736         * doc/posix-functions/isalnum_l.texi: Renamed from
77737         doc/glibc-functions/isalnum_l.texi.
77738         * doc/posix-functions/isalpha_l.texi: Renamed from
77739         doc/glibc-functions/isalpha_l.texi.
77740         * doc/posix-functions/isblank_l.texi: Renamed from
77741         doc/glibc-functions/isblank_l.texi.
77742         * doc/posix-functions/iscntrl_l.texi: Renamed from
77743         doc/glibc-functions/iscntrl_l.texi.
77744         * doc/posix-functions/isdigit_l.texi: Renamed from
77745         doc/glibc-functions/isdigit_l.texi.
77746         * doc/posix-functions/isgraph_l.texi: Renamed from
77747         doc/glibc-functions/isgraph_l.texi.
77748         * doc/posix-functions/islower_l.texi: Renamed from
77749         doc/glibc-functions/islower_l.texi.
77750         * doc/posix-functions/isprint_l.texi: Renamed from
77751         doc/glibc-functions/isprint_l.texi.
77752         * doc/posix-functions/ispunct_l.texi: Renamed from
77753         doc/glibc-functions/ispunct_l.texi.
77754         * doc/posix-functions/isspace_l.texi: Renamed from
77755         doc/glibc-functions/isspace_l.texi.
77756         * doc/posix-functions/isupper_l.texi: Renamed from
77757         doc/glibc-functions/isupper_l.texi.
77758         * doc/posix-functions/iswalnum_l.texi: Renamed from
77759         doc/glibc-functions/iswalnum_l.texi.
77760         * doc/posix-functions/iswalpha_l.texi: Renamed from
77761         doc/glibc-functions/iswalpha_l.texi.
77762         * doc/posix-functions/iswblank_l.texi: Renamed from
77763         doc/glibc-functions/iswblank_l.texi.
77764         * doc/posix-functions/iswcntrl_l.texi: Renamed from
77765         doc/glibc-functions/iswcntrl_l.texi.
77766         * doc/posix-functions/iswctype_l.texi: Renamed from
77767         doc/glibc-functions/iswctype_l.texi.
77768         * doc/posix-functions/iswdigit_l.texi: Renamed from
77769         doc/glibc-functions/iswdigit_l.texi.
77770         * doc/posix-functions/iswgraph_l.texi: Renamed from
77771         doc/glibc-functions/iswgraph_l.texi.
77772         * doc/posix-functions/iswlower_l.texi: Renamed from
77773         doc/glibc-functions/iswlower_l.texi.
77774         * doc/posix-functions/iswprint_l.texi: Renamed from
77775         doc/glibc-functions/iswprint_l.texi.
77776         * doc/posix-functions/iswpunct_l.texi: Renamed from
77777         doc/glibc-functions/iswpunct_l.texi.
77778         * doc/posix-functions/iswspace_l.texi: Renamed from
77779         doc/glibc-functions/iswspace_l.texi.
77780         * doc/posix-functions/iswupper_l.texi: Renamed from
77781         doc/glibc-functions/iswupper_l.texi.
77782         * doc/posix-functions/iswxdigit_l.texi: Renamed from
77783         doc/glibc-functions/iswxdigit_l.texi.
77784         * doc/posix-functions/isxdigit_l.texi: Renamed from
77785         doc/glibc-functions/isxdigit_l.texi.
77786         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
77787         doc/glibc-functions/mbsnrtowcs.texi.
77788         * doc/posix-functions/mkdtemp.texi: Renamed from
77789         doc/glibc-functions/mkdtemp.texi.
77790         * doc/posix-functions/newlocale.texi: Renamed from
77791         doc/glibc-functions/newlocale.texi.
77792         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
77793         doc/glibc-functions/nl_langinfo_l.texi.
77794         * doc/posix-functions/open_memstream.texi: Renamed from
77795         doc/glibc-functions/open_memstream.texi.
77796         * doc/posix-functions/opterr.texi: Renamed from
77797         doc/glibc-functions/opterr.texi.
77798         * doc/posix-functions/optind.texi: Renamed from
77799         doc/glibc-functions/optind.texi.
77800         * doc/posix-functions/optopt.texi: Renamed from
77801         doc/glibc-functions/optopt.texi.
77802         * doc/posix-functions/psignal.texi: Renamed from
77803         doc/glibc-functions/psignal.texi.
77804         * doc/posix-functions/scandir.texi: Renamed from
77805         doc/glibc-functions/scandir.texi.
77806         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
77807         doc/glibc-functions/sched_get_priority_min.texi.
77808         * doc/posix-functions/signgam.texi: Renamed from
77809         doc/glibc-functions/signgam.texi.
77810         * doc/posix-functions/stpcpy.texi: Renamed from
77811         doc/glibc-functions/stpcpy.texi.
77812         * doc/posix-functions/stpncpy.texi: Renamed from
77813         doc/glibc-functions/stpncpy.texi.
77814         * doc/posix-functions/strcasecmp_l.texi: Renamed from
77815         doc/glibc-functions/strcasecmp_l.texi.
77816         * doc/posix-functions/strcoll_l.texi: Renamed from
77817         doc/glibc-functions/strcoll_l.texi.
77818         * doc/posix-functions/strfmon_l.texi: Renamed from
77819         doc/glibc-functions/strfmon_l.texi.
77820         * doc/posix-functions/strftime_l.texi: Renamed from
77821         doc/glibc-functions/strftime_l.texi.
77822         * doc/posix-functions/strncasecmp_l.texi: Renamed from
77823         doc/glibc-functions/strncasecmp_l.texi.
77824         * doc/posix-functions/strndup.texi: Renamed from
77825         doc/glibc-functions/strndup.texi.
77826         * doc/posix-functions/strnlen.texi: Renamed from
77827         doc/glibc-functions/strnlen.texi.
77828         * doc/posix-functions/strsignal.texi: Renamed from
77829         doc/glibc-functions/strsignal.texi.
77830         * doc/posix-functions/strxfrm_l.texi: Renamed from
77831         doc/glibc-functions/strxfrm_l.texi.
77832         * doc/posix-functions/timer_gettime.texi: Renamed from
77833         doc/glibc-functions/timer_gettime.texi.
77834         * doc/posix-functions/tolower_l.texi: Renamed from
77835         doc/glibc-functions/tolower_l.texi.
77836         * doc/posix-functions/toupper_l.texi: Renamed from
77837         doc/glibc-functions/toupper_l.texi.
77838         * doc/posix-functions/towctrans_l.texi: Renamed from
77839         doc/glibc-functions/towctrans_l.texi.
77840         * doc/posix-functions/towlower_l.texi: Renamed from
77841         doc/glibc-functions/towlower_l.texi.
77842         * doc/posix-functions/towupper_l.texi: Renamed from
77843         doc/glibc-functions/towupper_l.texi.
77844         * doc/posix-functions/uselocale.texi: Renamed from
77845         doc/glibc-functions/uselocale.texi.
77846         * doc/posix-functions/vdprintf.texi: Renamed from
77847         doc/glibc-functions/vdprintf.texi.
77848         * doc/posix-functions/wcpcpy.texi:
77849         Renamed from doc/glibc-functions/wcpcpy.texi.
77850         * doc/posix-functions/wcpncpy.texi: Renamed from
77851         doc/glibc-functions/wcpncpy.texi.
77852         * doc/posix-functions/wcscasecmp.texi: Renamed from
77853         doc/glibc-functions/wcscasecmp.texi.
77854         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
77855         doc/glibc-functions/wcscasecmp_l.texi.
77856         * doc/posix-functions/wcscoll_l.texi: Renamed from
77857         doc/glibc-functions/wcscoll_l.texi.
77858         * doc/posix-functions/wcsdup.texi: Renamed from
77859         doc/glibc-functions/wcsdup.texi.
77860         * doc/posix-functions/wcsncasecmp.texi: Renamed from
77861         doc/glibc-functions/wcsncasecmp.texi.
77862         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
77863         doc/glibc-functions/wcsncasecmp_l.texi.
77864         * doc/posix-functions/wcsnlen.texi: Renamed from
77865         doc/glibc-functions/wcsnlen.texi.
77866         * doc/posix-functions/wcsnrtombs.texi: Renamed from
77867         doc/glibc-functions/wcsnrtombs.texi.
77868         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
77869         doc/glibc-functions/wcsxfrm_l.texi.
77870         * doc/posix-functions/wctrans_l.texi: Renamed from
77871         doc/glibc-functions/wctrans_l.texi.
77872         * doc/posix-functions/wctype_l.texi: Renamed from
77873         doc/glibc-functions/wctype_l.texi.
77874         * doc/gnulib.texi (Function Substitutes): Add these subsections.
77875         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
77876         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
77877         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
77878         these subsections.
77879         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
77880         Remove sections.
77882 2008-12-14  Bruno Haible  <bruno@clisp.org>
77884         Update doc for POSIX:2008.
77885         * doc/posix-functions/*.texi: Update URL of POSIX specification.
77887 2008-12-14  Bruno Haible  <bruno@clisp.org>
77889         Update doc for POSIX:2008.
77890         * doc/pastposix-functions/bcmp.texi: Renamed from
77891         doc/posix-functions/bcmp.texi.
77892         * doc/pastposix-functions/bcopy.texi: Renamed from
77893         doc/posix-functions/bcopy.texi.
77894         * doc/pastposix-functions/bsd_signal.texi: Renamed from
77895         doc/posix-functions/bsd_signal.texi.
77896         * doc/pastposix-functions/bzero.texi: Renamed from
77897         doc/posix-functions/bzero.texi.
77898         * doc/pastposix-functions/ecvt.texi: Renamed from
77899         doc/posix-functions/ecvt.texi.
77900         * doc/pastposix-functions/fcvt.texi: Renamed from
77901         doc/posix-functions/fcvt.texi.
77902         * doc/pastposix-functions/ftime.texi: Renamed from
77903         doc/posix-functions/ftime.texi.
77904         * doc/pastposix-functions/gcvt.texi: Renamed from
77905         doc/posix-functions/gcvt.texi.
77906         * doc/pastposix-functions/getcontext.texi: Renamed from
77907         doc/posix-functions/getcontext.texi.
77908         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
77909         doc/posix-functions/gethostbyaddr.texi.
77910         * doc/pastposix-functions/gethostbyname.texi: Renamed from
77911         doc/posix-functions/gethostbyname.texi.
77912         * doc/pastposix-functions/getwd.texi: Renamed from
77913         doc/posix-functions/getwd.texi.
77914         * doc/pastposix-functions/h_errno.texi: Renamed from
77915         doc/posix-functions/h_errno.texi.
77916         * doc/pastposix-functions/index.texi: Renamed from
77917         doc/posix-functions/index.texi.
77918         * doc/pastposix-functions/makecontext.texi: Renamed from
77919         doc/posix-functions/makecontext.texi.
77920         * doc/pastposix-functions/mktemp.texi: Renamed from
77921         doc/posix-functions/mktemp.texi.
77922         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
77923         doc/posix-functions/pthread_attr_getstackaddr.texi.
77924         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
77925         doc/posix-functions/pthread_attr_setstackaddr.texi.
77926         * doc/pastposix-functions/rindex.texi: Renamed from
77927         doc/posix-functions/rindex.texi.
77928         * doc/pastposix-functions/scalb.texi: Renamed from
77929         doc/posix-functions/scalb.texi.
77930         * doc/pastposix-functions/setcontext.texi: Renamed from
77931         doc/posix-functions/setcontext.texi.
77932         * doc/pastposix-functions/swapcontext.texi: Renamed from
77933         doc/posix-functions/swapcontext.texi.
77934         * doc/pastposix-functions/ualarm.texi: Renamed from
77935         doc/posix-functions/ualarm.texi.
77936         * doc/pastposix-functions/usleep.texi: Renamed from
77937         doc/posix-functions/usleep.texi.
77938         * doc/pastposix-functions/vfork.texi: Renamed from
77939         doc/posix-functions/vfork.texi.
77940         * doc/pastposix-functions/wcswcs.texi: Renamed from
77941         doc/posix-functions/wcswcs.texi.
77942         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
77943         (Function Substitutes): Update.
77945 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77947         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
77948         m4/strerror.m4.
77950 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77951             Bruno Haible  <bruno@clisp.org>
77953         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
77955 2008-12-13  Bruno Haible  <bruno@clisp.org>
77957         * modules/strtoull (Depends-on): Remove unistd.
77959 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77961         * modules/strtoull (Depends-on): Add stdlib.
77963 2008-12-11  Simon Josefsson  <simon@josefsson.org>
77965         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
77967 2008-12-10  Jim Meyering  <meyering@redhat.com>
77969         gl_ASSERT: don't say assertions are disabled when they're not
77970         * m4/assert.m4 (gl_ASSERT): Do not make configure report
77971         "checking whether to enable assertions... no", when they are in
77972         fact enabled.  This is solely a bug in the output of configure.
77973         In spite of saying "no", NDEBUG was not defined in that case.
77974         Also, as noted by Eric Blake, leave assertions enabled upon
77975         --enable-assert=INVALID.
77977 2008-12-10  Bruno Haible  <bruno@clisp.org>
77979         Change MODULES.html to refer to POSIX:2008 where possible.
77980         * MODULES.html.sh (POSIX2008_URL): New variable.
77981         (posix_headers): Remove sys/timeb, ucontext.
77982         (posix2001_headers): New variable.
77983         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
77984         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
77985         index, makecontext, mktemp, pthread_attr_getstackaddr,
77986         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
77987         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
77988         (posix2001_functions): New variable.
77989         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
77990         otherwise.
77992 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77994         add missing include to parse-duration.c
77995         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
77996         * modules/parse-duration (Depends-on): Add xalloc.
77998         fix sed script reading maint.mk
77999         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
78000         (syntax-check-rules): Use it.
78002 2008-12-09  Bruno Haible  <bruno@clisp.org>
78004         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
78005         MacOS X 10.4/PowerPC.
78006         Reported by Simon Josefsson.
78008 2008-12-08  Jim Meyering  <meyering@redhat.com>
78010         work around mingw's lack of some S_IF definitions
78011         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
78012         Reported by Simon Josefsson.
78014 2008-12-08  Bruno Haible  <bruno@clisp.org>
78016         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
78017         applied to variables. Needed on MacOS X 10.4/PowerPC.
78018         Reported by Simon Josefsson.
78020 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
78021         and Eric Blake  <ebb9@byu.net>
78023         assert: honor --enable-assert
78024         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
78025         order to honor --enable-assert, rather than treating it as a
78026         synonym for --disable-assert.
78028 2008-12-08  Jim Meyering  <meyering@redhat.com>
78030         * lib/posixtm.c: Remove now-useless declaration of mktime.
78032         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
78034 2008-12-07  Bruno Haible  <bruno@clisp.org>
78036         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
78037         test_once): Mark functions as static.
78038         * tests/test-tls.c (test_tls): Likewise.
78040 2008-12-07  Bruno Haible  <bruno@clisp.org>
78042         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
78043         iconv_register_autodetect.
78045 2008-12-07  Jim Meyering  <meyering@redhat.com>
78047         posixtm.c: avoid a warning
78048         * lib/posixtm.c (posixtime): Don't initialize tm0.
78049         It's no longer needed to placate gcc4's -Wuninitialized,
78050         and the attempt to placate would elicit a new warning.
78052         unicodeio.c: mark unused parameters
78053         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
78054         (fallback_failure_callback): Likewise.
78056 2008-12-07  Bruno Haible  <bruno@clisp.org>
78058         * gnulib-tool (func_create_testdir): When building the tests
78059         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
78060         Reported by Simon Josefsson.
78062 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78064         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
78066 2008-12-06  Bruno Haible  <bruno@clisp.org>
78068         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
78069         Suggested by Eric Blake.
78071 2008-12-06  Bruno Haible  <bruno@clisp.org>
78073         Fix a c-stack test failure on MacOS X.
78074         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
78075         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
78076         handler for SIGBUS as well.
78077         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
78078         install a signal handler for SIGBUS as well.
78079         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
78081 2008-12-06  Bruno Haible  <bruno@clisp.org>
78083         Advocacy documentation.
78084         * doc/gnulib-intro.texi (Benefits): New section.
78085         * doc/gnulib.texi: Update.
78087 2008-12-06  Bruno Haible  <bruno@clisp.org>
78089         Document the 'manywarnings' module.
78090         * doc/manywarnings.texi: New file.
78091         * doc/gnulib.texi: Include it.
78093 2008-12-05  Eric Blake  <ebb9@byu.net>
78095         tests: silence some gcc warnings
78096         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
78097         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
78098         type mismatches.
78100 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78101             Bruno Haible  <bruno@clisp.org>
78103         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
78105 2008-11-29  Jim Meyering  <meyering@redhat.com>
78107         unicodeio.c: mark unused parameters
78108         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
78109         (fallback_failure_callback): Likewise.
78111         fts: fix a thinko
78112         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
78113         (set_stat_type): Return S_IF*-valued "type" directly.
78114         Prompted by James Youngman's spotting a related bug.
78115         Confirmed by further testing through find.
78117         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
78118         * lib/fts.c (D_TYPE): Define.
78119         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
78120         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
78121         (s_ifmt_shift_bits): New function.
78122         (set_stat_type): New function.
78123         (fts_build): When not calling fts_stat, call set_stat_type
78124         to propagate dirent.d_type info to fts_read caller.
78125         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
78126         fts_statp->st_mode type information may be valid.
78128 2008-11-28  Simon Josefsson  <simon@josefsson.org>
78130         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
78131         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
78132         <sds@gnu.org>.
78134 2008-11-20  Bruno Haible  <bruno@clisp.org>
78136         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
78137         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
78138         INCLUDE_NEXT.
78139         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
78140         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
78141         * modules/math (Makefile.am): Substitute
78142         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
78143         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
78145 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
78146             Bruno Haible  <bruno@clisp.org>
78148         * lib/stdint.in.h: Define all type macros so that their expansion is
78149         a single typedef'ed token. Fixes a compilation failure in Boost which
78150         does "using ::int8_t;".
78152 2008-11-18  Simon Josefsson  <simon@josefsson.org>
78154         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
78155         gl_MANYWARN_ALL_GCC.
78156         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
78157         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
78158         * modules/manywarnings: New file.
78159         * MODULES.html.sh: Mention manywarnings module.
78161 2008-11-18  Bruno Haible  <bruno@clisp.org>
78163         * doc/gnulib-tool.texi (Unit tests): New section.
78165 2008-11-18  Simon Josefsson  <simon@josefsson.org>
78167         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
78168         paths like 'lib/po/foo.po'.
78170 2008-11-17  Simon Josefsson  <simon@josefsson.org>
78172         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
78173         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
78175 2008-11-17  Simon Josefsson  <simon@josefsson.org>
78177         * m4/warnings.m4: Use CPPFLAGS to really check whether the
78178         parameter works.
78180 2008-11-17  Simon Josefsson  <simon@josefsson.org>
78182         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
78184 2008-11-17  Bruce Korb  <bkorb@gnu.org>
78186         * modules/parse-duration-tests: New file.
78187         * tests/test-parse-duration.sh: New file.
78188         * tests/test-parse-duration.c: New file.
78190         New module 'parse-duration'.
78191         * lib/parse-duration.h: New file.
78192         * lib/parse-duration.c: New file.
78193         * modules/parse-duration: New file.
78195 2008-11-17  Bruno Haible  <bruno@clisp.org>
78197         * tests/test-select-out.sh: Comment out the first pipe test.
78198         Reported by Simon Josefsson.
78200 2008-11-17  Bruno Haible  <bruno@clisp.org>
78202         * modules/getaddrinfo (Depends-on): Add servent, hostent.
78203         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
78204         gl_HOSTENT.
78206 2008-11-17  Bruno Haible  <bruno@clisp.org>
78208         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
78209         -lnetwork and -lnet. Needed for Haiku and BeOS.
78211 2008-11-16  Bruno Haible  <bruno@clisp.org>
78213         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
78215 2008-11-16  Bruno Haible  <bruno@clisp.org>
78217         Avoid test failure on Haiku.
78218         * tests/test-fsync.c: Include <errno.h>.
78219         (main): Don't require that fsync (0) fails.
78221 2008-11-15  Bruno Haible  <bruno@clisp.org>
78223         New module 'hostent'.
78224         * modules/hostent: New file.
78225         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
78227 2008-11-15  Bruno Haible  <bruno@clisp.org>
78229         New module 'servent'.
78230         * modules/servent: New file.
78231         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
78233 2008-11-15  Bruno Haible  <bruno@clisp.org>
78235         Avoid generating same test program with two different rules.
78236         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
78237         test-frexp to test-frexp-nolibm.
78238         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
78239         test-frexpl to test-frexpl-nolibm.
78241 2008-11-15  Bruno Haible  <bruno@clisp.org>
78243         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
78244         $(FREXPL_LIBM).
78246 2008-11-15  Bruno Haible  <bruno@clisp.org>
78248         * lib/netdb.in.h: Activate the definitions also when the system's
78249         <netdb.h> has 'struct addrinfo'.
78250         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
78251         EAI_OVERFLOW or AI_NUMERICSERV.
78252         * doc/posix-headers/netdb.texi: Document the problem.
78254 2008-11-15  Bruno Haible  <bruno@clisp.org>
78256         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
78258         Make the 'sched' module work on platforms where <sched.h> exists but
78259         is incomplete (such as Haiku).
78260         * lib/sched.in.h; Include the system's <sched.h> if it exists.
78261         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
78262         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
78263         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
78264         HAVE_STRUCT_SCHED_PARAM.
78265         * modules/sched (Depends-on): Add include_next.
78266         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
78267         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
78268         * doc/posix-headers/sched.texi: Document the issue.
78270 2008-11-13  Jim Meyering  <meyering@redhat.com>
78272         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
78273         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
78274         test would fail due to the difference in the Report bugs to ...
78275         line.  The expected address is empty, "<>", while the actual
78276         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
78278 2008-11-12  Bruno Haible  <bruno@clisp.org>
78280         lstat: don't compile lstat.c on systems lacking lstat
78281         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
78282         which don't have lstat; this is handled by lib/sys_stat.in.h already.
78283         Reported by Daniel P. Berrange via Jim Meyering.
78285 2008-11-12  Jim Meyering  <meyering@redhat.com>
78287         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
78289 2008-11-12  Simon Josefsson  <simon@josefsson.org>
78291         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
78292         instead.
78294 2008-11-12  Bruno Haible  <bruno@clisp.org>
78296         * lib/unicodeio.c: Include unistr.h.
78297         (utf8_wctomb): Remove function.
78298         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
78300 2008-11-12  Simon Josefsson  <simon@josefsson.org>
78302         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
78303         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
78304         <bruno@clisp.org>.
78305         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
78307 2008-11-12  Simon Josefsson  <simon@josefsson.org>
78309         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
78310         * doc/gnulib.texi: Add section for warnings.
78312 2008-11-11  Bruno Haible  <bruno@clisp.org>
78314         * lib/sockets.h: Add a comment.
78316 2008-11-11  Karl Berry  <karl@gnu.org>
78318         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
78320 2008-11-11  Eric Blake  <ebb9@byu.net>
78322         fdl.texi: avoid git symlinks
78323         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
78325 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
78327         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
78329 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
78331         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
78332         (gl_WARN_ADD): Substitute $2 if literal.
78334 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
78336         * m4/warning.m4: Remove.
78338 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
78340         * m4/warnings.m4: Almost complete rewrite. :-)
78342 2008-11-10  Simon Josefsson  <simon@josefsson.org>
78344         * modules/warnings: New module.
78345         * m4/warnings.m4: New file.
78346         * MODULES.html.sh: Mention warnings module.
78347         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
78348         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78350 2008-11-10  Eric Blake  <ebb9@byu.net>
78352         fdl.texi: make a symlink to the latest version
78353         * doc/standards.texi: Revert today's earlier change.
78354         * doc/fdl-1.2.texi: Rename from old fdl.texi...
78355         * doc/fdl.texi: ...and replace this with a symlink to the newer
78356         fdl-1.3.texi.
78358 2008-11-10  Bruno Haible  <bruno@clisp.org>
78360         * tests/test-select-fd.c (main): Accept the result file name as fourth
78361         argument.
78362         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
78363         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
78365 2008-11-10  Bruno Haible  <bruno@clisp.org>
78367         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
78368         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
78369         as autoconf-substituted macros.
78370         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
78371         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
78372         gl_NETDB_H_DEFAULTS. Set these variables.
78373         * modules/netdb (Makefile.am): Substitute these variables.
78375 2008-11-10  Eric Blake  <ebb9@byu.net>
78377         standards.texi: include correct file for FDL 1.3
78378         * doc/standards.texi (GNU Free Documentation License): Change
78379         include file to pull in FDL 1.3, not 1.2.
78381         fdl.texi: revert accidental change to license
78382         * doc/fdl.texi: This is FDL 1.2, not 1.3.
78384 2008-11-10  Bruno Haible  <bruno@clisp.org>
78386         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
78387         cross-compiling guesses also when the native compile gives no result.
78389 2008-11-10  Bruno Haible  <bruno@clisp.org>
78391         * lib/spawni.c (__spawni): Force variable into the stack.
78393 2008-11-10  Bruno Haible  <bruno@clisp.org>
78395         Add support for Haiku.
78396         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
78397         glibc and BeOS, but also on Haiku.
78398         * lib/fpurge.c (fpurge): Likewise.
78399         * lib/freadable.c (freadable): Likewise.
78400         * lib/freadahead.c (freadahead): Likewise.
78401         * lib/freading.c (freading): Likewise.
78402         * lib/freadptr.c (freadptr): Likewise.
78403         * lib/freadseek.c (freadptrinc): Likewise.
78404         * lib/fseeko.c (rpl_fseeko): Likewise.
78405         * lib/fseterr.c (fseterr): Likewise.
78406         * lib/fwritable.c (fwritable): Likewise.
78407         * lib/fwriting.c (fwriting): Likewise.
78408         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
78410 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
78412         * lib/config.charset: Treat Haiku like BeOS.
78414 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
78416         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
78417         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
78419 2008-11-08  Bruno Haible  <bruno@clisp.org>
78421         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
78422         AC_CACHE_CHECK.
78424 2008-11-08  Bruno Haible  <bruno@clisp.org>
78426         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
78428 2008-11-08  Bruno Haible  <bruno@clisp.org>
78430         * tests/test-select-fd.c: New file.
78431         * tests/test-select-in.sh: New file.
78432         * tests/test-select-out.sh: New file.
78433         * tests/test-select-stdin.c: New file.
78434         * modules/select-tests (Files): Add the new files.
78435         (Depends-on): Add gettimeofday.
78436         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
78437         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
78438         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
78440 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
78441             Bruno Haible  <bruno@clisp.org>
78443         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
78445 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
78447         * build-aux/pmccabe2html: Added support for C++ source files.
78449 2008-11-05  Ben Pfaff  <blp@gnu.org>
78451         Fix lib/close.c build on Windows.
78452         * modules/close (Files): Add lib/w32sock.h.
78454 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
78456         Accept Bison's NEWS format.
78457         * build-aux/announce-gen (print_news_deltas): Tweak
78458         $re_prefix.
78460 2008-11-04  Bruno Haible  <bruno@clisp.org>
78462         * modules/random_r (Maintainer): Add glibc.
78464 2008-11-04  Simon Josefsson  <simon@josefsson.org>
78466         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
78467         by karl@freefriends.org (Karl Berry).
78468         * doc/alloca.texi: Likewise.
78469         * doc/c-ctype.texi: Likewise.
78470         * doc/c-strcase.texi: Likewise.
78471         * doc/c-strcaseeq.texi: Likewise.
78472         * doc/c-strcasestr.texi: Likewise.
78473         * doc/c-strstr.texi: Likewise.
78474         * doc/c-strtod.texi: Likewise.
78475         * doc/c-strtold.texi: Likewise.
78476         * doc/ctime.texi: Likewise.
78477         * doc/error.texi: Likewise.
78478         * doc/fdl.texi: Likewise.
78479         * doc/gcd.texi: Likewise.
78480         * doc/getdate.texi: Likewise.
78481         * doc/gnulib-intro.texi: Likewise.
78482         * doc/gnulib-tool.texi: Likewise.
78483         * doc/gnulib.texi: Likewise.
78484         * doc/inet_ntoa.texi: Likewise.
78485         * doc/maintain.texi: Likewise.
78486         * doc/make-stds.texi: Likewise.
78487         * doc/quote.texi: Likewise.
78488         * doc/regexprops-generic.texi: Likewise.
78489         * doc/standards.texi: Likewise.
78490         * doc/verify.texi: Likewise.
78491         * doc/visibility.texi: Likewise.
78492         * doc/gnulib.texi (GNU Free Documentation License): Include
78493         fdl-1.3.texi instead of fdl.texi.
78495 2008-11-04  Simon Josefsson  <simon@josefsson.org>
78497         * doc/fdl-1.3.texi: New file, from
78498         <http://www.gnu.org/licenses/fdl-1.3.texi>.
78499         * modules/fdl-1.3: Add.
78500         * MODULES.html.sh: Add fdl-1.3.
78502 2008-11-03  Bruno Haible  <bruno@clisp.org>
78504         Make determination of absolute name of header file work with AIX xlc.
78505         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
78506         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
78507         preprocessing.
78508         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
78509         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
78511 2008-11-03  Simon Josefsson  <simon@josefsson.org>
78513         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
78514         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
78515         <ludo@gnu.org>.
78517 2008-11-02  Bruno Haible  <bruno@clisp.org>
78519         Mark 'strpbrk' obsolete.
78520         * modules/strpbrk (Status, Notice): New sections.
78521         * modules/strtok_r (Depends-on): Add strpbrk.
78523 2008-11-02  Bruno Haible  <bruno@clisp.org>
78525         Mark 'strdup' obsolete.
78526         * modules/strdup (Status, Notice): New sections.
78527         * modules/findprog (Depends-on): Add strdup.
78528         * modules/getaddrinfo (Depends-on): Likewise.
78529         * modules/localename (Depends-on): Likewise.
78530         * modules/relocatable-lib (Depends-on): Likewise.
78531         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
78532         * modules/relocatable-prog (Depends-on): Likewise.
78533         * modules/trim (Depends-on): Likewise.
78534         * modules/unictype/gen-ctype (Depends-on): Likewise.
78535         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
78537 2008-11-02  Bruno Haible  <bruno@clisp.org>
78539         Mark 'strcspn' obsolete.
78540         * modules/strcspn (Status, Notice): New sections.
78542 2008-11-02  Bruno Haible  <bruno@clisp.org>
78544         Mark 'rmdir' obsolete.
78545         * modules/rmdir (Status, Notice): New sections.
78546         * modules/clean-temp (Depends-on): Add rmdir.
78547         * modules/openat (Depends-on): Likewise.
78549 2008-11-02  Bruno Haible  <bruno@clisp.org>
78551         Mark 'raise' obsolete.
78552         * modules/raise (Status, Notice): New sections.
78553         (Include): Specify <signal.h>.
78554         * modules/stdio (Depends-on): Add raise.
78555         * modules/write (Depends-on): Likewise.
78557 2008-11-02  Bruno Haible  <bruno@clisp.org>
78559         Mark 'memset' obsolete.
78560         * modules/memset (Status, Notice): New sections.
78562 2008-11-02  Bruno Haible  <bruno@clisp.org>
78564         Mark 'memmove' obsolete.
78565         * modules/memmove (Status, Notice): New sections.
78566         * modules/argp (Depends-on): Add memmove.
78567         * modules/argz (Depends-on): Likewise.
78568         * modules/canonicalize (Depends-on): Likewise.
78569         * modules/canonicalize-lgpl (Depends-on): Likewise.
78570         * modules/fts (Depends-on): Likewise.
78571         * modules/getcwd (Depends-on): Likewise.
78572         * modules/human (Depends-on): Likewise.
78573         * modules/regex (Depends-on): Likewise.
78574         * modules/striconveh (Depends-on): Likewise.
78575         * modules/trim (Depends-on): Likewise.
78576         * modules/unistr/u8-move (Depends-on): Likewise.
78577         * modules/unistr/u16-move (Depends-on): Likewise.
78578         * modules/unistr/u32-move (Depends-on): Likewise.
78580 2008-11-02  Bruno Haible  <bruno@clisp.org>
78582         Mark 'memcpy' obsolete.
78583         * modules/memcpy (Status, Notice): New sections.
78585 2008-11-02  Bruno Haible  <bruno@clisp.org>
78587         Mark 'memcmp' obsolete.
78588         * modules/memcmp (Status, Notice): New sections.
78589         * modules/argmatch (Depends-on): Add memchr.
78590         * modules/backupfile (Depends-on): Likewise.
78591         * modules/c-strcasestr (Depends-on): Likewise.
78592         * modules/crypto/des (Depends-on): Likewise.
78593         * modules/csharpcomp (Depends-on): Likewise.
78594         * modules/fnmatch (Depends-on): Likewise.
78595         * modules/git-merge-changelog (Depends-on): Likewise.
78596         * modules/isnand (Depends-on): Likewise.
78597         * modules/isnand-nolibm (Depends-on): Likewise.
78598         * modules/isnanf (Depends-on): Likewise.
78599         * modules/isnanf-nolibm (Depends-on): Likewise.
78600         * modules/isnanl (Depends-on): Likewise.
78601         * modules/isnanl-nolibm (Depends-on): Likewise.
78602         * modules/mbchar (Depends-on): Likewise.
78603         * modules/memcoll (Depends-on): Likewise.
78604         * modules/quotearg (Depends-on): Likewise.
78605         * modules/regex (Depends-on): Likewise.
78606         * modules/relocatable-prog (Depends-on): Likewise.
78607         * modules/same (Depends-on): Likewise.
78608         * modules/signbit (Depends-on): Likewise.
78609         * modules/strcasestr-simple (Depends-on): Likewise.
78610         * modules/unictype/gen-ctype (Depends-on): Likewise.
78611         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
78612         * modules/uniname/uniname (Depends-on): Likewise.
78613         * modules/unistr/u8-cmp (Depends-on): Likewise.
78615 2008-11-02  Bruno Haible  <bruno@clisp.org>
78617         Mark 'memchr' obsolete.
78618         * modules/memchr (Status, Notice): New sections.
78619         * modules/argp (Depends-on): Add memchr.
78620         * modules/base64 (Depends-on): Likewise.
78621         * modules/c-strcasestr (Depends-on): Likewise.
78622         * modules/chdir-long (Depends-on): Likewise.
78623         * modules/fnmatch (Depends-on): Likewise.
78624         * modules/getsubopt (Depends-on): Likewise.
78625         * modules/git-merge-changelog (Depends-on): Likewise.
78626         * modules/glob (Depends-on): Likewise.
78627         * modules/strcasestr-simple (Depends-on): Likewise.
78628         * modules/strnlen (Depends-on): Likewise.
78630 2008-11-02  Bruno Haible  <bruno@clisp.org>
78632         Mark 'atexit' obsolete.
78633         * modules/atexit (Status, Notice): New sections.
78634         * modules/chdir-long (Depends-on): Add atexit.
78635         * modules/wait-process (Depends-on): Likewise.
78637 2008-11-02  Bruno Haible  <bruno@clisp.org>
78639         * gnulib-tool: New option --with-obsolete.
78640         (func_usage): Document it.
78641         (func_modules_transitive_closure): Drop obsolete dependencies if
78642         incobsolete is not true.
78643         (func_import): Read and save the incobsolete variable to the cache.
78645 2008-11-02  Bruno Haible  <bruno@clisp.org>
78647         * modules/TEMPLATE-EXTENDED: New field 'Status'.
78648         * gnulib-tool: New option --extract-status.
78649         (func_usage): Document it.
78650         (sed_extract_prog): Recognize it.
78651         (func_get_status): New function.
78653 2008-10-30  Simon Josefsson  <simon@josefsson.org>
78655         * modules/sockets (License): Change from LGPL to LGPLv2+.
78657 2008-10-28  Simon Josefsson  <simon@josefsson.org>
78659         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
78661 2008-10-28  Simon Josefsson  <simon@josefsson.org>
78663         * MODULES.html.sh (Support for systems lacking POSIX:2001):
78664         Mention times and sys_times.
78665         * modules/sys_times, modules/sys_times-tests: New modules.
78666         * modules/times, modules/times-tests: Likewise
78667         * m4/sys_times_h.m4: New file.
78668         * lib/sys_times.in.h: Likewise
78669         * lib/times.c: Likewise.
78670         * tests/test-sys_times.c: Likewise.
78671         * tests/test-times.c: Likewise.
78672         * doc/posix-headers/sys_times.texi: Update.
78673         * doc/posix-functions/times.texi: Update.
78675 2008-10-28  Jim Meyering  <meyering@redhat.com>
78677         * modules/tempname (Depends-on): Add lstat.
78679         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
78681 2008-10-28  Simon Josefsson  <simon@josefsson.org>
78683         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
78684         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
78685         using idiom used elsewhere in gnulib.
78687 2008-10-27  Jim Meyering  <meyering@redhat.com>
78689         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
78691 2008-10-27  Simon Josefsson  <simon@josefsson.org>
78693         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
78694         TESTS_ENVIRONMENT, for shell scripts that needs to call built
78695         programs.
78696         * tests/test-argp-2.sh: Use $EXEEXT when needed.
78698 2008-10-27  Simon Josefsson  <simon@josefsson.org>
78700         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
78702 2008-10-27  Bruno Haible  <bruno@clisp.org>
78704         * tests/test-lstat.c: Include <stdio.h>.
78706 2008-10-27  Simon Josefsson  <simon@josefsson.org>
78708         * modules/lstat-tests: New module.
78709         * tests/test-lstat.c: New file.
78711 2008-10-26  Jim Meyering  <meyering@redhat.com>
78713         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
78715 2008-10-26  Simon Josefsson  <simon@josefsson.org>
78716             Bruno Haible  <bruno@clisp.org>
78718         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
78719         * modules/configmake (Include): Add a note that the include must come
78720         after all system headers.
78721         * lib/javaversion.c: Include configmake.h after all other includes.
78723 2008-10-26  Bruno Haible  <bruno@clisp.org>
78725         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
78726         HAVE_STRUCT_RANDOM_DATA to 1.
78727         (gl_STDLIB_H): Simplify.
78729 2008-10-26  Simon Josefsson  <simon@josefsson.org>
78731         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
78732         substitute HAVE_STRUCT_RANDOM_DATA.
78733         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
78734         random_data.
78735         * modules/stdlib (Makefile.am): Substitute
78736         HAVE_STRUCT_RANDOM_DATA.
78738 2008-10-26  Simon Josefsson  <simon@josefsson.org>
78740         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
78741         * doc/gnulib-intro.texi (Copyright): Likewise.
78743 2008-10-26  Simon Josefsson  <simon@josefsson.org>
78745         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
78746         findings.
78748 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
78749             Bruno Haible  <bruno@clisp.org>
78751         * lib/unistd.in.h: Include <winsock2.h>.
78752         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
78753         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
78754         Provide dummy declarations.
78755         (gethostname): Override.
78756         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
78757         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
78758         gl_PREREQ_SYS_H_WINSOCK2.
78759         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
78760         * doc/posix-functions/gethostname.texi: More details.
78762 2008-10-25  Bruno Haible  <bruno@clisp.org>
78764         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
78765         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
78766         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
78768         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
78769         here ...
78770         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
78771         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
78772         gl_UNISTD_H_DEFAULTS.
78774 2008-10-25  Eric Blake  <ebb9@byu.net>
78776         signbit: avoid spurious compiler failure
78777         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
78778         declarations inside function.
78780 2008-10-24  Simon Josefsson  <simon@josefsson.org>
78781             Bruno Haible  <bruno@clisp.org>
78783         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
78784         * modules/random_r (Depends-on): Add stdint.
78786 2008-10-24  Bruno Haible  <bruno@clisp.org>
78788         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
78789         Eggert.
78790         * modules/strerror (License): Likewise.
78792 2008-10-24  Jim Meyering  <meyering@redhat.com>
78794         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
78795         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
78797 2008-10-24  Eric Blake  <ebb9@byu.net>
78799         getgroups: fix compilation when getgroups is available
78800         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
78801         but with <config.h> override of getgroups disabled.
78803 2008-10-24  Simon Josefsson  <simon@josefsson.org>
78805         * doc/gnulib.texi (Header files): Add note about C++ problems.
78806         Explained by Bruno Haible <bruno@clisp.org>.
78808 2008-10-23  Bruno Haible  <bruno@clisp.org>
78810         Define a dummy SA_NODEFER macro on Interix.
78811         * lib/signal.in.h (SA_NODEFER): Define fallback.
78812         Reported by Aleksey Cheusov <cheusov@tut.by> via
78813         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
78815 2008-10-23  Bruno Haible  <bruno@clisp.org>
78817         * modules/freadahead (License): Change to LGPLv2+.
78818         Suggested by Simon Josefsson.
78820 2008-10-23  Jim Meyering  <meyering@redhat.com>
78822         random_r: new module
78823         * modules/random_r: New file.
78824         * m4/random_r.m4: New file.
78825         * lib/random_r.c: New file, from glibc.
78826         * modules/random_r-tests: New file.
78827         * tests/test-random_r.c: New file.
78828         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
78829          Declare.
78830         (RAND_MAX): Define.
78831         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
78832         * modules/stdlib: Substitute them, too.
78833         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
78834         * doc/glibc-functions/initstate_r.texi: Mention the new module.
78835         * doc/glibc-functions/random_r.texi: Likewise.
78836         * doc/glibc-functions/setstate_r.texi: Likewise.
78837         * doc/glibc-functions/srandom_r.texi: Likewise.
78838         * config/srclist.txt: Mention it.
78840 2008-10-23  David Lutterkort  <lutter@redhat.com>
78842         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
78843         link requirement
78845 2008-10-23  Jim Meyering  <meyering@redhat.com>
78847         selinux-h: mark parameters of stub functions as intentionally unused
78848         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
78849         * lib/se-context.in.h: Likewise.
78851 2008-10-22  Simon Josefsson  <simon@josefsson.org>
78853         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
78855 2008-10-22  Simon Josefsson  <simon@josefsson.org>
78857         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
78859 2008-10-22  Eric Blake  <ebb9@byu.net>
78861         glthread/thread: avoid compiler warning
78862         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
78863         Add unreachable abort to silence compiler.
78865 2008-10-22  Eric Blake  <ebb9@byu.net>
78867         netdb: also supply struct addrinfo for cygwin 1.5.x
78868         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
78869         older cygwin.
78870         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
78871         cygwin.
78872         * doc/posix-headers/netdb.texi (netdb.h): Document this.
78874 2008-10-22  Bruno Haible  <bruno@clisp.org>
78876         * users.txt: Update entry about pspp.
78878 2008-10-21  Bruno Haible  <bruno@clisp.org>
78880         Simplification.
78881         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
78882         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
78884         Simplification.
78885         * lib/ioctl.c (ioctl): Don't undefine.
78886         * lib/socket.c (socket): Don't undefine.
78888         Remove unused module indicator macros.
78889         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
78890         GNULIB_$1 as a C macro.
78892         * doc/posix-functions/close.texi: Undo last change.
78893         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
78894         Windows platforms.
78896 2008-10-21  Bruno Haible  <bruno@clisp.org>
78898         Add gethostname() declaration to <unistd.h>.
78899         * lib/unistd.in.h (gethostname): New declaration.
78900         * lib/gethostname.c: Include <unistd.h>.
78901         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
78902         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
78903         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
78904         and HAVE_GETHOSTNAME.
78905         * modules/gethostname (Depends-on): Add unistd.
78906         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
78907         (Include): Specify <unistd.h>.
78908         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
78909         HAVE_GETHOSTNAME.
78910         * tests/test-gethostname.c: Include <unistd.h> first.
78912 2008-10-21  Bruno Haible  <bruno@clisp.org>
78914         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
78915         * modules/select-tests (Depends-on): Likewise.
78916         Reported by Simon Josefsson.
78918 2008-10-21  Simon Josefsson  <simon@josefsson.org>
78920         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
78921         * lib/accept.c: New file, based on winsock.c.
78922         * lib/bind.c: New file, based on winsock.c.
78923         * lib/connect.c: New file, based on winsock.c.
78924         * lib/getpeername.c: New file, based on winsock.c.
78925         * lib/getsockname.c: New file, based on winsock.c.
78926         * lib/getsockopt.c: New file, based on winsock.c.
78927         * lib/ioctl.c: New file, based on winsock.c.
78928         * lib/listen.c: New file, based on winsock.c.
78929         * lib/recv.c: New file, based on winsock.c.
78930         * lib/recvfrom.c: New file, based on winsock.c.
78931         * lib/send.c: New file, based on winsock.c.
78932         * lib/sendto.c: New file, based on winsock.c.
78933         * lib/setsockopt.c: New file, based on winsock.c.
78934         * lib/shutdown.c: New file, based on winsock.c.
78935         * lib/socket.c: New file, based on winsock.c.
78936         * lib/w32sock.h: New file, based on winsock.c.
78937         * lib/winsock.c: Remove file.
78938         * modules/accept: Likewise.
78939         * modules/bind: Likewise.
78940         * modules/connect: Likewise.
78941         * modules/getpeername: Likewise.
78942         * modules/getsockname: Likewise.
78943         * modules/getsockopt: Likewise.
78944         * modules/ioctl: Likewise.
78945         * modules/listen: Likewise.
78946         * modules/recv: Likewise.
78947         * modules/recvfrom: Likewise.
78948         * modules/send: Likewise.
78949         * modules/sendto: Likewise.
78950         * modules/setsockopt: Likewise.
78951         * modules/shutdown: Likewise.
78952         * modules/socket: Use socket.c instead of winsock.c.
78953         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
78954         * doc/posix-functions/accept.texi: Doc fix.
78955         * doc/posix-functions/bind.texi: Doc fix.
78956         * doc/posix-functions/close.texi: Doc fix.
78957         * doc/posix-functions/connect.texi: Doc fix.
78958         * doc/posix-functions/getpeername.texi: Doc fix.
78959         * doc/posix-functions/getsockname.texi: Doc fix.
78960         * doc/posix-functions/getsockopt.texi: Doc fix.
78961         * doc/posix-functions/ioctl.texi: Doc fix.
78962         * doc/posix-functions/listen.texi: Doc fix.
78963         * doc/posix-functions/recv.texi: Doc fix.
78964         * doc/posix-functions/recvfrom.texi: Doc fix.
78965         * doc/posix-functions/send.texi: Doc fix.
78966         * doc/posix-functions/sendto.texi: Doc fix.
78967         * doc/posix-functions/setsockopt.texi: Doc fix.
78968         * doc/posix-functions/shutdown.texi: Doc fix.
78969         * doc/posix-functions/socket.texi: Doc fix.
78971 2008-10-20  Bruno Haible  <bruno@clisp.org>
78973         Take into account the role of SIGABRT_COMPAT on Windows 2008.
78974         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
78975         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
78976         as an alias for SIGABRT.
78977         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
78978         (sigaction): Map it to SIGABRT.
78979         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
78981 2008-10-20  Bruno Haible  <bruno@clisp.org>
78983         * lib/fts.c: Don't include lstat.h.
78984         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
78986         Move the lstat() declaration to <sys/stat.h>.
78987         * lib/lstat.h: Remove file.
78988         * lib/sys_stat.in.h: Add special invocation convention.
78989         (lstat): New declaration.
78990         * lib/lstat.c (orig_lstat): New function.
78991         (rpl_lstat): Use orig_lstat instead of lstat.
78992         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
78993         AC_C_INLINE. Set REPLACE_LSTAT.
78994         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
78995         and REPLACE_LSTAT.
78996         * modules/lstat (Files): Remove lib/lstat.h.
78997         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
78998         (Include): Specify <sys/stat.h> instead of lstat.h.
78999         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
79000         REPLACE_LSTAT.
79001         * NEWS: Mention the change.
79003 2008-10-20  Bruno Haible  <bruno@clisp.org>
79005         * modules/posix_spawn-tests: New file.
79006         * tests/test-posix_spawn3.c: New file.
79008 2008-10-20  Bruno Haible  <bruno@clisp.org>
79010         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
79011         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
79012         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
79013         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
79014         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
79016 2008-10-20  Bruno Haible  <bruno@clisp.org>
79018         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
79019         of posix_spawn on AIX 5.3.
79021 2008-10-20  Bruno Haible  <bruno@clisp.org>
79023         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
79025 2008-10-20  Bruno Haible  <bruno@clisp.org>
79027         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
79028         of AC_LANG_PROGRAM.
79030 2008-10-20  Simon Josefsson  <simon@josefsson.org>
79032         * lib/netdb.in.h: Don't define GNU specific constants until they
79033         are supported or needed.  Reported by Bruno Haible
79034         <bruno@clisp.org>.
79036 2008-10-20  Simon Josefsson  <simon@josefsson.org>
79038         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
79040 2008-10-20  Simon Josefsson  <simon@josefsson.org>
79042         * lib/getaddrinfo.h: Remove file.
79043         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
79044         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
79045         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
79046         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
79047         * modules/netdb: Substitute GNULIB_GETADDRINFO.
79048         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
79049         * tests/test-getaddrinfo.c: Likewise.
79050         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
79051         * NEWS: Mention change.
79053 2008-10-19  Bruno Haible  <bruno@clisp.org>
79055         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
79057 2008-10-19  Bruno Haible  <bruno@clisp.org>
79059         * lib/wait-process.c: Include simply <sys/wait.h>.
79060         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
79061         WIFSTOPPED): Remove fallback definitions.
79062         * modules/wait-process (Depends-on): Add sys_wait.
79064         New module 'sys_wait'.
79065         * modules/sys_wait: New file.
79066         * lib/sys_wait.in.h: New file, partially copied from
79067         lib/wait-process.c.
79068         * m4/sys_wait_h.m4: New file.
79069         * doc/posix-headers/sys_wait.texi: Mention the new module.
79071 2008-10-19  Bruno Haible  <bruno@clisp.org>
79073         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
79075 2008-10-19  Bruno Haible  <bruno@clisp.org>
79077         Assume that waitpid() fills an 'int' status, not a 'union wait'.
79078         * lib/wait-process.c (WAIT_T): Remove type.
79079         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
79080         (wait_subprocess): Update.
79082 2008-10-19  Bruno Haible  <bruno@clisp.org>
79084         New module 'atoll'.
79085         * modules/atoll: New file.
79086         * lib/stdlib.in.h (atoll): New declaration.
79087         * lib/atoll.c: New file, from glibc with modifications.
79088         * m4/atoll.m4: New file.
79089         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
79090         HAVE_ATOLL.
79091         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
79092         * doc/posix-functions/atoll.texi: Mention the new module.
79094 2008-10-19  Bruno Haible  <bruno@clisp.org>
79096         Add strtoull() declaration to <stdlib.h>.
79097         * lib/stdlib.in.h (strtoull): New declaration.
79098         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
79099         Set HAVE_STRTOULL.
79100         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
79101         HAVE_STRTOULL.
79102         * modules/strtoull (Depends-on): Add stdlib.
79103         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
79104         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
79105         HAVE_STRTOULL.
79107 2008-10-19  Bruno Haible  <bruno@clisp.org>
79109         Add strtoll() declaration to <stdlib.h>.
79110         * lib/stdlib.in.h (strtoll): New declaration.
79111         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
79112         Set HAVE_STRTOLL.
79113         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
79114         HAVE_STRTOLL.
79115         * modules/strtoll (Depends-on): Add stdlib.
79116         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
79117         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
79119 2008-10-19  Bruno Haible  <bruno@clisp.org>
79121         * modules/bcopy (Depends-on): Add strings.
79122         (Include): Specify <strings.h>.
79124 2008-10-19  Bruno Haible  <bruno@clisp.org>
79126         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
79128 2008-10-19  Bruno Haible  <bruno@clisp.org>
79130         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
79131         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
79132         mingw.
79134 2008-10-19  Bruno Haible  <bruno@clisp.org>
79136         * lib/atanl.c: Don't include isnanl.h.
79137         * lib/cosl.c: Likewise.
79138         * lib/ldexpl.c: Likewise.
79139         * lib/logl.c: Likewise.
79140         * lib/sinl.c: Likewise.
79141         * lib/sqrtl.c: Likewise.
79142         * lib/tanl.c: Likewise.
79144         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
79145         * lib/isnanf.h: Remove file.
79146         * lib/isnand.h: Remove file.
79147         * lib/isnanl.h: Remove file.
79148         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
79149         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
79150         macros.
79151         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
79152         HAVE_ISNANF, don't define it as a C macro.
79153         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
79154         HAVE_ISNAND, don't define it as a C macro.
79155         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
79156         HAVE_ISNANL, don't define it as a C macro.
79157         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
79158         HAVE_ISNAN[FDL].
79159         * modules/isnanf (Files): Remove lib/isnanf.h.
79160         (Depends-on): Add math.
79161         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
79162         (Include): Specify <math.h> instead of isnanf.h.
79163         * modules/isnand (Files): Remove lib/isnand.h.
79164         (Depends-on): Add math.
79165         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
79166         (Include): Specify <math.h> instead of isnand.h.
79167         * modules/isnanl (Files): Remove lib/isnanl.h.
79168         (Depends-on): Add math.
79169         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
79170         (Include): Specify <math.h> instead of isnanl.h.
79171         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
79172         HAVE_ISNAN[FDL].
79173         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
79174         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
79175         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
79176         * NEWS: Mention the change.
79178 2008-10-18  Bruno Haible  <bruno@clisp.org>
79180         Add getusershell(), setusershell(), endusershell() declarations to
79181         <unistd.h>.
79182         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
79183         declarations.
79184         * lib/getusershell.c: Include unistd.h.
79185         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
79186         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
79187         HAVE_GETUSERSHELL.
79188         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
79189         and HAVE_GETUSERSHELL.
79190         * modules/getusershell (Depends-on): Add unistd, extensions.
79191         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
79192         (Include): Specify <unistd.h>.
79193         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
79194         HAVE_GETUSERSHELL.
79196 2008-10-18  Bruno Haible  <bruno@clisp.org>
79198         Add a getloadavg() declaration to <stdlib.h>.
79199         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
79200         getloadavg declaration.
79201         (getloadavg): New declaration.
79202         * lib/getloadavg.c: Include <stdlib.h> first.
79203         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
79204         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
79205         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
79206         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
79207         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
79208         * modules/getloadavg (Depends-on): Add stdlib, extensions.
79209         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
79210         (Include): Specify <stdlib.h>.
79211         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
79212         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
79214 2008-10-18  Bruno Haible  <bruno@clisp.org>
79216         * lib/dirchownmod.c: Don't include lchmod.h.
79218         Move the lchmod() declaration to <sys/stat.h>.
79219         * lib/lchmod.h: Remove file.
79220         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
79221         (lchmod): New declaration, moved here from lib/lchown.h.
79222         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
79223         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
79224         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
79225         and HAVE_LCHMOD.
79226         * modules/lchmod (Files): Remove lib/lchmod.h.
79227         (Depends-on): Add sys_stat, extensions.
79228         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
79229         (Include): Specify <sys/stat.h> instead of lchmod.h.
79230         * modules/sys_stat (Depends-on): Add link-warning.
79231         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
79232         definition of GL_LINK_WARNING.
79233         * NEWS: Mention the change.
79235 2008-10-18  Bruno Haible  <bruno@clisp.org>
79237         * lib/fchdir.c: Don't include dirfd.h.
79238         * lib/fts.c: Likewise.
79239         * lib/getcwd.c: Likewise.
79240         * lib/glob.c: Likewise.
79242         Move the dirfd() declaration to <dirent.h>.
79243         * lib/dirfd.h: Remove file.
79244         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
79245         (dirfd): New declaration.
79246         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
79247         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
79248         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
79249         HAVE_DECL_DIRFD.
79250         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
79251         HAVE_DECL_DIRFD.
79252         * modules/dirfd (Files): Remove lib/dirfd.h.
79253         (Depends-on): Add dirent, extensions.
79254         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
79255         (Include): Specify <dirent.h> instead of dirfd.h.
79256         * modules/dirent (Depends-on): Add link-warning.
79257         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
79258         definition of GL_LINK_WARNING.
79259         * NEWS: Mention the change.
79261 2008-10-18  Bruno Haible  <bruno@clisp.org>
79263         Move the euidaccess() declaration to <unistd.h>.
79264         * lib/euidaccess.h: Remove file.
79265         * lib/unistd.in.h (euidaccess): New declaration.
79266         * lib/euidaccess.c: Don't include euidaccess.h.
79267         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
79268         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
79269         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
79270         and HAVE_EUIDACCESS.
79271         * modules/euidaccess (Files): Remove lib/euidaccess.h.
79272         (Depends-on): Add unistd.
79273         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
79274         (Include): Specify <unistd.h> instead of euidaccess.h.
79275         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
79276         HAVE_EUIDACCESS.
79277         * NEWS: Mention the change.
79279 2008-10-18  Bruno Haible  <bruno@clisp.org>
79281         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
79283         Move the getdomainname() declaration to <unistd.h>.
79284         * lib/getdomainname.h: Remove file.
79285         * lib/unistd.in.h (getdomainname): New declaration.
79286         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
79287         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
79288         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
79289         HAVE_GETDOMAINNAME.
79290         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
79291         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
79292         * modules/getdomainname (Files): Remove lib/getdomainname.h.
79293         (Depends-on): Add unistd, extensions.
79294         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
79295         (Includes): Specify <unistd.h> instead of getdomainname.h.
79296         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
79297         HAVE_GETDOMAINNAME.
79298         * NEWS: Mention the change.
79300 2008-10-18  Bruno Haible  <bruno@clisp.org>
79302         * modules/dirent: New file.
79303         * m4/dirent_h.m4: New file.
79304         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
79305         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
79306         * modules/fchdir (Files): Remove lib/dirent.in.h.
79307         (Depends-on): Add dirent.
79308         (Makefile.am): Move rules to modules/dirent.
79309         * doc/posix-headers/dirent.texi: Mention the new module.
79311 2008-10-18  Bruno Haible  <bruno@clisp.org>
79313         Avoid -Wunused-parameter warnings in public gnulib header files.
79314         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
79315         macro.
79316         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
79318 2008-10-18  Bruno Haible  <bruno@clisp.org>
79320         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
79321         * doc/glibc-functions/error.texi: Mention the module 'error'.
79322         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
79323         * doc/glibc-functions/getdomainname.texi: Mention the module
79324         'getdomainname'.
79325         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
79326         * doc/glibc-functions/getpagesize.texi: Mention the module
79327         'getpagesize'.
79328         * doc/glibc-functions/getusershell.texi: Mention the module
79329         'getusershell'.
79330         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
79331         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
79332         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
79333         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
79334         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
79335         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
79336         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
79337         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
79338         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
79339         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
79340         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
79341         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
79342         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
79343         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
79345 2008-10-17  Bruno Haible  <bruno@clisp.org>
79347         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
79348         HP-UX and IRIX, use -0.0L.
79349         * tests/test-ceill.c (minus_zero): Likewise.
79350         * tests/test-floorl.c (minus_zero): Likewise.
79351         * tests/test-frexpl.c (minus_zero): Likewise.
79352         * tests/test-isnan.c (minus_zerol): Likewise.
79353         * tests/test-isnanl.h (minus_zero): Likewise.
79354         * tests/test-ldexpl.c (minus_zero): Likewise.
79355         * tests/test-roundl.c (minus_zero): Likewise.
79356         * tests/test-signbit.c (minus_zerol): Likewise.
79357         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
79358         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
79359         * tests/test-truncl.c (minus_zero): Likewise.
79360         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
79361         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
79362         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
79363         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
79365 2008-10-17  Bruno Haible  <bruno@clisp.org>
79367         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
79368         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
79369         that it gets activated only for gcc >= 3.0.
79370         * lib/dirent.in.h: Likewise.
79371         * lib/errno.in.h: Likewise.
79372         * lib/fcntl.in.h: Likewise.
79373         * lib/float.in.h: Likewise.
79374         * lib/iconv.in.h: Likewise.
79375         * lib/inttypes.in.h: Likewise.
79376         * lib/locale.in.h: Likewise.
79377         * lib/math.in.h: Likewise.
79378         * lib/netdb.in.h: Likewise.
79379         * lib/netinet_in.in.h: Likewise.
79380         * lib/search.in.h: Likewise.
79381         * lib/signal.in.h: Likewise.
79382         * lib/spawn.in.h: Likewise.
79383         * lib/stdarg.in.h: Likewise.
79384         * lib/stdint.in.h: Likewise.
79385         * lib/stdio.in.h: Likewise.
79386         * lib/stdlib.in.h: Likewise.
79387         * lib/string.in.h: Likewise.
79388         * lib/strings.in.h: Likewise.
79389         * lib/sys_file.in.h: Likewise.
79390         * lib/sys_ioctl.in.h: Likewise.
79391         * lib/sys_select.in.h: Likewise.
79392         * lib/sys_socket.in.h: Likewise.
79393         * lib/sys_stat.in.h: Likewise.
79394         * lib/sys_time.in.h: Likewise.
79395         * lib/sysexits.in.h: Likewise.
79396         * lib/time.in.h: Likewise.
79397         * lib/unistd.in.h: Likewise.
79398         * lib/wchar.in.h: Likewise.
79399         * lib/wctype.in.h: Likewise.
79400         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
79402 2008-10-17  Jim Meyering  <meyering@redhat.com>
79404         ignore-value: don't depend on inline module
79405         * modules/ignore-value (Depends-on): Remove 'inline'.
79406         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
79407         Suggestion from Bruno Haible.
79409 2008-10-17  Bruno Haible  <bruno@clisp.org>
79411         New implementation of condition variables for Win32.
79412         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
79413         (gl_linked_waitqueue_t): New type.
79414         (gl_cond_t): Use it.
79415         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
79416         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
79417         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
79418         (glthread_cond_init_func, glthread_cond_wait_func,
79419         glthread_cond_timedwait_func, glthread_cond_signal_func,
79420         glthread_cond_broadcast_func, glthread_cond_destroy_func):
79421         Reimplemented on the basis of gl_linked_waitqueue_t.
79422         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
79423         gl_waitqueue_t.
79424         (gl_rwlock_t): Update.
79425         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
79427 2008-10-17  Simon Josefsson  <simon@josefsson.org>
79429         * modules/recvfrom (Depends-on): Add dependency on getpeername.
79430         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
79432 2008-10-17  Jim Meyering  <meyering@redhat.com>
79434         ignore-value: new module
79435         * modules/ignore-value: New file.
79436         * lib/ignore-value.h: New file.
79437         * MODULES.html.sh (Compiler warning management): New section,
79438         just for this module.  More to come.
79440 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
79442         open-safer.c: avoid 'signed and unsigned in conditional...' warning
79443         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
79444         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
79446 2008-10-16  Jim Meyering  <meyering@redhat.com>
79448         openat-die.c: avoid 'no previous prototype' warning
79449         * lib/openat-die.c: Include "openat.h".
79450         Reported by Reuben Thomas <rrt@sc3d.org>.
79452 2008-10-16  Simon Josefsson  <simon@josefsson.org>
79454         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
79455         * lib/netdb.in.h: Fix typo.
79456         Reported by Bruno Haible  <bruno@clisp.org>
79458         * lib/netdb.in.h: Include sys/socket.h for platforms without
79459         netdb.h, to get structures like hostent on MinGW.
79460         * modules/netdb (Depends-on): Add sys_socket.
79462 2008-10-15  Simon Josefsson  <simon@josefsson.org>
79464         * modules/netdb, modules/netdb-tests: New file.
79465         * m4/netdb_h.m4: New file.
79466         * lib/netdb.in.h: Add, currently just an empty file pending
79467         definitions.
79468         * tests/test-netdb.c: New file.
79469         * doc/posix-headers/netdb.texi: Mention that we replace it if
79470         needed.
79471         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79472         netdb.
79474 2008-10-15  Simon Josefsson  <simon@josefsson.org>
79476         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
79477         with code.
79479 2008-10-13  Bruno Haible  <bruno@clisp.org>
79481         * lib/glthread/cond.c (glthread_cond_wait_func,
79482         glthread_cond_timedwait_func): Add a comment.
79484 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79486         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
79487         * tests/test-select.c: Likewise,
79489 2008-10-13  Bruno Haible  <bruno@clisp.org>
79491         * lib/glthread/cond.c (glthread_cond_wait_func,
79492         glthread_cond_timedwait_func): Fix variable name.
79493         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
79495 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
79497         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
79498         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
79499         struct sockaddr.sa_len.
79500         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
79502 2008-10-13  Simon Josefsson  <simon@josefsson.org>
79504         * build-aux/pmccabe2html: Add css and css_url parameters.
79506 2008-10-12  Bruno Haible  <bruno@clisp.org>
79508         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
79509         calling aclx_get.
79510         Reported by Rainer Tammer <tammer@tammer.net>.
79512 2008-10-12  Bruno Haible  <bruno@clisp.org>
79514         Use msvcrt aware primitives for creation/termination of Win32 threads.
79515         * lib/glthread/thread.c: Include <process.h>.
79516         (glthread_create_func): Use _beginthreadex instead of CreateThread.
79517         (wrapper_func): Update signature.
79518         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
79520 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79521             Bruno Haible  <bruno@clisp.org>
79523         Provide a Win32 implementation of the 'cond' module.
79524         * lib/glthread/cond.h [USE_WIN32]: New implementation.
79525         * lib/glthread/cond.c (glthread_cond_init_func,
79526         glthread_cond_wait_func, glthread_cond_timedwait_func,
79527         glthread_cond_signal_func, glthread_cond_broadcast_func,
79528         glthread_cond_destroy_func) [USE_WIN32]: New functions.
79529         * modules/cond (Dependencies): Add gettimeofday.
79531 2008-10-11  Bruno Haible  <bruno@clisp.org>
79533         Make sleep work on older versions of mingw.
79534         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
79535         only whether it exists.
79536         * doc/posix-functions/sleep.texi: Mention the problem with older
79537         versions of mingw.
79539 2008-10-11  Bruno Haible  <bruno@clisp.org>
79541         New module 'shutdown'.
79542         * modules/shutdown: New file.
79543         * lib/sys_socket.in.h (shutdown): New declaration.
79544         * lib/winsock.c (shutdown): New function.
79545         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
79546         GNULIB_SHUTDOWN.
79547         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
79548         * doc/posix-functions/shutdown.texi: Document the new module.
79550 2008-10-11  Jim Meyering  <meyering@redhat.com>
79552         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
79554 2008-10-11  Bruno Haible  <bruno@clisp.org>
79556         New module 'fclose'.
79557         * modules/fclose: New file.
79558         * lib/stdio.in.h (fclose): New declaration.
79559         * lib/fclose.c: New file.
79560         * m4/fclose.m4: New file.
79561         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
79562         REPLACE_FCLOSE.
79563         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
79564         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
79565         REPLACE_FCLOSE.
79566         * modules/close (Depends-on): fclose.
79567         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
79569 2008-10-11  Bruno Haible  <bruno@clisp.org>
79571         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
79572         set errno and don't call _close.
79574 2008-10-10  Bruno Haible  <bruno@clisp.org>
79576         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
79577         ACL, not afterwards. Fixes test failure on Cygwin.
79579 2008-10-09  Ben Pfaff  <blp@gnu.org>
79581         * build-aux/announce-gen: Fix gnulib version related part of usage
79582         message.  Die with a useful error message if no tarballs are
79583         found.
79585 2008-10-10  Jim Meyering  <meyering@redhat.com>
79587         bootstrap: use git's --depth=N option only if it's supported
79588         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
79589         recognize the --depth option.  Reported by Pádraig Brady.
79591 2008-10-09  Bruno Haible  <bruno@clisp.org>
79593         New module 'ioctl'.
79594         * modules/ioctl: New file.
79595         * lib/sys_socket.in.h (ioctl): Remove declaration.
79596         * lib/winsock.c: Include <sys/ioctl.h>.
79597         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
79598         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
79599         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
79600         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
79601         * doc/posix-functions/ioctl.texi: Mention the new module.
79603 2008-10-09  Bruno Haible  <bruno@clisp.org>
79605         New module 'sys_ioctl'.
79606         * lib/sys_ioctl.in.h: New file.
79607         * m4/sys_ioctl_h.m4: New file.
79608         * modules/sys_ioctl: New file.
79609         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
79611 2008-10-09  Bruno Haible  <bruno@clisp.org>
79613         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
79614         * lib/winsock.c: Include <stdarg.h>.
79615         (rpl_ioctl): Change to second argument 'int' and then varargs.
79617 2008-10-09  Bruno Haible  <bruno@clisp.org>
79619         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
79620         when the sys_socket module is present and the system has <winsock2.h>.
79622 2008-10-09  Bruno Haible  <bruno@clisp.org>
79624         * doc/posix-functions/close.texi: Mention module 'close' instead of
79625         module 'sys_socket'.
79627 2008-10-09  Bruno Haible  <bruno@clisp.org>
79629         * doc/glibc-headers/sys_ioctl.texi: New file.
79630         * doc/gnulib.texi: Include it.
79632 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
79633             Bruno Haible  <bruno@clisp.org>
79635         Combine the two replacements of 'close'.
79636         * lib/sys_socket.in.h (close): Define to a reminder to include
79637         <unistd.h>.
79638         (_gl_close_fd_maybe_socket): New declaration.
79639         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
79640         * lib/winsock.c (close): Remove undefinition.
79641         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
79642         needed for the gnulib module 'close'.
79643         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
79644         define to an error symbol or to a warning, if suitable.
79645         * lib/close.c: Include <sys/socket.h>.
79646         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
79647         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
79648         UNISTD_H_HAVE_WINSOCK2_H.
79649         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
79650         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
79651         UNISTD_H_HAVE_WINSOCK2_H.
79652         * modules/sys_socket (Files): Add m4/unistd_h.m4.
79653         (configure.ac): Set a module indicator.
79654         (Makefile.am): Substitute GNULIB_CLOSE.
79655         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
79656         * modules/poll-tests (Depends-on): Add close.
79657         * modules/select-tests (Depends-on): Likewise.
79659 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
79660             Bruno Haible  <bruno@clisp.org>
79662         New module 'close'.
79663         * modules/close: New file.
79664         * lib/unistd.in.h (close): Move declaration out of the
79665         FCHDIR_REPLACEMENT scope.
79666         (_gl_unregister_fd): New declaration.
79667         * lib/close.c: New file.
79668         * lib/fchdir.c (rpl_close): Remove function.
79669         * m4/close.m4: New file.
79670         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
79671         close.
79672         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
79673         REPLACE_CLOSE.
79674         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
79675         REPLACE_CLOSE.
79676         * modules/fchdir (Depends-on): Add close.
79678 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
79679             Bruno Haible  <bruno@clisp.org>
79681         * lib/fcntl.in.h (open): Simplify conditionals.
79682         (_gl_register_fd): New declaration.
79683         * lib/fchdir.c (rpl_open): Remove function.
79684         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
79685         also.
79686         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
79687         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
79688         open.
79690 2008-10-09  Jim Meyering  <meyering@redhat.com>
79692         GNUmakefile: use the more name-space-friendly "_version"
79693         * top/GNUmakefile (_dummy): Update.
79694         (_version): Rename from "version".
79696 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
79697             Bruno Haible  <bruno@clisp.org>
79699         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
79700         rpl_close.
79701         (_gl_register_fd): New function, extracted from rpl_open.
79702         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
79703         (rpl_open, rpl_opendir): Use _gl_register_fd.
79705 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
79707         Fix organization of 'open' replacement.
79708         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
79709         (gl_FUNC_OPEN): Use it.
79710         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
79712 2008-10-08  Bruno Haible  <bruno@clisp.org>
79714         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
79716 2008-10-08  Simon Josefsson  <simon@josefsson.org>
79718         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
79719         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
79720         listen).
79722 2008-10-08  Eric Blake  <ebb9@byu.net>
79724         GNUmakefile: add 'make version' target
79725         * top/GNUmakefile (_curr-ver): Split version update rules...
79726         (version): ...into a target.
79728 2008-10-07  Bruno Haible  <bruno@clisp.org>
79730         Use a more portable replacement expression for -0.0L.
79731         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
79732         instead of -0.0L. Fix m4 quotation.
79734         * tests/test-signbit.c: Include <float.h>.
79735         (minus_zero): New variable.
79736         (test_signbitl): Use minus_zero instead of -zero.
79737         * modules/signbit-tests (Depends-on): Add float.
79739         * tests/test-ceill.c: Include <float.h>.
79740         (zero): Remove variable.
79741         (minus_zero): New variable.
79742         (main): Use minus_zero instead of -zero.
79743         * modules/ceill-tests (Depends-on): Add float.
79745         * tests/test-floorl.c: Include <float.h>.
79746         (zero): Remove variable.
79747         (minus_zero): New variable.
79748         (main): Use minus_zero instead of -zero.
79749         * modules/floorl-tests (Depends-on): Add float.
79751         * tests/test-roundl.c: Include <float.h>.
79752         (zero): Remove variable.
79753         (minus_zero): New variable.
79754         (main): Use minus_zero instead of -zero.
79755         * modules/roundl-tests (Depends-on): Add float.
79757         * tests/test-truncl.c: Include <float.h>.
79758         (zero): Remove variable.
79759         (minus_zero): New variable.
79760         (main): Use minus_zero instead of -zero.
79761         * modules/truncl-tests (Depends-on): Add float.
79763         * tests/test-frexpl.c (zero): Remove variable.
79764         (minus_zero): New variable.
79765         (main): Use minus_zero instead of -zero.
79766         * modules/frexpl-tests (Depends-on): Add float.
79768         * tests/test-isnan.c (zerol): Remove variable.
79769         (minus_zerol): New variable.
79770         (test_long_double): Use minus_zerol instead of -zerol.
79771         * modules/isnan-tests (Depends-on): Add float.
79773         * tests/test-isnanl.h (zero): Remove variable.
79774         (minus_zero): New variable.
79775         (main): Use minus_zero instead of -zero.
79776         * modules/isnanl-nolibm-tests (Depends-on): Add float.
79777         * modules/isnanl-tests (Depends-on): Add float.
79779         * tests/test-ldexpl.c (zero): Remove variable.
79780         (minus_zero): New variable.
79781         (main): Use minus_zero instead of -zero.
79782         * modules/ldexpl-tests (Depends-on): Add float.
79784         * tests/test-snprintf-posix.h (zerol): Remove variable.
79785         (minus_zerol): New variable.
79786         (test_function): Use minus_zerol instead of -zerol.
79787         * modules/snprintf-posix-tests (Depends-on): Add float.
79788         * modules/vsnprintf-posix-tests (Depends-on): Add float.
79790         * tests/test-sprintf-posix.h (zerol): Remove variable.
79791         (minus_zerol): New variable.
79792         (test_function): Use minus_zerol instead of -zerol.
79793         * modules/sprintf-posix-tests (Depends-on): Add float.
79794         * modules/vsprintf-posix-tests (Depends-on): Add float.
79796         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
79797         (minus_zerol): New variable.
79798         (test_function): Use minus_zerol instead of -zerol.
79799         * modules/vasnprintf-posix-tests (Depends-on): Add float.
79801         * tests/test-vasprintf-posix.c (zerol): Remove variable.
79802         (minus_zerol): New variable.
79803         (test_function): Use minus_zerol instead of -zerol.
79804         * modules/vasprintf-posix-tests (Depends-on): Add float.
79806 2008-10-07  Simon Josefsson  <simon@josefsson.org>
79808         * MODULES.html.sh (Support for building documentation): Mention
79809         pmccabe2html.  Sort entries.
79811         Add pmccabe2html module, from gnupdf.
79812         * build-aux/pmccabe.css: New file.
79813         * build-aux/pmccabe2html: New file.
79814         * m4/pmccabe2html.m4: New file.
79815         * modules/pmccabe2html: New file.
79817 2008-10-07  Richard W.M. Jones  <rjones@redhat.com>
79819         flock: new module
79820         * MODULES.html.sh: Add to list of modules.
79821         * lib/flock.c: flock implementation for Windows and Unix systems
79822         which have fcntl.
79823         * doc/glibc-functions/flock.texi: Update documentation.
79824         * lib/sys_file.in.h: <sys/file.h> header file.
79825         * m4/flock.m4: M4 macros.
79826         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
79827         * modules/flock: flock module.
79828         * modules/flock-tests: flock tests module.
79829         * modules/sys_file: sys/file.h module.
79830         * tests/test-flock.c: test suite for flock.
79832 2008-10-06  Jim Meyering  <meyering@redhat.com>
79834         bootstrap: check for LT_INIT more portably still ;-)
79835         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
79836         Spotted by Bruno Haible.
79838 2008-10-06  Eric Blake  <ebb9@byu.net>
79840         test-signbit: avoid tripping Irix cc bug on -0.0L
79841         * tests/test-signbit.c (minus_zerol): Delete, and replace with
79842         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
79843         entire testsuite consistent and avoids an Irix 6.2 bug.
79845 2008-10-05  Bruno Haible  <bruno@clisp.org>
79846             Jim Meyering  <jim@meyering.net>
79848         Add an option for ignoring EPIPE during close_stdout.
79849         * lib/closeout.h: Include <stdbool.h>.
79850         (close_stdout_set_ignore_EPIPE): New declaration.
79851         * lib/closeout.c: Include <stdbool.h>.
79852         (ignore_EPIPE): New variable.
79853         (close_stdout_set_ignore_EPIPE): New function.
79854         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
79855         * lib/close-stream.c (close_stream): Mention the possible EPIPE
79856         failure.
79857         * modules/closeout (Depends-on): Add stdbool.
79859 2008-10-05  Bruno Haible  <bruno@clisp.org>
79861         * modules/accept: New file.
79862         * modules/bind: New file.
79863         * modules/connect: New file.
79864         * modules/getpeername: New file.
79865         * modules/getsockname: New file.
79866         * modules/getsockopt: New file.
79867         * modules/listen: New file.
79868         * modules/recv: New file.
79869         * modules/recvfrom: New file.
79870         * modules/send: New file.
79871         * modules/sendto: New file.
79872         * modules/setsockopt: New file.
79873         * modules/socket: New file.
79874         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
79875         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
79876         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
79877         the particular module is requested. Add a link warning when the
79878         particular module is not requested.
79879         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
79880         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
79881         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
79882         the particular module is requested.
79883         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
79884         gl_SYS_SOCKET_H_DEFAULTS): New macros.
79885         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
79886         * modules/sys_socket (Depends-on): Add link-warning.
79887         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
79888         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
79889         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
79890         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
79891         GL_LINK_WARNING.
79892         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
79893         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
79894         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
79895         * doc/posix-functions/getpeername.texi: Mention the new module
79896         'getpeername'.
79897         * doc/posix-functions/getsockname.texi: Mention the new module
79898         'getsockname'.
79899         * doc/posix-functions/getsockopt.texi: Mention the new module
79900         'getsockopt'.
79901         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
79902         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
79903         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
79904         * doc/posix-functions/send.texi: Mention the new module 'send'.
79905         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
79906         * doc/posix-functions/setsockopt.texi: Mention the new module
79907         'setsockopt'.
79908         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
79909         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
79910         listen, connect, accept.
79911         * modules/select-tests (Depends-on): Likewise.
79913 2008-10-05  Bruno Haible  <bruno@clisp.org>
79915         * lib/winsock.c (strerror): Remove unused #undef.
79916         (rpl_close): Remove unused local variable.
79918         * modules/sys_socket (Depends-on); Add errno.
79920 2008-10-05  Bruno Haible  <bruno@clisp.org>
79922         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
79923         (select): Add a link warning when the 'select' module is not used.
79924         * modules/sys_select (Depends-on): Add link-warning.
79925         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
79926         Suggested by Paolo Bonzini.
79928 2008-10-05  Jim Meyering  <meyering@redhat.com>
79930         bootstrap: check for LT_INIT more portably
79931         * build-aux/bootstrap: Avoid using grep -E, since it's not
79932         portable enough.  Suggestion from Bruno Haible.
79934 2008-10-05  Bruno Haible  <bruno@clisp.org>
79936         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
79937         as being fixed by gnulib.
79939 2008-10-05  Bruno Haible  <bruno@clisp.org>
79941         * modules/select-tests: New file, mostly copied from
79942         modules/sys_select-tests.
79943         * tests/test-select.c: New file, mostly copied from
79944         tests/test-sys_select.c.
79945         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
79946         * modules/sys_select-tests (Depends-on): Remove all dependencies.
79947         (Makefile.am): Remove test_sys_select_LDADD.
79949         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
79950         to an undefined symbol, for an error message.
79951         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
79952         (gl_SYS_SELECT_H_DEFAULTS): New macro.
79953         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
79954         winsock-select.c here.
79955         * modules/sys_select (Files): Remove lib/winsock-select.c.
79956         (Depends-on): Remove alloca.
79957         (Makefile.am): Substitute GNULIB_SELECT.
79958         * modules/select: New file.
79959         * doc/posix-functions/select.texi: Update.
79961 2008-10-05  Bruno Haible  <bruno@clisp.org>
79963         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
79964         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
79965         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
79966         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
79967         getdtablesize.
79968         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
79969         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
79971 2008-10-05  Bruno Haible  <bruno@clisp.org>
79973         * modules/getdtablesize-tests: New file.
79974         * tests/test-getdtablesize.c: New file.
79976         New module 'getdtablesize'.
79977         * lib/unistd.in.h (getdtablesize): New declaration.
79978         * lib/getdtablesize.c: New file.
79979         * m4/getdtablesize.m4: New file.
79980         * modules/getdtablesize: New file.
79981         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
79982         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
79983         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
79984         HAVE_GETDTABLESIZE.
79985         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
79987 2008-10-05  Bruno Haible  <bruno@clisp.org>
79989         * modules/sched (Makefile.am): Fix typo.
79990         Reported by Simon Josefsson.
79992 2008-10-05  Jim Meyering  <meyering@redhat.com>
79994         bootstrap: check for LT_INIT, too
79995         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
79996         are deprecated.  Suggestion from Ralf Wildenhues.
79998 2008-10-05  Bruno Haible  <bruno@clisp.org>
80000         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
80001         overriding them by ours.
80002         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
80004 2008-10-05  Jim Meyering  <meyering@redhat.com>
80006         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
80007         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
80008         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
80010 2008-10-04  Bruno Haible  <bruno@clisp.org>
80012         * modules/dup2 (License): Change to LGPLv2+.
80013         * modules/sleep (License): Likewise.
80014         * modules/perror (License): Likewise.
80015         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
80016         Blake.
80017         * modules/signal (License): Likewise.
80018         * modules/sigprocmask (License): Likewise.
80019         * modules/raise (License): Change to LGPLv2+, with approval by Jim
80020         Meyering.
80022 2008-10-04  Bruno Haible  <bruno@clisp.org>
80024         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
80025         Reported by Rainer Tammer <tammer@tammer.net>.
80027 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
80028             Bruno Haible  <bruno@clisp.org>
80030         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
80031         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
80032         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
80034 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
80036         filevercmp: new module
80037         * lib/filevercmp.h: New function filevercmp comparing version strings.
80038         * lib/filevercmp.c: Implementation of filevercmp function.
80039         * modules/filevercmp: Module metadata.
80040         * tests/test-filevercmp.c: Unit test for new module.
80041         * modules/filevercmp-tests: Unit test metadata.
80042         * MODULES.html.sh: Add filevercmp module.
80044 2008-10-03  Bruno Haible  <bruno@clisp.org>
80046         * lib/c-ctype.h: Add comment.
80047         Reported by Jim Meyering.
80049 2008-10-02  Bruno Haible  <bruno@clisp.org>
80051         * modules/posix_spawn-internal (Depends-on): Add 'open'.
80053 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
80055         * build-aux/bootstrap: Allow renaming bootstrap, and change the
80056         name of bootstrap.conf accordingly.
80058 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
80060         * build-aux/bootstrap: Install git-merge-changelog configuration
80061         items into .gitconfig if needed.
80063 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
80065         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
80066         git repository, and initialize/update it accordingly.
80068 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
80070         * modules/fsync-tests: New file.
80071         * tests/test-fsync.c: New file.
80073         New module 'fsync'.
80074         * lib/fsync.c: New file.
80075         * m4/fsync.m4: New file.
80076         * modules/fsync: New file.
80077         * lib/unistd.in.h (fsync): New declaration.
80078         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
80079         GNULIB_FSYNC and HAVE_FSYNC.
80080         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
80081         * MODULES.html.sh (posix_functions): Add fsync.
80082         * doc/posix-functions/fsync.texi: Mention the new module.
80084 2008-10-02  Jim Meyering  <meyering@redhat.com>
80086         fts.c: sync with similar code from coreutils' remove.c
80087         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
80088         Guard also with "#if defined __linux__", since for now at least,
80089         this code is Linux-kernel-specific.
80091 2008-10-02  Jim Meyering  <meyering@redhat.com>
80093         fts: bug fixes
80094         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
80095         Include <sys/vfs.h>, not <sys/statfs.h>.
80097         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
80098         Include <sys/vfs.h>, not <sys/statfs.h>.
80100 2008-10-01  Bruno Haible  <bruno@clisp.org>
80102         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
80103         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
80104         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
80105         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
80106         * doc/posix-functions/posix_spawnp.texi: Likewise.
80107         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
80108         whether posix_spawn actually works.
80109         * m4/pipe.m4 (gl_PIPE): Likewise.
80110         * modules/execute (Files): Add m4/posix_spawn.m4.
80111         * modules/pipe (Files): Add m4/posix_spawn.m4.
80112         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
80114 2008-10-01  Jim Meyering  <meyering@redhat.com>
80116         remove trailing spaces
80117         * NEWS: Likewise.
80118         * lib/poll.c (poll): Likewise.
80119         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
80120         * lib/winsock.c (rpl_close): Likewise.
80121         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
80122         * modules/yield: Likewise.
80123         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
80124         * tests/test-sys_select.c (connect_to_socket): Likewise.
80126         fts.c: adjust a new interface to be more generally useful
80127         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
80128         (fts_build): Adjust caller.
80130 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80132         * modules/cond-tests: New file.
80133         * tests/test-cond.c: New file.
80135 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80136             Bruno Haible  <bruno@clisp.org>
80138         * modules/cond (Dependencies): Add errno, time.
80139         * lib/glthread/cond.h: Include <time.h>.
80140         (gl_cond_define, gl_cond_define_initialized): Use the same definition
80141         across platforms.
80143 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80144             Bruno Haible  <bruno@clisp.org>
80146         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
80148 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80149             Bruno Haible  <bruno@clisp.org>
80151         * modules/tls-tests (Depends-on): Add thread, yield.
80152         (configure.ac): Remove all checks.
80153         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
80154         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
80155         gl_thread_self): Remove definitions. Include glthread/thread.h and
80156         glthread/yield.h instead.
80157         (test_tls): Pass an additional NULL argument to gl_thread_join.
80159 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80160             Bruno Haible  <bruno@clisp.org>
80162         * modules/lock-tests (Depends-on): Add thread, yield.
80163         (configure.ac): Remove all checks.
80164         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
80165         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
80166         gl_thread_self): Remove definitions. Include glthread/thread.h and
80167         glthread/yield.h instead.
80168         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
80169         additional NULL argument to gl_thread_join.
80171 2008-09-30  Bruno Haible  <bruno@clisp.org>
80173         Fix the Win32 implementation of the 'thread' module.
80174         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
80175         pointer type.
80176         (gl_thread_self): Invoke gl_thread_self_func.
80177         (gl_thread_self_func): New declaration.
80178         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
80179         (do_init_self_key, init_self_key): New functions.
80180         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
80181         Remove some fields.
80182         (running_threads, running_lock): Remove variables.
80183         (get_current_thread_handle): New function.
80184         (gl_thread_self_func, wrapper_func, glthread_create_func,
80185         glthread_join_func, gl_thread_exit_func): Largely rewritten and
80186         simplified.
80188 2008-09-30  Bruno Haible  <bruno@clisp.org>
80190         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
80191         files.
80193 2008-09-30  Jim Meyering  <meyering@redhat.com>
80195         fts.m4: correct the test for statfs.f_type
80196         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
80197         when checking for statfs.f_type.
80199 2008-09-15  Simon Josefsson  <simon@josefsson.org>
80201         tests: avoid some compiler warnings
80202         * tests/test-memchr.c (main): Pass NULL indirectly.
80203         * tests/test-getdate.c (main): Remove unused variable 'ret'.
80205 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
80207         getdate.y: disallow countable dayshifts like "4 yesterday ago"
80208         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
80209         exactly specified dayshifts.
80210         (dayshift): New rule.
80211         (rel): Add dayshift.
80212         (relative_time_table) [tomorrow, yesterday, today, now]:
80213         Use tDAY_SHIFT in place of tDAY_UNIT.
80214         * tests/test-getdate.c: Add tests for now-disallowed countable
80215         dayshifts, e.g., "4 yesterday ago".
80217 2008-09-29  Bruno Haible  <bruno@clisp.org>
80219         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
80220         * tests/test-posix_spawn1.in.sh: Renamed from
80221         tests/test-posix_spawn.in.sh.
80222         * tests/test-posix_spawn2.c: New file.
80223         * tests/test-posix_spawn2.in.sh: New file.
80224         * modules/posix_spawnp-tests (Files): Update.
80225         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
80227 2008-09-29  Bruno Haible  <bruno@clisp.org>
80229         Propagate effects of putenv/setenv/unsetenv to child processes.
80230         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
80231         * lib/pipe.c (create_pipe): Likewise.
80233 2008-09-29  Bruno Haible  <bruno@clisp.org>
80235         Enable use of shell scripts as executables in mingw.
80236         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
80237         run the program as a shell script.
80238         * lib/pipe.c (create_pipe): Likewise.
80239         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
80240         resulting array.
80242 2008-09-29  Eric Blake  <ebb9@byu.net>
80244         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
80246 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
80248         * doc/posix-functions/accept.texi: Update mingw problems.
80249         * doc/posix-functions/bind.texi: Update mingw problems.
80250         * doc/posix-functions/close.texi: Update mingw problems.
80251         * doc/posix-functions/connect.texi: Update mingw problems.
80252         * doc/posix-functions/getpeername.texi: Update mingw problems.
80253         * doc/posix-functions/getsockname.texi: Update mingw problems.
80254         * doc/posix-functions/getsockopt.texi: Update mingw problems.
80255         * doc/posix-functions/ioctl.texi: Update mingw problems.
80256         * doc/posix-functions/listen.texi: Update mingw problems.
80257         * doc/posix-functions/recv.texi: Update mingw problems.
80258         * doc/posix-functions/recvfrom.texi: Update mingw problems.
80259         * doc/posix-functions/select.texi: Update mingw problems.
80260         * doc/posix-functions/send.texi: Update mingw problems.
80261         * doc/posix-functions/sendto.texi: Update mingw problems.
80262         * doc/posix-functions/setsockopt.texi: Update mingw problems.
80263         * doc/posix-functions/socket.texi: Update mingw problems.
80265 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
80266             Bruno Haible  <bruno@clisp.org>
80268         * lib/sys_select.in.h: Include sys/time.h.
80269         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
80270         * modules/sys_select: Depend on sys_time.
80271         * tests/test-sys_select.c: Test that sys/select.h defines struct
80272         timeval fully.
80274 2008-09-29  Bruno Haible  <bruno@clisp.org>
80276         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
80277         * lib/sys_select.in.h: Likewise.
80279 2008-09-29  Bruno Haible  <bruno@clisp.org>
80281         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
80283 2008-09-29  Bruno Haible  <bruno@clisp.org>
80285         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
80286         Set LIBSOCKET instead of augmenting LIBS.
80287         * modules/sockets (Link): New section.
80288         * modules/sockets-tests (test_sockets_LDADD): New variable.
80289         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
80290         * modules/poll-tests (test_poll_LDADD): New variable.
80291         * NEWS: Document the change.
80293 2008-09-29  Bruno Haible  <bruno@clisp.org>
80295         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
80296         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
80297         ARPA_INET_H directly.
80298         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
80300 2008-09-28  Bruno Haible  <bruno@clisp.org>
80302         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
80303         from gl_HEADER_SYS_SOCKET.
80304         (gl_HEADER_SYS_SOCKET): Invoke it.
80305         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
80307 2008-09-28  Bruno Haible  <bruno@clisp.org>
80309         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
80310         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
80311         Needed on OSF/1 4.0.
80313 2008-09-28  Bruno Haible  <bruno@clisp.org>
80315         Override open more carefully.
80316         * lib/open.c (orig_open): New function.
80317         (rpl_open): Use orig_open instead of open.
80318         * lib/fcntl.in.h: Add special invocation convention.
80319         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
80320         (gl_FUNC_OPEN): Invoke it.
80322         Override freopen more carefully.
80323         * lib/freopen.c (orig_freopen): New function.
80324         (rpl_freopen): Use orig_freopen instead of freopen.
80325         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
80326         (gl_FUNC_FREOPEN): Invoke it.
80328         Override fopen more carefully.
80329         * lib/fopen.c (orig_fopen): New function.
80330         (rpl_fopen): Use orig_fopen instead of fopen.
80331         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
80332         (gl_FUNC_FOPEN): Invoke it.
80333         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
80335 2008-09-28  Bruno Haible  <bruno@clisp.org>
80337         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
80338         SIGPIPE.
80340 2008-09-28  Bruno Haible  <bruno@clisp.org>
80342         * tests/test-sigaction.c (handler, main): Disable the check whether
80343         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
80344         glibc systems with LinuxThreads.
80346 2008-09-28  Bruno Haible  <bruno@clisp.org>
80348         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
80350         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
80351         with AIX xlc.
80352         * lib/fcntl.in.h (open): Likewise.
80353         Reported by Rainer Tammer <tammer@tammer.net>.
80355 2008-09-28  Bruno Haible  <bruno@clisp.org>
80357         * modules/posix_spawnp-tests: New file.
80358         * tests/test-posix_spawn.c: New file.
80359         * tests/test-posix_spawn.in.sh: New file.
80361         New module 'posix_spawnp'.
80362         * modules/posix_spawnp: New file.
80363         * lib/spawnp.c: New file, from GNU libc with modifications.
80364         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
80366         New module 'posix_spawn'.
80367         * modules/posix_spawn: New file.
80368         * lib/spawn.c: New file, from GNU libc with modifications.
80369         * doc/posix-functions/posix_spawn.texi: Mention the new module.
80371         New module 'posix_spawnattr_destroy'.
80372         * modules/posix_spawnattr_destroy: New file.
80373         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
80374         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
80375         module.
80377         New module 'posix_spawnattr_setsigmask'.
80378         * modules/posix_spawnattr_setsigmask: New file.
80379         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
80380         modifications.
80381         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
80382         new module.
80384         New module 'posix_spawnattr_getsigmask'.
80385         * modules/posix_spawnattr_getsigmask: New file.
80386         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
80387         modifications.
80388         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
80389         new module.
80391         New module 'posix_spawnattr_setsigdefault'.
80392         * modules/posix_spawnattr_setsigdefault: New file.
80393         * lib/spawnattr_setdefault.c: New file, from GNU libc with
80394         modifications.
80395         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
80396         new module.
80398         New module 'posix_spawnattr_getsigdefault'.
80399         * modules/posix_spawnattr_getsigdefault: New file.
80400         * lib/spawnattr_getdefault.c: New file, from GNU libc with
80401         modifications.
80402         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
80403         new module.
80405         New module 'posix_spawnattr_setschedpolicy'.
80406         * modules/posix_spawnattr_setschedpolicy: New file.
80407         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
80408         modifications.
80409         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
80410         new module.
80412         New module 'posix_spawnattr_getschedpolicy'.
80413         * modules/posix_spawnattr_getschedpolicy: New file.
80414         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
80415         modifications.
80416         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
80417         new module.
80419         New module 'posix_spawnattr_setschedparam'.
80420         * modules/posix_spawnattr_setschedparam: New file.
80421         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
80422         modifications.
80423         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
80424         new module.
80426         New module 'posix_spawnattr_getschedparam'.
80427         * modules/posix_spawnattr_getschedparam: New file.
80428         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
80429         modifications.
80430         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
80431         new module.
80433         New module 'posix_spawnattr_setpgroup'.
80434         * modules/posix_spawnattr_setpgroup: New file.
80435         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
80436         modifications.
80437         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
80438         module.
80440         New module 'posix_spawnattr_getpgroup'.
80441         * modules/posix_spawnattr_getpgroup: New file.
80442         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
80443         modifications.
80444         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
80445         module.
80447         New module 'posix_spawnattr_setflags'.
80448         * modules/posix_spawnattr_setflags: New file.
80449         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
80450         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
80451         module.
80453         New module 'posix_spawnattr_getflags'.
80454         * modules/posix_spawnattr_getflags: New file.
80455         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
80456         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
80457         module.
80459         New module 'posix_spawnattr_init'.
80460         * modules/posix_spawnattr_init: New file.
80461         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
80462         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
80463         module.
80465         New module 'posix_spawn_file_actions_destroy'.
80466         * modules/posix_spawn_file_actions_destroy: New file.
80467         * lib/spawn_faction_destroy.c: New file, from GNU libc with
80468         modifications.
80469         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
80470         the new module.
80472         New module 'posix_spawn_file_actions_addopen'.
80473         * modules/posix_spawn_file_actions_addopen: New file.
80474         * lib/spawn_faction_addopen.c: New file, from GNU libc with
80475         modifications.
80476         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
80477         the new module.
80479         New module 'posix_spawn_file_actions_adddup2'.
80480         * modules/posix_spawn_file_actions_adddup2: New file.
80481         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
80482         modifications.
80483         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
80484         the new module.
80486         New module 'posix_spawn_file_actions_addclose'.
80487         * modules/posix_spawn_file_actions_addclose: New file.
80488         * lib/spawn_faction_addclose.c: New file, from GNU libc with
80489         modifications.
80490         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
80491         the new module.
80493         New module 'posix_spawn_file_actions_init'.
80494         * modules/posix_spawn_file_actions_init: New file.
80495         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
80496         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
80497         new module.
80499         New module 'posix_spawn-internal'.
80500         * modules/posix_spawn-internal: New file.
80501         * lib/spawn_int.h: New file, from GNU libc with modifications.
80502         * lib/spawni.c: New file, from GNU libc with modifications.
80503         * m4/posix_spawn.m4: New file.
80505         New module 'spawn'.
80506         * modules/spawn: New file.
80507         * lib/spawn.in.h: New file, from GNU libc with modifications.
80508         * m4/spawn_h.m4: New file.
80509         * doc/posix-headers/spawn.texi: Mention the new module.
80511 2008-09-28  Bruno Haible  <bruno@clisp.org>
80513         * modules/sched-tests: New file.
80514         * tests/test-sched.c: New file.
80516         New module 'sched'.
80517         * modules/sched: New file.
80518         * lib/sched.in.h: New file.
80519         * m4/sched_h.m4: New file.
80520         * doc/posix-headers/sched.texi: Mention the new module.
80522 2008-09-27  Eric Blake  <ebb9@byu.net>
80524         Fix previous patch, and tweak references to $0.
80525         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
80526         (func_version, func_gnulib_dir): Don't call this program
80527         gnulib-tool.
80528         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
80529         with using $0 in function.
80530         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
80531         (func_fatal_error): Reuse the name the user invoked us with.
80533 2008-09-27  Bruno Haible  <bruno@clisp.org>
80535         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
80536         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
80537         (gl_ICONV_H): Not here.
80538         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
80539         instead of assigning ICONV_H directly.
80541         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
80542         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
80543         WCHAR_H directly.
80545 2008-09-27  Bruno Haible  <bruno@clisp.org>
80547         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
80548         * modules/arpa_inet (Depends-on): Add link-warning.
80549         (Makefile.am): Insert the definition of GL_LINK-WARNING.
80550         * modules/unistd (Makefile.am): Likewise.
80552 2008-09-26  Bruno Haible  <bruno@clisp.org>
80554         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
80555         variables.
80556         (func_version): Essentially copied from gnulib-tool.
80557         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
80558         func_readlink): Copied from gnulib-tool.
80560 2008-09-26  Bruno Haible  <bruno@clisp.org>
80562         * gnulib-tool (func_version): Change directory to $gnulib_dir before
80563         invoking git-version-gen.
80565 2008-09-26  Bruno Haible  <bruno@clisp.org>
80567         * posix-modules: Update to directory names changed on 2008-01-19.
80568         Remove commas in output before splitting into words. No more need to
80569         avoid 'ftruncate' since 2007-02-19.
80571 2008-09-26  Bruno Haible  <bruno@clisp.org>
80573         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
80575 2008-09-26  Bruno Haible  <bruno@clisp.org>
80577         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
80578         * modules/fwriteerror (Depends-on): Add errno.
80580 2008-09-26  Bruno Haible  <bruno@clisp.org>
80582         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
80583         * tests/test-vc-list-files-cvs.sh: Likewise.
80585 2008-09-26  Bruno Haible  <bruno@clisp.org>
80587         * doc/posix-headers/sys_resource.texi: Reorder items.
80589 2008-09-26  Jim Meyering  <meyering@redhat.com>
80591         fts: tweak inode comparison function
80592         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
80593         inode numbers, as documented.
80595         fts: sort dirent entries on inode number before traversing
80596         This avoids a quadratic, seek-related performance penalty when
80597         operating on a directory containing many entries (measurable at 10k;
80598         3.5 hours at 2 million entries with a cold cache) on certain types
80599         of file systems, including ext3 and ext4, but not tmpfs.
80600         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
80601         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
80602         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
80603         (fs_handles_readdir_ordered_dirents_efficiently): New function.
80604         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
80605         (fts_build): Set the stat.st_ino member from D_INO.
80606         If it is likely to be useful, sort dirent entries on inode number.
80608         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
80609         and the struct statfs.f_type member.
80610         * modules/fts (Depends-on): Add d-ino.
80612 2008-09-26  Bruno Haible  <bruno@clisp.org>
80614         * modules/sigpipe-die (Depends-on): Add sigpipe.
80616         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
80617         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
80618         and GNULIB_STDIO_H_SIGPIPE are set.
80619         * lib/stdio-write.c: New file.
80620         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
80621         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
80622         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
80623         REPLACE_STDIO_WRITE_FUNCS.
80624         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
80625         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
80626         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
80627         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
80628         * modules/stdio (Files): Add lib/stdio-write.c.
80629         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
80630         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
80631         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
80632         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
80633         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
80634         REPLACE_FPRINTF_POSIX.
80635         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
80636         REPLACE_PRINTF_POSIX.
80637         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
80638         REPLACE_VFPRINTF_POSIX.
80639         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
80640         REPLACE_VPRINTF_POSIX.
80641         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
80642         SIGPIPE issue.
80643         * doc/posix-functions/fputc.texi: Likewise.
80644         * doc/posix-functions/fputs.texi: Likewise.
80645         * doc/posix-functions/fwrite.texi: Likewise.
80646         * doc/posix-functions/printf.texi: Likewise.
80647         * doc/posix-functions/putc.texi: Likewise.
80648         * doc/posix-functions/putchar.texi: Likewise.
80649         * doc/posix-functions/puts.texi: Likewise.
80650         * doc/posix-functions/vfprintf.texi: Likewise.
80651         * doc/posix-functions/vprintf.texi: Likewise.
80653         * modules/safe-write (Depends-on): Add write.
80655         * modules/sigpipe-tests: New file.
80656         * tests/test-sigpipe.c: New file.
80657         * tests/test-sigpipe.sh: New file.
80659         * modules/write: New file.
80660         * lib/unistd.in.h: Include <sys/types.h>.
80661         (write): New declaration.
80662         * lib/write.c: New file.
80663         * m4/write.m4: New file.
80664         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
80665         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
80666         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
80667         GNULIB_WRITE, REPLACE_WRITE.
80668         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
80669         and the SIGPIPE issue.
80671         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
80672         (raise): New declaration.
80673         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
80674         (ext_signal): New function.
80675         (rpl_raise): New function.
80676         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
80677         GNULIB_SIGNAL_H_SIGPIPE.
80678         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
80679         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
80681         * modules/sigpipe: New file.
80682         * m4/sigpipe.m4: New file.
80684 2008-09-25  Derek Price  <derek@ximbiot.com>
80685             Bruno Haible  <bruno@clisp.org>
80687         * gnulib-tool (func_import): Report all license incompatibilities, not
80688         just the first one.
80690 2008-09-25  Bruno Haible  <bruno@clisp.org>
80692         * gnulib-tool (func_import): When computing the edits, consider not
80693         only the Makefile.ams that exist but also those that will be generated.
80695 2008-09-25  Simon Josefsson  <simon@josefsson.org>
80697         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
80698         fixes gnulib-tool --test warning about duplicate dependency.
80700 2008-09-25  Bruno Haible  <bruno@clisp.org>
80702         * gnulib-tool: Don't ask the user to perform edits in the generated
80703         Makefile.ams.
80704         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
80705         apply to the Makefile.am being generated.
80706         (func_emit_tests_Makefile_am): Execute edits that apply to the
80707         Makefile.am being generated.
80708         (func_import): Setup list of Makefile.am edits before emitting the
80709         Makefile.ams, not at the end.
80710         (func_create_testdir): Update.
80711         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
80713 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80715         * gnulib-tool (func_import): Store the --tests-base option in the
80716         comment in gnulib-cache.m4.
80718 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
80720         * NEWS: Document increased portability that sys_select now provides.
80722         * lib/sys_select.in.h: Install select wrapper.
80723         * lib/sys_socket.in.h: Use more descriptive name when there is no
80724         select wrapper.
80725         * lib/winsock-select.c: New.
80726         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
80727         Require gl_HEADER_SYS_SOCKET.
80728         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
80729         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
80730         * tests/test-sys_select.c: Add functional tests.
80732 2008-09-24  Eric Blake  <ebb9@byu.net>
80734         open, fopen: close fd leak in last patch
80735         * lib/open.c (rpl_open): Close fd before returning error.
80736         * lib/fopen.c (rpl_fopen): Close fd before returning error.
80737         * doc/posix-functions/open.texi (open): Document that Irix also
80738         has the bug.
80739         * doc/posix-functions/fopen.texi (fopen): Likewise.
80740         Reported by Paolo Bonzini.
80742 2008-09-24  Bruno Haible  <bruno@clisp.org>
80744         Ensure that a filename ending in a slash cannot be used to access a
80745         non-directory.
80746         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
80747         to check whether it's really a directory.
80748         * lib/fopen.c: Include fcntl.h, unistd.h.
80749         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
80750         and fdopen().
80751         * modules/fopen (Depends-on): Add unistd.
80752         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
80753         * tests/test-fopen.c (main): Likewise.
80754         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
80755         * doc/posix-functions/fopen.texi: Likewise.
80756         Reported by Eric Blake.
80758 2008-09-23  Eric Blake  <ebb9@byu.net>
80760         c-stack: avoid compiler optimizations when provoking overflow
80761         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
80762         recursion harder to optimize, to ensure a stack overflow occurs.
80763         * tests/test-c-stack.c (recurse): Likewise.
80764         Borrowed from libsigsegv.
80766         c-stack: work around Irix sigaltstack bug
80767         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
80768         whether sigaltstack uses wrong end of stack_t (copied in part from
80769         libsigsegv).
80770         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
80771         Irix bug, without requiring an over-allocation.
80772         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
80773         bug.
80775         fopen: document mingw bug on directories
80776         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
80777         not allowing a stream visiting a directory, even though reading
80778         from such a stream is not portable.
80780 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
80782         * lib/poll.c: Rewrite.
80783         * modules/poll: Depend on alloca.
80785 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
80787         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
80788         instead define prototypes for a full set of wrappers.  Ensure
80789         that Cygwin does not use the compatibility code, which is only
80790         for MinGW.
80791         * lib/winsock.c: New.
80792         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
80793         * modules/sys_socket: Add lib/winsock.c.
80795         * modules/poll-tests: Add errno and perror.
80796         * tests/test-poll.c: Use ioctl, not ioctlsocket.
80798 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
80800         * tests/test-poll.c: Downgrade minimum needed Winsock version.
80802 2008-09-23  Bruno Haible  <bruno@clisp.org>
80804         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
80805         * doc/glibc-functions/*: Likewise.
80807 2008-09-23  Simon Josefsson  <simon@josefsson.org>
80809         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
80810         success.
80812 2008-09-22  Eric Blake  <ebb9@byu.net>
80813             Bruno Haible  <bruno@clisp.org>
80815         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
80816         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
80817         supply %A but mishandle pseudo-NaN.
80818         Reported by Simon Josefsson.
80820 2008-09-21  Bruno Haible  <bruno@clisp.org>
80822         * tests/test-lock.c (main): Tweak skip message.
80823         * tests/test-tls.c (main): Likewise.
80825 2008-09-21  Bruno Haible  <bruno@clisp.org>
80827         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
80828         whether 'struct sigaction' has sa_sigaction here...
80829         (gl_PREREQ_SIG_HANDLER_H): ... not here.
80830         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
80832 2008-09-21  Bruno Haible  <bruno@clisp.org>
80834         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
80835         section.
80836         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
80837         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
80838         the new section.
80839         (Support for obsolete systems lacking POSIX:2001): New section.
80840         (String handling <string.h>): Move strdup to the new section.
80841         Suggested by Simon Josefsson and Paolo Bonzini.
80843 2008-09-21  Bruno Haible  <bruno@clisp.org>
80845         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
80846         exponents in %e and %g results on 'long double'. Needed for mingw's
80847         improved *printf functions.
80848         * tests/test-vasprintf-posix.c (test_function): Likewise.
80849         * tests/test-snprintf-posix.h (test_function): Likewise.
80850         * tests/test-sprintf-posix.h (test_function): Likewise.
80851         Reported by Eric Blake.
80853 2008-09-21  Bruno Haible  <bruno@clisp.org>
80855         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
80856         * tests/test-sprintf-posix.h (test_function): Likewise.
80858 2008-09-21  Bruno Haible  <bruno@clisp.org>
80860         * modules/getpass (Depends-on): Add strdup-posix.
80862         New module 'strdup-posix'.
80863         * modules/strdup-posix: New file.
80864         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
80865         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
80866         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
80867         REPLACE_STRDUP.
80868         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
80869         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
80870         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
80871         strdup-posix.
80873         * modules/strdup (Depends-on): Remove malloc-posix.
80875 2008-09-20  Bruno Haible  <bruno@clisp.org>
80877         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
80878         Wildenhues.
80880 2008-09-20  Bruno Haible  <bruno@clisp.org>
80882         Ensure that wint_t gets defined on IRIX 5.3.
80883         * lib/wchar.in.h (wint_t): Define if not defined by the system.
80884         * lib/wctype.in.h (wint_t): Likewise.
80885         (__wctype_wint_t): Remove type.
80886         (isw*): Use wint_t instead of __wctype_wint_t.
80887         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
80888         * modules/wchar (Files): Add m4/wint_t.m4.
80889         (Makefile.am): Substitute HAVE_WINT_T.
80890         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
80891         * tests/test-wctype.c: Check that wint_t is defined.
80892         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
80893         * doc/posix-headers/wctype.texi: Likewise.
80894         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
80896 2008-09-18  Bruno Haible  <bruno@clisp.org>
80898         * gnulib-tool (func_exit): Update comment.
80900 2008-09-18  Simon Josefsson  <simon@josefsson.org>
80902         * modules/getaddrinfo (Depends-on): Remove strdup, this module
80903         assumes strdup exists and does not depend on strdup to return
80904         ENOMEM on out of memory conditions.
80906 2008-09-18  Bruno Haible  <bruno@clisp.org>
80908         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
80909         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
80910         digits for the exponent.
80912 2008-09-18  Jim Meyering  <meyering@redhat.com>
80913             Bruno Haible  <bruno@clisp.org>
80915         * lib/vasnprintf.c (decimal_point_char): Define also if
80916         NEED_PRINTF_INFINITE_LONG_DOUBLE.
80918 2008-09-16  Bruno Haible  <bruno@clisp.org>
80919         and Eric Blake  <ebb9@byu.net>
80921         vasnprintf: support Irix 5.3
80922         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
80923         that mishandle long double infinity.
80924         Reported by Tom G. Christensen.
80926 2008-09-16  Bruno Haible  <bruno@clisp.org>
80928         * doc/glibc-functions/scandir.texi: Mention the function is missing on
80929         Solaris 9.
80930         * doc/glibc-functions/alphasort.texi: Likewise.
80931         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
80933 2008-09-16  Jim Meyering  <meyering@redhat.com>
80935         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
80936         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
80937         a umask modification leak out of a subshell.  Otherwise, the
80938         opensolaris /bin/sh would be accepted and thus cause unwarranted
80939         failures in the coreutils test suite.
80941 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
80943         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
80944         to succeed.
80946 2008-09-16  Jim Meyering  <meyering@redhat.com>
80948         avoid spurious test failure when library is built without ACL support
80949         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
80950         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
80951         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
80952         * tests/test-copy-acl.sh: Likewise.
80954 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80956         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
80957         based on character occurrence counts.
80959 2008-09-15  Eric Blake  <ebb9@byu.net>
80961         tests: avoid some compiler warnings
80962         * tests/test-memchr.c (main): Pass NULL indirectly.
80963         * tests/test-closein.c (main): Avoid unused variable.
80965 2008-09-15  Bruno Haible  <bruno@clisp.org>
80967         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
80968         are missing on OpenBSD 4.0 individually.
80969         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
80971 2008-09-15  Bruno Haible  <bruno@clisp.org>
80973         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
80974         * doc/posix-functions/strerror.texi: Mention also Cygwin.
80975         * doc/posix-functions/perror.texi: Likewise.
80976         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
80977         is missing.
80978         Reported by Eric Blake.
80980         * lib/errno.in.h: Use replacement values >= 2000.
80981         Reported by Eric Blake.
80983 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80985         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
80986         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
80987         limit.
80988         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
80989         compareseq was aborted.
80991 2008-09-14  Bruno Haible  <bruno@clisp.org>
80993         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
80994         yvec_edit_count.
80995         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
80996         (fstrcmp_bounded): Simplify result computation accordingly.
80998 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81000         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
81001         (fstrcmp): Define in terms of fstrcmp_bounded.
81002         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
81003         lower_bound argument.
81004         Return quickly if the result is certainly < lower_bound.
81005         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
81007 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81009         * lib/diffseq.h (EARLY_ABORT): New macro.
81010         (compareseq): Change return type to bool. Return true when EARLY_ABORT
81011         evaluates to true.
81013 2008-09-14  Bruno Haible  <bruno@clisp.org>
81015         * modules/perror-tests: New file.
81016         * tests/test-perror.sh: New file.
81017         * tests/test-perror.c: New file.
81019         New module 'perror'.
81020         * lib/stdio.in.h (perror): New declaration.
81021         * lib/perror.c: New file.
81022         * m4/perror.m4: New file.
81023         * modules/perror: New file.
81024         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
81025         * doc/posix-functions/perror.texi: Mention the perror module.
81026         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
81027         REPLACE_PERROR.
81028         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
81029         REPLACE_PERROR.
81031 2008-09-14  Bruno Haible  <bruno@clisp.org>
81033         * modules/stdio (Makefile.am): Reorder to match the order in
81034         lib/stdio.in.h.
81035         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
81037 2008-09-13  Bruno Haible  <bruno@clisp.org>
81039         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
81041 2008-09-13  Bruno Haible  <bruno@clisp.org>
81043         Extend strerror to cover the added errno values.
81044         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
81045         (rpl_strerror): Provide error messages for the added errno values and
81046         for the WSA* values.
81047         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
81048         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
81049         strerror.
81050         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
81051         * modules/strerror (Depends-on): Add errno.
81052         * doc/posix-functions/strerror.texi: Document the change.
81053         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
81054         and EOVERFLOW.
81056 2008-09-13  Bruno Haible  <bruno@clisp.org>
81058         * modules/EOVERFLOW: Remove file.
81059         * m4/eoverflow.m4: Remove file.
81060         * modules/EOVERFLOW-tests: Remove file.
81061         * tests/test-EOVERFLOW.c: Remove file.
81062         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
81063         * modules/ftell (Depends-on): Likewise.
81064         * modules/getdelim (Depends-on): Likewise.
81065         * modules/getugroups (Depends-on): Likewise.
81066         * modules/poll (Depends-on): Likewise.
81067         * modules/snprintf (Depends-on): Likewise.
81068         * modules/sprintf-posix (Depends-on): Likewise.
81069         * modules/vasnprintf (Depends-on): Likewise.
81070         * modules/vasprintf (Depends-on): Likewise.
81071         * modules/vfprintf-posix (Depends-on): Likewise.
81072         * modules/vsnprintf (Depends-on): Likewise.
81073         * modules/vsprintf-posix (Depends-on): Likewise.
81074         * modules/xvasprintf (Depends-on): Likewise.
81075         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
81076         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
81077         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
81078         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
81079         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
81080         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
81081         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
81082         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
81083         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
81084         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
81085         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
81086         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
81087         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
81088         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
81089         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
81090         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
81091         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
81092         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
81093         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
81094         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
81095         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
81096         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
81097         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
81098         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
81099         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
81100         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
81101         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
81102         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
81103         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
81104         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
81105         * MODULES.html.sh: Remove EOVERFLOW.
81106         * NEWS: Mention the change.
81108 2008-09-13  Bruno Haible  <bruno@clisp.org>
81110         * modules/errno-tests: New file.
81111         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
81113         * lib/errno.in.h: New file.
81114         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
81115         * modules/errno: New file.
81116         * doc/posix-headers/errno.texi: Update documentation.
81117         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
81119 2008-09-13  Bruno Haible  <bruno@clisp.org>
81121         * tests/test-poll.c: Use #if for native Windows, rather than testing
81122         __MSVCRT__.
81124 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81125             Bruno Haible  <bruno@clisp.org>
81127         * lib/glob.c: Don't include <pwd.h> on native Windows.
81128         (WINDOWS32): New macro.
81129         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
81131 2008-09-13  Bruno Haible  <bruno@clisp.org>
81133         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
81134         (ETIMEDOUT): Remove macro.
81135         (glthread_cond_timedwait_multithreaded): New declaration.
81136         (glthread_cond_timedwait): Use it.
81137         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
81138         (glthread_cond_timedwait_multithreaded): New function.
81140 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
81142         * modules/poll-tests: Do not check for io.h.
81143         * tests/test-poll.c: Check for __MSVCRT__ instead.
81145 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
81147         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
81148         * modules/poll-tests: Add inet_pton, stdbool, sockets.
81149         * tests/test-poll.c: Use them.  Use _pipe on Windows.
81151 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
81153         * modules/poll-tests: New.
81154         * tests/test-poll.c: New.
81156 2008-09-12  Eric Blake  <ebb9@byu.net>
81158         frexp: test for NetBSD failure on -0.0
81159         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
81160         not all, bugs from NetBSD 3.0 have been fixed.
81161         * doc/posix-functions/frexp.texi (frexp): Document bug.
81162         Reported by Thomas Klausner.
81164         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
81165         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
81166         literal -0.0.
81167         Reported by Jonathan C. Patschke <jp@centtech.com>.
81169 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81171         * lib/glthread/cond.h: Use dummy implementation also if
81172         USE_WIN32_THREADS.
81174 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81176         * modules/fnmatch-posix (License): Change to LGPLv2+.
81177         * modules/fnmatch-gnu (License): Likewise.
81179 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81181         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
81183 2008-09-11  Jim Meyering  <meyering@redhat.com>
81185         * users.txt: Add gtk-vnc.
81187 2008-09-08  Simon Josefsson  <simon@josefsson.org>
81189         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
81190         rotate amounts.
81192         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
81193         required for 16-bit and 8-bit rotates.
81194         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
81195         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
81196         UINT8_MAX instead of hard-coded constants.
81197         Suggested by Paul Eggert.
81199 2008-09-07  Bruno Haible  <bruno@clisp.org>
81201         * tests/test-striconveh.c (main): Check behaviour when converting from
81202         UTF-7.
81204         Make striconveh work better with stateful encodings.
81205         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
81206         that iconv does not increment the inptr when returning -1/EINVAL.
81208 2008-09-07  Bruno Haible  <bruno@clisp.org>
81210         * build-aux/config.rpath: Update according to libtool-2.2.6.
81211         * build-aux/config.libpath: Likewise.
81213 2008-09-06  Bruno Haible  <bruno@clisp.org>
81215         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
81216         * lib/freadptr.c (freadptr): Likewise.
81217         * lib/freadseek.c (freadptrinc): Likewise.
81218         Reported by Simon Josefsson.
81220 2008-09-06  Bruno Haible  <bruno@clisp.org>
81222         * modules/freadptr (License): Change to LGPLv2+.
81223         * modules/freadseek (License): Likewise.
81224         Suggested by Eric Blake.
81226         * modules/memchr2 (License): Change to LGPLv2+.
81227         Approved by Eric Blake.
81229 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81230             Bruno Haible  <bruno@clisp.org>
81232         Make gnulib-tool work with native 'sed' on AIX.
81233         * gnulib-tool (sed_noop): New variable.
81234         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
81235         func_add_or_update, func_create_testdir): Use it to initialize sed
81236         script variables.
81237         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
81239 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
81240             Bruno Haible  <bruno@clisp.org>
81242         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
81243         also works after #include directives.
81245 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
81247         getdate.y: reject an out-of-range timezone value
81248         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
81249         the range [-24...+24].  When specified with only one or two digits,
81250         * tests/test-getdate.c: Tests for the fix.
81251         * doc/getdate.texi: Document this change.
81253 2008-09-03  Bruno Haible  <bruno@clisp.org>
81255         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
81257 2008-09-02  Simon Josefsson  <simon@josefsson.org>
81259         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
81260         <bruce.korb@gmail.com> with ideas from Ben Pfaff
81261         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
81262         Blake <ebb9@byu.net>.
81264         * tests/test-bitrotate.c: Add more test vectors.
81266 2008-09-02  Eric Blake  <ebb9@byu.net>
81268         vasnprintf-posix: handle large precision via %.*d
81269         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
81270         when handling it ourselves.
81271         * tests/test-vasnprintf-posix.c (test_function): Add test.
81272         * tests/test-snprintf-posix.h (test_function): Likewise.
81273         * tests/test-sprintf-posix.h (test_function): Likewise.
81274         * tests/test-vasprintf-posix.c (test_function): Likewise.
81275         Reported by Alain Guibert.
81277 2008-09-01  Eric Blake  <ebb9@byu.net>
81279         c-stack: make configure-time check more robust
81280         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
81281         successful sigaction call.
81282         Reported by Tom G. Christensen.
81284 2008-09-01  Bruno Haible  <bruno@clisp.org>
81286         New module 'findprog-lgpl'.
81287         * modules/findprog-lgpl: New file.
81288         * lib/findprog-lgpl.c: New file.
81289         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
81290         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
81291         to decide whether to use strdup or xstrdup, concatenated_filename or
81292         xconcatenated_filename.
81294 2008-09-01  Bruno Haible  <bruno@clisp.org>
81296         Split module 'concat-filename' into 'concat-filename' (LGPL) and
81297         'xconcat-filename' (GPL).
81298         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
81299         (License): Change to LGPLv2+.
81300         * modules/xconcat-filename: New file.
81301         * lib/concat-filename.h (concatenated_filename): Change specification.
81302         (xconcatenated_filename): New declaration.
81303         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
81304         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
81305         memory situations.
81306         * lib/xconcat-filename.c: New file.
81307         * NEWS: Mention the change.
81308         * lib/findprog.c: Include concat-filename.h, not filename.h.
81309         (find_in_path): Use xconcatenated_filename instead of
81310         concatenated_filename.
81311         * lib/javacomp.c: Include concat-filename.h, not filename.h.
81312         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
81313         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
81314         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
81315         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
81316         instead of concatenated_filename.
81317         * lib/javaexec.c: Include concat-filename.h, not filename.h.
81318         (execute_java_class): Use xconcatenated_filename instead of
81319         concatenated_filename.
81320         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
81321         * modules/javacomp (Depends-on): Likewise.
81322         * modules/javaexec (Depends-on): Likewise.
81324 2008-09-01  Bruno Haible  <bruno@clisp.org>
81326         Split module 'filename' into 'filename' and 'concat-filename'.
81327         * modules/filename: Keep only lib/filename.h.
81328         (License): Change to LGPLv2+.
81329         * modules/concat-filename: New file, extracted from modules/filename.
81330         * lib/filename.h (concatenated_filename): Remove declaration.
81331         * lib/concat-filename.h: New file, extracted from lib/filename.h.
81332         * lib/concat-filename.c: Include concat-filename.h.
81333         * NEWS: Mention the change.
81335 2008-09-01  Simon Josefsson  <simon@josefsson.org>
81337         * lib/bitrotate.h (rotl8, rotr8): Add.
81339         * modules/bitrotate (configure.ac): Need
81340         AC_REQUIRE([AC_C_INLINE]).
81341         (Description): Mention stdint.h.  Reported by Bruno Haible
81342         <bruno@clisp.org>.
81344         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
81345         Paolo Bonzini <bonzini@gnu.org>.
81347 2008-08-31  Bruno Haible  <bruno@clisp.org>
81349         Assume Solaris specific bi-arch conventions on Solaris systems.
81350         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
81351         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
81352         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
81353         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
81354         like acl_libdirstem.
81355         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
81356         acl_libdirstem.
81357         * NEWS: Mention the change.
81358         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
81360 2008-08-31  Jim Meyering  <meyering@redhat.com>
81362         * lib/strftime.h: Add comments describing the two added arguments.
81364         remove duplicate #include directives
81365         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
81366         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
81368 2008-08-31  Bruno Haible  <bruno@clisp.org>
81370         New module 'sigpipe-die'.
81371         * modules/sigpipe-die: New file.
81372         * lib/sigpipe-die.h: New file.
81373         * lib/sigpipe-die.c: New file.
81374         * MODULES.html.sh (Signal handling): Add sigpipe-die.
81376 2008-08-31  Bruno Haible  <bruno@clisp.org>
81378         Don't override previously installed signal handlers.
81379         * lib/fatal-signal.c (saved_sigactions): New variable.
81380         (uninstall_handlers): Reset the signal to the saved handler, not
81381         to SIG_DFL (except when ignored).
81382         (install_handlers): Save the previous handlers.
81384 2008-08-30  Bruno Haible  <bruno@clisp.org>
81386         * gnulib-tool (func_reset_sigpipe): New function.
81387         (func_get_automake_snippet, func_modules_transitive_closure,
81388         func_import): Invoke it before a join command that reads from stdin,
81389         to avoid "echo: write error: Broken pipe" error messages on stderr.
81390         Reported by Sam Steingold <sds@gnu.org>.
81392 2008-08-30  Bruno Haible  <bruno@clisp.org>
81394         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
81395         Code copied from m4/open.m4.
81396         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
81397         access and the filename ends in a slash. Code copied from lib/open.c.
81398         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
81399         * tests/test-fopen.c (main): Check against bug with trailing slash.
81401 2008-08-29  Bruno Haible  <bruno@clisp.org>
81403         Avoid some "gcc -pedantic" warnings.
81404         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
81405         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
81406         * lib/dirent.in.h: Likewise.
81407         * lib/fcntl.in.h: Likewise.
81408         * lib/float.in.h: Likewise.
81409         * lib/iconv.in.h: Likewise.
81410         * lib/inttypes.in.h: Likewise.
81411         * lib/locale.in.h: Likewise.
81412         * lib/math.in.h: Likewise.
81413         * lib/netinet_in.in.h: Likewise.
81414         * lib/search.in.h: Likewise.
81415         * lib/signal.in.h: Likewise.
81416         * lib/stdarg.in.h: Likewise.
81417         * lib/stdint.in.h: Likewise.
81418         * lib/stdio.in.h: Likewise.
81419         * lib/stdlib.in.h: Likewise.
81420         * lib/string.in.h: Likewise.
81421         * lib/strings.in.h: Likewise.
81422         * lib/sys_select.in.h: Likewise.
81423         * lib/sys_socket.in.h: Likewise.
81424         * lib/sys_stat.in.h: Likewise.
81425         * lib/sys_time.in.h: Likewise.
81426         * lib/sysexits.in.h: Likewise.
81427         * lib/time.in.h: Likewise.
81428         * lib/unistd.in.h: Likewise.
81429         * lib/wchar.in.h: Likewise.
81430         * lib/wctype.in.h: Likewise.
81431         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
81432         * modules/fchdir (Makefile.am): Likewise.
81433         * modules/fcntl (Makefile.am): Likewise.
81434         * modules/float (Makefile.am): Likewise.
81435         * modules/iconv_open (Makefile.am): Likewise.
81436         * modules/inttypes (Makefile.am): Likewise.
81437         * modules/locale (Makefile.am): Likewise.
81438         * modules/math (Makefile.am): Likewise.
81439         * modules/netinet_in (Makefile.am): Likewise.
81440         * modules/search (Makefile.am): Likewise.
81441         * modules/signal (Makefile.am): Likewise.
81442         * modules/stdarg (Makefile.am): Likewise.
81443         * modules/stdint (Makefile.am): Likewise.
81444         * modules/stdio (Makefile.am): Likewise.
81445         * modules/stdlib (Makefile.am): Likewise.
81446         * modules/string (Makefile.am): Likewise.
81447         * modules/strings (Makefile.am): Likewise.
81448         * modules/sys_select (Makefile.am): Likewise.
81449         * modules/sys_socket (Makefile.am): Likewise.
81450         * modules/sys_stat (Makefile.am): Likewise.
81451         * modules/sys_time (Makefile.am): Likewise.
81452         * modules/sysexits (Makefile.am): Likewise.
81453         * modules/time (Makefile.am): Likewise.
81454         * modules/unistd (Makefile.am): Likewise.
81455         * modules/wchar (Makefile.am): Likewise.
81456         * modules/wctype (Makefile.am): Likewise.
81457         Reported by Reuben Thomas <rrt@sc3d.org>.
81459 2008-08-29  Bruno Haible  <bruno@clisp.org>
81461         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
81462         any more.
81464 2008-08-29  Simon Josefsson  <simon@josefsson.org>
81466         * MODULES.html.sh (Misc): Add bitrotate.
81468         * modules/bitrotate: New file.
81470         * lib/bitrotate.h: New file.
81472         * modules/bitrotate-tests: New file.
81474         * tests/test-bitrotate.c: New file.
81476         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
81477         on the bitrotate module.
81479         * lib/arctwo.c: Use new bitrotate module.
81481 2008-08-29  Jim Meyering  <meyering@redhat.com>
81483         bootstrap: merge changes from coreutils
81484         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
81485         of copied files.  Remove a kludge, now that this is fixed.
81486         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
81487         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
81488         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
81490 2008-08-29  Bruno Haible  <bruno@clisp.org>
81492         * MODULES.html.sh: Remove --cvs-urls option.
81494 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
81496         maint.mk: adjust to file name change
81497         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
81499 2008-08-28  Jim Meyering  <meyering@redhat.com>
81501         * modules/getndelim2 (License): Relicense to LGPLv2+.
81502         Approved by Richard Stallman for the version of 1995, and by
81503         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
81505 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
81507         * lib/getdelim.c (flockfile, funlockfile): Make all of them
81508         dummy if one is not available.  Do not touch them if
81509         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
81510         (getc_maybe_unlocked): New.
81511         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
81513 2008-08-26  Eric Blake  <ebb9@byu.net>
81515         doc/INSTALL: resync from autoconf
81516         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
81517         (INSTALL_PRELUDE): Delete; this is done more efficiently by
81518         moving...
81519         * install.texi [!autoconf]: ...here.  Resync from autoconf.
81520         * INSTALL: Regenerate.
81521         * INSTALL.ISO: New file.
81522         * INSTALL.UTF-8: Likewise.
81524 2008-08-26  Jim Meyering  <meyering@redhat.com>
81526         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
81527         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
81528         these definitions conditional, so that they may be overridden, too.
81530 2008-08-26  Bruno Haible  <bruno@clisp.org>
81532         Generate INSTALL file variants with prettier quotes.
81533         * doc/Makefile (INSTALL_PRELUDE): New macro.
81534         (INSTALL): Use it.
81535         (INSTALL.ISO, INSTALL.UTF-8): New rules.
81537 2008-08-26  Bruno Haible  <bruno@clisp.org>
81539         Run makeinfo in an English locale.
81540         * doc/Makefile (MAKEINFO): New variable.
81542 2008-08-26  Bruno Haible  <bruno@clisp.org>
81544         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
81545         Suggested by Eric Blake.
81547 2008-08-25  Bruno Haible  <bruno@clisp.org>
81549         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
81551 2008-08-25  Eric Blake  <ebb9@byu.net>
81553         c-stack: test that stack overflow can be caught
81554         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
81555         that platform allows handling stack overflow; at least OS/2 EMX
81556         has sigaltstack, but crashes before transferring control to
81557         handler on stack overflow.
81558         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
81559         check for HAVE_STACK_OVERFLOW_HANDLING.
81560         Reported by Elbert Pol.
81562 2008-08-25  Bruno Haible  <bruno@clisp.org>
81564         * doc/posix-functions/strftime.texi: Fix description of strftime
81565         module.
81567 2008-08-24  Bruno Haible  <bruno@clisp.org>
81569         * tests/uniwidth/test-uc_width2.c: New file.
81570         * tests/uniwidth/test-uc_width2.sh: New file.
81571         * modules/uniwidth/width-tests (Files): Add the new files.
81572         (TESTS): Add uniwidth/test-uc_width2.sh.
81573         (TESTS_ENVIRONMENT): New variable.
81574         (check_PROGRAMS): Add test-uc_width2.
81575         (test_uc_width2_SOURCES): New variable.
81577         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
81578         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
81579         not 0x00AB.
81580         Reported by Alexander V. Lukyanov <lav@netis.ru>.
81582 2008-08-22  Eric Blake  <ebb9@byu.net>
81584         test-lock, test-tls: mention why a test is skipped
81585         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
81586         skipped.
81587         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
81589         count-one-bits: relax license
81590         * modules/count-one-bits (License): Relicense to LGPLv2+.
81591         Suggested by Ludovic Courtès, approved by Ben Pfaff.
81593 2008-08-22  Andreas Schwab  <schwab@suse.de>
81595         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
81596         Remove spurious space in assignment.
81598 2008-08-21  Simon Josefsson  <simon@josefsson.org>
81600         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
81601         Paul Eggert <eggert@CS.UCLA.EDU>.
81603 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
81605         * modules/gettext: Add m4/threadlib.m4.
81607 2008-08-19  Eric Blake  <ebb9@byu.net>
81609         test-c-stack: fix compilation failure on FreeBSD 5.0
81610         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
81611         headers before <sys/resource.h>.
81612         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
81613         the bug.
81614         Reported by Nelson H. F. Beebe.
81616         strverscmp: migrate from "strverscmp.h" to <string.h>
81617         * modules/string (Makefile.am): Add new hooks.
81618         * modules/strverscmp (Files): Remove strverscmp.h.
81619         (Depends-on): Add string.
81620         (configure.ac): Add indicator.
81621         (Include): Mention new header.
81622         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
81623         defaults.
81624         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
81625         results.
81626         * lib/strverscmp.h: Delete.
81627         * lib/string.in.h (strverscmp): Provide declaration, when needed.
81628         * tests/test-strverscmp.c (includes): Adjust client.
81629         * lib/check-version.c (includes): Likewise.
81630         * NEWS: Document the change.
81632         strverscmp: add unit test
81633         * modules/strverscmp-tests: New file.
81634         * tests/test-strverscmp.c: Likewise.
81636 2008-08-19  Simon Josefsson  <simon@josefsson.org>
81638         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
81639         regarding Windows crypto stuff, from Mono.
81641 2008-08-19  Adam Strzelecki  <ono@java.pl>  (tiny change)
81643         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
81644         if present, for intel RND.  Return error on failures.
81646 2008-08-18  Ben Pfaff  <blp@gnu.org>
81648         gitlog-to-changelog: give better diagnostic for failed pipe-open
81649         * build-aux/gitlog-to-changelog: Improve error message: suggest
81650         that the version of Git may be too old.
81652 2008-08-18  Simon Josefsson  <simon@josefsson.org>
81654         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
81655         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
81657 2008-08-18  Bruno Haible  <bruno@clisp.org>
81659         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
81660         pthread_in_use().
81662 2008-08-18  Bruno Haible  <bruno@clisp.org>
81664         * lib/glthread/threadlib.c: Include <pthread.h>.
81666 2008-08-18  Bruno Haible  <bruno@clisp.org>
81668         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
81669         glthread_recursive_lock_* macros.
81670         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
81671         Fix syntax error.
81673 2008-08-18  Bruno Haible  <bruno@clisp.org>
81675         * lib/glthread/thread.c: Avoid forcing a context switch right after
81676         thread creation.
81678 2008-08-17  Bruno Haible  <bruno@clisp.org>
81680         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
81681         * lib/glthread/thread.h: Provide Win32 specific implementation.
81682         * modules/thread (Files): Add lib/glthread/thread.c.
81683         (Depends-on): Add lock.
81684         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
81686 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81688         New module 'yield'.
81689         * modules/yield: New file.
81690         * lib/glthread/yield.h: New file.
81691         * m4/yield.m4: New file.
81692         * MODULES.html.sh (Multithreading): Add yield.
81694 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81696         New module 'thread'.
81697         * modules/thread: New file.
81698         * lib/glthread/thread.h: New file.
81699         * m4/thread.m4: New file.
81700         * MODULES.html.sh (Multithreading): Add thread.
81702 2008-08-17  Bruno Haible  <bruno@clisp.org>
81704         * lib/glthread/lock.h: Include <stdlib.h> always.
81705         * lib/glthread/tls.h: Likewise.
81706         * lib/glthread/cond.h: Likewise.
81708 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81710         New module 'cond'.
81711         * modules/cond: New file.
81712         * lib/glthread/cond.h: New file.
81713         * lib/glthread/cond.c: New file.
81714         * m4/cond.m4: New file.
81715         * MODULES.html.sh (Multithreading): Add cond.
81717 2008-08-16  Eric Blake  <ebb9@byu.net>
81719         c-stack: fix regression on Irix 5.3 from 2008-06-21
81720         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
81721         sa_sigaction...
81722         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
81723         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
81724         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
81725         * modules/signal (Makefile.am): Use the value.
81726         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
81727         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
81728         * doc/posix-headers/signal.texi (signal.h): Document this
81729         portability issue.
81730         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
81731         Reported by Tom G. Christensen.
81733 2008-08-17  Bruno Haible  <bruno@clisp.org>
81735         New module 'threadlib'.
81736         * modules/threadlib: New file.
81737         * lib/glthread/threadlib.c: New file, extracted from
81738         lib/glthread/lock.c.
81739         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
81740         functions.
81741         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
81742         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
81743         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
81744         macros.
81745         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
81746         (gl_DISABLE_THREADS): Remove macro.
81747         * modules/lock (Files): Remove build-aux/config.rpath.
81748         (Depends-on): Remove havelib. Add threadlib.
81749         (configure.ac-early): Remove section.
81750         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
81751         * modules/tls (Depends-on): Remove lock. Add threadlib.
81752         (Link): New section, copied from threadlib.
81753         * MODULES.html.sh (Multithreading): Add threadlib.
81755 2008-08-14  Bruno Haible  <bruno@clisp.org>
81757         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
81758         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
81759         glthread_rwlock_unlock, glthread_rwlock_destroy,
81760         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
81761         glthread_recursive_lock_destroy): Define as macros always.
81762         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
81763         glthread_lock_lock.
81764         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
81765         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
81766         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
81767         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
81768         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
81769         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
81770         (glthread_recursive_lock_lock_func): Renamed from
81771         glthread_recursive_lock_lock.
81772         (glthread_recursive_lock_unlock_func): Renamed from
81773         glthread_recursive_lock_unlock.
81774         (glthread_recursive_lock_destroy_func): Renamed from
81775         glthread_recursive_lock_destroy.
81777 2008-08-14  Bruno Haible  <bruno@clisp.org>
81779         * lib/glthread/lock.h: Renamed from lib/lock.h.
81780         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
81781         * lib/glthread/tls.h: Renamed from lib/tls.h.
81782         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
81783         * lib/fstrcmp.c: Update includes.
81784         * lib/strsignal.c: Update includes.
81785         * modules/lock (Files, Makefile.am): Update.
81786         (Include): Change to "glthread/lock.h".
81787         * modules/tls (Files, Makefile.am): Update.
81788         (Include): Change to "glthread/tls.h".
81789         * tests/test-lock.c: Update includes.
81790         * tests/test-tls.c: Update includes.
81791         * NEWS: Mention the renamed header files.
81793 2008-08-11  Jim Meyering  <meyering@redhat.com>
81795         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
81797 2008-08-11  Eric Blake  <ebb9@byu.net>
81799         test-c-stack: avoid C99-ism
81800         * tests/test-c-stack.c (main): Fix whitespace, move declaration
81801         before statement.
81802         Reported by Alain Guibert.
81804 2008-08-10  Jim Meyering  <meyering@redhat.com>
81806         ensure that return value of uinttostr et al are not ignored
81807         * lib/inttostr.h (__GNUC_PREREQ): Define.
81808         (__attribute_warn_unused_result__): Define.
81809         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
81811 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
81813         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
81814         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
81816 2008-08-07  Jim Meyering  <meyering@redhat.com>
81818         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
81820         * modules/mkstemp (License): Relicense under LGPLv2+.
81821         * modules/tempname (License): Likewise.
81823 2008-08-06  Bruno Haible  <bruno@clisp.org>
81825         * lib/poll.c (poll): Further micro-optimization.
81827 2008-08-06  Jim Meyering  <meyering@redhat.com>
81829         inet_pton.c: use locale-independent tolower
81830         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
81831         (inet_pton6): Use c_tolower rather than tolower.
81832         * modules/inet_pton (Depends-on): Add c-ctype.
81834 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
81836         * lib/poll.c (poll): Avoid division when timeout is 0, cache
81837         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
81839 2008-08-06  Jim Meyering  <meyering@redhat.com>
81841         * modules/inet_pton (License): Relicense under LGPLv2+.
81843 2008-08-03  Bruno Haible  <bruno@clisp.org>
81845         Additional non-aborting API for lock and tls.
81846         * lib/lock.h: Include <errno.h>.
81847         (glthread_lock_init): New macro/function.
81848         (gl_lock_init): Define as wrapper around glthread_lock_init.
81849         (glthread_lock_lock): New macro/function.
81850         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
81851         (glthread_lock_unlock): New macro/function.
81852         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
81853         (glthread_lock_destroy): New macro/function.
81854         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
81855         (glthread_rwlock_init): New macro/function.
81856         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
81857         (glthread_rwlock_rdlock): New macro/function.
81858         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
81859         (glthread_rwlock_wrlock): New macro/function.
81860         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
81861         (glthread_rwlock_unlock): New macro/function.
81862         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
81863         (glthread_rwlock_destroy): New macro/function.
81864         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
81865         (glthread_recursive_lock_init): New macro/function.
81866         (gl_recursive_lock_init): Define as wrapper around
81867         glthread_recursive_lock_init.
81868         (glthread_recursive_lock_lock): New macro/function.
81869         (gl_recursive_lock_lock): Define as wrapper around
81870         glthread_recursive_lock_lock.
81871         (glthread_recursive_lock_unlock): New macro/function.
81872         (gl_recursive_lock_unlock): Define as wrapper around
81873         glthread_recursive_lock_unlock.
81874         (glthread_recursive_lock_destroy): New macro/function.
81875         (gl_recursive_lock_destroy): Define as wrapper around
81876         glthread_recursive_lock_destroy.
81877         (glthread_once): New macro/function.
81878         (gl_once): Define as wrapper around glthread_once.
81879         Update function declarations.
81880         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
81881         glthread_rwlock_init. Return error code.
81882         (glthread_rwlock_rdlock_multithreaded): Renamed from
81883         glthread_rwlock_rdlock. Return error code.
81884         (glthread_rwlock_wrlock_multithreaded): Renamed from
81885         glthread_rwlock_wrlock. Return error code.
81886         (glthread_rwlock_unlock_multithreaded): Renamed from
81887         glthread_rwlock_unlock. Return error code.
81888         (glthread_rwlock_destroy_multithreaded): Renamed from
81889         glthread_rwlock_destroy. Return error code.
81890         (glthread_recursive_lock_init_multithreaded): Renamed from
81891         glthread_recursive_lock_init. Return error code.
81892         (glthread_recursive_lock_lock_multithreaded): Renamed from
81893         glthread_recursive_lock_lock. Return error code.
81894         (glthread_recursive_lock_unlock_multithreaded): Renamed from
81895         glthread_recursive_lock_unlock. Return error code.
81896         (glthread_recursive_lock_destroy_multithreaded): Renamed from
81897         glthread_recursive_lock_destroy. Return error code.
81898         (glthread_once_call): Make static.
81899         (glthread_once_multithreaded): Renamed from glthread_once.
81900         * lib/tls.h: Include <errno.h>.
81901         (glthread_tls_key_init): New macro/function.
81902         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
81903         (glthread_tls_set): New macro/function.
81904         (gl_tls_set): Define as wrapper around glthread_tls_set.
81905         (glthread_tls_key_destroy): New macro/function.
81906         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
81907         Update function declarations.
81908         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
81909         glthread_tls_get.
81910         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
81912 2008-08-04  Eric Blake  <ebb9@byu.net>
81914         gnumakefile: use space, not TAB, outside of targets
81915         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
81917 2008-08-02  Jim Meyering  <meyering@redhat.com>
81919         getdate.y: avoid locale-dependent date parsing failure
81920         In Turkish locales, getdate would fail to recognize keywords
81921         containing a lowercase "i".  The solution is not to rely on
81922         locale-sensitive case-conversion.
81923         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
81924         (lookup_word): Use c_toupper in place of toupper.
81925         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
81926         Reported by Vefa Bicakci <bicave@superonline.com> in
81927         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
81928         * modules/getdate (Depends-on): Add c-ctype.
81930 2008-08-02  Bruno Haible  <bruno@clisp.org>
81932         * gnulib-tool (func_import): When updating or creating a .gitignore
81933         file, prepend each added line with a slash, and ignore leading slashes
81934         from the existing lines.
81935         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
81937 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81939         Portability fix for GNU make 3.79.1.
81940         * top/GNUmakefile: Avoid 'else COND', which older GNU make
81941         versions do not understand.
81943 2008-08-01  Bruno Haible  <bruno@clisp.org>
81945         Work around bug of HP-UX 10.20 cc with -0.0 literal.
81946         * tests/test-isnanf.h (zero): New variable.
81947         (main): Avoid literal -0.0f.
81948         * tests/test-isnand.h (zero): New variable.
81949         (main): Avoid literal -0.0.
81950         * tests/test-isnanl.h (zero): New variable.
81951         (main): Avoid literal -0.0L.
81952         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
81953         (test_float, test_double, test_long_double): Avoid literals -0.0f,
81954         -0.0, -0.0L.
81955         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
81956         (test_signbitd): Avoid literal -0.0.
81957         (test_signbitl): Avoid literal -0.0L.
81958         * tests/test-ceilf1.c (zero): New variable.
81959         (main): Avoid literal -0.0f.
81960         * tests/test-ceill.c (zero): New variable.
81961         (main): Avoid literal -0.0L.
81962         * tests/test-floorf1.c (zero): New variable.
81963         (main): Avoid literal -0.0f.
81964         * tests/test-floorl.c (zero): New variable.
81965         (main): Avoid literal -0.0L.
81966         * tests/test-roundf1.c (zero): New variable.
81967         (main): Avoid literal -0.0f.
81968         * tests/test-round1.c (zero): New variable.
81969         (main): Avoid literal -0.0.
81970         * tests/test-roundl.c (zero): New variable.
81971         (main): Avoid literal -0.0L.
81972         * tests/test-truncf1.c (zero): New variable.
81973         (main): Avoid literal -0.0f.
81974         * tests/test-trunc1.c (zero): New variable.
81975         (main): Avoid literal -0.0.
81976         * tests/test-truncl.c (zero): New variable.
81977         (main): Avoid literal -0.0L.
81978         * tests/test-frexp.c (zero): New variable.
81979         (main): Avoid literal -0.0.
81980         * tests/test-frexpl.c (zero): New variable.
81981         (main): Avoid literal -0.0L.
81982         * tests/test-ldexpl.c (zero): New variable.
81983         (main): Avoid literal -0.0L.
81984         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
81985         (zerod, zerol): New variables.
81986         (test_function): Avoid literals -0.0, -0.0L.
81987         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
81988         (zerod, zerol): New variables.
81989         (test_function): Avoid literals -0.0, -0.0L.
81990         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
81991         (zerod, zerol): New variables.
81992         (test_function): Avoid literals -0.0, -0.0L.
81993         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
81994         (zerod, zerol): New variables.
81995         (test_function): Avoid literals -0.0, -0.0L.
81996         * tests/test-strtod.c (zero): New variable.
81997         (main): Avoid literal -0.0.
81998         Reported by Jonathan C. Patschke <jp@centtech.com>.
82000 2008-07-31  Jim Meyering  <meyering@redhat.com>
82002         sha256.h: correct definition of SHA224_DIGEST_SIZE
82003         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
82004         Reported by Paulie Pena IV <paulie4@gmail.com>.
82005         Define as 224 / 8, rather than as a literal.
82006         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
82007         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
82008         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
82010 2008-07-31  Bruno Haible  <bruno@clisp.org>
82012         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
82013         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
82014         Reported by Jonathan Patschke <jp@centtech.com>.
82016 2008-07-31  Bruno Haible  <bruno@clisp.org>
82018         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
82019         Reported by Paolo Bonzini <bonzini@gnu.org>.
82021 2008-07-30  Eric Blake  <ebb9@byu.net>
82023         test-strtod: allow compilation without -lm
82024         * tests/test-strtod.c (main): Avoid link dependence on fabs.
82025         Reported by Dennis Clarke <blastwave@gmail.com>.
82027 2008-07-28  Jim Meyering  <meyering@redhat.com>
82029         bootstrap: work also when there are no .po files in po/
82030         * build-aux/bootstrap (update_po_files): Complete the change
82031         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
82033 2008-07-27  Jim Meyering  <meyering@redhat.com>
82035         * users.txt: Add zile.
82037 2008-07-26  Ben Pfaff  <blp@gnu.org>
82039         Add missing dependencies on new m4/exponent[fdl].m4 files.
82040         * modules/isnanf-nolibm: Add m4/exponentf.m4.
82041         * modules/isnand-nolibm: Add m4/exponentd.m4.
82042         * modules/isnanl-nolibm: Add m4/exponentl.m4.
82043         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
82044         m4/isnan[fdl].m4, because the macros actually used moved.
82045         Reported by Jim Meyering.
82047 2008-07-14  Ben Pfaff  <blp@gnu.org>
82049         Add isinf module.
82050         * lib/isinf.c: New file.
82051         * lib/math.in.h: Define isinf macro if we have decided to replace
82052         it.
82053         * m4/isinf.m4: New file.
82054         * m4/math_h.m4: Initialize and substitute variables for isinf
82055         module.
82056         * modules/isinf: New file.
82057         * modules/isinf-tests: New file.
82058         * modules/math: Add substitutions for new module.
82059         * tests/test-isinf.c: New file.
82060         * doc/posix-functions/isinf.texi: Mention new module.
82061         * MODULES.html.sh: Mention new module.
82063 2008-07-14  Ben Pfaff  <blp@gnu.org>
82065         Factor out some macros for use by additional modules.
82066         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
82067         exponentf.m4.
82068         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
82069         exponentd.m4.
82070         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
82071         file exponentl.m4.
82072         * m4/exponentf.m4: New file.
82073         * m4/exponentd.m4: New file.
82074         * m4/exponentl.m4: New file.
82075         * modules/isnanf: Use new file m4/exponentf.m4.
82076         * modules/isnand: Use new file m4/exponentd.m4.
82077         * modules/isnanl: Use new file m4/exponentl.m4.
82079 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
82081         mktime.c: normalize tp->tm_isdst value to -1/0/1.
82082         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
82083         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
82084         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
82086         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
82087         readlink on platforms without PATH_MAX.
82089 2008-07-21  Eric Blake  <ebb9@byu.net>
82091         Warn, not fail, on stale version.
82092         * top/GNUmakefile (_curr-ver): Tone down previous patch.
82094         Don't allow installation with stale devel version number.
82095         * top/GNUmakefile (_is-install-target): New macro.
82096         (_curr-ver): Forbid installation with stale version number.
82098 2008-07-20  Bruno Haible  <bruno@clisp.org>
82100         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
82101         TESTS_ENVIRONMENT.
82102         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
82104 2008-07-20  Bruno Haible  <bruno@clisp.org>
82106         * lib/c-stack.h (c_stack_action): Add documentation.
82107         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
82109 2008-07-20  Bruno Haible  <bruno@clisp.org>
82111         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
82112         * modules/readlink (License): Likewise.
82114 2008-07-17  Eric Blake  <ebb9@byu.net>
82116         * modules/c-stack (Link): Fix typo.
82118         Make c-stack use libsigsegv, when available.
82119         * modules/c-stack (Depends-on): Add libsigsegv.
82120         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
82121         needed.
82122         * lib/c-stack.c (SIGSTKSZ): Define fallback.
82123         (segv_handler, overflow_handler, c_stack_action)
82124         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
82125         implementation when libsigsegv is available, but only when using
82126         the library is necessary.
82127         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
82128         comment, explaining why XSI check fails on Linux.
82129         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
82130         * tests/test-c-stack2.sh: Tweak skip message.
82131         * NEWS: Document new link-time requirements.
82133 2008-07-16  Eric Blake  <ebb9@byu.net>
82135         c-stack: Expose false positives when not using libsigsegv.
82136         * modules/c-stack-tests (Files): Expand test.
82137         * tests/test-c-stack.c (main): Add means to conditionally trigger
82138         non-overflow SIGSEGV.
82139         * tests/test-c-stack2.sh: New file.
82141 2008-07-14  Bruno Haible  <bruno@clisp.org>
82143         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
82144         Reported by Eric Blake.
82146 2008-07-14  Sam Steingold  <sds@gnu.org>
82147             Bruno Haible  <bruno@clisp.org>
82149         New module libsigsegv.
82150         * modules/libsigsegv: New file.
82151         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
82152         modifications.
82153         * MODULES.html.sh (Signal handling): New section.
82155 2008-07-14  Bruno Haible  <bruno@clisp.org>
82157         * modules/unictype/ctype-* (Description): Add the word "function".
82158         Improves the resulting doc in MODULES.html.
82160 2008-07-12  Ben Pfaff  <blp@gnu.org>
82162         Add longlong module.
82163         * modules/longlong: New file.
82165 2008-07-12  Bruno Haible  <bruno@clisp.org>
82167         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
82168         to empty.
82170 2008-07-10  Ben Pfaff  <blp@gnu.org>
82172         Add isnan module.
82173         * doc/posix-functions/isnan.texi: Mention new module.
82174         * lib/math.in.h: Define isnan macro if we have decided to replace
82175         it.
82176         * m4/isnan.m4: New file.
82177         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
82178         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
82179         also.
82180         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
82181         redundancy.
82182         * m4/math_h.m4: Initialize and substitute variables for isnan
82183         module.
82184         * modules/isnan: New file.
82185         * modules/isnan-tests: New file.
82186         * modules/math: Add substitutions for new module.
82187         * tests/test-isnan.c: New file.
82188         * MODULES.html.sh: Mention new module.
82190 2008-07-10  Ben Pfaff  <blp@gnu.org>
82192         Add isnanf module.
82193         * lib/isnanf.m4: New file.
82194         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
82195         (gl_HAVE_ISNANF_IN_LIBM): New macro.
82196         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
82197         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
82198         * modules/isnanf: New file.
82199         * modules/isnanf-tests: New file.
82200         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
82201         files.
82202         * tests/test-isnanf-nolibm.c: factored most of its contents into
82203         new file tests/test-isnanf.h.
82204         * tests/test-isnanf.h: New file.
82205         * tests/test-isnanf.c: New file.
82206         * MODULES.html.sh: Mention new module.
82207         * doc/glibc-functions/isnanf.texi: Mention new module.
82209 2008-07-10  Ben Pfaff  <blp@gnu.org>
82211         Add isnand module.
82212         * lib/isnand.h: New file.
82213         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
82214         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
82215         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
82216         functionality also.
82217         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
82218         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
82219         (gl_HAVE_ISNAND_IN_LIBM): New macro.
82220         * modules/isnand: New file.
82221         * modules/isnand-tests: New file.
82222         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
82223         files.
82224         * tests/test-isnand-nolibm.c: factored most of its contents into
82225         new file tests/test-isnand.h.
82226         * tests/test-isnand.h: New file.
82227         * tests/test-isnand.c: New file.
82228         * MODULES.html.sh: Mention new module.
82230 2008-07-10  Ben Pfaff  <blp@gnu.org>
82232         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
82233         * lib/isnand.h: Rename lib/isnand-nolibm.h.
82234         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
82235         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
82236         * modules/isnanf-nolibm: Update references to renamed files.
82237         * modules/isnand-nolibm: Likewise.
82238         * modules/isnanf-nolibm-tests: Likewise.
82239         * modules/isnand-nolibm-tests: Likewise.
82240         * lib/frexp.c: Likewise.
82241         * lib/isfinite.c: Likewise.
82242         * lib/signbitd.c: Likewise.
82243         * lib/signbitf.c: Likewise.
82244         * lib/vasnprintf.c: Likewise.
82245         * tests/test-ceilf1.c: Likewise.
82246         * tests/test-ceilf2.c: Likewise.
82247         * tests/test-floorf1.c: Likewise.
82248         * tests/test-floorf2.c: Likewise.
82249         * tests/test-frexp.c: Likewise.
82250         * tests/test-round1.c: Likewise.
82251         * tests/test-round2.c: Likewise.
82252         * tests/test-roundf1.c: Likewise.
82253         * tests/test-strtod.c: Likewise.
82254         * tests/test-trunc1.c: Likewise.
82255         * tests/test-trunc2.c: Likewise.
82256         * tests/test-truncf1.c: Likewise.
82257         * tests/test-truncf2.c: Likewise.
82258         * NEWS: Mention the renamed header files.
82260 2008-07-11  Jim Meyering  <meyering@redhat.com>
82262         vc-list-files: make the last-resort awk code more portable
82263         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
82264         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
82265         does not support it.
82267 2008-07-10  Eric Blake  <ebb9@byu.net>
82269         Work with tar's bootstrap.
82270         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
82271         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
82272         an m4 comment.
82274 2008-07-09  Jim Meyering  <meyering@redhat.com>
82276         posix-shell.m4: fix typo that made this test malfunction
82277         * m4/posix-shell.m4: Remove capitalization in variable name.
82279 2008-07-08  Bruno Haible  <bruno@clisp.org>
82281         * m4/onceonly.m4: Update comments.
82282         Reported by Ben Pfaff <blp@cs.stanford.edu>.
82284 2008-07-04  Jim Meyering  <meyering@redhat.com>
82286         * users.txt: Add vc-dwim.
82287         (bison, coreutils): Use the gitweb URL.
82289 2008-07-03  Jim Meyering  <meyering@redhat.com>
82291         * users.txt: Add libffcall.  From Sam Steingold.
82293 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
82295         getdate.y: do not ignore TZ with relative day, month or year offset
82296         * lib/getdate.y (get_date): Move the tz-handling block to follow the
82297         relative-date-handling, since otherwise, the latter would clobber the
82298         sole output (an updated Start value) of the tz-handling block.
82299         * tests/test-getdate.c: Tests for the fix
82301 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82303         Recognize 'foo_LIBRARIES += libgnu.a'.
82304         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
82305         makefile snippet has already specified an installation location,
82306         also using '+='.
82308 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
82310         getdate.y: factor out common actions
82311         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
82312         Use them in place of open-coded actions.
82314 2008-07-01  Simon Josefsson  <simon@josefsson.org>
82316         Add self-test for getdate module.
82317         * modules/getdate-tests: New file.
82318         * tests/test-getdate.c: New file.
82320 2008-06-29  Bruno Haible  <bruno@clisp.org>
82322         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
82323         .gitignore.
82324         Reported by Sylvain Beucler <beuc@beuc.net>.
82326 2008-06-29  Bruno Haible  <bruno@clisp.org>
82328         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
82329         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
82331 2008-06-29  Bruno Haible  <bruno@clisp.org>
82333         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
82334         EXTRA_DIST.
82335         Reported by Sylvain Beucler <beuc@beuc.net>.
82337 2008-06-26  Jim Meyering  <meyering@redhat.com>
82339         make several modules depend on the "open" module
82340         This provides slightly increased consistency when opening-for-write
82341         the name of a non-directory spelled with a trailing slash.
82342         * modules/chdir-safer: Likewise.
82343         * modules/chown: Likewise.
82344         * modules/clean-temp: Likewise.
82345         * modules/copy-file: Likewise.
82346         * modules/fchdir: Likewise.
82347         * modules/fcntl-safer: Likewise.
82348         * modules/pipe: Likewise.
82349         * modules/utime: Likewise.
82350         Prompted by Eric Blake and Bruno Haible.
82352 2008-06-24  Andreas Schwab  <schwab@suse.de>
82354         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
82355         literals can be used as initializers for global variables.
82357 2008-06-23  Eric Blake  <ebb9@byu.net>
82359         Make gnulib-cache.m4 easier to diff.
82360         * gnulib-tool (func_import): Allow newlines when reading cached
82361         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
82363 2008-06-23  Bruno Haible  <bruno@clisp.org>
82365         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
82366         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
82367         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
82368         m4/signalblocking.m4.
82369         (gl_PREREQ_SIGACTION): Don't invoke it.
82370         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
82371         gl_PREREQ_SIG_HANDLER_H.
82372         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
82373         Don't check for sigaction here.
82375 2008-06-23  Bruno Haible  <bruno@clisp.org>
82377         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
82378         (install_handlers): Don't set the SA_RESETHAND flag.
82380 2008-06-23  Bruno Haible  <bruno@clisp.org>
82382         * m4/sigaction.m4: Comment fixes.
82383         * lib/signal.in.h: Likewise.
82385 2008-06-23  Eric Blake  <ebb9@byu.net>
82387         Fix typo.
82388         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
82390         Avoid SA_ namespace.
82391         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
82392         Reported by Ralf Wildenhues.
82394         Avoid test failure due to SA_RESTORER.
82395         * tests/test-sigaction.c (SA_MASK): New macro.
82396         (main): Avoid failing due to extension flags being set.
82397         Reported by Jim Meyering.
82399         Revert use of sig-handler.h in sigprocmask.c.
82400         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
82401         it requires the existence of struct sigaction.
82402         * lib/sigprocmask.c (handler_t): Restore typedef.
82403         (rpl_signal, old_handlers): Use local type.
82405 2008-06-22  Bruno Haible  <bruno@clisp.org>
82407         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
82408         conditionally.
82409         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
82411 2008-06-22  Bruno Haible  <bruno@clisp.org>
82413         * doc/posix-functions/siginterrupt.texi: Move note.
82415         * lib/signal.in.h (SA_RESTART): New macro.
82416         * lib/sigaction.c: Update comment.
82418         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
82420         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
82421         (gl_PREREQ_SIGPROCMASK): Invoke it.
82422         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
82424         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
82426         * lib/sigprocmask.c: Update a comment.
82428 2008-06-21  Eric Blake  <ebb9@byu.net>
82430         Use sigaction module rather than signal().
82431         * modules/c-stack (Depends-on): Add sigaction.
82432         * modules/fatal-signal (Depends-on): Likewise.
82433         * modules/nanosleep (Depends-on): Likewise.
82434         * modules/sigprocmask (Files): Add sig-handler.h.
82435         * modules/sigaction (Files): Likewise.
82436         * lib/sig-handler.h (get_handler): New file, suggested by Paul
82437         Eggert.
82438         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
82439         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
82440         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
82441         (init_fatal_signals): Likewise.
82442         * lib/nanosleep.c (rpl_nanosleep): Likewise.
82443         (siginterrupt): Delete fallback.
82444         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
82445         instead.
82446         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
82447         siginterrupt.
82449         New module sigaction, for mingw.
82450         * modules/sigaction: New module...
82451         * modules/sigaction-tests: ...and its test.
82452         * m4/sigaction.m4: New file.
82453         * lib/sigaction.c: Likewise.
82454         * tests/test-sigaction.c: Likewise.
82455         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
82456         * modules/signal (Makefile.am): Likewise.
82457         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
82458         needed.
82459         * doc/posix-headers/signal.texi (signal.h): Mention provided
82460         types.
82461         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
82462         that sigaction is preferable.
82463         * doc/posix-functions/sigaction.texi (sigaction): Mention new
82464         module.
82465         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
82466         sigaction.
82468         Improve robustness of sigprocmask by overriding signal.
82469         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
82470         is in use.
82471         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
82472         (SIGKILL, SIGSTOP): Provide fallbacks.
82473         (rpl_signal): Implement.
82474         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
82475         signal can be called inside handlers.
82477         Fix nanosleep module on mingw.
82478         * modules/nanosleep (Depends-on): Add sys_select.
82479         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
82481         Fix licensing of sigprocmask.
82482         * modules/raise (License): Relicense as LGPL.
82484 2008-06-21  Bruno Haible  <bruno@clisp.org>
82486         * lib/propername.c (proper_name_utf8): Don't use the transliterated
82487         result if it contains question marks.
82488         Reported by Michael Geng <linux@michaelgeng.de>.
82490 2008-06-19  Bruno Haible  <bruno@clisp.org>
82492         Fix CVS-ism.
82493         * doc/gnulib.texi: Include updated-stamp.texi.
82494         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
82495         (updated-stamp.texi): New rule.
82496         (gnulib.info): Depend on it.
82497         * doc/.gitignore: Add updated-stamp.texi.
82498         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
82500 2008-06-19  Bruno Haible  <bruno@clisp.org>
82502         * doc/Makefile (gnulib.info): Update and simplify dependencies.
82503         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
82505 2008-06-19  Eric Blake  <ebb9@byu.net>
82507         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
82508         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
82509         Reported by Stepan Kasal.
82511 2008-06-18  Bruno Haible  <bruno@clisp.org>
82513         * lib/fatal-signal.c (init_fatal_signals): Add comment.
82514         Reported by Eric Blake.
82516 2008-06-18  Eric Blake  <ebb9@byu.net>
82518         Work around cygwin 1.5.25 strsignal bug.
82519         * tests/test-strsignal.c: Allow for const char *.
82520         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
82522 2008-06-18  Simon Josefsson  <simon@josefsson.org>
82524         * users.txt: Update URL to article and add author/date
82525         information.
82527 2008-06-17  Bruno Haible  <bruno@clisp.org>
82529         New macro gl_DISABLE_THREADS.
82530         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
82531         if the user did not pass --enable-threads or --disable-threads option.
82532         (gl_DISABLE_THREADS): New macro.
82533         Reported by Eric Blake <ebb9@byu.net>.
82535 2008-06-17  Bruno Haible  <bruno@clisp.org>
82537         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
82538         when the macro ignores it.
82539         Based on a patch by Eric Blake <ebb9@byu.net>.
82541 2008-06-17  Bruno Haible  <bruno@clisp.org>
82543         * modules/tls (License): Change to LGPLv2+.
82544         Reported by Eric Blake.
82546 2008-06-17  Eric Blake  <ebb9@byu.net>
82548         Simplify c-stack prerequisites.
82549         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
82550         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
82551         no longer requires <ucontext.h> to exist.  Optimize setrlimit
82552         check.
82553         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
82554         <sys/resource.h>.
82556         Move c-stack test into testsuite.
82557         * modules/c-stack-tests: New file.
82558         * lib/c-stack.c [DEBUG]: Move test program...
82559         * tests/test-c-stack.c: ...into this new file.  Skip rather than
82560         fail test if sigaltstack is lacking.
82561         * tests/test-c-stack.sh: New driver file.
82563 2008-06-16  Eric Blake  <ebb9@byu.net>
82565         Use raise module consistently.
82566         * modules/fatal-signal (Depends-on): Add raise.
82567         * modules/sigprocmask (Depends-on): Likewise.
82568         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
82569         * lib/sigprocmask.c (sigprocmask): Likewise.
82570         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
82571         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
82573         Fix compliance bug in sigpending.
82574         * lib/sigprocmask.c (sigpending): Return pending array via
82575         parameter, not return value.
82577 2008-06-14  Eric Blake  <ebb9@byu.net>
82579         Improve obstack-printf test code.
82580         * tests/test-obstack-printf.c (test_function): Fix comment, and
82581         simplify usage of obstack_* in macros.  Add a test for coverage.
82582         Reported by Bruno Haible.
82584 2008-06-14  Bruno Haible  <bruno@clisp.org>
82586         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
82587         array size as a constant, not as a const variable.
82588         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
82589         AC_USE_SYSTEM_EXTENSIONS.
82590         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
82591         Test whether the obstack_printf function actually exists.
82592         * modules/obstack-printf (Depends-on): Add extensions.
82593         (Include): Remove obstack.h.
82594         * modules/obstack-printf-posix (Depends-on): Add extensions.
82595         (Include): Remove obstack.h.
82597 2008-06-13  Eric Blake  <ebb9@byu.net>
82599         Add obstack-printf and obstack-printf-posix modules.
82600         * modules/obstack-printf: New file.
82601         * modules/obstack-printf-posix: Likewise.
82602         * MODULES.html.sh (Misc): Mention them.
82603         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
82604         Likewise.
82605         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
82606         Likewise.
82607         * modules/stdio (Makefile.am): Accomodate new modules.
82608         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
82609         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
82610         Declare.
82611         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
82612         functions.
82613         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
82614         (gl_REPLACE_OBSTACK_PRINTF): New macros
82615         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
82616         * tests/test-obstack-printf.c: New file.
82617         * modules/obstack-printf-tests: Likewise.
82618         * modules/obstack-printf-posix-tests: Likewise.
82620 2008-06-11  Bruno Haible  <bruno@clisp.org>
82622         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
82623         * lib/open.c: Include errno.h.
82624         (open): Fail when attempting to write to a file that has a trailing
82625         slash.
82626         * tests/test-open.c (main): Test against trailing slash bug.
82627         * doc/posix-functions/open.texi: Mention the trailing slash bug.
82629 2008-06-10  Bruno Haible  <bruno@clisp.org>
82631         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
82632         for $? to work inside the trap command, with various /bin/sh-s.
82633         * tests/test-vc-list-files-cvs.sh: Likewise.
82635 2008-06-10  Bruno Haible  <bruno@clisp.org>
82637         * lib/acl-internal.h: Don't include gettext.h here.
82638         * lib/set-mode-acl.c: Include gettext.h here.
82639         * lib/copy-acl.c: Likewise.
82641 2008-06-10  Bruno Haible  <bruno@clisp.org>
82643         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
82644         * lib/wait-process.c (wait_subprocess): Likewise.
82645         * lib/execute.h (execute): Add termsigp argument.
82646         * lib/execute.c (execute): Likewise.
82647         * lib/csharpcomp.c (compile_csharp_using_pnet,
82648         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
82649         * lib/csharpexec.c (execute_csharp_using_pnet,
82650         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
82651         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
82652         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
82653         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
82654         is_jikes_present): Update.
82655         * lib/javaexec.c (execute_java_class): Update.
82656         * lib/javaversion.c (execute_and_read_line): Update.
82657         * NEWS: Document the changes.
82658         Reported by Eric Blake.
82660 2008-06-10  Eric Blake  <ebb9@byu.net>
82662         Add missing include.
82663         * tests/test-strstr.c (includes): Add <signal.h>.
82664         * tests/test-strcasestr.c (includes): Likewise.
82665         * tests/test-memmem.c (includes): Likewise.
82667 2008-06-10  Bruno Haible  <bruno@clisp.org>
82669         * lib/wait-process.c (wait_subprocess): Add an assertion.
82671 2008-06-10  Bruno Haible  <bruno@clisp.org>
82673         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
82675 2008-06-10  Bruno Haible  <bruno@clisp.org>
82677         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
82678         using alarm().
82679         * tests/test-strcasestr.c (main): Likewise.
82680         * tests/test-strstr.c (main): Likewise.
82682 2008-06-09  Bruno Haible  <bruno@clisp.org>
82684         Work around the Solaris 10 ACE ACLs ABI change.
82685         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
82686         declare if ACL_NO_TRIVIAL is present.
82687         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
82688         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
82689         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
82690         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
82691         define if ACL_NO_TRIVIAL is present.
82692         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
82693         and use the current ABI.
82694         (file_has_acl): Use same #if condition as elsewhere.
82695         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
82696         in use, and use the current ABI.
82697         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
82698         Reported by Jim Meyering.
82700 2008-06-09  Eric Blake  <ebb9@byu.net>
82702         Work around environments that (stupidly) ignore SIGALRM.
82703         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
82704         before using alarm().
82705         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
82706         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
82707         Reported by Ian Beckwith <ianb@erislabs.net>.
82709         Produce autobuild blurb earlier in log.
82710         * modules/autobuild (configure.ac-early): Move AB_INIT here.
82712 2008-06-09  Jim Meyering  <meyering@redhat.com>
82713         and Ondřej Vašík  <ovasik@redhat.com>
82715         utimens.c: correct kernel bug work-around
82716         Ondřej Vašík found that the invalid return value of 280 indicates
82717         failure, not success, and the kernel bug we're trying to work
82718         around affects not just the utimensat call, but also the fallback
82719         futimens call.
82720         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
82721         not success.
82722         [HAVE_FUTIMENS]: Use the same work-around, here.
82724 2008-06-09  Jim Meyering  <meyering@redhat.com>
82726         add more guards around definition of ACE_-related code
82727         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
82728         ALLOW and ACE_OWNER are also defined.
82730 2008-06-08  Bruno Haible  <bruno@clisp.org>
82732         * lib/acl-internal.h: Add me as co-author.
82733         * lib/file-has-acl.c: Likewise.
82734         * lib/set-mode-acl.c: Likewise.
82735         * lib/copy-acl.c: Likewise.
82737 2008-06-08  Bruno Haible  <bruno@clisp.org>
82739         Add support for AIX ACLs.
82740         * lib/acl-internal.h (acl_nontrivial): New declaration.
82741         * lib/file-has-acl.c (acl_nontrivial): New function.
82742         (file_has_acl): Add implementation using AIX 4 ACL API.
82743         * lib/set-mode-acl.c (qset_acl): Likewise.
82744         * lib/copy-acl.c (qcopy_acl): Likewise.
82746 2008-06-08  Bruno Haible  <bruno@clisp.org>
82748         Add support for HP-UX ACLs.
82749         * lib/acl-internal.h (acl_nontrivial): New declaration.
82750         * lib/file-has-acl.c (acl_nontrivial): New function.
82751         (file_has_acl): Add implementation using HP-UX 11 ACL API.
82752         * lib/set-mode-acl.c (qset_acl): Likewise.
82753         * lib/copy-acl.c (qcopy_acl): Likewise.
82755 2008-06-08  Bruno Haible  <bruno@clisp.org>
82757         Add support for Cygwin ACLs.
82758         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
82759         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
82760         the chmod_or_fchmod call.
82761         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
82763 2008-06-08  Bruno Haible  <bruno@clisp.org>
82765         Fix bug with setuid modes in Solaris 10+ code.
82766         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
82767         succeeded, when the mode contains some special bits.
82769 2008-06-08  Bruno Haible  <bruno@clisp.org>
82771         Add support for Solaris 7..10 ACLs.
82772         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
82773         declarations.
82774         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
82775         functions.
82776         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
82777         * lib/set-mode-acl.c (qset_acl): Likewise.
82778         * lib/copy-acl.c (qcopy_acl): Likewise.
82780 2008-06-08  Bruno Haible  <bruno@clisp.org>
82782         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
82783         declaration.
82784         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
82785         (acl_access_nontrivial): Remove MacOS X case.
82786         (file_has_acl): Use acl_extended_nontrivial.
82787         * lib/copy-acl.c (qcopy_acl): Likewise.
82789 2008-06-08  Bruno Haible  <bruno@clisp.org>
82791         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
82793 2008-06-08  Jim Meyering  <meyering@redhat.com>
82795         * modules/acl (Maintainer): Add Bruno Haible.
82797 2008-06-07  Bruno Haible  <bruno@clisp.org>
82799         Improve support for Tru64 ACLs.
82800         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
82801         ACL on OSF/1.
82803 2008-06-07  Bruno Haible  <bruno@clisp.org>
82805         Add support for MacOS X ACLs.
82806         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
82807         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
82808         * lib/set-mode-acl.c (qset_acl): Likewise.
82809         * lib/copy-acl.c (qcopy_acl): Likewise.
82811 2008-06-07  Bruno Haible  <bruno@clisp.org>
82813         Fix memory leak introduced on 2008-05-22.
82814         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
82815         use.
82817 2008-06-07  Bruno Haible  <bruno@clisp.org>
82819         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
82820         to construct an empty ACL.
82822 2008-06-07  Bruno Haible  <bruno@clisp.org>
82824         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
82825         precisely.
82826         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
82828 2008-06-07  Bruno Haible  <bruno@clisp.org>
82830         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
82831         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
82833 2008-06-07  Bruno Haible  <bruno@clisp.org>
82835         * doc/posix-functions/_setjmp.texi: Explain the use of this function
82836         regardless of POSIX.
82837         * doc/posix-functions/_longjmp.texi: Likewise.
82838         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
82839         SystemV platform in this case.
82841 2008-06-06  Eric Blake  <ebb9@byu.net>
82843         Document abort() bugs.
82844         * doc/posix-functions/abort.texi (abort): Mention anomalies.
82846         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
82847         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
82848         sigsetjmp.
82849         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
82850         siglongjmp, but only as a macro.
82851         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
82852         is obsolete.
82853         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
82855         Tweak documentation to cover cygwin argz bugs.
82856         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
82857         argz bug fix; no code change needed since no cygwin releases
82858         occurred between the last fix and the bug being tested.
82859         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
82860         module and recently fixed cygwin bugs.
82861         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
82862         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
82863         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
82864         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
82865         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
82866         Likewise.
82867         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
82868         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
82869         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
82870         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
82871         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
82872         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
82873         Likewise.
82875         Avoid gcc warning on cygwin.
82876         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
82877         !ACL_NO_TRIVIAL]: Avoid unused variable.
82879 2008-06-05  Eric Blake  <ebb9@byu.net>
82881         Be tolerant of UNKNOWN version in gnulib-tool test dir.
82882         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
82883         git-version-gen fails to come up with a version.
82884         Reported by Simon Josefsson.
82886 2008-06-05  Jim Meyering  <meyering@redhat.com>
82887             Paul Eggert  <eggert@cs.ucla.edu>
82889         utimens.c: work around a probable Linux kernel bug
82890         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
82891         appears to be a kernel bug that causes utimensat to return 280
82892         instead of 0, indicating success.
82894 2008-06-04  Bruno Haible  <bruno@clisp.org>
82896         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
82897         2008-06-01 commit.
82899 2008-06-04  Bruno Haible  <bruno@clisp.org>
82901         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
82902         * lib/file-has-acl.c (acl_access_nontrivial): New function.
82903         (file_has_acl): Use it. Save errno afterwards.
82904         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
82906 2008-06-03  Bruno Haible  <bruno@clisp.org>
82908         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
82909         draft code. Simplify #ifs.
82910         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
82911         Put Solaris code after POSIX-draft code. Fix comments regarding
82912         Solaris 10, HP-UX. Mention Cygwin.
82913         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
82915 2008-06-03  Eric Blake  <ebb9@byu.net>
82917         Provide fallback for older kernels.
82918         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
82919         Provide runtime fallback if kernel lacks support.
82920         Reported by Mike Frysinger.
82922 2008-06-02  Bruno Haible  <bruno@clisp.org>
82924         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
82925         it exists.
82927 2008-06-02  Bruno Haible  <bruno@clisp.org>
82929         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
82930         * lib/copy-acl.c (qcopy_acl): Update comment.
82932 2008-06-02  Bruno Haible  <bruno@clisp.org>
82934         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
82935         like ACL APIs.
82937 2008-06-02  Bruno Haible  <bruno@clisp.org>
82939         * tests/test-file-has-acl.sh: Use different code for Cygwin.
82940         * tests/test-set-mode-acl.sh: Likewise.
82941         * tests/test-copy-acl.sh: Likewise.
82942         * tests/test-copy-file.sh: Likewise.
82944 2008-06-02  Bruno Haible  <bruno@clisp.org>
82946         * tests/test-file-has-acl.sh: Remove unused code.
82948 2008-06-01  Bruno Haible  <bruno@clisp.org>
82950         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
82951         (copy_acl): Just a wrapper around qcopy_acl that emits the error
82952         messages.
82953         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
82955 2008-06-01  Bruno Haible  <bruno@clisp.org>
82957         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
82958         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
82959         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
82960         APIs.
82961         * modules/acl-tests (configure.ac): Remove tests now contained in
82962         m4/acl.m4.
82964 2008-06-02  Jim Meyering  <meyering@redhat.com>
82966         announce-gen: use a better key-server host name
82967         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
82968         it may be more consistently reliable.  Suggested by Werner Koch
82969         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
82971 2008-06-01  Bruno Haible  <bruno@clisp.org>
82973         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
82974         Reported by Voroskoi Andras <voroskoi@gmail.com>.
82976 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
82978         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
82980 2008-06-01  Bruno Haible  <bruno@clisp.org>
82982         New ACL tests.
82983         * tests/test-file-has-acl.sh: New file.
82984         * tests/test-file-has-acl.c: New file.
82985         * tests/test-set-mode-acl.sh: New file.
82986         * tests/test-set-mode-acl.c: New file.
82987         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
82988         * tests/test-copy-acl.c: New file.
82989         * modules/acl-tests: New file, based on modules/copy-file-tests.
82990         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
82991         (Depends-on): Add acl-tests.
82992         (configure.ac): Remove checks.
82993         (Makefile.am): Don't create test-sameacls program here any more.
82995 2008-06-01  Bruno Haible  <bruno@clisp.org>
82997         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
82998         * tests/test-sameacls.c: Include progname.h.
82999         (main): Invoke set_program_name. Portability fixes for MacOS X,
83000         Solaris, HP-UX.
83002 2008-06-01  Bruno Haible  <bruno@clisp.org>
83004         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
83005         function.
83006         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
83008 2008-06-01  Bruno Haible  <bruno@clisp.org>
83010         * modules/rpmatch (Depends-on): Add strdup.
83012 2008-06-01  Bruno Haible  <bruno@clisp.org>
83014         * lib/pipe.c: Include unistd-safer.h.
83015         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
83016         * modules/pipe (Depends-on): Add unistd-safer.
83018 2008-05-30  Simon Josefsson  <simon@josefsson.org>
83020         * modules/autobuild (configure.ac): Call AB_INIT.
83022 2008-05-30  Simon Josefsson  <simon@josefsson.org>
83024         * tests/test-getaddrinfo.c: Don't print debug messages by default.
83025         Suggested by Bruno Haible <bruno@clisp.org>.
83027 2008-05-30  Simon Josefsson  <simon@josefsson.org>
83029         * tests/test-base64.c: Cast size_t to unsigned long when invoking
83030         printf.  Use %lu instead of %d.  Reported by Bruno Haible
83031         <bruno@clisp.org>.
83033 2008-05-29  Eric Blake  <ebb9@byu.net>
83035         Prefer new POSIX 200x interfaces over futimesat.
83036         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
83037         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
83038         when available.
83039         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
83041 2008-05-28  Bruno Haible  <bruno@clisp.org>
83043         * modules/stpcpy (License): Change to LGPLv2+.
83044         Requested by David Lutterkort <dlutter@redhat.com>.
83046 2008-05-27  Bruno Haible  <bruno@clisp.org>
83048         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
83049         current mingw.
83050         Reported by Jose E. Marchesi <jemarch@gnu.org>.
83052 2008-05-27  Bruno Haible  <bruno@clisp.org>
83054         * modules/iconv_open (Link): New section, from module 'iconv'.
83055         * modules/striconv (Link): Likewise.
83056         * modules/striconveh (Link): Likewise.
83057         * modules/xstriconv (Link): Likewise.
83058         * modules/unicodeio (Link): Likewise.
83059         * modules/propername (Link): Likewise.
83060         Reported by Jim Meyering.
83062 2008-05-26  Jim Meyering  <meyering@redhat.com>
83064         sha256: do not artificially restrict buffer length to be < 2^32
83065         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
83066         uint32_t to size_t.
83067         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
83068         to match.
83070         avoid unaligned access errors, e.g., on sparc
83071         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
83072         direct access through a possibly-unaligned uint64* pointer.
83073         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
83074         direct access through a possibly-unaligned uint32* pointer.
83075         Prompted by this patch from Tom "spot" Callaway:
83076         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
83078         sha512.c: fix typo in comment
83079         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
83081 2008-05-25  Bruno Haible  <bruno@clisp.org>
83083         * lib/set-mode-acl.c: Renamed from lib/acl.c.
83084         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
83085         (Makefile.am): Update lib_SOURCES.
83087 2008-05-25  Bruno Haible  <bruno@clisp.org>
83089         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
83091 2008-05-25  Jim Meyering  <meyering@redhat.com>
83093         useless-if-before-free: freed expr may have white-space differences
83094         * build-aux/useless-if-before-free: Recognize cases in which the
83095         freed expression differs from the tested one in embedded white
83096         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
83097         $1 was used, so we can't make any regexp shy.  Improved tests now
83098         detect this.
83100         useless-if-before-free: accept white space in the expression.
83101         * build-aux/useless-if-before-free: For now, any white space
83102         in the expression must be identical in the free argument.
83104         useless-if-before-free: efficiency tweak
83105         * build-aux/useless-if-before-free: Make the expression-matching
83106         regexp "shy".
83107         Make the *outer* regexp shy, not the expr-matching one.
83109         update code-in-comment to accept cast of free arg
83110         * build-aux/useless-if-before-free: Update regexp.
83112 2008-05-25  Bruno Haible  <bruno@clisp.org>
83114         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
83115         * modules/copy-file-tests (Files, Makefile.am): Update.
83116         * tests/test-copy-file.c (func_test_copy): Update.
83118 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
83120         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
83122 2008-05-23  Bruno Haible  <bruno@clisp.org>
83124         Improve support for ACLs on OSF/1.
83125         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
83126         Remove fallback for unknown flavors of ACLs.
83128 2008-05-22  Bruno Haible  <bruno@clisp.org>
83130         Add support for ACLs on OSF/1.
83131         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
83132         replacements.
83133         (acl_free_text): New macro fallback.
83134         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
83135         acl_free.
83136         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
83137         acl_free_text function. Require AC_C_INLINE.
83139 2008-05-22  Bruno Haible  <bruno@clisp.org>
83141         Make copy_acl work on MacOS X 10.5.
83142         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
83143         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
83144         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
83145         If MODE_INSIDE_ACL, don't assume that every system has the same text
83146         representation for ACLs as FreeBSD.
83147         * lib/copy-acl.c (copy_acl): Add support for platforms with
83148         !MODE_INSIDE_ACL.
83149         * lib/file-has-acl.c (file_has_acl): Likewise.
83150         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
83151         FreeBSD, MacOS X, or IRIX, respectively.
83153 2008-05-22  Bruno Haible  <bruno@clisp.org>
83155         * lib/acl.h: Don't include <sys/acl.h>.
83156         (GETACLCNT): Move fallback to lib/acl-internal.h.
83157         * lib/acl-internal.h: Include <sys/acl.h> here.
83158         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
83160 2008-05-22  Bruno Haible  <bruno@clisp.org>
83162         Split off copy_acl function to separate file.
83163         * lib/copy-acl.c: New file, extracted from lib/acl.c.
83164         * lib/acl.c (copy_acl): Moved function to separate file.
83165         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
83166         * modules/acl (Files): Add lib/copy-acl.c.
83167         (Makefiles.am): Augment lib_SOURCES.
83169 2008-05-22  Bruno Haible  <bruno@clisp.org>
83171         * modules/copy-file-tests: New file.
83172         * tests/test-copy-file.sh: New file.
83173         * tests/test-copy-file.c: New file.
83174         * tests/test-copy-file-sameacls.c: New file.
83176 2008-05-22  Eric Blake  <ebb9@byu.net>
83178         Avoid gcc warning.
83179         * tests/test-memcmp.c (main): Pass NULL indirectly.
83181 2008-05-21  Bruno Haible  <bruno@clisp.org>
83183         Add reference doc about ACLs.
83184         * doc/acl-resources.txt: New file.
83185         * doc/acl-cygwin.txt: New file.
83187 2008-05-21  Bruno Haible  <bruno@clisp.org>
83189         Avoid one more warning from gcc.
83190         * lib/vasnprintf.c (IF_LINT): Update comments.
83191         (VASNPRINTF): Use it also for the 'prefix' array initializer.
83193 2008-05-21  Jim Meyering  <meyering@redhat.com>
83195         avoid a warning from gcc
83196         * lib/vasnprintf.c (IF_LINT): Define.
83197         (scale10_round_decimal_long_double):
83198         Use it to avoid a "may be used uninitialized" warning.
83199         (scale10_round_decimal_double): Likewise.
83201 2008-05-21  Simon Josefsson  <simon@josefsson.org>
83203         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
83204         declared.
83206 2008-05-20  Bruno Haible  <bruno@clisp.org>
83208         * tests/test-memcmp.c (main): Test also the sign of the result. Test
83209         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
83211 2008-05-20  Simon Josefsson  <simon@josefsson.org>
83213         * modules/memcmp-tests: New file.
83214         * tests/test-memcmp.c: New file.
83216 2008-05-19  Bruno Haible  <bruno@clisp.org>
83218         * modules/propername (Notice, configure.ac): Put quoted "..." into
83219         --keyword option.
83220         * lib/propername.h: Update comments accordingly.
83221         Reported by Eric Blake.
83223 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
83225         * modules/getpass-gnu (Depends-on): Add fseeko.
83227 2008-05-19  Simon Josefsson  <simon@josefsson.org>
83229         * modules/base64-tests: New file.
83231 2008-05-19  Bo Borgerson  <gigabo@gmail.com>
83233         * lib/base64.c (base64_decode_ctx): If a decode context structure
83234         was passed in use it to ignore newlines.  If a context structure
83235         was _not_ passed in, continue to treat newlines as garbage (this
83236         is the historical behavior).  Formerly base64_decode.
83237         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
83238         takes a decode context structure.
83239         * lib/base64.h (base64_decode): Macro for four-argument calls.
83240         (base64_decode_alloc): Likewise.
83241         * lib/base64.c (base64_decode_ctx): If a decode context structure
83242         was passed in use it to ignore newlines.  If a context structure
83243         was _not_ passed in, continue to treat newlines as garbage (this
83244         is the historical behavior).  Formerly base64_decode.
83245         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
83246         takes a decode context structure.
83247         * lib/base64.h (base64_decode): Macro for four-argument calls.
83248         (base64_decode_alloc): Likewise.
83250 2008-05-19  Jim Meyering  <meyering@redhat.com>
83252         avoid a warning from gcc
83253         * lib/trim.c (IF_LINT): Define.
83254         (trim2): Use it to avoid a "may be used uninitialized" warning.
83256         Fix doc typo.
83257         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
83259 2008-05-19  Bruno Haible  <bruno@clisp.org>
83261         * doc/glibc-functions/getpass.texi: Document limits of other
83262         implementations.
83264 2008-05-19  Simon Josefsson  <simon@josefsson.org>
83265             Bruno Haible <bruno@clisp.org>
83267         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
83269 2008-05-18  Bruno Haible  <bruno@clisp.org>
83271         * modules/propername: New file, from GNU gettext.
83272         * lib/propername.h: New file, from GNU gettext.
83273         * lib/propername.c: New file, from GNU gettext.
83274         * MODULES.html.sh (Internationalization functions): Add propername.
83276 2008-05-16  Jim Meyering  <meyering@redhat.com>
83277             Bruno Haible  <bruno@clisp.org>
83279         Avoid some warnings from "gcc -Wshadow".
83280         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
83282 2008-05-15  Eric Blake  <ebb9@byu.net>
83284         Extend previous patch to cygwin 1.7.0.
83285         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
83286         fast implementation in cygwin >= 1.7.0.
83287         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
83288         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
83290 2008-05-15  Bruno Haible  <bruno@clisp.org>
83292         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
83293         implementation in glibc >= 2.9.
83294         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
83295         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
83297 2008-05-15  Bruno Haible  <bruno@clisp.org>
83299         * MODULES.html.sh (Internationalization functions): Remove linebreak.
83300         (Unicode string functions): Add unilbrk/*.
83301         Reported by Karl Berry.
83303 2008-05-15  Eric Blake  <ebb9@byu.net>
83305         Fix violation of <stdbool.h> replacement in regex.
83306         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
83307         * lib/regexec.c (re_search_internal): Likewise.
83308         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
83310 2008-05-15  Jim Meyering  <meyering@redhat.com>
83312         avoid distracting test output when git or cvs is not found
83313         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
83314         * tests/test-vc-list-files-git.sh: Likewise.
83316 2008-05-15  Eric Blake  <ebb9@byu.net>
83318         Glibc finally accepted the memmem speedup code, bugzilla #5514.
83319         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
83320         glibc version.
83321         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
83322         * doc/posix-functions/strstr.texi (strstr): Likewise.
83323         * lib/str-two-way.h (MAX): Sychronize with glibc.
83325 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
83327         * lib/regcomp.c (optimize_utf8): Add a note on why we test
83328         opr.ctx_type.
83329         (calc_first): Initialize constraint field.
83330         (duplicate_node_closure): Use it instead of special casing ANCHORS.
83331         Fix grammar.
83332         (duplicate_node): Merge constraint field for all node types.
83333         (calc_eclosure_iter): Look at constraint field for all node types.
83334         * lib/regex_internal.c (create_cd_newstate): Don't look at
83335         opr.ctx_type.
83337 2008-05-14  Bruno Haible  <bruno@clisp.org>
83339         Help GCC to do better code generation.
83340         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
83341         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
83342         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
83343         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
83344         Declare with attribute 'malloc' if supported.
83346 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
83348         use "echo STR|wc -c" rather than unportable "expr length STR"
83349         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
83350         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
83352 2008-05-14  Jim Meyering  <meyering@redhat.com>
83354         use dd ibs=$n count=1 ... rather than less-portable head -c$n
83355         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
83356         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
83357         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
83358         via Collin Lasse.
83360 2008-05-14  Eric Blake  <ebb9@byu.net>
83362         Avoid quadratic growth in gl_LIBSOURCES.
83363         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
83364         Suggested by Bruno Haible.
83366         Test xmemdup0.
83367         * modules/xmemdup0-tests: New file.
83368         * tests/test-xmemdup0.c: Likewise.
83370 2008-05-13  Eric Blake  <ebb9@byu.net>
83372         Split xmemdup0 into its own module.
83373         * modules/xmemdup0: New file.
83374         * lib/xmemdup0.h: Likewise.
83375         * lib/xmemdup0.c: Likewise.
83376         * MODULES.html.sh (Memory management functions): Add xmemdup0.
83377         * lib/xalloc.h (xmemdup0): Remove.
83378         * lib/xmalloc.c (xmemdup0): Likewise.
83380 2008-05-13  Eric Blake  <ebb9@byu.net>
83381             Bruno Haible  <bruno@clisp.org>
83383         Reduce number of forks required during autoconf.
83384         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
83385         and gl_LIBSOURCES_DIR.
83386         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
83387         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
83388         m4_syscmd per file.
83389         <m4_foreach_w>: Move...
83390         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
83392 2008-05-13  Eric Blake  <ebb9@byu.net>
83394         * gnulib-tool: Fix various comment typos.
83396 2008-05-12  Bruno Haible  <bruno@clisp.org>
83398         Tailor the linebreaking algorithm.
83399         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
83401 2008-05-12  Bruno Haible  <bruno@clisp.org>
83403         Update to Unicode 5.0.0.
83404         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
83405         LBP_JV, LBP_JT. Redistribute values.
83406         (unilbrk_table): Change size.
83407         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
83408         Unicode TR#14 rev. 22.
83409         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
83410         LBP_JV, LBP_JT. Redistribute values.
83411         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
83412         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
83413         Update.
83414         * lib/unilbrk/lbrkprop1.h: Regenerated.
83415         * lib/unilbrk/lbrkprop2.h: Regenerated.
83416         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
83417         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
83418         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
83419         Likewise.
83420         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
83421         Likewise.
83422         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
83423         result.
83424         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
83425         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
83426         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
83427         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
83428         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
83429         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
83431 2008-05-11  Bruno Haible  <bruno@clisp.org>
83433         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
83435 2008-05-11  Bruno Haible  <bruno@clisp.org>
83437         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
83438         * modules/unilbrk/gen-lbrk: New file.
83440 2008-05-11  Bruno Haible  <bruno@clisp.org>
83442         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
83443         * m4/sha512.m4 (gl_SHA512): Likewise.
83445 2008-05-11  Jim Meyering  <meyering@redhat.com>
83447         New modules: crypto/sha256, crypto/sha512 (from coreutils)
83448         * modules/crypto/sha256: New file.
83449         * modules/crypto/sha512: Likewise.
83450         * lib/sha256.c: Likewise.
83451         * lib/sha256.h: Likewise.
83452         * lib/sha512.c: Likewise.
83453         * lib/sha512.h: Likewise.
83454         * lib/u64.h: Likewise.
83455         * m4/sha256.m4: Likewise.
83456         * m4/sha512.m4: Likewise.
83457         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
83459 2008-05-10  Bruno Haible  <bruno@clisp.org>
83461         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
83462         (Input/Output <stdio.h>): Add xprintf.
83463         (Signal handling <signal.h>): Add strsignal.
83464         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
83465         (Core language properties): Add func.
83466         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
83467         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
83468         strings.
83469         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
83470         (Input/output): New section.
83471         (File system functions): Add openat-die, stat-macros.
83472         (Networking functions): Add sockets.
83473         (Unicode string functions): Add unictype/*.
83474         (Support for building libraries and executables): Add gperf.
83475         (Support for building documentation): Add agpl-3.0.
83476         (Misc): Add nocrash.
83478 2008-05-10  Bruno Haible  <bruno@clisp.org>
83480         * modules/unictype/gen-ctype: New file.
83482 2008-05-10  Jim Meyering  <meyering@redhat.com>
83484         Make chdir-safer.c more efficient on a system with no symlinks.
83485         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
83486         also if ELOOP is zero.  Suggested by Bruno Haible.
83488         Make chdir-safer.c slightly safer.
83489         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
83490         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
83492         Avoid compile failure on systems without ELOOP (like mingw).
83493         * lib/chdir-safer.c (ELOOP): Define if not already defined.
83494         Reported by Bruno Haible.
83496 2008-05-10  Bruno Haible  <bruno@clisp.org>
83498         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
83499         (is_utf8_encoding): Use a case-insensitive comparison.
83500         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
83501         streq.
83503 2008-05-10  Bruno Haible  <bruno@clisp.org>
83505         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
83506         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
83507         * lib/unilbrk/ulc-common.h (iconv_string_length,
83508         iconv_string_keeping_offsets): Remove declarations.
83509         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
83510         Don't include <iconv.h>, streq.h, xsize.h.
83511         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
83512         conversion.
83513         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
83514         <iconv.h>, streq.h, xsize.h.
83515         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
83516         conversion.
83517         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
83518         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
83519         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
83520         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
83522 2008-05-10  Bruno Haible  <bruno@clisp.org>
83524         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
83525         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
83527         * modules/unilbrk/u32-width-linebreaks-tests: New file.
83528         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
83530         * modules/unilbrk/u16-width-linebreaks-tests: New file.
83531         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
83533         * modules/unilbrk/u8-width-linebreaks-tests: New file.
83534         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
83536         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
83537         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
83539         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
83540         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
83542         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
83543         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
83545         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
83546         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
83548 2008-05-10  Bruno Haible  <bruno@clisp.org>
83550         Split up 'linebreak' module.
83551         * lib/unilbrk.h: New file, based on lib/linebreak.h.
83552         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
83553         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
83554         modifications.
83555         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
83556         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
83557         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
83558         lib/linebreak.c.
83559         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
83560         lib/linebreak.c.
83561         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
83562         lib/linebreak.c.
83563         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
83564         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
83565         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
83566         lib/linebreak.c.
83567         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
83568         lib/linebreak.c.
83569         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
83570         lib/linebreak.c.
83571         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
83572         lib/linebreak.c.
83573         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
83574         lib/linebreak.c.
83575         * modules/unilbrk/base: New file.
83576         * modules/unilbrk/tables: New file.
83577         * modules/unilbrk/u8-possible-linebreaks: New file.
83578         * modules/unilbrk/u16-possible-linebreaks: New file.
83579         * modules/unilbrk/u32-possible-linebreaks: New file.
83580         * modules/unilbrk/ulc-common: New file.
83581         * modules/unilbrk/ulc-possible-linebreaks: New file.
83582         * modules/unilbrk/u8-width-linebreaks: New file.
83583         * modules/unilbrk/u16-width-linebreaks: New file.
83584         * modules/unilbrk/u32-width-linebreaks: New file.
83585         * modules/unilbrk/ulc-width-linebreaks: New file.
83586         * lib/linebreak.h: Remove file.
83587         * lib/linebreak.c: Remove file.
83588         * m4/linebreak.m4: Remove file.
83589         * modules/linebreak: Remove file.
83590         * NEWS: Mention the changes.
83592 2008-05-09  Eric Blake  <ebb9@byu.net>
83594         Add xmemdup0.
83595         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
83596         implementation.
83597         * lib/xmalloc.c (xmemdup0): New C implementation.
83599 2008-05-08  Bruno Haible  <bruno@clisp.org>
83601         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
83603 2008-05-07  Eric Blake  <ebb9@byu.net>
83605         Support cross-compilation of <wctype.h>.
83606         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
83607         AC_CACHE_CHECK.
83609 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
83611         * build-aux/vc-list-files: Add support for bzr.
83613 2008-05-03  Jim Meyering  <meyering@redhat.com>
83615         avoid failed assertion with tight malloc
83616         * tests/test-getndelim2.c: Correct an off-by-one assertion.
83618 2008-05-03  Simon Josefsson  <simon@josefsson.org>
83620         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
83621         are needed from arpa/inet.h.
83622         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
83623         Reported by Bruno Haible.
83625 2008-05-02  Jim Meyering  <meyering@redhat.com>
83627         avoid compilation error on FreeBSD 6
83628         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
83630 2008-05-01  Jim Meyering  <meyering@redhat.com>
83632         useless-if-before-free: correct --help's exit status description
83633         * build-aux/useless-if-before-free (usage): Like grep, exit 0
83634         for one or more matches, etc.  Reported by Bruno Haible.
83636         vc-list-files: make the stand-alone gnulib test work
83637         * modules/vc-list-files-tests (configure.ac):
83638         Define and AC_SUBST abs_aux_dir.
83639         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
83640         $(abs_top_srcdir) to each script and having each of them
83641         duplicate the work of setting PATH, set PATH here, using
83642         the new variable, abs_aux_dir instead.
83643         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
83644         * tests/test-vc-list-files-git.sh: Likewise.
83645         Reported by Bruno Haible.
83647 2008-05-01  Bruno Haible  <bruno@clisp.org>
83649         * lib/getndelim2.c (getndelim2): Fix newsize computation during
83650         reallocation. Rename 'done' to 'found_delimiter'.
83652 2008-05-01  Jim Meyering  <meyering@redhat.com>
83654         vc-list-files: accommodate /bin/sh like the one from Solaris 10
83655         * build-aux/vc-list-files: Use `...`, not $(...).
83657 2008-04-30  Jim Meyering  <meyering@redhat.com>
83659         add tests for vc-list-files
83660         * modules/vc-list-files-tests: New module.
83661         * tests/test-vc-list-files-cvs.sh: New file.
83662         * tests/test-vc-list-files-git.sh: New file.
83664         avoid a warning from gcc
83665         * lib/getndelim2.c (IF_LINT): Define.
83666         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
83668         vc-list-files: work properly with build-aux/cvsu, too
83669         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
83670         to all cvs-based clauses.
83672         vc-list-files: work properly in the CVS+awk case, too
83673         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
83675         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
83676         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
83677         take more than one file argument, so .  Add quotes, just in case $dir
83678         ever contains a shell meta-character.  Prompted by Soren Hansen in
83679         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
83681 2008-04-29  Eric Blake  <ebb9@byu.net>
83683         Optimize getndelim2 to use block operations when possible.
83684         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
83685         freadseek, and memchr2.
83686         * lib/getndelim2.c (getndelim2): Use them for block reads.
83688 2008-04-29  Bruno Haible  <bruno@clisp.org>
83690         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
83691         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
83692         * modules/inet_ntop (Depends-on): Add extensions.
83693         * modules/inet_pton (Depends-on): Likewise.
83694         Reported by Simon Josefsson.
83696 2008-04-29  Jim Meyering  <meyering@redhat.com>
83698         When the is more than one match in a block, match all of them.
83699         * build-aux/useless-if-before-free: Iterate through each block
83700         until there are no more matches.
83702         Fix broken useless-if-before-free script.
83703         * build-aux/useless-if-before-free: Fix typo: missing "?" after
83704         the expression to match cast of argument to free-like function.
83706 2008-04-29  Eric Blake  <ebb9@byu.net>
83708         Use new header.
83709         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
83711 2008-04-29  Jim Meyering  <meyering@redhat.com>
83713         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
83714         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
83715         by gnulib to exist and to declare e.g., inet_ntop.
83716         Don't include "inet_ntop.h", now removed.
83718         * m4/arpa_inet_h.m4: Remove trailing blanks.
83720 2008-04-29  Eric Blake  <ebb9@byu.net>
83722         Silence valgrind on safe reads beyond potential array bounds.
83723         * lib/rawmemchr.valgrind: New file.
83724         * lib/strchrnul.valgrind: Likewise.
83725         * modules/rawmemchr (Files): Distribute new file.
83726         * modules/strchrnul (Files): Likewise.
83727         Suggested by Bruno Haible.
83729 2008-04-29  Bruno Haible  <bruno@clisp.org>
83731         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
83732         (inet_ntop, inet_pton): Change portability warning's wording.
83733         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
83734         Invoke gl_CHECK_NEXT_HEADERS.
83735         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
83736         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
83737         set ARPA_INET_H.
83738         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
83739         * modules/arpa_inet (Description): No longer only for systems that
83740         lack it.
83741         (Depends-on): Add include_next.
83742         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
83743         HAVE_ARPA_INET_H.
83745 2008-04-29  Jim Meyering  <meyering@redhat.com>
83747         * modules/mkdir (License): Re-license as LGPLv2+.
83749 2008-04-29  Bruno Haible  <bruno@clisp.org>
83751         * modules/rawmemchr (Maintainer): Set to Eric.
83752         * modules/strchrnul (Maintainer): Likewise.
83754 2008-04-29  Simon Josefsson  <simon@josefsson.org>
83756         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
83757         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
83759         * modules/arpa_inet (arpa/inet.h): Use them.
83761 2008-04-28  Eric Blake  <ebb9@byu.net>
83763         Test getndelim2.
83764         * modules/getndelim2-tests: New file.
83765         * tests/test-getndelim2.c: Likewise.
83766         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
83767         stream.
83768         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
83770         * MODULES.html.sh: Document new module.
83772 2008-04-20  Bruno Haible  <bruno@clisp.org>
83774         * lib/c-stack.c (die): Use raise.
83775         * modules/c-stack (Depends-on): Add raise.
83777 2008-04-28  Bruno Haible  <bruno@clisp.org>
83779         Expect rpmatch to be declared.
83780         * lib/yesno.c (rpmatch): Remove declaration.
83782         Declare rpmatch.
83783         * lib/stdlib.in.h (rpmatch): New declaration.
83784         * lib/rpmatch.c: Include <stdlib.h> first.
83785         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
83786         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
83787         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
83788         HAVE_RPMATCH.
83789         * modules/rpmatch (Depends-on): Add stdlib, extensions.
83790         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
83791         (Include): Set to <stdlib.h>.
83792         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
83793         HAVE_RPMATCH.
83794         * NEWS: Document the change.
83796 2008-04-28  Bruno Haible  <bruno@clisp.org>
83798         Change rpmatch to use nl_langinfo when appropriate.
83799         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
83800         (N_): New macro.
83801         (localized_pattern): New function/macro.
83802         (try): Remove match, nomatch arguments. Copy the pattern into safe
83803         memory before caching it.
83804         (rpmatch): Use localized_pattern. Add translator comments.
83805         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
83806         Suggested by Eric Blake.
83807         * modules/rpmatch (Depends-on): Add stdbool.
83809 2008-04-28  Eric Blake  <ebb9@byu.net>
83811         Add rawmemchr module, matching glibc.
83812         * modules/string (Makefile.am): New indicator.
83813         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
83814         * lib/string.in.h (rawmemchr): Declare when appropriate.
83815         * modules/rawmemchr: New file.
83816         * m4/rawmemchr.m4: Likewise.
83817         * lib/rawmemchr.c: Likewise.
83818         * modules/rawmemchr-tests: Likewise.
83819         * tests/test-rawmemchr.c: Likewise.
83820         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
83821         module.
83822         * modules/strchrnul (Depends-on): Add rawmemchr.
83823         * lib/strchrnul.c (strchrnul): Optimize a corner case.
83825         Whitespace cleanup.
83826         * tests/test-strchrnul.c: Reindent.
83827         * lib/strchrnul.c: Likewise.
83829         Optimize and test strchrnul.
83830         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
83831         * modules/strchrnul-tests: New file.
83832         * tests/test-strchrnul.c: Likewise.
83834         Remove intprops dependency.
83835         * modules/memchr (Depends-on): Remove intprops.
83836         * modules/memrchr (Depends-on): Likewise.
83837         * modules/memchr2 (Depends-on): Likewise.
83838         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
83839         * lib/memrchr.c (__memrchr): Likewise.
83840         * lib/memrchr2.c (memchr2): Likewise.
83841         Reported by Simon Josefsson.
83843 2008-04-28  Simon Josefsson  <simon@josefsson.org>
83845         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
83846         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83848 2008-04-28  Simon Josefsson  <simon@josefsson.org>
83850         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
83852         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
83854         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
83856         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
83857         declarations.
83858         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
83860         * m4/inet_pton.m4: Don't check for header files.
83862         * m4/inet_ntop.m4: Don't check for header files.
83864 2008-04-28  Simon Josefsson  <simon@josefsson.org>
83866         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
83867         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
83868         trigger for cygwin).
83869         Reported by Bruno Haible  <bruno@clisp.org>.
83871 2008-04-28  Bruno Haible  <bruno@clisp.org>
83873         * doc/posix-functions/strdup.texi: Mention mingw problem.
83875 2008-04-27  Bruno Haible  <bruno@clisp.org>
83877         * modules/stat-time-tests (Depends-on): Add sleep.
83878         * tests/test-stat-time.c (force_unlink): New function.
83879         (cleanup): Use it.
83880         (test_mtime): Remove the ctime related tests.
83881         (test_ctime): New function, containing the ctime related tests.
83882         (main): Call test_ctime, except on native Windows platforms.
83884 2008-04-27  Bruno Haible  <bruno@clisp.org>
83886         * lib/rpmatch.c (rpmatch): Add some comments.
83887         Reported by James Youngman <jay@gnu.org>.
83889 2008-04-27  Bruno Haible  <bruno@clisp.org>
83891         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
83892         quiet NaNs.
83894 2008-04-27  Bruno Haible  <bruno@clisp.org>
83896         Make test-yesno.sh work on mingw.
83897         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
83898         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
83899         (main): Set stdin to binary mode.
83900         * modules/yesno-tests (Depends-on): Add binary-io.
83902 2008-04-27  Bruno Haible  <bruno@clisp.org>
83904         Fix 'isfinite' on x86, x86_64, ia64 platforms.
83905         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
83906         argument that lie outside the IEEE 854 domain.
83907         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
83908         (gl_ISFINITE): Use it.
83909         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
83911 2008-04-27  Bruno Haible  <bruno@clisp.org>
83913         Allow local renaming in config.h.
83914         * lib/memrchr.c (memrchr): Don't undefine outside libc.
83916 2008-04-27  Bruno Haible  <bruno@clisp.org>
83918         * lib/memchr.c (__memchr): Change type of 'i'.
83919         * lib/memchr2.c (memchr2): Likewise.
83921 2008-04-26  Eric Blake  <ebb9@byu.net>
83922         and Bruno Haible  <bruno@clisp.org>
83924         Optimize and test memrchr.
83925         * modules/memrchr (Depends-on): Add intprops.
83926         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
83927         * modules/memrchr-tests: New file.
83928         * tests/test-memrchr.c: New file.
83930 2008-04-26  Bruno Haible  <bruno@clisp.org>
83932         Add tentative support for DragonFly BSD.
83933         * lib/stdio-impl.h: Add macros for DragonFly BSD.
83934         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
83935         fp.
83936         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
83937         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
83938         * lib/fpurge.c (fpurge): Likewise.
83939         * lib/freadable.c (freaadable): Likewise.
83940         * lib/freadahead.c (freadahead): Likewise.
83941         * lib/freading.c (freading): Likewise.
83942         * lib/freadptr.c (freadptr): Likewise.
83943         * lib/freadseek.c (freadptrinc): Likewise.
83944         * lib/fseeko.c (fseeko): Likewise.
83945         * lib/fseterr.c (fseterr): Likewise.
83946         * lib/fwritable.c (fwritable): Likewise.
83947         * lib/fwriting.c (fwriting): Likewise.
83949 2008-04-26  Bruno Haible  <bruno@clisp.org>
83951         * lib/stdio-impl.h: New file.
83952         * lib/fbufmode.c: Include stdio-impl.h.
83953         (fbufmode): Use fp_, remove redundant #defines.
83954         * lib/fflush.c: Include stdio-impl.h.
83955         (clear_ungetc_buffer): Remove redundant #defines.
83956         * lib/fpurge.c: Include stdio-impl.h.
83957         (fpurge): Remove redundant #defines.
83958         * lib/freadable.c: Include stdio-impl.h.
83959         (freadable): Remove redundant #defines.
83960         * lib/freadahead.c: Include stdio-impl.h.
83961         (freadahead): Remove redundant #defines.
83962         * lib/freading.c: Include stdio-impl.h.
83963         (freading): Remove redundant #defines.
83964         * lib/freadptr.c: Include stdio-impl.h.
83965         (freadptr): Remove redundant #defines.
83966         * lib/freadseek.c: Include stdio-impl.h.
83967         (freadptrinc): Remove redundant #defines.
83968         * lib/fseeko.c: Include stdio-impl.h.
83969         (rpl_fseeko): Remove redundant #defines.
83970         * lib/fseterr.c: Include stdio-impl.h.
83971         (fseterr): Remove redundant #defines.
83972         * lib/fwritable.c: Include stdio-impl.h.
83973         (fwritable: Remove redundant #defines.
83974         * lib/fwriting.c: Include stdio-impl.h.
83975         (fwriting): Remove redundant #defines.
83976         * modules/fbufmode (Files): Add lib/stdio-impl.h.
83977         * modules/fflush (Files): Likewise.
83978         * modules/fpurge (Files): Likewise.
83979         * modules/freadable (Files): Likewise.
83980         * modules/freadahead (Files): Likewise.
83981         * modules/freading (Files): Likewise.
83982         * modules/freadptr (Files): Likewise.
83983         * modules/freadseek (Files): Likewise.
83984         * modules/fseeko (Files): Likewise.
83985         * modules/fseterr (Files): Likewise.
83986         * modules/fwritable (Files): Likewise.
83987         * modules/fwriting (Files): Likewise.
83989 2008-04-26  Bruno Haible  <bruno@clisp.org>
83991         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
83992         restore_seek_optimization, update_fpos_cache): New functions, extracted
83993         from rpl_fflush.
83994         (rpl_fflush): Use them.
83995         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
83996         (gl_REPLACE_FFLUSH): Use it.
83998 2008-04-26  Bruno Haible  <bruno@clisp.org>
84000         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
84001         on Solaris.
84002         * tests/test-xstrtoimax.sh: Likewise.
84003         * tests/test-xstrtoumax.sh: Likewise.
84004         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
84006 2008-04-26  Bruno Haible  <bruno@clisp.org>
84008         * modules/memchr-tests: New file.
84009         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
84011 2008-04-26  Eric Blake  <ebb9@byu.net>
84012             Bruno Haible  <bruno@clisp.org>
84014         * lib/memchr.c: Include intprops.h.
84015         (__memchr): Optimize parallel detection of matching bytes. Rename local
84016         variables. Add explanatory comments.
84018 2008-04-26  Bruno Haible  <bruno@clisp.org>
84020         Fix module 'memchr', broken since 2000-10-28.
84021         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
84023 2008-04-26  Bruno Haible  <bruno@clisp.org>
84025         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
84026         comments.
84028 2008-04-25  Eric Blake  <ebb9@byu.net>
84030         Use native fstatat on cygwin 1.7.0.
84031         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
84032         first.
84034 2008-04-23  Eric Blake  <ebb9@byu.net>
84036         Improve memchr2 performance.
84037         * lib/memchr2.c (memchr2): Further optimize parallel detection of
84038         NUL bytes.
84039         * modules/memchr2 (Depends-on): Use intprops.h.
84041 2008-04-23  Simon Josefsson  <simon@josefsson.org>
84043         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
84044         an inline function instead of a CPP macro.  Patch by Ben Pfaff
84045         <blp@cs.stanford.edu>.
84047 2008-04-23  Simon Josefsson  <simon@josefsson.org>
84049         * lib/arpa_inet.in.h: New file.
84051         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
84052         (Makefile.am): Sed in substitute header file.
84054         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
84055         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
84057         * modules/inet_ntop (configure.ac): Use
84058         gl_ARPA_INET_MODULE_INDICATOR.
84060         * modules/inet_pton (configure.ac): Use
84061         gl_ARPA_INET_MODULE_INDICATOR.
84063 2008-04-22  Jim Meyering  <meyering@redhat.com>
84065         * modules/verify (License): Re-license as LGPLv2+.
84067 2008-04-22  Simon Josefsson  <simon@josefsson.org>
84069         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
84070         parameter to void* as per POSIX standard (MinGW uses char*).
84072 2008-04-21  Bruno Haible  <bruno@clisp.org>
84074         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
84075         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
84076         Define to replacements if REPLACE_ISWCNTRL is 1.
84077         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
84078         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
84079         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
84080         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
84081         what it fixes.
84082         * doc/posix-functions/iswalpha.texi: Likewise.
84083         * doc/posix-functions/iswblank.texi: Likewise.
84084         * doc/posix-functions/iswcntrl.texi: Likewise.
84085         * doc/posix-functions/iswdigit.texi: Likewise.
84086         * doc/posix-functions/iswgraph.texi: Likewise.
84087         * doc/posix-functions/iswlower.texi: Likewise.
84088         * doc/posix-functions/iswprint.texi: Likewise.
84089         * doc/posix-functions/iswpunct.texi: Likewise.
84090         * doc/posix-functions/iswspace.texi: Likewise.
84091         * doc/posix-functions/iswupper.texi: Likewise.
84092         * doc/posix-functions/iswxdigit.texi: Likewise.
84093         Reported by Alain Guibert.
84095 2008-04-21  Bruno Haible  <bruno@clisp.org>
84097         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
84098         Patch by Alain Guibert.
84100 2008-04-21  Bruno Haible  <bruno@clisp.org>
84102         Fix test failures on mingw.
84103         * tests/test-xstrtol.c (print_no_progname): New function.
84104         (main): Install it in error_print_progname hook.
84105         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
84106         * tests/test-xstrtoimax.sh: Likewise.
84107         * tests/test-xstrtoumax.sh: Likewise.
84109 2008-04-21  Bruno Haible  <bruno@clisp.org>
84111         Fix test failure on mingw.
84112         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
84114 2008-04-21  Bruno Haible  <bruno@clisp.org>
84116         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
84117         Actually assign a value.
84119 2008-04-20  Bruno Haible  <bruno@clisp.org>
84121         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
84122         take 2.
84123         * lib/canonicalize.c (canonicalize_file_name): Elide if the
84124         'canonicalize-lgpl' module is also used.
84125         * lib/canonicalize-lgpl.c: Undo last change.
84126         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
84128 2008-04-20  Bruno Haible  <bruno@clisp.org>
84130         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
84131         config.h. Provide _mkdir based fallback for mingw.
84132         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
84133         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
84134         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
84135         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
84136         rather than defining mkdir in config.h.
84137         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
84138         (gl_SYS_STAT_H_DEFAULTS): New macro.
84139         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
84140         HAVE_IO_H any more.
84141         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
84142         HAVE_DECL_MKDIR and HAVE_IO_H.
84144 2008-04-20  Bruno Haible  <bruno@clisp.org>
84146         * lib/isapipe.c: Port to native Windows platforms.
84148 2008-04-20  Bruno Haible  <bruno@clisp.org>
84150         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
84152 2008-04-21  Eric Blake  <ebb9@byu.net>
84154         Work around preprocessors that don't handle UINTMAX_MAX.
84155         * lib/memchr2.c (memchr2): Avoid embedded #if.
84156         Reported by Alain Guibert, fix suggested by Bruno Haible.
84158 2008-04-21  Simon Josefsson  <simon@josefsson.org>
84160         * doc/posix-functions/strftime.texi (strftime): Explain better
84161         Windows incompatibility.  Suggested by Micah Cowan
84162         <micah@cowan.name>.
84164 2008-04-20  Bruno Haible  <bruno@clisp.org>
84166         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
84167         unistr/u8-mblen.
84169 2008-04-20  Bruno Haible  <bruno@clisp.org>
84171         Fix test failure on platforms with non-GNU iconv.
84172         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
84173         (U_TO_U8): Use it, rather than u16_to_u8.
84174         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
84175         units at the end of the input string.
84176         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
84178 2008-04-20  Bruno Haible  <bruno@clisp.org>
84180         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
84181         when the resulting length is 0.
84182         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
84184 2008-04-20  Bruno Haible  <bruno@clisp.org>
84186         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
84187         works.
84188         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
84190 2008-04-20  Bruno Haible  <bruno@clisp.org>
84192         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
84193         * modules/tsearch-tests (configure.ac): Test for initstate function.
84195 2008-04-20  Bruno Haible  <bruno@clisp.org>
84197         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
84198         for nlink_t if missing.
84199         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
84201 2008-04-19  Bruno Haible  <bruno@clisp.org>
84203         Work around snprintf bug on Linux libc5.
84204         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
84205         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
84206         gl_SNPRINTF_SIZE1.
84207         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
84208         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
84209         that test failed.
84210         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
84211         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
84212         * modules/snprintf (Files): Add m4/printf.m4.
84213         * modules/vsnprintf (Files): Likewise.
84214         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
84215         * doc/posix-functions/vsnprintf.texi: Likewise.
84217 2008-04-19  Bruno Haible  <bruno@clisp.org>
84219         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
84220         from 0.0058 to less than 10^-7.
84222 2008-04-19  Bruno Haible  <bruno@clisp.org>
84224         Fix rounding when a precision is given.
84225         * lib/vasnprintf.c (is_borderline): New function.
84226         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
84227         9...9x.
84228         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
84229         %e, %g.
84230         * tests/test-vasprintf-posix.c (test_function): Likewise.
84231         * tests/test-snprintf-posix.h (test_function): Likewise.
84232         * tests/test-sprintf-posix.h (test_function): Likewise.
84233         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
84234         * tests/test-printf-posix.h (test_function): Likewise.
84235         * tests/test-printf-posix.output: Update.
84236         Reported by John Darrington <john@darrington.wattle.id.au> via
84237         Ben Pfaff <blp@cs.stanford.edu>.
84239 2008-04-18  Simon Josefsson  <simon@josefsson.org>
84241         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
84242         Suggested by Bruno Haible <bruno@clisp.org>.
84244 2008-04-17  Bruno Haible  <bruno@clisp.org>
84246         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
84247         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
84248         implementation.
84249         Patch by Bruce Merry <bmerry@gmail.com>.
84251 2008-04-17  Simon Josefsson  <simon@josefsson.org>
84253         * doc/posix-functions/strftime.texi (strftime): Mention that %e
84254         doesn't work under Windows.
84256 2008-04-16  Bruno Haible  <bruno@clisp.org>
84258         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
84259         New macros.
84260         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
84261         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
84262         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
84263         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
84264         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
84265         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
84266         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
84267         macros.
84268         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
84269         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
84270         Northern Sotho, Uighur.
84272 2008-04-16  Bruno Haible  <bruno@clisp.org>
84274         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
84275         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
84276         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
84277         Reported by Daniel Bergström <daniel@octocode.com>.
84279 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
84280             Bruno Haible  <bruno@clisp.org>
84282         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
84283         function.
84284         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
84285         New functions, mostly extracted from gl_locale_name_default.
84286         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
84288 2008-04-16  Eric Blake  <ebb9@byu.net>
84290         Adjust strtod detection to catch glibc 2.7 bug.
84291         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
84292         Reported by John Gatewood Ham.
84294 2008-04-16  Bruno Haible  <bruno@clisp.org>
84296         Add tentative support for Linux libc5.
84297         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
84298         * lib/fpurge.c (fpurge): Likewise.
84299         * lib/freadable.c (freadable): Likewise.
84300         * lib/freadahead.c (freadahead): Likewise.
84301         * lib/freading.c (freading): Likewise.
84302         * lib/freadptr.c (freadptr): Likewise.
84303         * lib/freadseek.c (freadptrinc): Likewise.
84304         * lib/fseeko.c (rpl_fseeko): Likewise.
84305         * lib/fseterr.c (fseterr): Likewise.
84306         * lib/fwritable.c (fwritable): Likewise.
84307         * lib/fwriting.c (fwriting): Likewise.
84308         Reported by Alain Guibert <alguibert+bts@free.fr>.
84310 2008-04-15  Bruno Haible  <bruno@clisp.org>
84312         * modules/mathl (configure.ac): Define module indicator.
84314 2008-04-15  Bruno Haible  <bruno@clisp.org>
84316         * lib/logl.c (logl): Remove unused variables.
84318 2008-04-15  Bruno Haible  <bruno@clisp.org>
84320         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
84321         fails.
84323 2008-04-15  Bruno Haible  <bruno@clisp.org>
84325         * lib/trim.c (trim2): Fix argument of isspace() macro.
84327 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
84329         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
84330         to 0.
84331         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
84333 2008-04-14  Bruno Haible  <bruno@clisp.org>
84335         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
84336         AC_LANG_PROGRAM argument.
84337         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
84338         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
84339         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
84340         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
84341         * m4/math_h.m4 (gl_MATH_H): Likewise.
84342         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
84343         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
84344         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
84345         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
84346         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
84347         * m4/regex.m4 (gl_REGEX): Likewise.
84348         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
84349         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
84350         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
84351         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
84352         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
84353         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
84354         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
84355         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
84357 2008-04-14  Jim Meyering  <meyering@redhat.com>
84359         test-strtod: fix typos: s/abs/fabs/
84360         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
84362 2008-04-13  Bruno Haible  <bruno@clisp.org>
84364         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
84365         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
84366         module is also used and while not building the reloc-wrapper.
84368 2008-04-13  Bruno Haible  <bruno@clisp.org>
84370         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
84372 2008-04-13  Bruno Haible  <bruno@clisp.org>
84374         Fix AIX compilation failure introduced on 2008-04-02.
84375         * tests/test-frexp.c (exp): Undefine before redefining.
84376         * tests/test-frexpl.c (exp): Likewise.
84378 2008-04-13  Bruno Haible  <bruno@clisp.org>
84380         Work around a HP-UX stdio bug.
84381         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
84382         * tests/test-ftello.c (main): Likewise.
84383         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
84384         * doc/posix-functions/ftello.texi: Likewise.
84386 2008-04-13  Bruno Haible  <bruno@clisp.org>
84388         Make test-signbit pass on HP-UX/hppa.
84389         * tests/test-signbit.c (minus_zerol): New variable.
84390         (test_signbitl): Use it.
84392 2008-04-13  Bruno Haible  <bruno@clisp.org>
84394         Make truncl work on OSF/1 4.0.
84395         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
84396         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
84397         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
84398         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
84399         HAVE_DECL_TRUNCL.
84400         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
84401         HAVE_DECL_TRUNCL.
84402         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
84404 2008-04-13  Bruno Haible  <bruno@clisp.org>
84406         * lib/unictype.h: Remove trailing comma from enumeration definitions.
84408 2008-04-13  Bruno Haible  <bruno@clisp.org>
84410         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
84411         expression, so as to avoid HP-UX 11 cc compiler bug.
84413 2008-04-13  Bruno Haible  <bruno@clisp.org>
84415         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
84417 2008-04-13  Bruno Haible  <bruno@clisp.org>
84419         * lib/git-merge-changelog.c: Remove empty declaration outside of
84420         functions.
84422 2008-04-13  Bruno Haible  <bruno@clisp.org>
84424         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
84426 2008-04-13  Bruno Haible  <bruno@clisp.org>
84428         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
84429         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
84430         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
84431         also if it exists but lacks definitions of the SHUT_* macros.
84432         * modules/sys_socket (Description): Update.
84433         Reported by Elbert Pol <e.pol@chello.nl>.
84435 2008-04-13  Bruno Haible  <bruno@clisp.org>
84437         * lib/localcharset.c (OS2): Don't redefine if already defined.
84438         Reported by Elbert Pol <e.pol@chello.nl>.
84440 2008-04-13  Bruno Haible  <bruno@clisp.org>
84442         * lib/binary-io.h [__EMX__]: Include <io.h>.
84443         Reported by Elbert Pol <e.pol@chello.nl>.
84445 2008-04-12  Bruno Haible  <bruno@clisp.org>
84447         * lib/fpucw.h: Enable the definitions also for x86_64.
84448         Needed for NetBSD/x86_64.
84449         Reported by Thomas Klausner <tk@giga.or.at>.
84451 2008-04-12  Bruno Haible  <bruno@clisp.org>
84453         * tests/test-strtod.c: Include isnand.h.
84454         (main): Use isnand instead of isnan.
84455         Reported by Jim Meyering.
84457 2008-04-12  Bruno Haible  <bruno@clisp.org>
84459         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
84460         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
84462 2008-04-12  Jim Meyering  <meyering@redhat.com>
84464         * m4/math_h.m4 (gl_MATH_H): Fix typos.
84466 2008-04-12  Bruno Haible  <bruno@clisp.org>
84468         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
84469         Reported by Elbert Pol <e.pol@chello.nl>.
84471 2008-04-12  Eric Blake  <ebb9@byu.net>
84473         Work around Solaris 10 math.h bug.
84474         * m4/math_h.m4 (gl_MATH_H): Check for bug.
84475         (gl_MATH_H_DEFAULTS): Set up default.
84476         * modules/math (Makefile.am): Replace new indicators.
84477         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
84478         * tests/test-math.c (main): Test this.
84479         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
84480         * doc/posix-headers/math.texi (math.h): Mention bug.
84481         Reported by Nelson H. F. Beebe and Jim Meyering.
84483 2008-04-11  Bruno Haible  <bruno@clisp.org>
84485         Adapt to future versions of Apple GCC.
84486         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
84487         Reported by Peter O'Gorman <peter@pogma.com>.
84489 2008-04-11  Bruno Haible  <bruno@clisp.org>
84491         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
84493 2008-04-11  Bruno Haible  <bruno@clisp.org>
84495         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
84497         * modules/getaddrinfo-tests (Makefile.am): Define
84498         test_getaddrinfo_LDADD.
84500 2008-04-11  Bruno Haible  <bruno@clisp.org>
84502         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
84503         (init): Fix syntax error.
84504         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
84505         is declared.
84507 2008-04-11  Bruno Haible  <bruno@clisp.org>
84509         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
84510         * modules/glob (Depends-on): Add stdbool.
84512 2008-04-11  Bruno Haible  <bruno@clisp.org>
84514         * lib/trim.c: Include <string.h>.
84516 2008-04-11  Eric Blake  <ebb9@byu.net>
84518         Avoid compile failure on OS/2.
84519         * lib/regex_internal.h (internal_function): Disable optimization
84520         on OS/2 (__EMX__), where it caused compiler error.
84521         Reported by Elbert Pol.
84523 2008-04-11  Bruno Haible  <bruno@clisp.org>
84525         Flush the standard error stream before aborting. Needed on mingw.
84526         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
84527         * tests/test-array_list.c (ASSERT): Likewise.
84528         * tests/test-array_oset.c (ASSERT): Likewise.
84529         * tests/test-avltree_list.c (ASSERT): Likewise.
84530         * tests/test-avltree_oset.c (ASSERT): Likewise.
84531         * tests/test-avltreehash_list.c (ASSERT): Likewise.
84532         * tests/test-binary-io.c (ASSERT): Likewise.
84533         * tests/test-byteswap.c (ASSERT): Likewise.
84534         * tests/test-c-ctype.c (ASSERT): Likewise.
84535         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
84536         * tests/test-c-strcasestr.c (ASSERT): Likewise.
84537         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
84538         * tests/test-c-strstr.c (ASSERT): Likewise.
84539         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
84540         * tests/test-canonicalize.c (ASSERT): Likewise.
84541         * tests/test-carray_list.c (ASSERT): Likewise.
84542         * tests/test-ceilf1.c (ASSERT): Likewise.
84543         * tests/test-ceilf2.c (ASSERT): Likewise.
84544         * tests/test-ceill.c (ASSERT): Likewise.
84545         * tests/test-count-one-bits.c (ASSERT): Likewise.
84546         * tests/test-fbufmode.c (ASSERT): Likewise.
84547         * tests/test-fflush2.c (ASSERT): Likewise.
84548         * tests/test-floorf1.c (ASSERT): Likewise.
84549         * tests/test-floorf2.c (ASSERT): Likewise.
84550         * tests/test-floorl.c (ASSERT): Likewise.
84551         * tests/test-fopen.c (ASSERT): Likewise.
84552         * tests/test-fpending.c (ASSERT): Likewise.
84553         * tests/test-fprintf-posix.c (ASSERT): Likewise.
84554         * tests/test-fpurge.c (ASSERT): Likewise.
84555         * tests/test-freadable.c (ASSERT): Likewise.
84556         * tests/test-freadahead.c (ASSERT): Likewise.
84557         * tests/test-freading.c (ASSERT): Likewise.
84558         * tests/test-freadptr.c (ASSERT): Likewise.
84559         * tests/test-freadptr2.c (ASSERT): Likewise.
84560         * tests/test-freadseek.c (ASSERT): Likewise.
84561         * tests/test-freopen.c (ASSERT): Likewise.
84562         * tests/test-frexp.c (ASSERT): Likewise.
84563         * tests/test-frexpl.c (ASSERT): Likewise.
84564         * tests/test-fseek.c (ASSERT): Likewise.
84565         * tests/test-fseeko.c (ASSERT): Likewise.
84566         * tests/test-fstrcmp.c (ASSERT): Likewise.
84567         * tests/test-ftell.c (ASSERT): Likewise.
84568         * tests/test-ftello.c (ASSERT): Likewise.
84569         * tests/test-func.c (ASSERT): Likewise.
84570         * tests/test-fwritable.c (ASSERT): Likewise.
84571         * tests/test-fwriting.c (ASSERT): Likewise.
84572         * tests/test-getdelim.c (ASSERT): Likewise.
84573         * tests/test-getline.c (ASSERT): Likewise.
84574         * tests/test-i-ring.c (ASSERT): Likewise.
84575         * tests/test-iconv-utf.c (ASSERT): Likewise.
84576         * tests/test-iconv.c (ASSERT): Likewise.
84577         * tests/test-isfinite.c (ASSERT): Likewise.
84578         * tests/test-isnand.c (ASSERT): Likewise.
84579         * tests/test-isnanf.c (ASSERT): Likewise.
84580         * tests/test-isnanl.h (ASSERT): Likewise.
84581         * tests/test-ldexpl.c (ASSERT): Likewise.
84582         * tests/test-linked_list.c (ASSERT): Likewise.
84583         * tests/test-linkedhash_list.c (ASSERT): Likewise.
84584         * tests/test-localename.c (ASSERT): Likewise.
84585         * tests/test-lseek.c (ASSERT): Likewise.
84586         * tests/test-mbscasecmp.c (ASSERT): Likewise.
84587         * tests/test-mbscasestr1.c (ASSERT): Likewise.
84588         * tests/test-mbscasestr2.c (ASSERT): Likewise.
84589         * tests/test-mbscasestr3.c (ASSERT): Likewise.
84590         * tests/test-mbscasestr4.c (ASSERT): Likewise.
84591         * tests/test-mbschr.c (ASSERT): Likewise.
84592         * tests/test-mbscspn.c (ASSERT): Likewise.
84593         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
84594         * tests/test-mbspbrk.c (ASSERT): Likewise.
84595         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
84596         * tests/test-mbsrchr.c (ASSERT): Likewise.
84597         * tests/test-mbsspn.c (ASSERT): Likewise.
84598         * tests/test-mbsstr1.c (ASSERT): Likewise.
84599         * tests/test-mbsstr2.c (ASSERT): Likewise.
84600         * tests/test-mbsstr3.c (ASSERT): Likewise.
84601         * tests/test-memchr2.c (ASSERT): Likewise.
84602         * tests/test-memmem.c (ASSERT): Likewise.
84603         * tests/test-open.c (ASSERT): Likewise.
84604         * tests/test-printf-frexp.c (ASSERT): Likewise.
84605         * tests/test-printf-frexpl.c (ASSERT): Likewise.
84606         * tests/test-printf-posix.c (ASSERT): Likewise.
84607         * tests/test-quotearg.c (ASSERT): Likewise.
84608         * tests/test-rbtree_list.c (ASSERT): Likewise.
84609         * tests/test-rbtree_oset.c (ASSERT): Likewise.
84610         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
84611         * tests/test-round1.c (ASSERT): Likewise.
84612         * tests/test-roundf1.c (ASSERT): Likewise.
84613         * tests/test-roundl.c (ASSERT): Likewise.
84614         * tests/test-signbit.c (ASSERT): Likewise.
84615         * tests/test-sleep.c (ASSERT): Likewise.
84616         * tests/test-snprintf-posix.c (ASSERT): Likewise.
84617         * tests/test-snprintf.c (ASSERT): Likewise.
84618         * tests/test-sprintf-posix.c (ASSERT): Likewise.
84619         * tests/test-stat-time.c (ASSERT): Likewise.
84620         * tests/test-strcasestr.c (ASSERT): Likewise.
84621         * tests/test-strerror.c (ASSERT): Likewise.
84622         * tests/test-striconv.c (ASSERT): Likewise.
84623         * tests/test-striconveh.c (ASSERT): Likewise.
84624         * tests/test-striconveha.c (ASSERT): Likewise.
84625         * tests/test-strsignal.c (ASSERT): Likewise.
84626         * tests/test-strstr.c (ASSERT): Likewise.
84627         * tests/test-strtod.c (ASSERT): Likewise.
84628         * tests/test-trunc1.c (ASSERT): Likewise.
84629         * tests/test-trunc2.c (ASSERT): Likewise.
84630         * tests/test-truncf1.c (ASSERT): Likewise.
84631         * tests/test-truncf2.c (ASSERT): Likewise.
84632         * tests/test-truncl.c (ASSERT): Likewise.
84633         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
84634         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
84635         * tests/test-vasnprintf.c (ASSERT): Likewise.
84636         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
84637         * tests/test-vasprintf.c (ASSERT): Likewise.
84638         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
84639         * tests/test-vprintf-posix.c (ASSERT): Likewise.
84640         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
84641         * tests/test-vsnprintf.c (ASSERT): Likewise.
84642         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
84643         * tests/test-wcwidth.c (ASSERT): Likewise.
84644         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
84645         * tests/test-xprintf-posix.c (ASSERT): Likewise.
84646         * tests/test-xvasprintf.c (ASSERT): Likewise.
84647         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
84648         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
84649         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
84650         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
84651         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
84652         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
84653         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
84654         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
84655         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
84656         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
84657         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
84658         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
84659         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
84660         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
84661         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
84662         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
84663         * tests/unictype/test-block_list.c (ASSERT): Likewise.
84664         * tests/unictype/test-block_of.c (ASSERT): Likewise.
84665         * tests/unictype/test-block_test.c (ASSERT): Likewise.
84666         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
84667         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
84668         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
84669         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
84670         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
84671         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
84672         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
84673         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
84674         * tests/unictype/test-combining.c (ASSERT): Likewise.
84675         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
84676         * tests/unictype/test-digit.c (ASSERT): Likewise.
84677         * tests/unictype/test-mirror.c (ASSERT): Likewise.
84678         * tests/unictype/test-numeric.c (ASSERT): Likewise.
84679         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
84680         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
84681         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
84682         * tests/unictype/test-scripts.c (ASSERT): Likewise.
84683         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
84684         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
84685         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
84686         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
84687         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
84688         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
84689         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
84690         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
84691         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
84692         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
84693         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
84694         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
84695         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
84696         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
84697         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
84698         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
84699         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
84700         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
84701         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
84702         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
84703         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
84704         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
84705         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
84706         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
84707         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
84708         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
84709         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
84710         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
84711         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
84712         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
84713         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
84714         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
84715         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
84716         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
84717         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
84718         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
84719         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
84720         Reported by Eric Blake.
84722 2008-04-11  Bruno Haible  <bruno@clisp.org>
84724         * lib/wchar.in.h: Tweak comment.
84726 2008-04-11  Bruno Haible  <bruno@clisp.org>
84728         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
84729         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
84730         gl_COMMON.
84731         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
84733 2008-04-11  Bruno Haible  <bruno@clisp.org>
84735         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
84737 2008-04-11  Simon Josefsson  <simon@josefsson.org>
84739         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
84740         of attempting to use non-existing /dev/*random.  Based on patch
84741         from Adam Strzelecki <ono@java.pl> in
84742         <http://lists.gnu.org/r/help-gsasl/2008-02/msg00000.html>.
84744 2008-04-08  Bruno Haible  <bruno@clisp.org>
84746         Add tentative support for emx+gcc.
84747         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
84748         * lib/fpurge.c (fpurge): Likewise.
84749         * lib/freadable.c (freadable): Likewise.
84750         * lib/freadahead.c (freadahead): Likewise.
84751         * lib/freading.c (freading): Likewise.
84752         * lib/freadptr.c (freadptr): Likewise.
84753         * lib/freadseek.c (freadptrinc): Likewise.
84754         * lib/fseeko.c (rpl_fseeko): Likewise.
84755         * lib/fseterr.c (fseterr): Likewise.
84756         * lib/fwritable.c (fwritable): Likewise.
84757         * lib/fwriting.c (fwriting): Likewise.
84758         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
84760 2008-04-09  Eric Blake  <ebb9@byu.net>
84762         Avoid some autoconf warnings.
84763         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
84764         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
84765         * m4/afs.m4 (gl_AFS): Likewise.
84766         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
84767         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
84768         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
84769         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
84770         (gl_INTEGER_TYPE_SUFFIX): Likewise.
84771         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
84772         (AC_CHECK_DECLS_ONCE): Likewise.
84773         Rename file...
84774         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
84775         gnulib-tool requires autoconf 2.59 or better.
84776         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
84778 2008-04-08  Eric Blake  <ebb9@byu.net>
84780         Use 'git describe --match' if present (added in git 1.5.5).
84781         * build-aux/git-version-gen: Limit result to tags that match 'v*'
84782         if possible.
84784 2008-04-08  Bruno Haible  <bruno@clisp.org>
84786         Add tentative support for OpenServer.
84787         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
84788         _ptr, _cnt.
84789         * lib/fpurge.c (fpurge): Likewise.
84790         * lib/freadable.c (freadable): Likewise.
84791         * lib/freadahead.c (freadahead): Likewise.
84792         * lib/freading.c (freading): Likewise.
84793         * lib/freadptr.c (freadptr): Likewise.
84794         * lib/freadseek.c (freadptrinc): Likewise.
84795         * lib/fseeko.c (rpl_fseeko): Likewise.
84796         * lib/fseterr.c (fseterr): Likewise.
84797         * lib/fwritable.c (fwritable): Likewise.
84798         * lib/fwriting.c (fwriting): Likewise.
84799         Reported by Roger Cornelius <rac@tenzing.org> and
84800         Brian K. White <brian@aljex.com>.
84802 2008-04-06  Jim Meyering  <meyering@redhat.com>
84804         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
84806 2008-04-06  Bruno Haible  <bruno@clisp.org>
84808         Avoid possible error with non-ASCII bytes in UTF-8 locales.
84809         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
84810         * tests/test-printf-posix.sh: Likewise.
84811         * tests/test-vfprintf-posix.sh: Likewise.
84812         * tests/test-vprintf-posix.sh: Likewise.
84813         * tests/test-xprintf-posix.sh: Likewise.
84815 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84817         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
84818         hide error from 'ls', needed on OS/2.
84819         Report by Elbert Pol <elbert.pol@gmail.com>.
84821 2008-04-04  Eric Blake  <ebb9@byu.net>
84823         Make test-fseeko.c failures meaningful.
84824         * tests/test-fseeko.c: Print line number on failure.
84825         * tests/test-fseek.c: Likewise.
84826         Reported by Nelson H. F. Beebe.
84828         Improve strtod bug detection check.
84829         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
84830         required for Solaris 10.
84831         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
84833 2008-04-04  Bruno Haible  <bruno@clisp.org>
84835         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
84836         by m4/setenv.m4.
84838 2008-04-03  Eric Blake  <ebb9@byu.net>
84840         Ensure sane .version contents.
84841         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
84842         version string.
84843         * build-aux/git-version-gen: Improve documentation.
84845         Make GNU make output nicer.
84846         * top/GNUmakefile [!_have-Makefile]: Add dependency on
84847         MAKECMDGOALS to enforce message for all command line targets.  Set
84848         srcdir for use in maint.mk.
84850         Another maintainer tweak.
84851         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
84852         a target that regenerates version.
84854 2008-04-03  Jim Meyering  <meyering@redhat.com>
84856         vc-list-files: don't cause coreutils "make po-check" failure
84857         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
84859 2008-04-03  Eric Blake  <ebb9@byu.net>
84861         Allow VPATH usage of vc-list-files.
84862         * build-aux/vc-list-files (scriptversion): Add timestamp.
84863         (options): Add --help, --version, -C.
84864         (CVS): Support installed cvsu.
84866 2008-04-02  Bruno Haible  <bruno@clisp.org>
84868         Avoid some "statement with no effect" warnings from gcc.
84869         * tests/test-wctype.c (main): Explicitly ignore unused values.
84870         Reported by Jim Meyering.
84872 2008-04-02  Jim Meyering  <meyering@redhat.com>
84874         Avoid some warnings from "gcc -Wshadow".
84875         * tests/test-frexp.c (exp): Define to a different identifier.
84876         * tests/test-frexpl.c (exp): Likewise.
84878 2008-04-03  Jim Meyering  <meyering@redhat.com>
84880         bootstrap: remove dangling *.[ch] symlinks from lib
84881         * build-aux/bootstrap [dangling symlink removal]: Move find's
84882         -depth option to precede all others, to avoid a warning.
84883         Remove *.[ch] files too, and from "$source_base" (usually lib/).
84885 2008-04-02  Bruno Haible  <bruno@clisp.org>
84887         Avoid some warnings from "gcc -Wshadow".
84888         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
84889         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
84890         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
84891         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
84892         Reported by Jim Meyering.
84894 2008-04-01  Bruno Haible  <bruno@clisp.org>
84896         Fix test to work on IRIX 6.5 with cc.
84897         * tests/test-math.c (numeric_equal): New function.
84898         (main): Use it.
84900 2008-04-01  Bruno Haible  <bruno@clisp.org>
84902         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
84904 2008-04-01  Bruno Haible  <bruno@clisp.org>
84906         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
84907         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
84908         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
84909         (Depends-on): Remove math.
84911         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
84912         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
84913         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
84914         (Depends-on): Remove math.
84916         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
84917         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
84918         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
84919         (Depends-on): Remove math.
84920         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
84921         (Depends-on): Remove math.
84923         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
84924         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
84925         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
84926         (Depends-on): Remove math.
84927         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
84928         (Depends-on): Remove math.
84930         * tests/test-round1.c: Include nan.h.
84931         (main): Use NaNd instead of NAN.
84932         * modules/round-tests (Files): Add tests/nan.h.
84934         * tests/test-trunc1.c: Include nan.h.
84935         (main): Use NaNd instead of NAN.
84936         * modules/trunc-tests (Files): Add tests/nan.h.
84938         * tests/test-roundf1.c: Include nan.h.
84939         (main): Use NaNf instead of NAN.
84940         * modules/roundf-tests (Files): Add tests/nan.h.
84942         * tests/test-truncf1.c: Include nan.h.
84943         (main): Use NaNf instead of NAN.
84944         * modules/truncf-tests (Files): Add tests/nan.h.
84946         * tests/test-ceilf1.c: Include nan.h.
84947         (main): Use NaNf instead of NAN.
84948         * modules/ceilf-tests (Files): Add tests/nan.h.
84950         * tests/test-floorf1.c: Include nan.h.
84951         (main): Use NaNf instead of NAN.
84952         * modules/floorf-tests (Files): Add tests/nan.h.
84954         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
84955         (main): Use NaNf instead of NAN.
84956         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
84958         * tests/test-isnand.c: Include nan.h instead of <math.h>.
84959         (main): Use NaNd instead of NAN.
84960         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
84962         * tests/test-frexp.c: Include nan.h.
84963         (main): Use NaNd instead of NAN.
84964         * modules/frexp-tests (Files): Add tests/nan.h.
84966         * lib/isnan.c: Don't include <math.h>.
84967         (FUNC): Don't use NAN macro.
84968         * modules/isnand-nolibm (Depends-on): Remove math.
84969         * modules/isnanf-nolibm (Depends-on): Remove math.
84970         * modules/isnanl (Depends-on): Remove math.
84971         * modules/isnanl-nolibm (Depends-on): Remove math.
84973         * tests/nan.h: New file.
84975 2008-04-01  Eric Blake  <ebb9@byu.net>
84977         Fix typos.
84978         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
84979         values to be the right type.
84981         For now, cater to gnulib strtod inaccuracies.
84982         * tests/test-strtod.c (main): Allow 1-ulp error on expected
84983         fractional results.  While not as nice from a QoI perspective, it
84984         is a quicker patch than correctly implementing decimal to binary
84985         rounding.
84987 2008-03-31  Eric Blake  <ebb9@byu.net>
84989         Guarantee a definition of NAN.
84990         * lib/math.in.h (NAN): Define if missing.
84991         * tests/test-math.c (main): Test it.
84992         * doc/posix-headers/math.texi (math.h): Document this.
84993         * lib/isnan.c (rpl_isnand): Use it.
84994         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
84995         * tests/test-floorf1.c (NaN): Likewise.
84996         * tests/test-frexp.c (NaN): Likewise.
84997         * tests/test-isnand.c (NaN): Likewise.
84998         * tests/test-isnanf.c (NaN): Likewise.
84999         * tests/test-round1.c (NaN): Likewise.
85000         * tests/test-roundf1.c (NaN): Likewise.
85001         * tests/test-snprintf-posix.h (NaN): Likewise.
85002         * tests/test-sprintf-posix.h (NaN): Likewise.
85003         * tests/test-trunc1.c (NaN): Likewise.
85004         * tests/test-truncf1.c (NaN): Likewise.
85005         * tests/test-vasnprintf-posix.c (NaN): Likewise.
85006         * tests/test-vasprintf-posix.c (NaN): Likewise.
85007         * modules/isnand-nolibm (Depends-on): Add math.
85008         * modules/isnanf-nolibm (Depends-on): Likewise.
85009         * modules/isnanl (Depends-on): Likewise.
85010         * modules/isnanl-nolibm (Depends-on): Likewise.
85011         * modules/snprintf-posix-tests (Depends-on): Likewise.
85012         * modules/sprintf-posix-tests (Depends-on): Likewise.
85013         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
85014         * modules/vsprintf-posix-tests (Depends-on): Likewise.
85015         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
85016         * modules/vasprintf-posix-tests (Depends-on): Likewise.
85018 2008-03-31  Bruno Haible  <bruno@clisp.org>
85020         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
85021         * doc/posix-functions/strtod.texi: Likewise.
85023 2008-03-31  Bruno Haible  <bruno@clisp.org>
85025         * tests/test-strtod.c (main): Don't use C99 syntax.
85027 2008-03-31  Bruno Haible  <bruno@clisp.org>
85029         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
85030         Reported by Eric Blake.
85032 2008-03-31  Jim Meyering  <meyering@redhat.com>
85034         Don't compare actual signbit return values.
85035         * tests/test-strtod.c (main): Rather, compare only their
85036         zero/non-zero nature.
85038 2008-03-31  Eric Blake  <ebb9@byu.net>
85040         More strtod documentation.
85041         * doc/posix-functions/strtod.texi (strtod): Interpret more test
85042         failures as distinct bugs.
85044 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
85046         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
85047         Problem reported by Erik Benada in
85048         <http://lists.gnu.org/r/bug-gnulib/2008-03/msg00249.html>.
85050 2008-03-30  Bruno Haible  <bruno@clisp.org>
85052         * tests/test-strtod.c: Add comments about which assertion fails on which
85053         platform.
85054         * doc/posix-functions/strtod.texi: Add info about many more platforms.
85056 2008-03-30  Eric Blake  <ebb9@byu.net>
85058         Test signbit behavior on zeros.
85059         * tests/test-signbit.c (test_signbitf): Add tests for zero.
85060         (test_signbitd, test_signbitl): Likewise.
85062         More strtod touchups.
85063         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
85064         sign of negative underflow, for now.  Use .5, not .1.
85065         * doc/posix-functions/strtod.texi (strtod): Mention these
85066         limitations.
85067         Reported by Jim Meyering.
85069 2008-03-30  Bruno Haible  <bruno@clisp.org>
85071         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
85072         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
85074 2008-03-30  Bruno Haible  <bruno@clisp.org>
85076         Avoid failure when attempting to return empty iconv results on some
85077         platforms.
85078         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
85079         allocation, don't report ENOMEM when the resulting string is empty.
85081 2008-03-30  Bruno Haible  <bruno@clisp.org>
85083         Fix buffer overrun.
85084         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
85085         Don't consider the width for tmp_length. Check count against tmp_length
85086         before doing the padding. Ensure enough allocation during padding.
85088 2008-03-30  Eric Blake  <ebb9@byu.net>
85090         strtod touchups.
85091         * lib/strtod.c (strtod): Avoid compiler warnings.
85092         Reported by Jim Meyering.
85094 2008-03-30  Bruno Haible  <bruno@clisp.org>
85096         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
85097         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
85098         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
85099         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
85100         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
85101         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
85102         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
85103         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
85105         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
85106         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
85107         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
85108         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
85109         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
85110         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
85111         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
85112         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
85114         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
85115         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
85116         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
85117         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
85118         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
85119         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
85120         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
85121         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
85123         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
85124         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
85126         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
85127         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
85129         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
85130         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
85132         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
85133         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
85134         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
85136         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
85137         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
85138         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
85140         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
85141         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
85142         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
85144         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
85145         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
85146         * modules/vasprintf (Depends-on): Add EOVERFLOW.
85148         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
85149         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
85150         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
85151         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
85152         (Depends-on): Add EOVERFLOW.
85153         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
85154         (Depends-on): Add EOVERFLOW.
85155         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
85156         (Depends-on): Add EOVERFLOW.
85157         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
85158         (Depends-on): Add EOVERFLOW.
85159         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
85160         (Depends-on): Add EOVERFLOW.
85161         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
85162         (Depends-on): Add EOVERFLOW.
85163         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
85164         (Depends-on): Add EOVERFLOW.
85165         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
85166         (Depends-on): Add EOVERFLOW.
85168         * lib/sprintf.c (EOVERFLOW): Remove fallback.
85169         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
85170         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
85172         * lib/snprintf.c (EOVERFLOW): Remove fallback.
85173         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
85174         * modules/snprintf (Depends-on): Add EOVERFLOW.
85176         * lib/poll.c (EOVERFLOW): Remove fallback.
85177         * modules/poll (Depends-on): Add EOVERFLOW.
85179         * lib/getugroups.c (EOVERFLOW): Remove fallback.
85180         * modules/getugroups (Depends-on): Add EOVERFLOW.
85182         * lib/getdelim.c (EOVERFLOW): Remove fallback.
85183         * modules/getdelim (Depends-on): Add EOVERFLOW.
85185         * lib/ftell.c (EOVERFLOW): Remove fallback.
85186         * modules/ftell (Depends-on): Add EOVERFLOW.
85188         * lib/fprintf.c (EOVERFLOW): Remove fallback.
85189         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
85190         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
85192         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
85194         * modules/EOVERFLOW-tests: New file.
85195         * tests/test-EOVERFLOW.c: New file.
85197         * modules/EOVERFLOW: New file.
85198         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
85200 2008-03-30  Bruno Haible  <bruno@clisp.org>
85202         Fix bug introduced on 2007-06-10.
85203         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
85204         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
85206 2008-03-30  Bruno Haible  <bruno@clisp.org>
85208         Improve freadseek's efficiency after ungetc.
85209         * lib/freadseek.c: Include freadahead.h.
85210         (freadptrinc): New function, extracted from freadseek.
85211         (freadseek): Use it in a loop. Use freadahead to determine the number
85212         of loop iterations.
85213         * modules/freadseek (Depends-on): Add freadahead.
85214         (configure.ac): Require AC_C_INLINE.
85216 2008-03-30  Bruno Haible  <bruno@clisp.org>
85218         * lib/freadseek.c (freadseek): Don't ignore the return value of
85219         freadptr.
85221 2008-03-29  Eric Blake  <ebb9@byu.net>
85223         Add hex float support.
85224         * modules/strtod (Depends-on): Add c-ctype.
85225         (Link): Mention POW_LIB.
85226         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
85227         whitespace between 'e' and exponent.
85228         * tests/test-strtod.c (main): Enable hex float tests.
85229         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
85230         now provides.
85232         Document various strtod bugs, with some fixes.
85233         * doc/posix-functions/strtod.texi (strtod): Document bugs with
85234         "-0x", "inf", "nan", and hex constants.
85235         * doc/posix-functions/atof.texi (atof): Likewise.
85236         * modules/stdlib (Makefile.am): Support strtod.
85237         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
85238         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
85239         detect additional strtod bugs.
85240         * lib/stdlib.in.h (rpl_strtod): Add declarations.
85241         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
85242         bool where appropriate.  Parse 'inf' and 'nan'.
85243         * tests/test-strtod.c: New file.
85244         * modules/strtod (Depends-on): Add stdbool, stdlib.
85245         (configure.ac): Turn on module indicator.
85246         * modules/strtod-tests: New module.
85248 2008-03-29  Eric Blake  <ebb9@byu.net>
85250         Fix ftell on mingw.
85251         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
85252         * modules/ftell-tests (Depends-on): Add binary-io.
85253         * modules/ftello-tests (Depends-on): Likewise.
85254         * tests/test-ftell.c (main): Enhance test to cover behavior after
85255         ungetc.  Enforce binary mode.
85256         * tests/test-ftello.c (main): Likewise.
85258         Pass test-freadseek on cygwin.
85259         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
85260         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
85261         ungetc buffer.
85263         * tests/test-fflush2.c (main): Fix typo.
85265 2008-03-29  Bruno Haible  <bruno@clisp.org>
85267         * tests/test-fflush2.c (main): Temporarily disable the contents of
85268         this test.
85269         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
85270         Reported by Eric Blake.
85272 2008-03-28  Simon Josefsson  <simon@josefsson.org>
85274         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
85275         (GC_SHA224_DIGEST_SIZE): Add.
85277         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
85278         (gc_hash_digest_length): Likewise.
85279         (gc_hash_buffer): Likewise.
85281 2008-03-25  Bruno Haible  <bruno@clisp.org>
85283         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
85284         detail which gettext release to use.
85285         Reported by Simon Josefsson.
85287 2008-03-26  Jim Meyering  <meyering@redhat.com>
85289         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
85290         * modules/gnumakefile (clean-GNUmakefile): Also, use
85291         test ... && ... || : syntax rather than if-then ... fi.
85293         gnumakefile: Don't double-quote-expand $(VPATH) value.
85294         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
85296 2008-03-24  Eric Blake  <ebb9@byu.net>
85298         Alter GNUmakefile to install into top directory.
85299         * modules/maintainer-makefile: Split, and add dependency...
85300         * modules/gnumakefile: to this new module.
85301         * build-aux/GNUmakefile: Move...
85302         * top/GNUmakefile: ...here.
85303         * build-aux/maint.mk: Move...
85304         * top/maint.mk: ...here.
85305         * MODULES.html.sh (Support for maintaining...): Document new
85306         module.
85308 2008-03-23  Bruno Haible  <bruno@clisp.org>
85310         * gnulib-tool: New options --vc-files, --no-vc-files.
85311         (func_usage): Document them.
85312         (vc_files): New variable.
85313         (func_import): Consider vc_files.
85314         (func_create_testdir): Set vc_files to empty.
85315         Suggested by Jim Meyering and Karl Berry.
85317 2008-03-23  Bruno Haible  <bruno@clisp.org>
85319         Fix regex compilation error on HP-UX 11.
85320         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
85321         * modules/regex (Files): Add m4/mbstate_t.m4.
85322         Reported by Ton Voon <ton.voon@altinity.com>.
85324 2008-03-23  Bruno Haible  <bruno@clisp.org>
85326         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
85328 2008-03-23  Eric Blake  <ebb9@byu.net>
85329             Bruno Haible  <bruno@clisp.org>
85331         Install files from top/ in the destination directory.
85332         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
85333         augmentation also for the files from top/.
85334         (func_import, func_create_testdir): Rewrite file names:
85335         top/filename -> filename.
85337 2008-03-23  Bruno Haible  <bruno@clisp.org>
85339         Tweak "gnulib --version" output.
85340         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
85342 2008-03-23  Bruno Haible  <bruno@clisp.org>
85344         Tweak "gnulib --version" output.
85345         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
85346         rather than contents of ChangeLog, when possible.
85348 2008-03-21  Eric Blake  <ebb9@byu.net>
85350         More --version tweaks.
85351         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
85352         date of last ChangeLog entry.
85354 2008-03-21  Jim Meyering  <meyering@redhat.com>
85356         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
85358 2008-03-20  Eric Blake  <ebb9@byu.net>
85360         VPATH fix.
85361         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
85363 2008-03-20  Simon Josefsson  <simon@josefsson.org>
85365         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
85366         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
85368 2008-03-20  Eric Blake  <ebb9@byu.net>
85370         Sync GNUmakefile with coreutils.
85371         * build-aux/GNUmakefile (have-Makefile): Rename...
85372         (_have-Makefile): ...to this, for namespace consideration.
85373         (GNUmakefile.cfg): Include, if present.
85374         (_autoreconf): Define a default.
85375         (_is-dist-target): New rule for rebuilds to pick up intra-release
85376         version.
85377         (maint-cfg.mk): Rename...
85378         (cfg.mk): ...to this.
85380 2008-03-18  Jim Meyering  <meyering@redhat.com>
85382         New script and module: mktempd
85383         * MODULES.html.sh (maint+release support): Add mktempd.
85384         * build-aux/mktempd: New file.
85385         * modules/mktempd: New file.
85387 2008-03-15  Jim Meyering  <meyering@redhat.com>
85389         Undo last change.
85390         * lib/sha1.c, lib/md5.c: 63 != ~63.
85391         Reported by Andreas Schwab.
85393         sha1.c, md5.c: Hoist a redundant expression.
85394         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
85395         "ctx->buflen" only once, before calling *_process_block.
85396         * lib/md5.c (md5_process_bytes): Likewise.
85398 2008-03-14  Eric Blake  <ebb9@byu.net>
85400         Bump copyright year in files generated by gnulib-tool.
85401         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
85402         gnulib-tool, rather than hard-coding it.
85404         Fix 'gnulib-tool --version' output to work with git.
85405         * gnulib-tool (func_gnulib_dir): New function, extracted from...
85406         (startup): ...here.
85407         (func_version): Use it to invoke git-version-gen, rather than
85408         relying on CVS keyword expansion.  Modernize wording.
85409         (cvsdatestamp, last_checkin_date, version): Kill unused
85410         variables.
85412 2008-03-12  Jim Meyering  <meyering@redhat.com>
85414         Recognize optional cast of the argument to free.
85415         * build-aux/useless-if-before-free: Update regexps.
85417         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
85419 2008-03-11  Bruno Haible  <bruno@clisp.org>
85421         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
85422         by a single package.
85423         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
85424         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
85425         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
85426         Reported by Sam Steingold <sds@gnu.org>.
85428 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
85430         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
85431         repositories.
85433 2008-03-11  Bruno Haible  <bruno@clisp.org>
85435         Avoid conflicts between local macro definitions.
85436         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
85437         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
85439 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
85440             Bruno Haible  <bruno@clisp.org>
85442         Make va_copy work with some version of xlc on AIX 5.1.
85443         * lib/stdarg.in.h: New file.
85444         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
85445         On AIX, use a <stdarg.h> file substitute.
85446         * modules/stdarg (Files): Add lib/stdarg.in.h.
85447         (Depends-on): Add include_next.
85448         (Makefile.am): Build a stdarg.h substitute if requested.
85449         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
85451 2008-03-10  Bruno Haible  <bruno@clisp.org>
85453         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
85454         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
85455         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
85457 2008-03-10  Bruno Haible  <bruno@clisp.org>
85459         * modules/stdlib (Depends-on): Add include_next, remove
85460         absolute-header.
85462 2008-03-09  Bruno Haible  <bruno@clisp.org>
85464         * lib/freadahead.h (freadahead): Document more precisely.
85465         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
85466         the sum of both buffer sizes.
85467         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
85468         * NEWS: Document the change.
85470 2008-03-09  Bruno Haible  <bruno@clisp.org>
85472         Extend freadptr to return also the buffer size.
85473         * lib/freadptr.h (freadptr): Add sizep argument.
85474         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
85475         (freadptr): Add sizep argument. Determine buffer size like freadahead
85476         does.
85477         * tests/test-freadptr.c: Don't include freadahead.h.
85478         (main): Adapt for new calling convention of freadptr.
85479         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
85480         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
85481         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
85482         tests/test-freadptr2.sh.
85483         (Depends): Remove freadahead.
85484         (TESTS): Add test-freadptr2.sh.
85485         (check_PROGRAMS): Add test-freadptr2.
85487 2008-03-09  Bruno Haible  <bruno@clisp.org>
85489         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
85490         Report and solution by Simon Josefsson.
85492 2008-03-06  Bruno Haible  <bruno@clisp.org>
85494         Make fflush after ungetc work on BSD platforms.
85495         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
85496         * tests/test-fflush2.c: New file.
85497         * tests/test-fflush2.sh: New file.
85498         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
85499         tests/test-fflush2.c.
85500         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
85501         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
85503 2008-03-06  Eric Blake  <ebb9@byu.net>
85505         Likewise for ftello.
85506         * modules/ftello (Dependencies): Add extensions.
85507         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
85509 2008-03-06  Bruno Haible  <bruno@clisp.org>
85511         * modules/fseeko (Dependencies): Add extensions.
85512         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
85513         Needed on glibc systems.
85515 2008-03-06  Bruno Haible  <bruno@clisp.org>
85517         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
85518         email address.
85519         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
85521 2008-03-06  Bruno Haible  <bruno@clisp.org>
85523         * users.txt: Add libgnupdf.
85525 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
85527         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
85528         (Header File Substitutes, Function Substitutes,
85529         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
85530         (Build robot for gnulib): Fix typo.
85532 2008-03-06  Bruno Haible  <bruno@clisp.org>
85534         * doc/gnulib-tool.texi (VCS Issues): Small updates.
85535         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
85537 2008-03-06  Bruno Haible  <bruno@clisp.org>
85539         * doc/func.texi: New file, extracted from doc/gnulib.texi.
85540         * doc/gnulib.texi: Include it.
85542 2008-03-06  Simon Josefsson  <simon@josefsson.org>
85544         * modules/func (License): Change license to unlimited; there was
85545         no LGPL parts in the module anyway.
85547 2008-03-06  Simon Josefsson  <simon@josefsson.org>
85549         * modules/__func__: Renamed to modules/func.
85550         * modules/__func__-tests: Renamed to modules/func-tests.
85551         * tests/test-__func__.c: Renamed to tests/test-func.c.
85552         * m4/__func__.m4: Renamed to m4/func.m4.
85553         * doc/gnulib.texi (__func__): Section renamed to func.
85554         Suggested by Eric Blake <ebb9@byu.net>.
85556 2008-03-06  Simon Josefsson  <simon@josefsson.org>
85558         * doc/gnulib.texi (__func__): Use C99 terminology when talking
85559         about __func__.  Make example self-contained.  Suggested by Eric
85560         Blake <ebb9@byu.net>.
85562         * tests/test-__func__.c (main): Avoid extraneous () around __func.
85563         Suggested by Eric Blake <ebb9@byu.net>.
85565 2008-03-06  Simon Josefsson  <simon@josefsson.org>
85567         * modules/__func__: New file.
85568         * modules/__func__-tests: New file.
85569         * tests/test-__func__.c: New file.
85570         * m4/__func__.m4: New file.
85571         * doc/gnulib.texi (__func__): Document __func__ module.
85573 2008-03-05  Simon Josefsson  <simon@josefsson.org>
85575         * modules/byteswap (License): Re-license as LGPLv2+.
85577 2008-03-05  Simon Josefsson  <simon@josefsson.org>
85579         * doc/Makefile: Add pdf target.
85581 2008-03-05  Simon Josefsson  <simon@josefsson.org>
85583         * modules/inline (License): Use 'unlimited', since there are only
85584         *.m4 files in this module.
85586 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
85587             Bruno Haible  <bruno@clisp.org>
85589         Add support for HP C 7.1 on OpenVMS 8.3.
85590         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
85592 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
85594         Update VMS specifics.
85595         * lib/getopt.c [VMS]: Remove include of unixlib.h.
85597 2008-03-02  Jim Meyering  <meyering@redhat.com>
85599         Remove the last dependency on the "free" module.
85600         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
85601         Reported by Bob Proulx.
85603         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
85605         Remove useless "if" tests before free.  Deprecate "free" module.
85606         * doc/posix-functions/free.texi: Mention that this
85607         module is no longer useful.
85608         * modules/free (Notice): Say this module is obsolete.
85609         * modules/readutmp (Depends-on): Remove free.
85610         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
85611         * lib/putenv.c (putenv): Likewise.
85612         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
85613         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
85614         * tests/test-c-strcasestr.c (main): Likewise.
85615         * tests/test-c-strstr.c (main): Likewise.
85616         * tests/test-mbscasestr1.c (main): Likewise.
85617         * tests/test-mbscasestr2.c (main): Likewise.
85618         * tests/test-mbsstr1.c (main): Likewise.
85619         * tests/test-mbsstr2.c (main): Likewise.
85620         * tests/test-memmem.c (main): Likewise.
85621         * tests/test-strcasestr.c (main): Likewise.
85622         * tests/test-striconv.c (main): Likewise.
85623         * tests/test-striconveh.c (main): Likewise.
85624         * tests/test-striconveha.c (main): Likewise.
85625         * tests/test-strstr.c (main): Likewise.
85627         * build-aux/git-version-gen: Adjust a comment and the Usage string.
85629         bootstrap: sync from coreutils again
85630         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
85632 2008-03-01  Jim Meyering  <meyering@redhat.com>
85634         bootstrap: sync from coreutils
85635         * build-aux/bootstrap (update_po_files): Copy a .po file into place
85636         also when the target doesn't exist.
85638 2008-03-01  Eric Blake  <ebb9@byu.net>
85640         Fix bugs in last patch.
85641         * lib/memchr2.c (memchr2): Fix typo.
85642         * tests/test-memchr2.c: Test previous bug, and don't use GNU
85643         extension.
85644         Reported by Bruce Korb.
85646         New module 'memchr2'.
85647         * modules/memchr2: New file.
85648         * modules/memchr2-tests: Likewise.
85649         * lib/memchr2.h: Likewise.
85650         * lib/memchr2.c: Likewise, based on memchr.c.
85651         * tests/test-memchr2.c: New test.
85652         * MODULES.html.sh (String handling): Add memchr2.
85654 2008-02-29  Bruno Haible  <bruno@clisp.org>
85656         * modules/freadseek-tests: New file.
85657         * tests/test-freadseek.sh: New file.
85658         * tests/test-freadseek.c: New file.
85660         New module 'freadseek'.
85661         * modules/freadseek: New file.
85662         * lib/freadseek.h: New file.
85663         * lib/freadseek.c: New file.
85664         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
85666 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
85668         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
85669         wydawca.
85671         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
85672         program_invocation_name and program_invocation_short_name are
85673         present.
85675 2008-02-28  Bruno Haible  <bruno@clisp.org>
85677         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
85678         * tests/test-freadptr.sh: Also test non-seekable stdin.
85680 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
85682         * build-aux/bootstrap (source_base, m4_base)
85683         (doc_base, tests_base): New variables.
85684         (gnulib_tool_options): Do not hardcode base directories, use
85685         the above variables instead.
85687 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
85689         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
85691 2008-02-28  Bruno Haible  <bruno@clisp.org>
85693         * modules/freadptr-tests: New file.
85694         * tests/test-freadptr.sh: New file.
85695         * tests/test-freadptr.c: New file.
85697         New module 'freadptr'.
85698         * modules/freadptr: New file.
85699         * lib/freadptr.h: New file.
85700         * lib/freadptr.c: New file.
85701         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
85703 2008-02-26  Karl Berry  <karl@freefriends.org>
85705         Sync from Libtool:
85706         * libltdl/argz.c (argz_add, argz_count): New functions.
85707         * libltdl/argz.in.h: Declare them.
85708         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
85710 2008-02-22  Bruno Haible  <bruno@clisp.org>
85712         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
85713         is a pointer type.  Needed for HP-UX 10.
85714         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
85715         * doc/posix-functions/gmtime_r.texi: Likewise.
85716         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
85718 2008-02-24  Bruno Haible  <bruno@clisp.org>
85720         * modules/environ-tests: New file.
85721         * tests/test-environ.c: New file.
85723         New module 'environ'.
85724         * modules/environ: New file.
85725         * lib/unistd.in.h (environ): New declaration.
85726         * m4/environ.m4: New file.
85727         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
85728         after use.
85729         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
85730         HAVE_DECL_ENVIRON.
85731         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
85732         HAVE_DECL_ENVIRON.
85733         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
85734         wrong claim that 'environ' is missing on some systems.
85735         * modules/execute (Depends-on): Add environ.
85736         * lib/execute.c (environ): Remove fallback declaration.
85737         * modules/pipe (Depends-on): Add environ.
85738         * lib/pipe.c (environ): Remove fallback declaration.
85739         * modules/setenv (Depends-on): Add environ.
85740         * lib/setenv.c (environ): Remove fallback declaration.
85741         * modules/unsetenv (Depends-on): Add environ.
85742         * lib/unsetenv.c (environ): Remove fallback declaration.
85743         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
85744         m4/environ.m4.
85745         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
85746         (gl_PREREQ_UNSETENV): Likewise.
85748 2008-02-24  Bruno Haible  <bruno@clisp.org>
85750         * doc/posix-functions/environ.texi: Document the MacOS X problem.
85752 2008-02-20  Bob Proulx  <bob@proulx.com>
85754         Enable use of older two part flavor 'git describe'.
85755         * build-aux/git-version-gen: If using the older two part flavor of
85756         git version then recreate the third part now present in the
85757         newer three part flavor of git describe.
85759 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
85761         * lib/fts.c (fts_build): Typo correction to comment.
85763 2008-02-17  Bruno Haible  <bruno@clisp.org>
85765         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
85766         generating no-op conflicts.
85768 2008-02-17  Bruno Haible  <bruno@clisp.org>
85770         Speed up by 10%.
85771         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
85772         result_entries, rather than an index-based loop.
85774 2008-02-17  Bruno Haible  <bruno@clisp.org>
85776         Speed up by 25%.
85777         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
85778         'hashcode_cached'.
85779         (entry_create): New function.
85780         (entry_hashcode): Use the cached hashcode if possible.
85781         (read_changelog_file, try_split_merged_entry): Use entry_create.
85783 2008-02-17  Bruno Haible  <bruno@clisp.org>
85785         Speed up from O(n^2) to O(n) for long ChangeLog files.
85786         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
85787         (read_changelog_file): Change implementation of entries_reversed list
85788         to rbtreehash.
85789         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
85791 2008-02-17  Bruno Haible  <bruno@clisp.org>
85793         New option --split-merged-entry.
85794         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
85795         (find_paragraph_end, try_split_merged_entry): New functions.
85796         (long_options): Add option --split-merged-entry.
85797         (usage): Document option --split-merged-entry.
85798         (main): Implement option --split-merged-entry.
85799         Reported by Eric Blake.
85801 2008-02-17  Bruno Haible  <bruno@clisp.org>
85803         * lib/git-merge-changelog.c: Include c-strstr.h.
85804         (main): Support the "git pull --rebase" situation.
85805         * modules/git-merge-changelog (Depends-on): Add c-strstr.
85806         Reported by Eric Blake.
85808 2008-02-16  Eric Blake  <ebb9@byu.net>
85810         Avoid doubling \ in common case of "c-maybe" quoting style.
85811         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
85812         eliding outer quotes.
85813         * lib/quotearg.h: Document this.
85814         * tests/test-quotearg.c (result_strings, inputs, results_g)
85815         (flag_results, locale_results): Test it by adding a new string to
85816         each test group.
85817         (compare_strings): Test new string.
85819 2008-02-13  Eric Blake  <ebb9@byu.net>
85821         Avoid trigraph quoting in default output.
85822         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
85823         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
85824         unless explicitly requested.
85825         * tests/test-quotearg.c (flag_results, main): Add additional tests.
85827 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
85829         Don't rely on signed integer overflowing to negative value.
85830         * lib/getugroups.c (getugroups): Include <limits.h>.
85831         Instead, compare against INT_MAX, and increment only if the test passes.
85833 2008-02-13  Jim Meyering  <meyering@redhat.com>
85834         and Eric Blake  <ebb9@byu.net>
85836         Avoid shadowing warning and compile errors on Linux.
85837         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
85838         forwarding macros on Linux.
85839         (dcgettext): Define a stub, for Linux.
85840         (results_g, main): Avoid warnings.
85842 2008-02-12  Eric Blake  <ebb9@byu.net>
85844         Silence warning in last patch.
85845         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
85847         Quotearg part 4: add tests, fix c-maybe colon quoting.
85848         * lib/quotearg.h: Improve documentation.
85849         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
85850         escapes when adding outer quotes.  When quoting trigraphs, use
85851         valid C notation.  When quoting NUL, omit extra characters if next
85852         character is not digit.  Alter prototype.
85853         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
85854         callers.
85855         * modules/quotearg-tests: New module.
85856         * tests/test-quotearg.c: New test.
85858 2008-02-07  Eric Blake  <ebb9@byu.net>
85860         Quotearg part 3: add flag to control outer quote elision.
85861         * lib/quotearg.h (c_maybe_quoting_style): New style.
85862         (enum quoting_flags): Better documentation of flags.
85863         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
85864         c-maybe style.
85865         (quotearg_buffer_restyled): Handle new flag to elide outer
85866         quotes.
85868         Quotearg part 2: add flag that can control NUL elision.
85869         * lib/quotearg.h (set_quoting_flags): New prototype.
85870         * lib/quotearg.c (struct quoting_options): Add flag field.
85871         (set_quoting_flags): New function.
85872         (quotearg_buffer_restyled): Add flags parameter.
85873         (quotearg_alloc_mem): Set the flag if length cannot be returned.
85874         (quotearg_n_options): Set the flag, since length cannot be
85875         returned.
85876         (quoting_options_from_style): Default flags correctly.
85878         Quotearg part 1: more wrappers, restore quotearg_char state.
85879         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
85880         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
85881         (quotearg_colon_mem): New wrappers.
85882         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
85883         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
85884         functions.
85885         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
85886         (quotearg_colon_mem): New functions.
85888 2008-02-11  Bruno Haible  <bruno@clisp.org>
85890         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
85891         library in the current directory: it does not work with parallel make.
85892         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
85894 2008-02-11  Bruno Haible  <bruno@clisp.org>
85896         * .gitattributes: New file.
85898 2008-02-11  Jim Meyering  <meyering@redhat.com>
85900         useless-if-before-free: Fix reversed exit values.
85901         * build-aux/useless-if-before-free: Use correct values
85902         for EXIT_MATCH and EXIT_NO_MATCH.
85904         * build-aux/useless-if-before-free: Close stdout carefully.
85906 2008-02-10  Bruno Haible  <bruno@clisp.org>
85908         New module 'git-merge-changelog'.
85909         * modules/git-merge-changelog: New file.
85910         * lib/git-merge-changelog.c: New file.
85912 2008-02-10  Jim Meyering  <meyering@redhat.com>
85914         useless-if-before-free: New option: --list (-l).
85916         useless-if-before-free: Don't exit immediately upon open failure.
85917         * build-aux/useless-if-before-free: Exit 2 for errors.
85918         Upon failure to open a file, don't exit immediately.
85919         Rather, just warn and continue with any remaining files.
85921 2008-02-10  Bruno Haible  <bruno@clisp.org>
85923         New abstract list operation 'node_set_value'.
85924         * lib/gl_list.h (gl_list_node_set_value): New function.
85925         (struct gl_list_implementation): New field node_set_value.
85926         * lib/gl_list.c (gl_list_node_set_value): New function.
85927         * lib/gl_array_list.c (gl_array_node_set_value): New function.
85928         (gl_array_list_implementation): Update.
85929         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
85930         (gl_carray_list_implementation): Update.
85931         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
85932         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
85933         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
85934         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
85935         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
85936         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
85937         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
85938         Update.
85939         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
85940         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
85941         (gl_sublist_list_implementation): Update.
85943 2008-02-10  Bruno Haible  <bruno@clisp.org>
85945         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
85946         Needed when ELEMENT is #defined to 'some_type *'.
85948 2008-02-10  Jim Meyering  <meyering@redhat.com>
85950         New script and module: useless-if-before-free
85951         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
85952         * build-aux/useless-if-before-free: New file.
85953         * modules/useless-if-before-free: New file.
85955         * build-aux/gitlog-to-changelog: Use committer date, not author date.
85957         xstrtol_error: Fix typo.
85958         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
85959         s/exit_failure/exit_status/.
85961 2008-02-09  Jim Meyering  <meyering@redhat.com>
85963         New script and module: gitlog-to-changelog
85964         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
85965         * modules/gitlog-to-changelog: New file.
85966         * build-aux/gitlog-to-changelog: New file.
85968 2008-02-08  Jim Meyering  <meyering@redhat.com>
85970         Avoid two "parameter unused" warnings.
85971         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
85972         Mark "st" as used.
85974         Use "git COMMAND", not "git-COMMAND".
85975         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
85976         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
85977         * build-aux/git-version-gen: Use "git status", not "git-status".
85979 2008-02-07  Bruno Haible  <bruno@clisp.org>
85981         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
85982         Avoids a crash on Windows Vista.
85983         Reported by Adam Strzelecki <ono@java.pl> via
85984         Simon Josefsson <simon@josefsson.org>.
85986 2008-02-06  Bruno Haible  <bruno@clisp.org>
85988         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
85989         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
85990         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
85991         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
85992         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
85993         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
85994         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
85995         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
85996         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
85997         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
85998         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
85999         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
86000         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
86001         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
86002         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
86003         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
86004         left-adjust flag.
86005         * tests/test-snprintf-posix.h (test_function): Likewise.
86006         * tests/test-sprintf-posix.h (test_function): Likewise.
86007         * tests/test-vasprintf-posix.c (test_function): Likewise.
86008         * doc/posix-functions/fprintf.texi: Update.
86009         * doc/posix-functions/printf.texi: Update.
86010         * doc/posix-functions/snprintf.texi: Update.
86011         * doc/posix-functions/sprintf.texi: Update.
86012         * doc/posix-functions/vfprintf.texi: Update.
86013         * doc/posix-functions/vprintf.texi: Update.
86014         * doc/posix-functions/vsnprintf.texi: Update.
86015         * doc/posix-functions/vsprintf.texi: Update.
86016         Reported by Peter Fales <psfales@alcatel-lucent.com>.
86018 2008-02-06  Bruno Haible  <bruno@clisp.org>
86020         Fix bug introduced on 2008-01-26.
86021         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
86023 2008-02-06  Bruno Haible  <bruno@clisp.org>
86025         Fix bug introduced on 2007-06-10.
86026         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
86027         !NEED_PRINTF_FLAG_ZERO.
86029 2008-02-05  Peter O'Gorman  <pogma@thewrittenword.com>
86031         getloadavg: use libperfstat on AIX5
86032         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
86034 2008-02-03  Bruno Haible  <bruno@clisp.org>
86036         * lib/diffseq.h: Add comments about required #includes.
86037         Reported by Michael Biggs <gnulib@doubleplum.net>.
86039 2008-02-01  Bruno Haible  <bruno@clisp.org>
86041         * users.txt: Add gnuit.
86043 2008-01-31  Bruno Haible  <bruno@clisp.org>
86045         * lib/md4.c (set_uint32): Mark as inline.
86046         * lib/md5.c (set_uint32): Likewise.
86047         * lib/sha1.c (set_uint32): Likewise.
86048         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
86049         * m4/md5.m4 (gl_MD5): Likewise.
86050         * m4/sha1.m4 (gl_SHA1): Likewise.
86052 2008-01-31  Jim Meyering  <meyering@redhat.com>
86054         Use "sizeof VAR", rather than a literal "4".
86055         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
86056         * lib/md4.c (md4_read_ctx): Likewise.
86057         * lib/sha1.c (sha1_read_ctx): Likewise.
86059 2008-01-31  Simon Josefsson  <simon@josefsson.org>
86061         * tests/test-sha1.c: New file, based on test-md5.c.
86063         * modules/crypto/sha1-tests: New file.
86065 2008-01-31  Simon Josefsson  <simon@josefsson.org>
86067         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
86069 2008-01-31  Jim Meyering  <meyering@redhat.com>
86071         Prefer "sizeof v" over the equivalent "4".
86072         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
86073         * lib/md5.c (set_uint32): Likewise.
86074         * lib/sha1.c (set_uint32): Likewise.
86076 2008-01-31  Simon Josefsson  <simon@josefsson.org>
86078         * lib/sha1.c (set_uint32): Mark function as static.
86080 2008-01-31  Simon Josefsson  <simon@josefsson.org>
86082         md2: clarify comments to say that alignment is not required.
86083         * lib/md2.h: Remove warning about alignment in comment.
86084         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
86085         never been required.
86087 2008-01-31  Simon Josefsson  <simon@josefsson.org>
86089         md4: adapt alignment constraint fix from sha1.
86090         * lib/md4.c (set_uint32): New function, from sha1.c
86091         (md4_read_ctx): Use it.
86092         (md4_finish_ctx): Doc fix.
86093         * lib/md4.h: Doc fix.
86095 2008-01-31  Simon Josefsson  <simon@josefsson.org>
86097         md5: adapt alignment constraint fix from sha1.
86098         * lib/md5.c (set_uint32): New function, from sha1.c
86099         (md5_read_ctx): Use it.
86100         (md5_finish_ctx): Doc fix.
86101         * lib/md5.h: Doc fix.
86103 2008-01-30  Peter Palfrader  <weasel@debian.org>
86105         sha1: remove the result buffer alignment constraint
86106         * lib/sha1.c (set_uint32): New function.
86107         (sha1_read_ctx): Rewrite to remove the result buffer alignment
86108         constraint.
86109         (sha1_finish_ctx): Remove comment warning about alignment constraint.
86110         * lib/sha1.h: Likewise.
86112 2008-01-30  Andreas Schwab  <schwab@suse.de>
86113             Bruno Haible  <bruno@clisp.org>
86115         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
86116         correct definition of LDBL_MIN_EXP.
86118 2008-01-30  Karl Berry  <karl@gnu.org>
86120         * config/srclist-update: try to preserve x bit on updates.
86121         * config/srclistvars.sh: update for karl.
86123 2008-01-29  Jim Meyering  <meyering@redhat.com>
86125         vasnprintf.c: Avoid warning about unused label
86126         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
86127         "overflow" label definition and associated code with the
86128         same cpp condition that guards the sole use of that label.
86130 2008-01-26  Bruno Haible  <bruno@clisp.org>
86132         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
86133         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
86134         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
86135         * lib/isnanl-nolibm.h (isnanl): Likewise.
86136         Reported by Paul Eggert <eggert@cs.ucla.edu>.
86138 2008-01-26  Bruno Haible  <bruno@clisp.org>
86140         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
86141         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
86143 2008-01-26  Bruno Haible  <bruno@clisp.org>
86145         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
86146         GCC >= 4.0 built-in.
86147         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
86149 2008-01-26  Bruno Haible  <bruno@clisp.org>
86151         Rename isnan, applicable to 'double' only, to isnand.
86152         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
86153         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
86154         (configure.ac): Update.
86155         (Include): Replace "isnan.h" with "isnand.h".
86156         * m4/isnand.m4: Renamed from m4/isnan.m4.
86157         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
86158         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
86159         instead of isnan.c.
86160         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
86161         instead of HAVE_ISNAN_IN_LIBC.
86162         (isnand): Renamed from isnan.
86163         * lib/isnand.c: New file.
86164         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
86165         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
86166         (Makefile.am): Update.
86167         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
86168         Include isnand.h instead of isnan.h.
86169         (main): Test isnand instead of isnan.
86170         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
86171         isnan-nolibm.
86172         * modules/frexp (Depends-on): Likewise.
86173         * modules/frexp-tests (Depends-on): Likewise.
86174         * modules/frexp-nolibm (Depends-on): Likewise.
86175         * modules/frexp-nolibm-tests (Depends-on): Likewise.
86176         * modules/isfinite (Depends-on): Likewise.
86177         * modules/round-tests (Depends-on): Likewise.
86178         * modules/signbit (Depends-on): Likewise.
86179         * modules/signbit-tests (Depends-on): Likewise.
86180         * modules/snprintf-posix (Depends-on): Likewise.
86181         * modules/sprintf-posix (Depends-on): Likewise.
86182         * modules/trunc-tests (Depends-on): Likewise.
86183         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
86184         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
86185         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
86186         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
86187         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
86188         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
86189         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
86190         * modules/vasnprintf-posix (Depends-on): Likewise.
86191         * modules/vasprintf-posix (Depends-on): Likewise.
86192         * modules/vfprintf-posix (Depends-on): Likewise.
86193         * modules/vsnprintf-posix (Depends-on): Likewise.
86194         * modules/vsprintf-posix (Depends-on): Likewise.
86195         * lib/frexp.c: Include isnand.h instead of isnan.h.
86196         (ISNAN): Set to isnand instead of isnan.
86197         * lib/isfinite.c: Include isnand.h instead of isnan.h.
86198         (gl_isfinited): Use isnand instead of isnan.
86199         * lib/signbitd.c: Include isnand.h instead of isnan.h.
86200         (gl_signbitd): Use isnand instead of isnan.
86201         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
86202         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
86203         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
86204         (main): Use isnand instead of isnan.
86205         * tests/test-round1.c: Include isnand.h.
86206         (main): Use isnand instead of isnan.
86207         * tests/test-round2.c: Include isnand.h instead of isnan.h.
86208         (ISNAN): Set to isnand instead of isnan.
86209         * tests/test-trunc1.c: Include isnand.h.
86210         (main): Use isnand instead of isnan.
86211         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
86212         (equal): Use isnand instead of isnan.
86213         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
86214         isnand-nolibm.
86215         * NEWS: Mention the change.
86217 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
86218             Bruno Haible  <bruno@clisp.org>
86220         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
86221         the GCC builtins for signbits are present and set
86222         REPLACE_SIGNBIT_USING_GCC if so.
86223         * lib/math.in.h (signbit): Define using GCC builtins if
86224         REPLACE_SIGNBIT_USING_GCC is set.
86225         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
86226         REPLACE_SIGNBIT_USING_GCC.
86227         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
86229 2008-01-25  Jim Meyering  <meyering@redhat.com>
86231         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
86232         * lib/poll.c: Include <config.h>, not "config.h".
86233         * tests/test-getaddrinfo.c: Likewise.
86235 2008-01-25  Simon Josefsson  <simon@josefsson.org>
86237         * modules/sockets-tests: New file.
86239 2008-01-24  Simon Josefsson  <simon@josefsson.org>
86241         * modules/sockets: New module, can be used to call WSA_Startup and
86242         WSA_Cleanup when needed.
86244         * lib/sockets.h, lib/sockets.c: New files.
86246         * m4/sockets.m4: New file.
86248         * tests/test-sockets.c: New file.
86250 2008-01-19  Bruno Haible  <bruno@clisp.org>
86252         * doc/posix-headers: Renamed from doc/headers.
86253         * doc/posix-functions: Renamed from doc/functions.
86254         * doc/gnulib.texi: Update.
86256 2008-01-19  Bruno Haible  <bruno@clisp.org>
86258         * doc/glibc-functions/strcasestr.texi: Include contents of
86259         doc/functions/strcasestr.texi, fixing the list of platforms.
86260         * doc/functions/strcasestr.texi: Remove file.
86262 2008-01-19  Bruno Haible  <bruno@clisp.org>
86264         * doc/glibc-functions/memmem.texi: Include contents of
86265         doc/functions/memmem.texi.
86266         * doc/functions/memmem.texi: Remove file.
86268 2008-01-18  Bruno Haible  <bruno@clisp.org>
86270         * doc/glibc-functions/*.texi: New files.
86271         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
86272         to use the new files.
86274 2008-01-17  Bruno Haible  <bruno@clisp.org>
86276         * tests/test-gethostname.c (main): Fix printf statement.
86278 2008-01-17  Simon Josefsson  <simon@josefsson.org>
86280         * modules/gethostname-tests: New file.
86282         * tests/test-gethostname.c: New file.
86284 2008-01-17  Simon Josefsson  <simon@josefsson.org>
86286         * lib/gethostname.c: Include string.h unconditionally, strncpy is
86287         used by the UNAME case.  Reported by Bruno Haible
86288         <bruno@clisp.org>.
86290 2008-01-17  Eric Blake  <ebb9@byu.net>
86292         Convert c-strcasestr to be more efficient.
86293         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
86294         (Depends-on): Add c-strcase, remove malloca, strnlen.
86295         * tests/test-c-strcasestr.c (main): Enhance test.
86296         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
86298 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
86300         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
86301         Use it in creating po/Makevars.
86303 2008-01-15  Simon Josefsson  <simon@josefsson.org>
86305         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
86306         Applications that requires it should initialize libgcrypt
86307         manually.
86309 2008-01-16  Simon Josefsson  <simon@josefsson.org>
86311         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
86313 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
86315         Fix problem with getdate on mingw32 reported by Simon Josefsson
86316         in <http://lists.gnu.org/r/bug-gnulib/2008-01/msg00192.html>.
86317         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
86318         tzname", when deciding whether to declare tzname.
86319         * lib/strftime.c (tzname): Likewise.
86321 2008-01-15  Bruno Haible  <bruno@clisp.org>
86323         Work around a MacOS X 10.5 bug in frexpl().
86324         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
86325         * doc/functions/frexpl.texi: Document the bug.
86326         Reported by Elias Pipping <pipping@gentoo.org>.
86328 2008-01-14  Eric Blake  <ebb9@byu.net>
86330         Touch up previous patch.
86331         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
86332         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
86334         Convert strcasestr module to use Two-Way algorithm.
86335         * modules/strcasestr-simple: New module, based on the old
86336         strcasestr, but with Two-Way rather than KMP.
86337         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
86338         * lib/string.in.h (rpl_strcasestr): Declare.
86339         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
86340         performance.
86341         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
86342         * modules/string (Makefile.am): Support strcasestr.
86343         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
86344         * modules/strcasestr-tests (Depends-on): Check for alarm.
86345         * tests/test-strcasestr.c: Augment test.
86346         * lib/str-two-way.h: Clean up stray macro.
86347         * NEWS: Document new module.
86348         * MODULES.html.sh (string handling): Likewise.
86349         * doc/functions/strcasestr.texi: New file.
86350         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
86351         here, since it is not a POSIX function.
86353 2008-01-14  Colin Watson  <cjwatson@debian.org>
86354             Bruno Haible  <bruno@clisp.org>
86356         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
86357         works fine; if not, set REPLACE_STRSIGNAL.
86358         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
86359         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
86360         REPLACE_STRSIGNAL.
86361         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
86362         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
86363         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
86365 2008-01-14  Bruno Haible  <bruno@clisp.org>
86367         * modules/strsignal (Include): Change to <string.h>.
86369 2008-01-14  Colin Watson  <cjwatson@debian.org>
86371         * modules/argp (Notice): Add a notice recommending to change
86372         XGETTEXT_OPTIONS.
86373         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
86375 2008-01-13  Colin Watson  <cjwatson@debian.org>
86377         * modules/strsignal-tests: New file.
86378         * tests/test-strsignal.c: New file.
86380         * lib/strsignal.c: New file, from glibc with modifications.
86381         * lib/siglist.h: New file, from glibc with modifications.
86382         * lib/string.in.h (strsignal): New declaration.
86383         * m4/strsignal.m4: New file.
86384         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
86385         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
86386         * modules/strsignal: New file.
86387         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
86388         HAVE_DECL_STRSIGNAL.
86390 2008-01-13  Bruno Haible  <bruno@clisp.org>
86392         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
86393         locale encoding is not ASCII. Needed for OpenBSD 4.0.
86394         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
86395         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
86397 2008-01-13  Bruno Haible  <bruno@clisp.org>
86399         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
86400         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
86401         * lib/argp.h (__attribute__): Likewise.
86402         * lib/c-stack.c (__attribute__): Likewise.
86403         * lib/error.h (__attribute__): Likewise.
86404         * lib/fts.c (__attribute__): Likewise.
86405         * lib/openat.h (__attribute__): Likewise.
86406         * lib/stdio.in.h (__attribute__): Likewise.
86407         * lib/string.in.h (__attribute__): Likewise.
86408         * lib/utimens.c (__attribute__): Likewise.
86409         * lib/vasnprintf.h (__attribute__): Likewise.
86410         * lib/xalloc.h (__attribute__): Likewise.
86411         * lib/xprintf.h (__attribute__): Likewise.
86412         * lib/xstrtol.h (__attribute__): Likewise.
86413         * lib/xvasprintf.h (__attribute__): Likewise.
86415 2008-01-12  Bruno Haible  <bruno@clisp.org>
86417         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
86418         * doc/glibc-headers/a.out.texi: New file.
86419         * doc/glibc-headers/aliases.texi: New file.
86420         * doc/glibc-headers/alloca.texi: New file.
86421         * doc/glibc-headers/ar.texi: New file.
86422         * doc/glibc-headers/argp.texi: New file.
86423         * doc/glibc-headers/argz.texi: New file.
86424         * doc/glibc-headers/byteswap.texi: New file.
86425         * doc/glibc-headers/crypt.texi: New file.
86426         * doc/glibc-headers/endian.texi: New file.
86427         * doc/glibc-headers/envz.texi: New file.
86428         * doc/glibc-headers/err.texi: New file.
86429         * doc/glibc-headers/error.texi: New file.
86430         * doc/glibc-headers/execinfo.texi: New file.
86431         * doc/glibc-headers/fpu_control.texi: New file.
86432         * doc/glibc-headers/fstab.texi: New file.
86433         * doc/glibc-headers/fts.texi: New file.
86434         * doc/glibc-headers/getopt.texi: New file.
86435         * doc/glibc-headers/ieee754.texi: New file.
86436         * doc/glibc-headers/ifaddrs.texi: New file.
86437         * doc/glibc-headers/libintl.texi: New file.
86438         * doc/glibc-headers/mcheck.texi: New file.
86439         * doc/glibc-headers/mntent.texi: New file.
86440         * doc/glibc-headers/obstack.texi: New file.
86441         * doc/glibc-headers/paths.texi: New file.
86442         * doc/glibc-headers/printf.texi: New file.
86443         * doc/glibc-headers/pty.texi: New file.
86444         * doc/glibc-headers/resolv.texi: New file.
86445         * doc/glibc-headers/shadow.texi: New file.
86446         * doc/glibc-headers/sysexits.texi: New file.
86447         * doc/glibc-headers/ttyent.texi: New file.
86449 2008-01-12  Jim Meyering  <meyering@redhat.com>
86451         announce-gen: emit Gnulib's git-based version string.
86452         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
86453         New option --gnulib-version=V, where V is expected to be
86454         the output of running git describe in the gnulib directory.
86455         (get_tool_versions): Request feedback on xdelta.  I suspect it's
86456         not useful, and plan to stop publishing an xdelta file with each
86457         coreutils release.
86459         * build-aux/announce-gen: Also check for lzma-compressed files.
86461 2008-01-11  Bruno Haible  <bruno@clisp.org>
86463         * tests/test-memmem.c (main): Increase maximum allowed time.
86464         * tests/test-strstr.c (main): Likewise.
86466 2008-01-11  Bruno Haible  <bruno@clisp.org>
86468         * doc/functions/memmem.texi: Add more precisions about platforms.
86469         * doc/functions/strstr.texi: Likewise.
86471 2008-01-10  Eric Blake  <ebb9@byu.net>
86473         * m4/strstr.m4: Delete cruft from copy-n-paste.
86474         Reported by Bruno Haible.
86476 2008-01-10  Bruno Haible  <bruno@clisp.org>
86478         Make c-strstr rely on strstr.
86479         * lib/c-strstr.c: Don't include str-kmp.h.
86480         (c_strstr): Define in terms of strstr.
86481         * modules/c-strstr (Files): Remove lib/str-kmp.h.
86482         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
86484 2008-01-10  Bruno Haible  <bruno@clisp.org>
86486         * doc/gnulib.texi (String Functions in C Locale): New section.
86487         * doc/c-ctype.texi: New file.
86488         * doc/c-strcase.texi: New file.
86489         * doc/c-strcaseeq.texi: New file.
86490         * doc/c-strcasestr.texi: New file.
86491         * doc/c-strstr.texi: New file.
86492         * doc/c-strtod.texi: New file.
86493         * doc/c-strtold.texi: New file.
86495 2008-01-10  Eric Blake  <ebb9@byu.net>
86497         * lib/relocatable.h: Fix a comment.
86499 2008-01-10  Eric Blake  <ebb9@byu.net>
86501         Share two-way algorithm.
86502         * lib/str-two-way.h: New file, merged from...
86503         * lib/memmem.c: ...here...
86504         * lib/strstr.c: ...and here.
86505         * modules/memmem (Files): Use it.
86506         * modules/strstr (Files): Likewise.
86508         Avoid quadratic strstr implementations.
86509         * lib/strstr.c: New file.
86510         * m4/strstr.m4: Likewise.
86511         * modules/strstr: Likewise.
86512         * modules/strstr-tests: Likewise.
86513         * tests/test-strstr.c: Likewise.
86514         * lib/string.in.h (rpl_strstr): Declare.
86515         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
86516         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
86517         * modules/string (Makefile.am): Likewise.
86518         * MODULES.html.sh (string handling): Mention new module.
86519         * doc/functions/strstr.texi (strstr): Document the bug.
86521 2008-01-10  Bruno Haible  <bruno@clisp.org>
86523         * lib/relocatable.h (relocate): State whether result is freshly
86524         allocated or not.
86525         * lib/relocatable.c (relocate): Return a freshly allocated string
86526         instead of a pointer to a privately held string.
86527         Reported by Sylvain Beucler <beuc@gnu.org>.
86529 2008-01-10  Colin Watson  <cjwatson@debian.org>
86531         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
86532         s/S_ISNLK/S_ISLNK/.
86534 2008-01-09  Bruno Haible  <bruno@clisp.org>
86536         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
86537         and other files.
86538         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
86539         if it's only a guess.
86540         * modules/memmem: Simplify by depending on memmem-simple.
86542 2008-01-09  Bruno Haible  <bruno@clisp.org>
86544         Work around OpenBSD 4.0 tdelete() bug.
86545         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
86546         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
86547         macros and don't redefine the enum values.
86548         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
86549         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
86550         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
86552 2008-01-09  Bruno Haible  <bruno@clisp.org>
86554         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
86555         (main): Don't perform the tests if setlocale did not install a UTF-8
86556         locale. Needed on OpenBSD 4.0.
86557         * modules/wcwidth-tests (Depends-on): Add localcharset.
86559 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
86561         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
86562         See <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00149.html>.
86563         * NEWS: announce this.
86564         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
86566 2008-01-09  Simon Josefsson  <simon@josefsson.org>
86567         and Eric Blake  <ebb9@byu.net>
86569         Add memmem-simple module.
86570         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
86571         (gl_FUNC_MEMMEM): Separate performance from presence checks.
86572         * modules/memmem-simple: New file.
86573         * modules/memmem (Description): Tweak.
86574         * MODULES.html.sh (string handling): Mention new module.
86575         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
86576         addressed by memmem-simple.
86577         * NEWS: Document the difference.
86579 2008-01-09  Eric Blake  <ebb9@byu.net>
86581         Give gcc some memmem optimization hints.
86582         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
86583         (strcasestr): Declare as pure.
86584         * modules/memmem (Maintainer): Claim my implementation.
86586 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86588         Support AIX 6.1 and higher.
86589         * build-aux/config.libpath: Likewise.
86590         * build-aux/config.rpath: Likewise.
86592 2008-01-08  Jim Meyering  <meyering@redhat.com>
86593             Bruno Haible  <bruno@clisp.org>
86595         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
86596         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
86597         Reported by Peter Fales in
86598         <http://lists.gnu.org/r/bug-coreutils/2007-12/msg00148.html>.
86600 2008-01-08  Bruno Haible  <bruno@clisp.org>
86602         * modules/unictype/category-of (Depends-on): Add
86603         unictype/category-none.
86604         * modules/unictype/category-and-tests (Depends-on): Add
86605         unictype/category-{L,N,Lu,Nd}.
86606         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
86607         * modules/unictype/category-or-tests (Depends-on): Add
86608         unictype/category-{L,N}.
86609         * modules/unictype/category-name-tests (Depends-on): Add
86610         unictype/category-{Z,Nl}.
86611         Reported by Simon Josefsson.
86613 2008-01-08  Bruno Haible  <bruno@clisp.org>
86615         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
86616         convention better.
86617         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
86618         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
86619         Reported by Peter Miller <millerp@canb.auug.org.au>.
86621 2008-01-08  Eric Blake  <ebb9@byu.net>
86623         Rewrite memmem to guarantee linear complexity without malloc.
86624         * lib/memmem.c (memmem): Use Two-Way rather than
86625         Knuth-Morris-Pratt, to allow O(1) space usage.
86626         (critical_factorization, two_way_short_needle)
86627         (two_way_long_needle): New functions.
86628         (knuth_morris_pratt): Delete.
86629         * modules/memmem (Depends-on): No longer need malloca or stdbool.
86630         Add stdint.
86631         * tests/test-memmem.c (main): Add tests for periodic needle and
86632         sublinear performance.
86633         * doc/functions/memmem.texi (memmem): Document other deficiencies
86634         in cygwin and older glibc.
86636 2008-01-08  Bruno Haible  <bruno@clisp.org>
86638         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
86639         augmentation.
86641 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
86643         Add a configure time option: --disable-acl.
86644         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
86645         AC_ARG_ENABLE(acl).
86647 2008-01-06  Simon Josefsson  <simon@josefsson.org>
86649         * tests/test-localename.c: Don't include obsolete "setenv.h".
86651         * modules/localename-tests (Depends-on): Need unsetenv.
86653 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86655         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
86657 2008-01-06  Colin Watson  <cjwatson@debian.org>
86659         * users.txt: Add man-db.
86661 2008-01-07  Bruno Haible  <bruno@clisp.org>
86663         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
86664         previous section name.
86666 2008-01-07  Bruno Haible  <bruno@clisp.org>
86668         * lib/progname.c (set_program_name): Don't strip off a leading
86669         "lt-" prefix outside a .libs directory.
86670         Suggested by Paul Eggert.
86672 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
86673             Bruno Haible  <bruno@clisp.org>
86675         Improve memory cleanup in 'relocatable' module.
86676         * lib/relocatable.h (compute_curr_prefix): Change return type to
86677         'char *'.
86678         * lib/relocatable.c (compute_curr_prefix): Change return type to
86679         'char *'. Free curr_installdir after use.
86680         (relocate): Free curr_prefix_better after use.
86681         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
86683 2008-01-01  Bruno Haible  <bruno@clisp.org>
86685         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
86686         failure on older glibc systems.
86687         Reported by Peter Fales <psfales@alcatel-lucent.com>.
86689 2008-01-05  Eric Blake  <ebb9@byu.net>
86691         Avoid quadratic system memmem.
86692         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
86693         Reported by Ralf Wildenhues.
86695         Fix memmem test for mingw.
86696         * modules/memmem-tests (configure.ac): Check for alarm.
86697         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
86698         it.
86699         * doc/functions/memmem.texi: New file.
86700         * doc/gnulib.texi (Function Substitutes): Add memmem.
86701         Reported by Bruno Haible.
86703 2008-01-04  Bruno Haible  <bruno@clisp.org>
86705         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
86706         Require gl_HEADER_STRINGS_H_DEFAULTS, not
86707         gl_HEADER_STRING_H_DEFAULTS.
86709 2008-01-04  Eric Blake  <ebb9@byu.net>
86711         Shorten duration of memmem test.
86712         * tests/test-memmem.c (main): Use alarm to declare failure if test
86713         is taking too long.
86714         Reported by Ralf Wildenhues.
86716 2007-12-21  Simon Josefsson  <simon@josefsson.org>
86718         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
86719         string, needed by strerror.
86721 2008-01-03  Colin Watson  <cjwatson@debian.org>
86722             Bruno Haible  <bruno@clisp.org>
86724         * doc/gnulib-tool.texi (Localization): New section.
86726 2008-01-02  Bruno Haible  <bruno@clisp.org>
86728         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
86729         variables to 'unsigned char *' type.
86730         Reported by Paul Eggert.
86732 2008-01-02  Jim Meyering  <jim@meyering.net>
86734         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
86736 2007-12-31  Jim Meyering  <jim@meyering.net>
86738         Avoid use of private FTS type name.
86739         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
86741 2007-12-30  Karl Berry  <karl@gnu.org>
86743         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
86744         work around defect in Texinfo and/or the standalone Info browser.
86746 2007-12-30  Bruno Haible  <bruno@clisp.org>
86748         Unify 5 copies of the KMP code.
86749         * lib/str-kmp.h: New file.
86750         * lib/c-strcasestr.c: Include str-kmp.h.
86751         (knuth_morris_pratt): Remove function.
86752         (c_strcasestr): Update.
86753         * lib/c-strstr.c: Include str-kmp.h.
86754         (knuth_morris_pratt): Remove function.
86755         (c_strcasestr): Update.
86756         * lib/mbscasestr.c: Include str-kmp.h.
86757         (knuth_morris_pratt_unibyte): Remove function.
86758         * lib/mbsstr.c: Include str-kmp.h.
86759         (knuth_morris_pratt_unibyte): Remove function.
86760         * lib/strcasestr.c: Include str-kmp.h.
86761         (knuth_morris_pratt): Remove function.
86762         (strcasestr): Update.
86763         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
86764         * modules/c-strstr (Files): Likewise.
86765         * modules/mbscasestr (Files): Likewise.
86766         * modules/mbsstr (Files): Likewise.
86767         * modules/strcasestr (Files): Likewise.
86768         Suggested by Paul Eggert.
86770 2007-12-30  Bruno Haible  <bruno@clisp.org>
86772         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
86773         defined.
86775 2007-12-30  Bruno Haible  <bruno@clisp.org>
86777         * lib/xmalloca.h: Include xalloc.h.
86778         (xnmalloca): New macro.
86780 2007-12-30  Bruno Haible  <bruno@clisp.org>
86782         * lib/malloca.h (nmalloca): New macro.
86783         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
86784         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
86785         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
86786         knuth_morris_pratt_multibyte): Likewise.
86787         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
86788         knuth_morris_pratt_multibyte): Likewise.
86789         * lib/memmem.c (knuth_morris_pratt): Likewise.
86790         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
86792 2007-12-25  Bruno Haible  <bruno@clisp.org>
86794         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
86795         * lib/glob.c: Don't include openat.h.
86796         (link_exists2_p): Add back the code that deals with the
86797         !GLOB_ALTDIRFUNC case.
86798         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
86799         let it do the filename concatenation.
86800         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
86801         * modules/glob (Depends-on): Remove openat.
86803 2007-12-31  Bruno Haible  <bruno@clisp.org>
86805         * modules/dirfd (License): Change to LGPLv2+.
86806         Approved by Jim Meyering.
86808 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
86810         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
86811         when multiplying M by sizeof (size_t).
86813 2007-12-10  Martin Lambers  <marlam@marlam.de>
86815         Override getpagesize on mingw.
86816         * lib/getpagesize.c: New file.
86817         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
86818         * modules/getpagesize (Files): Add lib/getpagesize.c.
86819         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
86820         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
86821         REPLACE_GETPAGESIZE.
86822         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
86824 2007-12-25  Bruno Haible  <bruno@clisp.org>
86826         * modules/localcharset (Notice): New field.
86827         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
86828         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
86830 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
86831             Bruno Haible  <bruno@clisp.org>
86833         Avoid using the syntax symbol() in formatted documentation.
86834         * MODULES.html.sh (func_module): When replacing symbol() with a
86835         hyperlink, remove the parentheses. Show an error if some remain.
86836         Recognize and render the '...' syntax.
86837         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
86838         Rework. Add paragraph about GCC's inlining.
86839         * doc/alloca.texi: Likewise.
86840         * doc/error.texi: Remove parentheses from symbol reference.
86841         * doc/gnulib-intro.texi: Likewise.
86842         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
86843         * modules/fnmatch (Description): Reword to say "the ... function".
86844         * modules/full-read (Description): Likewise.
86845         * modules/full-write (Description): Likewise.
86846         * modules/safe-read (Description): Likewise.
86847         * modules/safe-write (Description): Likewise.
86848         * modules/strchrnul (Description): Likewise.
86849         * modules/trim (Description): Likewise.
86850         * modules/error (Description): Remove parentheses from symbol
86851         references.
86852         * modules/verror (Description): Likewise.
86853         Reported by Karl Berry.
86855 2007-12-25  Bruno Haible  <bruno@clisp.org>
86857         Fixup after 2007-10-16 commit.
86858         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
86860 2007-12-24  Bruno Haible  <bruno@clisp.org>
86862         Make --enable-relocatable work with DESTDIR.
86863         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
86864         to compute installdir from destprog.
86865         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
86866         also set the RELOC_DESTDIR variable.
86867         Reported by Левашев Иван <octagram@bluebottle.com>.
86869 2007-12-24  Bruno Haible  <bruno@clisp.org>
86871         Fix link error due to xalloc_die().
86872         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
86873         of xreadlink.
86874         * lib/relocwrapper.c: Update comments.
86875         * build-aux/install-reloc: Remove xreadlink.c from file list.
86876         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
86877         xreadlink.c.
86878         Reported by Левашев Иван <octagram@bluebottle.com>.
86880 2007-12-24  Bruno Haible  <bruno@clisp.org>
86882         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
86883         * lib/setenv.h: Remove file.
86884         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
86885         lib/setenv.h.
86886         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
86887         (Depends-on): Add stdlib.
86888         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
86889         gl_FUNC_UNSETENV.
86890         (Include): Replace setenv.h with <stdlib.h>.
86891         * modules/unsetenv: New file.
86892         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
86893         * lib/unsetenv.c: Include <stdlib.h> first.
86894         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
86895         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
86896         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
86897         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
86898         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
86899         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
86900         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
86901         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
86902         * doc/functions/unsetenv.texi: Update.
86903         * modules/xsetenv (Depends-on): Add unsetenv.
86904         * modules/getdate (Depends-on): Likewise.
86905         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
86906         * lib/xsetenv.c: Don't include setenv.h.
86907         * lib/getdate.y: Likewise.
86908         * lib/relocwrapper.c: Likewise.
86909         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
86910         (Depends-on): Add stdlib.
86911         * NEWS: Mention the changes.
86912         Reported by Левашев Иван <octagram@bluebottle.com>.
86914 2007-12-23  Bruno Haible  <bruno@clisp.org>
86916         * lib/memmem.c (memmem): Use lowercase variable names. Tab
86917         indentation.
86919 2007-12-23  Bruno Haible  <bruno@clisp.org>
86921         * lib/c-strcasestr.c: Add more comments.
86922         * lib/c-strstr.c: Likewise.
86923         * lib/mbscasestr.c: Likewise.
86924         * lib/mbsstr.c: Likewise.
86925         * lib/strcasestr.c: Likewise.
86926         * lib/memmem.c: Likewise.
86928 2007-12-23  Bruno Haible  <bruno@clisp.org>
86930         * tests/test-memmem.c: Include <string.h> first.
86932 2007-12-22  Bruno Haible  <bruno@clisp.org>
86934         * gnulib-tool (func_create_testdir): Change $auxdir while generating
86935         the contents of $testsbase.
86936         Reported by Ralf Wildenhues.
86938 2007-12-22  Bruno Haible  <bruno@clisp.org>
86940         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
86941         two variables local_ldadd_before, local_ldadd_last.
86943 2007-12-20  Eric Blake  <ebb9@byu.net>
86945         Work around circular library issue when cross-compiling.
86946         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
86947         that progname.o does not need to pull in rpl_memcmp.
86949 2007-12-19  Eric Blake  <ebb9@byu.net>
86951         Fix memmem to avoid O(n^2) worst-case complexity.
86952         * lib/memmem.c (knuth_morris_pratt): New function.
86953         (memmem): Use it if first few naive iterations fail.
86954         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
86955         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
86956         * modules/memchr (License): Likewise.
86957         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
86958         malloca.
86959         * tests/test-memmem.c: Rewrite, borrowing ideas from
86960         test-mbsstr1.c; the old version wouldn't even compile!
86961         * modules/memmem-tests: New file.
86962         * lib/string.in.h (rpl_memmem): Add declaration.
86963         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
86964         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
86965         REPLACE_MEMMEM.
86967 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
86969         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
86970         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
86971         before any system include files, and undef after them all.  This
86972         should fix a problem on VMS reported by John E. Malmberg in
86973         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00118.html>.
86975 2007-12-17  Eric Blake  <ebb9@byu.net>
86977         Revert addition of verify, for BSD/OS.
86978         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
86979         can't handle large files, for the sake of obsolete platforms.
86980         * modules/fseeko (Depends-on): Remove verify.
86981         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
86982         * doc/functions/ftello.texi (ftello): Likewise.
86983         * doc/functions/fgetpos.texi (fgetpos): Likewise.
86984         Reported by Larry Jones.
86986 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
86988         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
86989         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
86991 2007-12-17  Jim Meyering  <meyering@redhat.com>
86993         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
86994         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
86995         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
86996         * modules/getcwd (Depends-on): Add openat.
86997         Reported by Petr Salinger.
86999 2007-12-17  Bruno Haible  <bruno@clisp.org>
87001         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
87002         avoid a segmentation fault of the configure test on x86_64 systems.
87004 2007-12-15  Jim Meyering  <meyering@redhat.com>
87006         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
87008 2007-12-13  Eric Blake  <ebb9@byu.net>
87010         Another fseek test.
87011         * tests/test-fseek.c (main): Also test ungetc handling.
87012         * tests/test-fseeko.c (main): Likewise.
87013         * modules/fseeko (Depends-on): Add verify.
87014         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
87015         large.
87016         Reported by Larry Jones.
87018         Fix fseeko on mingw.
87019         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
87020         seek.
87022         Beef up fseek tests.
87023         * tests/test-fseek.c (main): Also test eof handling.
87024         * tests/test-fseeko.c (main): Likewise.
87025         Reported by Larry Jones.
87027 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
87029         Fix fseeko on BSD-based platforms.
87030         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
87031         successful seek.
87033 2007-12-12  Eric Blake  <ebb9@byu.net>
87035         Allow circular dependency of separate libtests.a
87036         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
87037         when use_libtests.
87039 2007-12-11  Eric Blake  <ebb9@byu.net>
87041         Fix bug with -0.0L in previous patch.
87042         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
87043         * tests/test-isnan.c (main): Also test on zeroes.
87044         * tests/test-isnanf.c (main): Likewise.
87045         * tests/test-isnanl.h (main): Likewise.
87047         Detect pseudo-denormals on x86 even when cross-compiling.
87048         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
87049         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
87050         invalid bit patterns that happen to satisfy ==.
87052         Avoid link failures with separate libtests.a.
87053         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
87054         last, to satisfy circular dependencies.
87056 2007-12-11  Eric Blake  <ebb9@byu.net>
87057         and Bruno Haible  <bruno@clisp.org>
87059         Fix OpenBSD 4.0 <float.h> handling of long double.
87060         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
87061         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
87062         * doc/headers/float.texi (float.h): Document OpenBSD bug.
87064 2007-12-11  Jim Meyering  <meyering@redhat.com>
87066         * users.txt: Add libvirt.
87068         Support versions of autoconf prior to 2.59c.
87069         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
87070         if it is not already defined.
87072 2007-12-09  Bruno Haible  <bruno@clisp.org>
87074         Let 'gnulib-tool --import' collect sources needed for the tests in
87075         tests/ rather than in lib/.
87076         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
87077         argument. If true, add rules to generate libtests.a, and put libtests.a
87078         into $(LDADD). Consider source files in subdirectories and set
87079         uses_subdirs.
87080         (func_emit_initmacro_start, func_emit_initmacro_end,
87081         func_emit_initmacro_done): Pass all arguments explicitly.
87082         (func_import): Determine two module lists main_modules,
87083         testsrelated_modules. Determine use_libtests. Determine two variables
87084         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
87085         instead of just sed_transform_lib_file. Determine two variables
87086         main_files and testsrelated_files. Compute 'files' as the union of
87087         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
87088         func_add_or_update. In the generated gnulib-comp.m4, collect the
87089         object files for tests/ in different variables than those for lib/.
87090         Substitute LIBTESTS_LIBDEPS.
87091         (func_create_testdir): Combine the uses_subdirs results from
87092         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
87094 2007-12-09  Bruno Haible  <bruno@clisp.org>
87096         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
87097         the build-aux directory.
87099 2007-12-09  Bruno Haible  <bruno@clisp.org>
87101         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
87102         introduced on 2006-09-09.
87104 2007-12-07  Jim Meyering  <meyering@redhat.com>
87106         Let these macros work also with autoconf-2.59.
87107         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
87108         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
87109         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
87111 2007-12-06  Jim Meyering  <meyering@redhat.com>
87113         Avoid a configure-time syntax error in gl_FUNC_ACL.
87114         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
87115         function in each branch, before testing the cache variable.
87117 2007-12-04  Eric Blake  <ebb9@byu.net>
87119         Make scripts executable.
87120         * build-aux/config.guess: Add execute permissions.
87121         * build-aux/config.sub: Likewise.
87122         * build-aux/gendocs.sh: Likewise.
87124         Fix frexp on mingw.
87125         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
87126         cross-compiling.
87127         * doc/functions/frexp.texi (frexp): Document the bug.
87129         Make cygwin fseeko check more reliable.
87130         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
87131         version numbers, rather than unrelated feature check.
87132         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
87133         * doc/functions/ftello.texi (ftello): Likewise.
87134         Reported by Bruno Haible.
87136         * m4/strerror.m4: Bump version number.
87138 2007-12-03  Bruno Haible  <bruno@clisp.org>
87140         * doc/functions/mprotect.texi: Mention the mingw problem.
87142 2007-12-03  Eric Blake  <ebb9@byu.net>
87144         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
87145         REPLACE_STRERROR is initialized before this macro.
87147 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
87149         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
87150         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
87151         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
87152         put -lsec in even for programs other than 'ls'.  This fixes a problem
87153         for gettext reported by Bruno Haible in
87154         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00007.html>.
87155         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
87156         Add support for Solaris 10.  This isn't efficient, but should get the
87157         job done for now.
87159 2007-12-03  James Youngman  <jay@gnu.org>
87161         * doc/regexprops-generic.texi: change "an close-group" to "a
87162         close-group" and "illegal" to "not allowed".
87164 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87166         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
87167         pr_byname.h. Needed for the rare case when the maintainer has done
87168         "make maintainer-clean" in the source directory and then attempts a
87169         build outside the source directory.
87170         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
87171         scripts_byname.h.
87173 2007-12-02  Martin Lambers  <marlam@marlam.de>
87174             Bruno Haible  <bruno@clisp.org>
87176         * lib/getpagesize.h: Remove file.
87177         * lib/unistd.in.h: Include declaration of getpagesize here.
87178         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
87179         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
87180         HAVE_SYS_PARAM_H.
87181         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
87182         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
87183         * modules/getpagesize (Files): Remove lib/getpagesize.h.
87184         (Depends-on): Add unistd.
87185         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
87186         (Include): Use <unistd.h> instead of getpagesize.h.
87187         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
87188         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
87189         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
87190         gl_GETPAGESIZE invocation, already handled by module dependency.
87191         * lib/pagealign_alloc.c: Don't include getpagesize.h.
87193 2007-12-02  Bruno Haible  <bruno@clisp.org>
87195         * modules/strings-tests: New file.
87196         * tests/test-strings.c: New file.
87198         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
87199         * lib/strings.in.h: New file.
87200         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
87201         * m4/strings_h.m4: New file.
87202         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
87203         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
87204         * modules/strings: New file.
87205         * modules/string (Makefile.am): Update.
87206         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
87207         Reported by Karl Berry.
87209 2007-12-01  Eric Blake  <ebb9@byu.net>
87211         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
87212         accommodate fix in cygwin 1.5.25.
87214 2007-12-01  Jim Meyering  <meyering@redhat.com>
87216         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
87217         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
87218         that would inhibit utf8-optimization of a regexp containing line-
87219         or buffer-anchors, e.g., `^', `$'.
87221 2007-11-30  Bruno Haible  <bruno@clisp.org>
87223         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
87224         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
87225         glthread_recursive_lock_init.
87226         * lib/lock.c (glthread_recursive_lock_init)
87227         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
87228         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
87230 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
87232         New function qset_acl, like set_acl but with syscall semantics.
87233         * lib/acl.h (qset_acl): New decl.
87234         * lib/acl.c (qset_acl): New function.
87235         (set_acl): Use new function.  Use more-consistent diagnostics.
87237 2007-11-28  Jim Meyering  <meyering@redhat.com>
87239         * modules/physmem (License): Change from GPL to LGPLv2+.
87241 2007-11-26  Bruno Haible  <bruno@clisp.org>
87243         * lib/vasnprintf.c (decode_long_double): Don't abort if the
87244         'long double' type has excess precision.
87245         Reported by Jim Meyering in
87246         <http://lists.gnu.org/r/bug-gnulib/2007-11/msg00120.html>.
87248 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87250         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
87251         Sync from <http://gnu.org/licenses>.
87252         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
87253         with license text from same location.
87254         * doc/maintain.texi, doc/standards.texi:  Sync from
87255         <http://savannah.gnu.org/projects/gnustandards>.
87257 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
87258         and Jim Meyering  <meyering@redhat.com>
87260         Adjust getdate' grammar to accept a slightly more regular language.
87261         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
87262         Before, the former was rejected.
87263         * lib/getdate.y (digits_to_date_time): New function, factored
87264         out of ...
87265         (number): ...here.  Just call digits_to_date_time.
87266         (hybrid): New non-terminal to handle an <unsigned number,
87267         signed relative offset> sequence consistently.
87269 2007-11-18  Jim Meyering  <meyering@redhat.com>
87271         Pull my changes from coreutils:
87272         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
87273         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
87274         use of $gnulib_tool_option_extras, so that it's separated from the
87275         preceding argument.
87277         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
87278         * build-aux/bootstrap (cp_mark_as_generated): Create any required
87279         parent destination directories before copying a file into place.
87281 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
87283         bootstrap: work also with 4-argument variant of AC_INIT
87284         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
87286 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
87288         Port test-getaddrinfo to Solaris.
87289         Problem reported by Bruno Haible in
87290         <http://lists.gnu.org/r/bug-gnulib/2007-03/msg00171.html>.
87291         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
87292         explanation of setting 'hints'.
87293         Don't reject an implementation merely because it returns EAI_SERVICE.
87294         (EAI_SERVICE): Define to 0 if not defined.
87296 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
87298         The license of gnu-make and posix-shell is now "GPLed build tool".
87299         * modules/gnu-make (License): Likewise.
87300         * modules/posix-shell (License): Likewise.
87302         New module posix-shell, for determining a POSIX shell
87303         or perhaps something that is close enough to a POSIX shell.
87304         * m4/posix-shell.m4: New file.
87305         * modules/posix-shell: New file.
87307         * MODULES.html.sh: Mention new module.
87309         New module gnu-make, for determining whether we're using GNU Make.
87310         * m4/gnu-make.m4: New file.
87311         * modules/gnu-make: New file.
87312         * MODULES.html.sh: Mention new module.
87314 2007-11-14  Jim Meyering  <meyering@redhat.com>
87316         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
87317         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
87318         use this macro to create a function _definition_.
87319         Remove useless "#undef ARGMATCH_DIE".
87321 2007-11-14  Bruno Haible  <bruno@clisp.org>
87323         * lib/config.charset: Update for OpenBSD 4.1.
87324         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
87326 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
87328         Document 64-bit #if problems in stdint.texi.
87329         * doc/headers/stdint.texi (stdint.h): Mention problems with
87330         64-bit-#if, and how to work around them.
87332         Don't insist on 'long long int' support in the preprocessor.  It
87333         breaks too many things.  For example, PRIdMAX still uses a 'long
87334         long int' format with the latest Sun compiler, even though
87335         HAVE_LONG_LONG_INT isn't defined due to that compiler's
87336         preprocessor problem.  This causes the latest coreutils to dump
87337         core on Solaris 10 sparc with the Sun C compiler.
87338         Instead, fix the 2007-10-16 problem in a different way, by evaluating
87339         the troublesome expressions at configure-time, not at #if-time.
87340         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
87341         preprocessor.
87342         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
87343         compile-time C checks, done at 'configure'-time.
87344         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
87345         * modules/inttypes (Makefile): Substitute the new symbols that
87346         gl_INTTYPES_H now generates.
87347         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
87349 2007-11-12  Bruno Haible  <bruno@clisp.org>
87351         Tests for Unicode character classification functions.
87353         * modules/unictype/bidicategory-byname-tests: New file.
87354         * modules/unictype/bidicategory-name-tests: New file.
87355         * modules/unictype/bidicategory-of-tests: New file.
87356         * modules/unictype/bidicategory-test-tests: New file.
87357         * modules/unictype/block-list-tests: New file.
87358         * modules/unictype/block-of-tests: New file.
87359         * modules/unictype/block-test-tests: New file.
87360         * modules/unictype/category-C-tests: New file.
87361         * modules/unictype/category-Cc-tests: New file.
87362         * modules/unictype/category-Cf-tests: New file.
87363         * modules/unictype/category-Cn-tests: New file.
87364         * modules/unictype/category-Co-tests: New file.
87365         * modules/unictype/category-Cs-tests: New file.
87366         * modules/unictype/category-L-tests: New file.
87367         * modules/unictype/category-Ll-tests: New file.
87368         * modules/unictype/category-Lm-tests: New file.
87369         * modules/unictype/category-Lo-tests: New file.
87370         * modules/unictype/category-Lt-tests: New file.
87371         * modules/unictype/category-Lu-tests: New file.
87372         * modules/unictype/category-M-tests: New file.
87373         * modules/unictype/category-Mc-tests: New file.
87374         * modules/unictype/category-Me-tests: New file.
87375         * modules/unictype/category-Mn-tests: New file.
87376         * modules/unictype/category-N-tests: New file.
87377         * modules/unictype/category-Nd-tests: New file.
87378         * modules/unictype/category-Nl-tests: New file.
87379         * modules/unictype/category-No-tests: New file.
87380         * modules/unictype/category-P-tests: New file.
87381         * modules/unictype/category-Pc-tests: New file.
87382         * modules/unictype/category-Pd-tests: New file.
87383         * modules/unictype/category-Pe-tests: New file.
87384         * modules/unictype/category-Pf-tests: New file.
87385         * modules/unictype/category-Pi-tests: New file.
87386         * modules/unictype/category-Po-tests: New file.
87387         * modules/unictype/category-Ps-tests: New file.
87388         * modules/unictype/category-S-tests: New file.
87389         * modules/unictype/category-Sc-tests: New file.
87390         * modules/unictype/category-Sk-tests: New file.
87391         * modules/unictype/category-Sm-tests: New file.
87392         * modules/unictype/category-So-tests: New file.
87393         * modules/unictype/category-Z-tests: New file.
87394         * modules/unictype/category-Zl-tests: New file.
87395         * modules/unictype/category-Zp-tests: New file.
87396         * modules/unictype/category-Zs-tests: New file.
87397         * modules/unictype/category-and-not-tests: New file.
87398         * modules/unictype/category-and-tests: New file.
87399         * modules/unictype/category-byname-tests: New file.
87400         * modules/unictype/category-name-tests: New file.
87401         * modules/unictype/category-none-tests: New file.
87402         * modules/unictype/category-of-tests: New file.
87403         * modules/unictype/category-or-tests: New file.
87404         * modules/unictype/category-test-withtable-tests: New file.
87405         * modules/unictype/combining-class-tests: New file.
87406         * modules/unictype/ctype-alnum-tests: New file.
87407         * modules/unictype/ctype-alpha-tests: New file.
87408         * modules/unictype/ctype-blank-tests: New file.
87409         * modules/unictype/ctype-cntrl-tests: New file.
87410         * modules/unictype/ctype-digit-tests: New file.
87411         * modules/unictype/ctype-graph-tests: New file.
87412         * modules/unictype/ctype-lower-tests: New file.
87413         * modules/unictype/ctype-print-tests: New file.
87414         * modules/unictype/ctype-punct-tests: New file.
87415         * modules/unictype/ctype-space-tests: New file.
87416         * modules/unictype/ctype-upper-tests: New file.
87417         * modules/unictype/ctype-xdigit-tests: New file.
87418         * modules/unictype/decimal-digit-tests: New file.
87419         * modules/unictype/digit-tests: New file.
87420         * modules/unictype/mirror-tests: New file.
87421         * modules/unictype/numeric-tests: New file.
87422         * modules/unictype/property-alphabetic-tests: New file.
87423         * modules/unictype/property-ascii-hex-digit-tests: New file.
87424         * modules/unictype/property-bidi-arabic-digit-tests: New file.
87425         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
87426         * modules/unictype/property-bidi-block-separator-tests: New file.
87427         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
87428         * modules/unictype/property-bidi-common-separator-tests: New file.
87429         * modules/unictype/property-bidi-control-tests: New file.
87430         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
87431         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
87432         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
87433         * modules/unictype/property-bidi-european-digit-tests: New file.
87434         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
87435         * modules/unictype/property-bidi-left-to-right-tests: New file.
87436         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
87437         * modules/unictype/property-bidi-other-neutral-tests: New file.
87438         * modules/unictype/property-bidi-pdf-tests: New file.
87439         * modules/unictype/property-bidi-segment-separator-tests: New file.
87440         * modules/unictype/property-bidi-whitespace-tests: New file.
87441         * modules/unictype/property-byname-tests: New file.
87442         * modules/unictype/property-combining-tests: New file.
87443         * modules/unictype/property-composite-tests: New file.
87444         * modules/unictype/property-currency-symbol-tests: New file.
87445         * modules/unictype/property-dash-tests: New file.
87446         * modules/unictype/property-decimal-digit-tests: New file.
87447         * modules/unictype/property-default-ignorable-code-point-tests: New file.
87448         * modules/unictype/property-deprecated-tests: New file.
87449         * modules/unictype/property-diacritic-tests: New file.
87450         * modules/unictype/property-extender-tests: New file.
87451         * modules/unictype/property-format-control-tests: New file.
87452         * modules/unictype/property-grapheme-base-tests: New file.
87453         * modules/unictype/property-grapheme-extend-tests: New file.
87454         * modules/unictype/property-grapheme-link-tests: New file.
87455         * modules/unictype/property-hex-digit-tests: New file.
87456         * modules/unictype/property-hyphen-tests: New file.
87457         * modules/unictype/property-id-continue-tests: New file.
87458         * modules/unictype/property-id-start-tests: New file.
87459         * modules/unictype/property-ideographic-tests: New file.
87460         * modules/unictype/property-ids-binary-operator-tests: New file.
87461         * modules/unictype/property-ids-trinary-operator-tests: New file.
87462         * modules/unictype/property-ignorable-control-tests: New file.
87463         * modules/unictype/property-iso-control-tests: New file.
87464         * modules/unictype/property-join-control-tests: New file.
87465         * modules/unictype/property-left-of-pair-tests: New file.
87466         * modules/unictype/property-line-separator-tests: New file.
87467         * modules/unictype/property-logical-order-exception-tests: New file.
87468         * modules/unictype/property-lowercase-tests: New file.
87469         * modules/unictype/property-math-tests: New file.
87470         * modules/unictype/property-non-break-tests: New file.
87471         * modules/unictype/property-not-a-character-tests: New file.
87472         * modules/unictype/property-numeric-tests: New file.
87473         * modules/unictype/property-other-alphabetic-tests: New file.
87474         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
87475         * modules/unictype/property-other-grapheme-extend-tests: New file.
87476         * modules/unictype/property-other-id-continue-tests: New file.
87477         * modules/unictype/property-other-id-start-tests: New file.
87478         * modules/unictype/property-other-lowercase-tests: New file.
87479         * modules/unictype/property-other-math-tests: New file.
87480         * modules/unictype/property-other-uppercase-tests: New file.
87481         * modules/unictype/property-paired-punctuation-tests: New file.
87482         * modules/unictype/property-paragraph-separator-tests: New file.
87483         * modules/unictype/property-pattern-syntax-tests: New file.
87484         * modules/unictype/property-pattern-white-space-tests: New file.
87485         * modules/unictype/property-private-use-tests: New file.
87486         * modules/unictype/property-punctuation-tests: New file.
87487         * modules/unictype/property-quotation-mark-tests: New file.
87488         * modules/unictype/property-radical-tests: New file.
87489         * modules/unictype/property-sentence-terminal-tests: New file.
87490         * modules/unictype/property-soft-dotted-tests: New file.
87491         * modules/unictype/property-space-tests: New file.
87492         * modules/unictype/property-terminal-punctuation-tests: New file.
87493         * modules/unictype/property-test-tests: New file.
87494         * modules/unictype/property-titlecase-tests: New file.
87495         * modules/unictype/property-unassigned-code-value-tests: New file.
87496         * modules/unictype/property-unified-ideograph-tests: New file.
87497         * modules/unictype/property-uppercase-tests: New file.
87498         * modules/unictype/property-variation-selector-tests: New file.
87499         * modules/unictype/property-white-space-tests: New file.
87500         * modules/unictype/property-xid-continue-tests: New file.
87501         * modules/unictype/property-xid-start-tests: New file.
87502         * modules/unictype/property-zero-width-tests: New file.
87503         * modules/unictype/scripts-tests: New file.
87504         * modules/unictype/syntax-c-ident-tests: New file.
87505         * modules/unictype/syntax-c-whitespace-tests: New file.
87506         * modules/unictype/syntax-java-ident-tests: New file.
87507         * modules/unictype/syntax-java-whitespace-tests: New file.
87508         * tests/unictype/test-bidi_byname.c: New file.
87509         * tests/unictype/test-bidi_name.c: New file.
87510         * tests/unictype/test-bidi_of.c: New file.
87511         * tests/unictype/test-bidi_test.c: New file.
87512         * tests/unictype/test-block_list.c: New file.
87513         * tests/unictype/test-block_of.c: New file.
87514         * tests/unictype/test-block_test.c: New file.
87515         * tests/unictype/test-categ_and.c: New file.
87516         * tests/unictype/test-categ_and_not.c: New file.
87517         * tests/unictype/test-categ_byname.c: New file.
87518         * tests/unictype/test-categ_name.c: New file.
87519         * tests/unictype/test-categ_none.c: New file.
87520         * tests/unictype/test-categ_of.c: New file.
87521         * tests/unictype/test-categ_or.c: New file.
87522         * tests/unictype/test-categ_test_withtable.c: New file.
87523         * tests/unictype/test-combining.c: New file.
87524         * tests/unictype/test-decdigit.c: New file.
87525         * tests/unictype/test-digit.c: New file.
87526         * tests/unictype/test-mirror.c: New file.
87527         * tests/unictype/test-numeric.c: New file.
87528         * tests/unictype/test-pr_byname.c: New file.
87529         * tests/unictype/test-pr_test.c: New file.
87530         * tests/unictype/test-predicate-part1.h: New file.
87531         * tests/unictype/test-predicate-part2.h: New file.
87532         * tests/unictype/test-scripts.c: New file.
87533         * tests/unictype/test-sy_c_ident.c: New file.
87534         * tests/unictype/test-sy_java_ident.c: New file.
87536         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
87537         for Unicode 5.0.0.
87538         * tests/unictype/test-categ_Cc.c: Likewise.
87539         * tests/unictype/test-categ_Cf.c: Likewise.
87540         * tests/unictype/test-categ_Cn.c: Likewise.
87541         * tests/unictype/test-categ_Co.c: Likewise.
87542         * tests/unictype/test-categ_Cs.c: Likewise.
87543         * tests/unictype/test-categ_L.c: Likewise.
87544         * tests/unictype/test-categ_Ll.c: Likewise.
87545         * tests/unictype/test-categ_Lm.c: Likewise.
87546         * tests/unictype/test-categ_Lo.c: Likewise.
87547         * tests/unictype/test-categ_Lt.c: Likewise.
87548         * tests/unictype/test-categ_Lu.c: Likewise.
87549         * tests/unictype/test-categ_M.c: Likewise.
87550         * tests/unictype/test-categ_Mc.c: Likewise.
87551         * tests/unictype/test-categ_Me.c: Likewise.
87552         * tests/unictype/test-categ_Mn.c: Likewise.
87553         * tests/unictype/test-categ_N.c: Likewise.
87554         * tests/unictype/test-categ_Nd.c: Likewise.
87555         * tests/unictype/test-categ_Nl.c: Likewise.
87556         * tests/unictype/test-categ_No.c: Likewise.
87557         * tests/unictype/test-categ_P.c: Likewise.
87558         * tests/unictype/test-categ_Pc.c: Likewise.
87559         * tests/unictype/test-categ_Pd.c: Likewise.
87560         * tests/unictype/test-categ_Pe.c: Likewise.
87561         * tests/unictype/test-categ_Pf.c: Likewise.
87562         * tests/unictype/test-categ_Pi.c: Likewise.
87563         * tests/unictype/test-categ_Po.c: Likewise.
87564         * tests/unictype/test-categ_Ps.c: Likewise.
87565         * tests/unictype/test-categ_S.c: Likewise.
87566         * tests/unictype/test-categ_Sc.c: Likewise.
87567         * tests/unictype/test-categ_Sk.c: Likewise.
87568         * tests/unictype/test-categ_Sm.c: Likewise.
87569         * tests/unictype/test-categ_So.c: Likewise.
87570         * tests/unictype/test-categ_Z.c: Likewise.
87571         * tests/unictype/test-categ_Zl.c: Likewise.
87572         * tests/unictype/test-categ_Zp.c: Likewise.
87573         * tests/unictype/test-categ_Zs.c: Likewise.
87574         * tests/unictype/test-ctype_alnum.c: Likewise.
87575         * tests/unictype/test-ctype_alpha.c: Likewise.
87576         * tests/unictype/test-ctype_blank.c: Likewise.
87577         * tests/unictype/test-ctype_cntrl.c: Likewise.
87578         * tests/unictype/test-ctype_digit.c: Likewise.
87579         * tests/unictype/test-ctype_graph.c: Likewise.
87580         * tests/unictype/test-ctype_lower.c: Likewise.
87581         * tests/unictype/test-ctype_print.c: Likewise.
87582         * tests/unictype/test-ctype_punct.c: Likewise.
87583         * tests/unictype/test-ctype_space.c: Likewise.
87584         * tests/unictype/test-ctype_upper.c: Likewise.
87585         * tests/unictype/test-ctype_xdigit.c: Likewise.
87586         * tests/unictype/test-decdigit.h: Likewise.
87587         * tests/unictype/test-digit.h: Likewise.
87588         * tests/unictype/test-numeric.h: Likewise.
87589         * tests/unictype/test-pr_alphabetic.c: Likewise.
87590         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
87591         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
87592         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
87593         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
87594         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
87595         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
87596         * tests/unictype/test-pr_bidi_control.c: Likewise.
87597         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
87598         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
87599         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
87600         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
87601         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
87602         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
87603         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
87604         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
87605         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
87606         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
87607         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
87608         * tests/unictype/test-pr_combining.c: Likewise.
87609         * tests/unictype/test-pr_composite.c: Likewise.
87610         * tests/unictype/test-pr_currency_symbol.c: Likewise.
87611         * tests/unictype/test-pr_dash.c: Likewise.
87612         * tests/unictype/test-pr_decimal_digit.c: Likewise.
87613         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
87614         * tests/unictype/test-pr_deprecated.c: Likewise.
87615         * tests/unictype/test-pr_diacritic.c: Likewise.
87616         * tests/unictype/test-pr_extender.c: Likewise.
87617         * tests/unictype/test-pr_format_control.c: Likewise.
87618         * tests/unictype/test-pr_grapheme_base.c: Likewise.
87619         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
87620         * tests/unictype/test-pr_grapheme_link.c: Likewise.
87621         * tests/unictype/test-pr_hex_digit.c: Likewise.
87622         * tests/unictype/test-pr_hyphen.c: Likewise.
87623         * tests/unictype/test-pr_id_continue.c: Likewise.
87624         * tests/unictype/test-pr_id_start.c: Likewise.
87625         * tests/unictype/test-pr_ideographic.c: Likewise.
87626         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
87627         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
87628         * tests/unictype/test-pr_ignorable_control.c: Likewise.
87629         * tests/unictype/test-pr_iso_control.c: Likewise.
87630         * tests/unictype/test-pr_join_control.c: Likewise.
87631         * tests/unictype/test-pr_left_of_pair.c: Likewise.
87632         * tests/unictype/test-pr_line_separator.c: Likewise.
87633         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
87634         * tests/unictype/test-pr_lowercase.c: Likewise.
87635         * tests/unictype/test-pr_math.c: Likewise.
87636         * tests/unictype/test-pr_non_break.c: Likewise.
87637         * tests/unictype/test-pr_not_a_character.c: Likewise.
87638         * tests/unictype/test-pr_numeric.c: Likewise.
87639         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
87640         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
87641         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
87642         * tests/unictype/test-pr_other_id_continue.c: Likewise.
87643         * tests/unictype/test-pr_other_id_start.c: Likewise.
87644         * tests/unictype/test-pr_other_lowercase.c: Likewise.
87645         * tests/unictype/test-pr_other_math.c: Likewise.
87646         * tests/unictype/test-pr_other_uppercase.c: Likewise.
87647         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
87648         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
87649         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
87650         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
87651         * tests/unictype/test-pr_private_use.c: Likewise.
87652         * tests/unictype/test-pr_punctuation.c: Likewise.
87653         * tests/unictype/test-pr_quotation_mark.c: Likewise.
87654         * tests/unictype/test-pr_radical.c: Likewise.
87655         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
87656         * tests/unictype/test-pr_soft_dotted.c: Likewise.
87657         * tests/unictype/test-pr_space.c: Likewise.
87658         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
87659         * tests/unictype/test-pr_titlecase.c: Likewise.
87660         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
87661         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
87662         * tests/unictype/test-pr_uppercase.c: Likewise.
87663         * tests/unictype/test-pr_variation_selector.c: Likewise.
87664         * tests/unictype/test-pr_white_space.c: Likewise.
87665         * tests/unictype/test-pr_xid_continue.c: Likewise.
87666         * tests/unictype/test-pr_xid_start.c: Likewise.
87667         * tests/unictype/test-pr_zero_width.c: Likewise.
87668         * tests/unictype/test-sy_c_whitespace.c: Likewise.
87669         * tests/unictype/test-sy_java_whitespace.c: Likewise.
87671 2007-11-12  Bruno Haible  <bruno@clisp.org>
87673         Unicode character classification functions.
87674         * lib/unictype.h: New file.
87675         * modules/unictype/base: New file.
87676         * modules/unictype/category-L: New file.
87677         * modules/unictype/category-Lu: New file.
87678         * modules/unictype/category-Ll: New file.
87679         * modules/unictype/category-Lt: New file.
87680         * modules/unictype/category-Lm: New file.
87681         * modules/unictype/category-Lo: New file.
87682         * modules/unictype/category-M: New file.
87683         * modules/unictype/category-Mn: New file.
87684         * modules/unictype/category-Mc: New file.
87685         * modules/unictype/category-Me: New file.
87686         * modules/unictype/category-N: New file.
87687         * modules/unictype/category-Nd: New file.
87688         * modules/unictype/category-Nl: New file.
87689         * modules/unictype/category-No: New file.
87690         * modules/unictype/category-P: New file.
87691         * modules/unictype/category-Pc: New file.
87692         * modules/unictype/category-Pd: New file.
87693         * modules/unictype/category-Ps: New file.
87694         * modules/unictype/category-Pe: New file.
87695         * modules/unictype/category-Pi: New file.
87696         * modules/unictype/category-Pf: New file.
87697         * modules/unictype/category-Po: New file.
87698         * modules/unictype/category-S: New file.
87699         * modules/unictype/category-Sm: New file.
87700         * modules/unictype/category-Sc: New file.
87701         * modules/unictype/category-Sk: New file.
87702         * modules/unictype/category-So: New file.
87703         * modules/unictype/category-Z: New file.
87704         * modules/unictype/category-Zs: New file.
87705         * modules/unictype/category-Zl: New file.
87706         * modules/unictype/category-Zp: New file.
87707         * modules/unictype/category-C: New file.
87708         * modules/unictype/category-Cc: New file.
87709         * modules/unictype/category-Cf: New file.
87710         * modules/unictype/category-Cs: New file.
87711         * modules/unictype/category-Co: New file.
87712         * modules/unictype/category-Cn: New file.
87713         * modules/unictype/category-or: New file.
87714         * modules/unictype/category-of: New file.
87715         * modules/unictype/category-test: New file.
87716         * modules/unictype/category-test-withtable: New file.
87717         * modules/unictype/category-byname: New file.
87718         * modules/unictype/category-none: New file.
87719         * modules/unictype/category-and: New file.
87720         * modules/unictype/category-and-not: New file.
87721         * modules/unictype/category-name: New file.
87722         * modules/unictype/combining-class: New file.
87723         * modules/unictype/category-all: New file.
87724         * modules/unictype/bidicategory-all: New file.
87725         * modules/unictype/bidicategory-byname: New file.
87726         * modules/unictype/bidicategory-name: New file.
87727         * modules/unictype/bidicategory-of: New file.
87728         * modules/unictype/bidicategory-test: New file.
87729         * modules/unictype/decimal-digit: New file.
87730         * modules/unictype/digit: New file.
87731         * modules/unictype/numeric: New file.
87732         * modules/unictype/mirror: New file.
87733         * modules/unictype/property-white-space: New file.
87734         * modules/unictype/property-alphabetic: New file.
87735         * modules/unictype/property-other-alphabetic: New file.
87736         * modules/unictype/property-not-a-character: New file.
87737         * modules/unictype/property-default-ignorable-code-point: New file.
87738         * modules/unictype/property-other-default-ignorable-code-point: New
87739         file.
87740         * modules/unictype/property-deprecated: New file.
87741         * modules/unictype/property-logical-order-exception: New file.
87742         * modules/unictype/property-variation-selector: New file.
87743         * modules/unictype/property-private-use: New file.
87744         * modules/unictype/property-unassigned-code-value: New file.
87745         * modules/unictype/property-uppercase: New file.
87746         * modules/unictype/property-other-uppercase: New file.
87747         * modules/unictype/property-lowercase: New file.
87748         * modules/unictype/property-other-lowercase: New file.
87749         * modules/unictype/property-titlecase: New file.
87750         * modules/unictype/property-soft-dotted: New file.
87751         * modules/unictype/property-id-start: New file.
87752         * modules/unictype/property-other-id-start: New file.
87753         * modules/unictype/property-id-continue: New file.
87754         * modules/unictype/property-other-id-continue: New file.
87755         * modules/unictype/property-xid-start: New file.
87756         * modules/unictype/property-xid-continue: New file.
87757         * modules/unictype/property-pattern-white-space: New file.
87758         * modules/unictype/property-pattern-syntax: New file.
87759         * modules/unictype/property-join-control: New file.
87760         * modules/unictype/property-grapheme-base: New file.
87761         * modules/unictype/property-grapheme-extend: New file.
87762         * modules/unictype/property-other-grapheme-extend: New file.
87763         * modules/unictype/property-grapheme-link: New file.
87764         * modules/unictype/property-bidi-control: New file.
87765         * modules/unictype/property-bidi-left-to-right: New file.
87766         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
87767         * modules/unictype/property-bidi-arabic-right-to-left: New file.
87768         * modules/unictype/property-bidi-european-digit: New file.
87769         * modules/unictype/property-bidi-eur-num-separator: New file.
87770         * modules/unictype/property-bidi-eur-num-terminator: New file.
87771         * modules/unictype/property-bidi-arabic-digit: New file.
87772         * modules/unictype/property-bidi-common-separator: New file.
87773         * modules/unictype/property-bidi-block-separator: New file.
87774         * modules/unictype/property-bidi-segment-separator: New file.
87775         * modules/unictype/property-bidi-whitespace: New file.
87776         * modules/unictype/property-bidi-non-spacing-mark: New file.
87777         * modules/unictype/property-bidi-boundary-neutral: New file.
87778         * modules/unictype/property-bidi-pdf: New file.
87779         * modules/unictype/property-bidi-embedding-or-override: New file.
87780         * modules/unictype/property-bidi-other-neutral: New file.
87781         * modules/unictype/property-hex-digit: New file.
87782         * modules/unictype/property-ascii-hex-digit: New file.
87783         * modules/unictype/property-ideographic: New file.
87784         * modules/unictype/property-unified-ideograph: New file.
87785         * modules/unictype/property-radical: New file.
87786         * modules/unictype/property-ids-binary-operator: New file.
87787         * modules/unictype/property-ids-trinary-operator: New file.
87788         * modules/unictype/property-zero-width: New file.
87789         * modules/unictype/property-space: New file.
87790         * modules/unictype/property-non-break: New file.
87791         * modules/unictype/property-iso-control: New file.
87792         * modules/unictype/property-format-control: New file.
87793         * modules/unictype/property-dash: New file.
87794         * modules/unictype/property-hyphen: New file.
87795         * modules/unictype/property-punctuation: New file.
87796         * modules/unictype/property-line-separator: New file.
87797         * modules/unictype/property-paragraph-separator: New file.
87798         * modules/unictype/property-quotation-mark: New file.
87799         * modules/unictype/property-sentence-terminal: New file.
87800         * modules/unictype/property-terminal-punctuation: New file.
87801         * modules/unictype/property-currency-symbol: New file.
87802         * modules/unictype/property-math: New file.
87803         * modules/unictype/property-other-math: New file.
87804         * modules/unictype/property-paired-punctuation: New file.
87805         * modules/unictype/property-left-of-pair: New file.
87806         * modules/unictype/property-combining: New file.
87807         * modules/unictype/property-composite: New file.
87808         * modules/unictype/property-decimal-digit: New file.
87809         * modules/unictype/property-numeric: New file.
87810         * modules/unictype/property-diacritic: New file.
87811         * modules/unictype/property-extender: New file.
87812         * modules/unictype/property-ignorable-control: New file.
87813         * modules/unictype/property-test: New file.
87814         * modules/unictype/property-byname: New file.
87815         * modules/unictype/property-all: New file.
87816         * modules/unictype/scripts: New file.
87817         * modules/unictype/scripts-all: New file.
87818         * modules/unictype/block-of: New file.
87819         * modules/unictype/block-test: New file.
87820         * modules/unictype/block-list: New file.
87821         * modules/unictype/block-all: New file.
87822         * modules/unictype/syntax-c-whitespace: New file.
87823         * modules/unictype/syntax-java-whitespace: New file.
87824         * modules/unictype/syntax-c-ident: New file.
87825         * modules/unictype/syntax-java-ident: New file.
87826         * modules/unictype/ctype-alnum: New file.
87827         * modules/unictype/ctype-alpha: New file.
87828         * modules/unictype/ctype-cntrl: New file.
87829         * modules/unictype/ctype-digit: New file.
87830         * modules/unictype/ctype-graph: New file.
87831         * modules/unictype/ctype-lower: New file.
87832         * modules/unictype/ctype-print: New file.
87833         * modules/unictype/ctype-punct: New file.
87834         * modules/unictype/ctype-space: New file.
87835         * modules/unictype/ctype-upper: New file.
87836         * modules/unictype/ctype-xdigit: New file.
87837         * modules/unictype/ctype-blank: New file.
87838         * lib/unictype/bidi_byname.c: New file.
87839         * lib/unictype/bidi_name.c: New file.
87840         * lib/unictype/bidi_of.c: New file.
87841         * lib/unictype/bidi_test.c: New file.
87842         * lib/unictype/bitmap.h: New file.
87843         * lib/unictype/block_test.c: New file.
87844         * lib/unictype/blocks.c: New file.
87845         * lib/unictype/categ_C.c: New file.
87846         * lib/unictype/categ_Cc.c: New file.
87847         * lib/unictype/categ_Cf.c: New file.
87848         * lib/unictype/categ_Cn.c: New file.
87849         * lib/unictype/categ_Co.c: New file.
87850         * lib/unictype/categ_Cs.c: New file.
87851         * lib/unictype/categ_L.c: New file.
87852         * lib/unictype/categ_Ll.c: New file.
87853         * lib/unictype/categ_Lm.c: New file.
87854         * lib/unictype/categ_Lo.c: New file.
87855         * lib/unictype/categ_Lt.c: New file.
87856         * lib/unictype/categ_Lu.c: New file.
87857         * lib/unictype/categ_M.c: New file.
87858         * lib/unictype/categ_Mc.c: New file.
87859         * lib/unictype/categ_Me.c: New file.
87860         * lib/unictype/categ_Mn.c: New file.
87861         * lib/unictype/categ_N.c: New file.
87862         * lib/unictype/categ_Nd.c: New file.
87863         * lib/unictype/categ_Nl.c: New file.
87864         * lib/unictype/categ_No.c: New file.
87865         * lib/unictype/categ_P.c: New file.
87866         * lib/unictype/categ_Pc.c: New file.
87867         * lib/unictype/categ_Pd.c: New file.
87868         * lib/unictype/categ_Pe.c: New file.
87869         * lib/unictype/categ_Pf.c: New file.
87870         * lib/unictype/categ_Pi.c: New file.
87871         * lib/unictype/categ_Po.c: New file.
87872         * lib/unictype/categ_Ps.c: New file.
87873         * lib/unictype/categ_S.c: New file.
87874         * lib/unictype/categ_Sc.c: New file.
87875         * lib/unictype/categ_Sk.c: New file.
87876         * lib/unictype/categ_Sm.c: New file.
87877         * lib/unictype/categ_So.c: New file.
87878         * lib/unictype/categ_Z.c: New file.
87879         * lib/unictype/categ_Zl.c: New file.
87880         * lib/unictype/categ_Zp.c: New file.
87881         * lib/unictype/categ_Zs.c: New file.
87882         * lib/unictype/categ_and.c: New file.
87883         * lib/unictype/categ_and_not.c: New file.
87884         * lib/unictype/categ_byname.c: New file.
87885         * lib/unictype/categ_name.c: New file.
87886         * lib/unictype/categ_none.c: New file.
87887         * lib/unictype/categ_of.c: New file.
87888         * lib/unictype/categ_or.c: New file.
87889         * lib/unictype/categ_test.c: New file.
87890         * lib/unictype/combining.c: New file.
87891         * lib/unictype/ctype_alnum.c: New file.
87892         * lib/unictype/ctype_alpha.c: New file.
87893         * lib/unictype/ctype_blank.c: New file.
87894         * lib/unictype/ctype_cntrl.c: New file.
87895         * lib/unictype/ctype_digit.c: New file.
87896         * lib/unictype/ctype_graph.c: New file.
87897         * lib/unictype/ctype_lower.c: New file.
87898         * lib/unictype/ctype_print.c: New file.
87899         * lib/unictype/ctype_punct.c: New file.
87900         * lib/unictype/ctype_space.c: New file.
87901         * lib/unictype/ctype_upper.c: New file.
87902         * lib/unictype/ctype_xdigit.c: New file.
87903         * lib/unictype/decdigit.c: New file.
87904         * lib/unictype/digit.c: New file.
87905         * lib/unictype/identsyntaxmap.h: New file.
87906         * lib/unictype/mirror.c: New file.
87907         * lib/unictype/numeric.c: New file.
87908         * lib/unictype/pr_alphabetic.c: New file.
87909         * lib/unictype/pr_ascii_hex_digit.c: New file.
87910         * lib/unictype/pr_bidi_arabic_digit.c: New file.
87911         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
87912         * lib/unictype/pr_bidi_block_separator.c: New file.
87913         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
87914         * lib/unictype/pr_bidi_common_separator.c: New file.
87915         * lib/unictype/pr_bidi_control.c: New file.
87916         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
87917         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
87918         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
87919         * lib/unictype/pr_bidi_european_digit.c: New file.
87920         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
87921         * lib/unictype/pr_bidi_left_to_right.c: New file.
87922         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
87923         * lib/unictype/pr_bidi_other_neutral.c: New file.
87924         * lib/unictype/pr_bidi_pdf.c: New file.
87925         * lib/unictype/pr_bidi_segment_separator.c: New file.
87926         * lib/unictype/pr_bidi_whitespace.c: New file.
87927         * lib/unictype/pr_byname.c: New file.
87928         * lib/unictype/pr_byname.gperf: New file.
87929         * lib/unictype/pr_combining.c: New file.
87930         * lib/unictype/pr_composite.c: New file.
87931         * lib/unictype/pr_currency_symbol.c: New file.
87932         * lib/unictype/pr_dash.c: New file.
87933         * lib/unictype/pr_decimal_digit.c: New file.
87934         * lib/unictype/pr_default_ignorable_code_point.c: New file.
87935         * lib/unictype/pr_deprecated.c: New file.
87936         * lib/unictype/pr_diacritic.c: New file.
87937         * lib/unictype/pr_extender.c: New file.
87938         * lib/unictype/pr_format_control.c: New file.
87939         * lib/unictype/pr_grapheme_base.c: New file.
87940         * lib/unictype/pr_grapheme_extend.c: New file.
87941         * lib/unictype/pr_grapheme_link.c: New file.
87942         * lib/unictype/pr_hex_digit.c: New file.
87943         * lib/unictype/pr_hyphen.c: New file.
87944         * lib/unictype/pr_id_continue.c: New file.
87945         * lib/unictype/pr_id_start.c: New file.
87946         * lib/unictype/pr_ideographic.c: New file.
87947         * lib/unictype/pr_ids_binary_operator.c: New file.
87948         * lib/unictype/pr_ids_trinary_operator.c: New file.
87949         * lib/unictype/pr_ignorable_control.c: New file.
87950         * lib/unictype/pr_iso_control.c: New file.
87951         * lib/unictype/pr_join_control.c: New file.
87952         * lib/unictype/pr_left_of_pair.c: New file.
87953         * lib/unictype/pr_line_separator.c: New file.
87954         * lib/unictype/pr_logical_order_exception.c: New file.
87955         * lib/unictype/pr_lowercase.c: New file.
87956         * lib/unictype/pr_math.c: New file.
87957         * lib/unictype/pr_non_break.c: New file.
87958         * lib/unictype/pr_not_a_character.c: New file.
87959         * lib/unictype/pr_numeric.c: New file.
87960         * lib/unictype/pr_other_alphabetic.c: New file.
87961         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
87962         * lib/unictype/pr_other_grapheme_extend.c: New file.
87963         * lib/unictype/pr_other_id_continue.c: New file.
87964         * lib/unictype/pr_other_id_start.c: New file.
87965         * lib/unictype/pr_other_lowercase.c: New file.
87966         * lib/unictype/pr_other_math.c: New file.
87967         * lib/unictype/pr_other_uppercase.c: New file.
87968         * lib/unictype/pr_paired_punctuation.c: New file.
87969         * lib/unictype/pr_paragraph_separator.c: New file.
87970         * lib/unictype/pr_pattern_syntax.c: New file.
87971         * lib/unictype/pr_pattern_white_space.c: New file.
87972         * lib/unictype/pr_private_use.c: New file.
87973         * lib/unictype/pr_punctuation.c: New file.
87974         * lib/unictype/pr_quotation_mark.c: New file.
87975         * lib/unictype/pr_radical.c: New file.
87976         * lib/unictype/pr_sentence_terminal.c: New file.
87977         * lib/unictype/pr_soft_dotted.c: New file.
87978         * lib/unictype/pr_space.c: New file.
87979         * lib/unictype/pr_terminal_punctuation.c: New file.
87980         * lib/unictype/pr_test.c: New file.
87981         * lib/unictype/pr_titlecase.c: New file.
87982         * lib/unictype/pr_unassigned_code_value.c: New file.
87983         * lib/unictype/pr_unified_ideograph.c: New file.
87984         * lib/unictype/pr_uppercase.c: New file.
87985         * lib/unictype/pr_variation_selector.c: New file.
87986         * lib/unictype/pr_white_space.c: New file.
87987         * lib/unictype/pr_xid_continue.c: New file.
87988         * lib/unictype/pr_xid_start.c: New file.
87989         * lib/unictype/pr_zero_width.c: New file.
87990         * lib/unictype/scripts.c: New file.
87991         * lib/unictype/sy_c_ident.c: New file.
87992         * lib/unictype/sy_c_whitespace.c: New file.
87993         * lib/unictype/sy_java_ident.c: New file.
87994         * lib/unictype/sy_java_whitespace.c: New file.
87996         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
87997         Unicode 5.0.0.
87998         * lib/unictype/blocks.h: Likewise.
87999         * lib/unictype/categ_C.h: Likewise.
88000         * lib/unictype/categ_Cc.h: Likewise.
88001         * lib/unictype/categ_Cf.h: Likewise.
88002         * lib/unictype/categ_Cn.h: Likewise.
88003         * lib/unictype/categ_Co.h: Likewise.
88004         * lib/unictype/categ_Cs.h: Likewise.
88005         * lib/unictype/categ_L.h: Likewise.
88006         * lib/unictype/categ_Ll.h: Likewise.
88007         * lib/unictype/categ_Lm.h: Likewise.
88008         * lib/unictype/categ_Lo.h: Likewise.
88009         * lib/unictype/categ_Lt.h: Likewise.
88010         * lib/unictype/categ_Lu.h: Likewise.
88011         * lib/unictype/categ_M.h: Likewise.
88012         * lib/unictype/categ_Mc.h: Likewise.
88013         * lib/unictype/categ_Me.h: Likewise.
88014         * lib/unictype/categ_Mn.h: Likewise.
88015         * lib/unictype/categ_N.h: Likewise.
88016         * lib/unictype/categ_Nd.h: Likewise.
88017         * lib/unictype/categ_Nl.h: Likewise.
88018         * lib/unictype/categ_No.h: Likewise.
88019         * lib/unictype/categ_P.h: Likewise.
88020         * lib/unictype/categ_Pc.h: Likewise.
88021         * lib/unictype/categ_Pd.h: Likewise.
88022         * lib/unictype/categ_Pe.h: Likewise.
88023         * lib/unictype/categ_Pf.h: Likewise.
88024         * lib/unictype/categ_Pi.h: Likewise.
88025         * lib/unictype/categ_Po.h: Likewise.
88026         * lib/unictype/categ_Ps.h: Likewise.
88027         * lib/unictype/categ_S.h: Likewise.
88028         * lib/unictype/categ_Sc.h: Likewise.
88029         * lib/unictype/categ_Sk.h: Likewise.
88030         * lib/unictype/categ_Sm.h: Likewise.
88031         * lib/unictype/categ_So.h: Likewise.
88032         * lib/unictype/categ_Z.h: Likewise.
88033         * lib/unictype/categ_Zl.h: Likewise.
88034         * lib/unictype/categ_Zp.h: Likewise.
88035         * lib/unictype/categ_Zs.h: Likewise.
88036         * lib/unictype/categ_of.h: Likewise.
88037         * lib/unictype/combining.h: Likewise.
88038         * lib/unictype/ctype_alnum.h: Likewise.
88039         * lib/unictype/ctype_alpha.h: Likewise.
88040         * lib/unictype/ctype_blank.h: Likewise.
88041         * lib/unictype/ctype_cntrl.h: Likewise.
88042         * lib/unictype/ctype_digit.h: Likewise.
88043         * lib/unictype/ctype_graph.h: Likewise.
88044         * lib/unictype/ctype_lower.h: Likewise.
88045         * lib/unictype/ctype_print.h: Likewise.
88046         * lib/unictype/ctype_punct.h: Likewise.
88047         * lib/unictype/ctype_space.h: Likewise.
88048         * lib/unictype/ctype_upper.h: Likewise.
88049         * lib/unictype/ctype_xdigit.h: Likewise.
88050         * lib/unictype/decdigit.h: Likewise.
88051         * lib/unictype/digit.h: Likewise.
88052         * lib/unictype/mirror.h: Likewise.
88053         * lib/unictype/numeric.h: Likewise.
88054         * lib/unictype/pr_alphabetic.h: Likewise.
88055         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
88056         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
88057         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
88058         * lib/unictype/pr_bidi_block_separator.h: Likewise.
88059         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
88060         * lib/unictype/pr_bidi_common_separator.h: Likewise.
88061         * lib/unictype/pr_bidi_control.h: Likewise.
88062         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
88063         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
88064         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
88065         * lib/unictype/pr_bidi_european_digit.h: Likewise.
88066         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
88067         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
88068         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
88069         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
88070         * lib/unictype/pr_bidi_pdf.h: Likewise.
88071         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
88072         * lib/unictype/pr_bidi_whitespace.h: Likewise.
88073         * lib/unictype/pr_combining.h: Likewise.
88074         * lib/unictype/pr_composite.h: Likewise.
88075         * lib/unictype/pr_currency_symbol.h: Likewise.
88076         * lib/unictype/pr_dash.h: Likewise.
88077         * lib/unictype/pr_decimal_digit.h: Likewise.
88078         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
88079         * lib/unictype/pr_deprecated.h: Likewise.
88080         * lib/unictype/pr_diacritic.h: Likewise.
88081         * lib/unictype/pr_extender.h: Likewise.
88082         * lib/unictype/pr_format_control.h: Likewise.
88083         * lib/unictype/pr_grapheme_base.h: Likewise.
88084         * lib/unictype/pr_grapheme_extend.h: Likewise.
88085         * lib/unictype/pr_grapheme_link.h: Likewise.
88086         * lib/unictype/pr_hex_digit.h: Likewise.
88087         * lib/unictype/pr_hyphen.h: Likewise.
88088         * lib/unictype/pr_id_continue.h: Likewise.
88089         * lib/unictype/pr_id_start.h: Likewise.
88090         * lib/unictype/pr_ideographic.h: Likewise.
88091         * lib/unictype/pr_ids_binary_operator.h: Likewise.
88092         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
88093         * lib/unictype/pr_ignorable_control.h: Likewise.
88094         * lib/unictype/pr_iso_control.h: Likewise.
88095         * lib/unictype/pr_join_control.h: Likewise.
88096         * lib/unictype/pr_left_of_pair.h: Likewise.
88097         * lib/unictype/pr_line_separator.h: Likewise.
88098         * lib/unictype/pr_logical_order_exception.h: Likewise.
88099         * lib/unictype/pr_lowercase.h: Likewise.
88100         * lib/unictype/pr_math.h: Likewise.
88101         * lib/unictype/pr_non_break.h: Likewise.
88102         * lib/unictype/pr_not_a_character.h: Likewise.
88103         * lib/unictype/pr_numeric.h: Likewise.
88104         * lib/unictype/pr_other_alphabetic.h: Likewise.
88105         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
88106         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
88107         * lib/unictype/pr_other_id_continue.h: Likewise.
88108         * lib/unictype/pr_other_id_start.h: Likewise.
88109         * lib/unictype/pr_other_lowercase.h: Likewise.
88110         * lib/unictype/pr_other_math.h: Likewise.
88111         * lib/unictype/pr_other_uppercase.h: Likewise.
88112         * lib/unictype/pr_paired_punctuation.h: Likewise.
88113         * lib/unictype/pr_paragraph_separator.h: Likewise.
88114         * lib/unictype/pr_pattern_syntax.h: Likewise.
88115         * lib/unictype/pr_pattern_white_space.h: Likewise.
88116         * lib/unictype/pr_private_use.h: Likewise.
88117         * lib/unictype/pr_punctuation.h: Likewise.
88118         * lib/unictype/pr_quotation_mark.h: Likewise.
88119         * lib/unictype/pr_radical.h: Likewise.
88120         * lib/unictype/pr_sentence_terminal.h: Likewise.
88121         * lib/unictype/pr_soft_dotted.h: Likewise.
88122         * lib/unictype/pr_space.h: Likewise.
88123         * lib/unictype/pr_terminal_punctuation.h: Likewise.
88124         * lib/unictype/pr_titlecase.h: Likewise.
88125         * lib/unictype/pr_unassigned_code_value.h: Likewise.
88126         * lib/unictype/pr_unified_ideograph.h: Likewise.
88127         * lib/unictype/pr_uppercase.h: Likewise.
88128         * lib/unictype/pr_variation_selector.h: Likewise.
88129         * lib/unictype/pr_white_space.h: Likewise.
88130         * lib/unictype/pr_xid_continue.h: Likewise.
88131         * lib/unictype/pr_xid_start.h: Likewise.
88132         * lib/unictype/pr_zero_width.h: Likewise.
88133         * lib/unictype/scripts.h: Likewise.
88134         * lib/unictype/scripts_byname.gperf: Likewise.
88135         * lib/unictype/sy_c_ident.h: Likewise.
88136         * lib/unictype/sy_c_whitespace.h: Likewise.
88137         * lib/unictype/sy_java_ident.h: Likewise.
88138         * lib/unictype/sy_java_whitespace.h: Likewise.
88140         * lib/unictype/Makefile: New file.
88141         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
88142         glibc.
88143         * lib/unictype/3level.h: New file, copied from glibc.
88144         * lib/unictype/3levelbit.h: New file.
88146 2007-11-11  Bruno Haible  <bruno@clisp.org>
88148         * modules/gperf: New file.
88149         * modules/iconv_open (Depends-on): Add it.
88150         (Makefile.am): Remove the GPERF definition.
88152 2007-11-11  Bruno Haible  <bruno@clisp.org>
88154         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
88155         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
88157 2007-11-11  Bruno Haible  <bruno@clisp.org>
88159         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
88160         (usage): Remove function.
88162 2007-11-11  Bruno Haible  <bruno@clisp.org>
88164         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
88165         gl_FUNC_CEILF_LIBS.
88166         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
88167         gl_FUNC_CEIL_LIBS.
88168         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
88169         gl_FUNC_CEILL_LIBS.
88170         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
88171         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
88172         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
88174 2007-11-11  Bruno Haible  <bruno@clisp.org>
88176         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
88177         roundf were declared but do not exist on functions.
88178         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
88179         roundl were declared but do not exist on functions.
88180         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
88181         HAVE_FLOORL_AND_CEILL, respectively.
88182         Needed for Sun C on Solaris 10.
88184 2007-11-11  Bruno Haible  <bruno@clisp.org>
88186         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
88187         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
88188         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
88189         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
88190         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
88191         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
88192         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
88193         HAVE_DECL_ROUNDF.
88194         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
88195         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
88196         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
88197         of HAVE_DECL_ROUND*.
88198         * modules/math (Makefile.am): Update.
88200 2007-11-10  Bruno Haible  <bruno@clisp.org>
88202         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
88203         ptrdiff_t as m4/intl.m4.
88205 2007-11-10  Jim Meyering  <meyering@redhat.com>
88207         Avoid link failure for the argmatch test.
88208         * tests/test-argmatch.c (usage): Define function to avoid a link
88209         failure: argmatch_die requires a usage function.
88211 2007-11-09  Bruno Haible  <bruno@clisp.org>
88213         * doc/functions/snprintf.texi: Mention BeOS deficiency.
88214         * doc/functions/vsnprintf.texi: Likewise.
88215         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
88216         with a size argument < 2.
88218 2007-11-09  Bruno Haible  <bruno@clisp.org>
88220         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
88221         buffer. Fixes an inefficiency introduced on 2007-11-03.
88223 2007-11-09  Bruno Haible  <bruno@clisp.org>
88225         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
88226         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
88228 2007-11-08  Jim Meyering  <meyering@redhat.com>
88230         Change cache variable name prefix "jm_" to "gl_" everywhere.
88231         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
88232         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
88233         * m4/uptime.m4: s/gl_/jm_/
88235 2007-11-07  Bruno Haible  <bruno@clisp.org>
88237         Update to GNU gettext 0.17.
88238         * m4/intl.m4: Update to GNU gettext 0.17.
88239         * m4/po.m4: Likewise.
88240         * modules/gettext (Files): Remove m4/ulonglong.m4.
88241         (configure.ac): Require gettext infrastructure from version 0.17.
88243 2007-11-06  Bruno Haible  <bruno@clisp.org>
88245         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
88246         symbolic values are not defined in a public header.
88247         * lib/freadable.c (freadable) [QNX]: Likewise.
88248         * lib/freadahead.c (freadahead) [QNX]: Likewise.
88249         * lib/freading.c (freading) [QNX]: Likewise.
88250         * lib/fseterr.c (fseterr) [QNX]: Likewise.
88251         * lib/fwritable.c (fwritable) [QNX]: Likewise.
88252         * lib/fwriting.c (fwriting) [QNX]: Likewise.
88253         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
88254         Reported by Alain Magloire.
88256         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
88258 2007-11-05  Bruno Haible  <bruno@clisp.org>
88260         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
88261         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
88262         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
88263         Reported by Eric Blake.
88265 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88266             Bruno Haible  <bruno@clisp.org>
88268         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
88269         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
88270         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
88271         (malloc): Undefine also before including <stdlib.h>.
88272         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
88273         Needed on OSF/1 4.0.
88275 2007-11-05  Jim Meyering  <meyering@redhat.com>
88277         git-version-gen: sync from coreutils.
88278         * build-aux/git-version-gen: Add comments.
88279         Change the first '-' to '.' in the snapshot version string,
88280         e.g., 6.9-377-08144 -> 6.9.377-08144
88281         Remove first parameter.
88282         Don't declare a version "-dirty" merely because a time
88283         stamp has changed.
88285 2007-11-04  Bruno Haible  <bruno@clisp.org>
88287         * lib/lock.h: Protect all macro definitions containing an 'if'
88288         statement through a "do { ... } while (0)".
88289         * lib/tls.h: Likewise.
88291 2007-11-04  Bruno Haible  <bruno@clisp.org>
88293         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
88295 2007-11-04  Bruno Haible  <bruno@clisp.org>
88297         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
88298         * modules/fprintf-posix (Depends-on): Add nocrash.
88299         * modules/snprintf-posix (Depends-on): Likewise.
88300         * modules/sprintf-posix (Depends-on): Likewise.
88301         * modules/vasnprintf-posix (Depends-on): Likewise.
88302         * modules/vasprintf-posix (Depends-on): Likewise.
88303         * modules/vfprintf-posix (Depends-on): Likewise.
88304         * modules/vsnprintf-posix (Depends-on): Likewise.
88305         * modules/vsprintf-posix (Depends-on): Likewise.
88306         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
88307         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
88308         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
88309         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
88310         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
88311         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
88312         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
88314 2007-11-04  Bruno Haible  <bruno@clisp.org>
88316         * modules/nocrash: New file.
88317         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
88318         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
88320 2007-11-04  Bruno Haible  <bruno@clisp.org>
88322         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
88323         precision handling.
88324         * tests/test-vasprintf-posix.c (test_function): Likewise.
88325         * tests/test-snprintf-posix.h (test_function): Likewise.
88326         * tests/test-sprintf-posix.h (test_function): Likewise.
88328         Fix *printf behaviour for large precisions on mingw and BeOS.
88329         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
88330         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
88331         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
88332         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
88333         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
88334         gl_PRINTF_PRECISION and test its result. Invoke
88335         gl_PREREQ_VASNPRINTF_PRECISION.
88336         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
88337         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
88338         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
88339         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
88340         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
88341         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
88342         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
88343         * doc/functions/fprintf.texi: Update.
88344         * doc/functions/printf.texi: Update.
88345         * doc/functions/snprintf.texi: Update.
88346         * doc/functions/sprintf.texi: Update.
88347         * doc/functions/vfprintf.texi: Update.
88348         * doc/functions/vprintf.texi: Update.
88349         * doc/functions/vsnprintf.texi: Update.
88350         * doc/functions/vsprintf.texi: Update.
88352 2007-11-04  Bruno Haible  <bruno@clisp.org>
88354         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
88356 2007-11-04  Bruno Haible  <bruno@clisp.org>
88358         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
88359         Reported by Sylvain Beucler <beuc@gnu.org>.
88361 2007-11-03  Bruno Haible  <bruno@clisp.org>
88363         * tests/test-fprintf-posix2.sh: New file.
88364         * tests/test-fprintf-posix2.c: New file.
88365         * modules/fprintf-posix-tests (Files): Add them.
88366         (TESTS): Add test-fprintf-posix2.sh.
88367         (configure.ac): Check for getrlimit and setrlimit.
88368         (check_PROGRAMS): Add test-fprintf-posix2.
88370         * tests/test-printf-posix2.sh: New file.
88371         * tests/test-printf-posix2.c: New file.
88372         * modules/printf-posix-tests (Files): Add them.
88373         (TESTS): Add test-printf-posix2.sh.
88374         (configure.ac): Check for getrlimit and setrlimit.
88375         (check_PROGRAMS): Add test-printf-posix2.
88377         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
88378         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
88379         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
88380         (decode_double): New function, copied from decode_long_double.
88381         (scale10_round_decimal_decoded): New function, extracted from
88382         scale10_round_decimal_long_double.
88383         (scale10_round_decimal_long_double): Use it.
88384         (scale10_round_decimal_double): New function.
88385         (floorlog10): New function.
88386         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
88387         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
88388         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
88389         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
88390         gl_PRINTF_ENOMEM and test its result. Invoke
88391         gl_PREREQ_VASNPRINTF_ENOMEM.
88392         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
88393         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
88394         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
88395         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
88396         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
88397         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
88398         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
88399         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
88400         * modules/snprintf-posix (Depends-on): Likewise.
88401         * modules/sprintf-posix (Depends-on): Likewise.
88402         * modules/vasnprintf-posix (Depends-on): Likewise.
88403         * modules/vasprintf-posix (Depends-on): Likewise.
88404         * modules/vfprintf-posix (Depends-on): Likewise.
88405         * modules/vsnprintf-posix (Depends-on): Likewise.
88406         * modules/vsprintf-posix (Depends-on): Likewise.
88407         * doc/functions/fprintf.texi: Update.
88408         * doc/functions/printf.texi: Update.
88409         * doc/functions/snprintf.texi: Update.
88410         * doc/functions/sprintf.texi: Update.
88411         * doc/functions/vfprintf.texi: Update.
88412         * doc/functions/vprintf.texi: Update.
88413         * doc/functions/vsnprintf.texi: Update.
88414         * doc/functions/vsprintf.texi: Update.
88416 2007-11-03  Bruno Haible  <bruno@clisp.org>
88418         * modules/frexp-nolibm-tests: New file.
88420         * modules/frexp-nolibm: New file.
88421         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
88423 2007-11-03  Bruno Haible  <bruno@clisp.org>
88425         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
88426         value is C99 compliant.
88427         Needed for OSF/1 5.1.
88429 2007-11-03  Bruno Haible  <bruno@clisp.org>
88431         Fix out-of-memory handling of vasnprintf.
88432         * lib/printf-parse.c: Include <errno.h>.
88433         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
88434         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
88435         is already set.
88437 2007-11-02  Eric Blake  <ebb9@byu.net>
88439         Fix tests on cygwin.
88440         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
88442 2007-11-01  Bruno Haible  <bruno@clisp.org>
88444         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
88445         warning.
88446         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
88447         needed for POSIX compatibility.
88449 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
88451         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
88452         for compatibility with GNU.
88454 2007-11-01  Bruno Haible  <bruno@clisp.org>
88456         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
88457         (putenv): Renamed from rpl_putenv. Change argument type from
88458         'const char *' to 'char *'.
88459         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
88460         of defining putenv in config.h, just set REPLACE_PUTENV.
88461         * modules/putenv (Depends-on): Add stdlib.
88462         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
88463         (Include): Use <stdlib.h>.
88464         * lib/stdlib.in.h (putenv): New declaration.
88465         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
88466         REPLACE_PUTENV.
88467         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
88468         REPLACE_PUTENV.
88469         Needed for MacOS X 10.5.0.
88470         Reported by Peter O'Gorman <peter@pogma.com>.
88472 2007-11-01  Jim Meyering  <meyering@redhat.com>
88474         Treat an empty date string exactly like "0".
88475         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
88476         if the remaining date string (to be parsed) is empty, use "0".
88477         Reported by Mischa Molhoek and discussed in this thread:
88478         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
88480 2007-10-31  Bruno Haible  <bruno@clisp.org>
88482         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
88483         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
88484         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
88485         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
88486         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
88487         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
88489 2007-10-31  Bruno Haible  <bruno@clisp.org>
88491         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
88492         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
88493         (AC_TYPE_LONG_LONG_INT): Use it.
88494         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
88495         it as well.
88496         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
88497         to m4/longlong.m4.
88498         * modules/stdint (Files): Remove m4/ulonglong.m4.
88499         * modules/strtoull (Files): Use m4/longlong.m4 instead of
88500         m4/ulonglong.m4.
88501         * modules/strtoumax (Files): Likewise.
88503 2007-10-30  Bruno Haible  <bruno@clisp.org>
88505         * modules/xvasprintf-posix: New file.
88506         Suggested by Eric Blake.
88508 2007-10-30  Bruno Haible  <bruno@clisp.org>
88510         * modules/xprintf-posix-tests: New file.
88511         * tests/test-xprintf-posix.sh: New file.
88512         * tests/test-xprintf-posix.c: New file.
88513         * tests/test-xfprintf-posix.c: New file.
88515         * modules/xprintf-posix: New file.
88517 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88519         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
88520         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
88521         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
88523 2007-10-29  Bruno Haible  <bruno@clisp.org>
88525         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
88526         contain the special marker '_cv_'.
88527         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
88528         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
88529         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
88530         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
88531         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
88532         Reported by Ralf Wildenhues.
88534 2007-10-29  Bruno Haible  <bruno@clisp.org>
88536         * gnulib-tool (func_import): When --lgpl is not specified, set
88537         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
88538         GPLv3.
88539         Reported by Simon Josefsson.
88541 2007-10-28  Bruno Haible  <bruno@clisp.org>
88543         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
88544         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
88545         HAVE_DECL_ISFINITE.
88546         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
88547         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
88548         HAVE_DECL_ISFINITE.
88550 2007-10-28  Bruno Haible  <bruno@clisp.org>
88552         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
88553         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
88555 2007-10-28  Bruno Haible  <bruno@clisp.org>
88557         Fix link errors with Sun C 5.0 on Solaris 10.
88558         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
88559         function is declared but not present in the compiler's libm.
88560         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
88561         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
88562         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
88563         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
88564         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
88565         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
88566         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
88567         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
88568         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
88569         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
88570         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
88571         HAVE_DECL_FLOORL.
88573 2007-10-28  Bruno Haible  <bruno@clisp.org>
88575         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
88576         gl_FUNC_FLOORL. Cache the result.
88577         (gl_FUNC_FLOORL): Use it.
88578         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
88579         gl_FUNC_CEILL. Cache the result.
88580         (gl_FUNC_CEILL): Use it.
88582         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
88583         gl_FUNC_FLOOR. Cache the result.
88584         (gl_FUNC_FLOOR): Use it.
88585         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
88586         gl_FUNC_CEIL. Cache the result.
88587         (gl_FUNC_CEIL): Use it.
88589         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
88590         gl_FUNC_FLOORF. Cache the result.
88591         (gl_FUNC_FLOORF): Use it.
88592         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
88593         gl_FUNC_CEILF. Cache the result.
88594         (gl_FUNC_CEILF): Use it.
88596 2007-10-28  Bruno Haible  <bruno@clisp.org>
88598         * gnulib-tool: Allow specifying the LGPL version number through
88599         --lgpl=2 or --lgpl=3.
88600         (func_usage): Document --lgpl with argument.
88601         Handle --lgpl=... arguments.
88602         (func_import): Recognize also gl_LGPL calls with an argument. When
88603         --lgpl=2 is used and the module's license is just LGPL, report an
88604         error. Set sed_transform_lib_file according to the lgpl variable. In
88605         the generated files, use --lgpl or gl_LGPL invocations with argument,
88606         if necessary.
88607         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
88608         an LGPv2+ license.
88609         * doc/gnulib-tool.texi (Modified imports): Update explanation of
88610         gl_LGPL macro.
88612 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88613             Bruno Haible  <bruno@clisp.org>
88615         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
88616         (u16_uctomb_aux): Likewise.
88617         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
88618         !HAVE_INLINE.
88619         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
88621 2007-10-28  Bruno Haible  <bruno@clisp.org>
88623         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
88624         Invoke AM_GETTEXT_OPTION if it exists.
88625         * modules/vasprintf: Likewise.
88626         * modules/verror: Likewise.
88627         * modules/xprintf: Likewise.
88628         * modules/xvasprintf: Likewise.
88630 2007-10-27  Ben Pfaff  <blp@gnu.org>
88632         * lib/math.in.h: Define isfinite macro and prototypes for
88633         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
88634         implementations.
88635         * m4/math_h.m4: New substitutions for isfinite module.
88636         * lib/isfinite.c: New file.
88637         * m4/isfinite.m4: New file.
88638         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
88639         * modules/isfinite: New file.
88640         * modules/isfinite-tests: New file.
88641         * tests/tests-isfinite.c: New file.
88642         * doc/functions/isfinite.texi: Mention isfinite module.
88643         * MODULES.html.sh: Mention new module.
88645 2007-10-27  Ben Pfaff  <blp@gnu.org>
88647         Ralf Wildenhues reported that Tru64 4.0D declares the round
88648         functions but does not have definitions.
88649         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
88650         cannot be found in any library, set the output variable to
88651         "missing" instead of "".
88652         * m4/round.m4: Also use our substitute if we cannot find round in
88653         any library, even if it is declared.
88654         * m4/roundf.m4: Likewise for roundf.
88655         * m4/roundl.m4: Likewise for roundl.
88656         * lib/math.in.h: Undefine roundf, round, roundl before defining
88657         their replacements, to allow for hypothetical systems where these
88658         may be defined as macros but not available in libraries.
88660 2007-10-27  Bruno Haible  <bruno@clisp.org>
88662         * doc/gnulib.texi: Invoke @firstparagraphindent.
88663         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
88664         changes in gnulib.
88665         (Source changes): New section.
88667 2007-10-26  Bruno Haible  <bruno@clisp.org>
88669         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
88670         borrowed from autoconf.
88672 2007-10-26  Bruno Haible  <bruno@clisp.org>
88674         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
88675         strerror returned the empty string. Needed on HP-UX 11.00.
88677 2007-10-24  Micah Cowan  <micah@cowan.name>
88679         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
88680         * build-aux/bootstrap: Remove support for now-unnecessary option,
88681         --cvs-user, and envvars CVS_USER, CVS_RSH.
88683 2007-10-24  Jim Meyering  <meyering@redhat.com>
88685         Avoid diagnostics from sha1sum when there is no cached checksum.
88686         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
88687         if the po.s1 file hasn't been created yet.
88689         * build-aux/bootstrap: Sync from coreutils:
88690         2007-10-24  Jim Meyering  <meyering@redhat.com>
88691         Get gnulib from the git repository, not from an obsolete cvs one.
88692         * build-aux/bootstrap: Suggestion from Micah Cowan.
88693         2007-10-04  Jim Meyering  <jim@meyering.net>
88694         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
88695         (update_po_files): Work also when there are no .po files in po/.
88697 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
88699         * README: Append ".git" to git and cg examples.
88700         Problem reported by Benoit Sigoure.
88702 2007-10-23  Micah Cowan  <micah@cowan.name>
88704         * users.txt: Add wget.
88706 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88708         Fix linking of some unistdio tests on FreeBSD.
88709         * modules/unistdio/u16-vsnprintf-tests
88710         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
88711         * modules/unistdio/u16-vsprintf-tests
88712         (test_u16_vsnprintf1_LDADD): Likewise.
88713         * modules/unistdio/u32-vsnprintf-tests
88714         (test_u32_vsnprintf1_LDADD): Likewise.
88715         * modules/unistdio/u32-vsprintf-tests
88716         (test_u32_vsprintf1_LDADD): Likewise.
88717         * modules/unistdio/u8-vsnprintf-tests
88718         (test_u8_vsnprintf1_LDADD): Likewise.
88719         * modules/unistdio/u8-vsprintf-tests
88720         (test_u8_vsprintf1_LDADD): Likewise.
88721         * modules/unistdio/ulc-vsnprintf-tests
88722         (test_ulc_vsnprintf1_LDADD): Likewise.
88723         * modules/unistdio/ulc-vsprintf-tests
88724         (test_ulc_vsprintf1_LDADD): Likewise.
88726         Fix linking of some uniconv tests on FreeBSD.
88727         * modules/uniconv/u16-conv-from-enc-tests
88728         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
88729         * modules/uniconv/u16-conv-to-enc-tests
88730         (test_u16_conv_to_enc_LDADD): Likewise.
88731         * modules/uniconv/u16-strconv-from-enc-tests
88732         (test_u16_strconv_from_enc_LDADD): Likewise.
88733         * modules/uniconv/u16-strconv-to-enc-tests
88734         (test_u16_strconv_to_enc_LDADD): Likewise.
88735         * modules/uniconv/u32-conv-from-enc-tests
88736         (test_u32_conv_from_enc_LDADD): Likewise.
88737         * modules/uniconv/u32-conv-to-enc-tests
88738         (test_u32_conv_to_enc_LDADD): Likewise.
88739         * modules/uniconv/u32-strconv-from-enc-tests
88740         (test_u32_strconv_from_enc_LDADD): Likewise.
88741         * modules/uniconv/u32-strconv-to-enc-tests
88742         (test_u32_strconv_to_enc_LDADD): Likewise.
88743         * modules/uniconv/u8-conv-from-enc-tests
88744         (test_u8_conv_from_enc_LDADD): Likewise.
88745         * modules/uniconv/u8-conv-to-enc-tests
88746         (test_u8_conv_to_enc_LDADD): Likewise.
88747         * modules/uniconv/u8-strconv-from-enc-tests
88748         (test_u8_strconv_from_enc_LDADD): Likewise.
88749         * modules/uniconv/u8-strconv-to-enc-tests
88750         (test_u8_strconv_to_enc_LDADD): Likewise.
88752 2007-10-22  Bruno Haible  <bruno@clisp.org>
88754         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
88755         size.
88757 2007-10-22  Eric Blake  <ebb9@byu.net>
88759         Tweak x*printf documentation.
88760         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
88761         variable name and comments.
88762         Suggested by Bruno Haible.
88764 2007-10-22  Bruno Haible  <bruno@clisp.org>
88766         * lib/acl.c (copy_acl): Fix file name in comment.
88768 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
88770         Fix Tru64 problem with stdbool.h.
88771         * lib/stdbool.in.h (false, true):
88772         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
88773         Don't declare as an enum in this situation; it runs afoul of Tru64.
88774         Problem reported by Steven M. Schweda in
88775         <http://lists.gnu.org/r/bug-autoconf/2007-10/msg00019.html>.
88777 2007-10-22  Eric Blake  <ebb9@byu.net>
88779         Also wrap vf?printf.
88780         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
88781         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
88782         (xvprintf, xvfprintf): New functions.
88784 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88786         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
88787         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
88789         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
88790         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
88792 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
88794         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
88795         by Bruno Haible.
88797 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88799         * lib/getloadavg.c
88800         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
88801         Undef `sys' after including sys/table.h, for Tru64 4.0D.
88803         * tests/test-i-ring.c: Work for C89.
88805 2007-10-22  Bruno Haible  <bruno@clisp.org>
88807         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
88808         -1u, in preprocessor expression, so that we don't test for the bug
88809         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
88810         <http://lists.gnu.org/r/bug-gnulib/2007-10/msg00329.html>.
88812 2007-10-22  Eric Blake  <ebb9@byu.net>
88814         * tests/test-yesno.sh: Silence stderr during test.
88816 2007-10-22  Simon Josefsson  <simon@josefsson.org>
88818         * modules/crypto/gc-camellia: New file.
88820         * m4/gc-camellia.m4: New file.
88822         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
88824         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
88826 2007-10-22  Simon Josefsson  <simon@josefsson.org>
88828         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
88829         --help to stdout.  Reported by sms@antinode.org (Steven
88830         M. Schweda).
88832 2007-10-22  Simon Josefsson  <simon@josefsson.org>
88834         * users.txt: Fix link to libksba.
88836 2007-10-21  Ben Pfaff  <blp@gnu.org>
88838         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
88839         round.c roundf implementation that depends on floorf and ceilf to
88840         be tested unconditionally.
88842 2007-10-21  Ben Pfaff  <blp@gnu.org>
88844         * m4/check-libm-func.m4: Removed.
88845         * m4/check-math-lib.m4: New file.
88846         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
88847         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
88848         definition and lack of AC_LIBOBJ([roundf]).
88849         * m4/roundl.m4: Ditto, and similarly for roundl.
88850         * modules/round: Reference new m4 file.
88851         * modules/roundf: Ditto.
88852         * modules/roundl: Ditto.
88853         * tests/test-round2.c (main): Use ROUND instead of round.
88854         Bug report from Bruno Haible.
88856 2007-10-21  Bruno Haible  <bruno@clisp.org>
88858         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
88859         context.
88861 2007-10-21  Bruno Haible  <bruno@clisp.org>
88863         * tests/test-wcwidth.c (main): Allow negative result for some control
88864         characters.
88866         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
88867         Needed on OSF/1 5.1.
88869 2007-10-21  Bruno Haible  <bruno@clisp.org>
88871         * tests/test-floorf1.c: Include isnanf.h.
88872         (main): Use isnanf() instead of isnan().
88873         * tests/test-ceilf1.c: Include isnanf.h.
88874         (main): Use isnanf() instead of isnan().
88875         * tests/test-truncf1.c: Include isnanf.h.
88876         (main): Use isnanf() instead of isnan().
88877         * tests/test-roundf1.c: Include isnanf.h.
88878         (main): Use isnanf() instead of isnan().
88880 2007-10-21  Eric Blake  <ebb9@byu.net>
88882         * users.txt: Update URL for m4.
88884 2007-10-21  Bruno Haible  <bruno@clisp.org>
88886         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
88888 2007-10-21  Bruno Haible  <bruno@clisp.org>
88890         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
88891         Git's management files if the CVS files are not present.
88893 2007-10-20  Bruno Haible  <bruno@clisp.org>
88895         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
88896         gcc-3.4.x.
88898 2007-10-20  Ben Pfaff  <blp@gnu.org>
88900         * lib/math.in.h: Declare round, roundf, roundl if we are providing
88901         implementations.
88902         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
88903         * lib/round.c: New file.
88904         * lib/roundf.c: New file.
88905         * lib/roundl.c: New file.
88906         * m4/round.m4: New file.
88907         * m4/roundf.m4: New file.
88908         * m4/roundl.m4: New file.
88909         * m4/check-libm-func-m4: New file.
88910         * modules/math: Replace round, roundf, roundl related @VARS@ in
88911         math.in.h.
88912         * modules/round: New file.
88913         * modules/round-tests: New file.
88914         * modules/roundf: New file.
88915         * modules/roundf-tests: New file.
88916         * modules/roundl: New file.
88917         * modules/roundl-tests: New file.
88918         * tests/test-round1.c: New file.
88919         * tests/test-round2.c: New file.
88920         * tests/test-roundf1.c: New file.
88921         * tests/test-roundf2.c: New file.
88922         * tests/test-roundl.c: New file.
88923         * doc/functions/round.texi: Mention round module.
88924         * doc/functions/roundf.texi: Mention roundf module.
88925         * doc/functions/roundl.texi: Mention roundl module.
88926         * MODULES.html.sh: Mention new modules.
88927         Thanks to Bruno Haible for suggestions.
88929 2007-10-20  Jim Meyering  <meyering@redhat.com>
88931         * lib/xprintf.c: Include <config.h> unconditionally.
88933         Change xprintf's license to GPL.
88934         * modules/xprintf (License): s/LGPL/GPL/, since this module
88935         depends on modules (exit and exitfail) which are GPL.
88936         Suggestion from Bruno Haible.
88938         xprintf fixes.
88939         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
88940         Use a clearer diagnostic.
88941         Patch from Bruno Haible.
88943 2007-10-20  Bruno Haible  <bruno@clisp.org>
88945         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
88946         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
88947         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
88949 2007-10-20  Bruno Haible  <bruno@clisp.org>
88951         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
88952         precision in the comparison result > x - 1 or similar.
88953         * tests/test-ceilf2.c (correct_result_p): Likewise.
88954         * tests/test-truncf2.c (correct_result_p): Likewise.
88955         * tests/test-trunc2.c (correct_result_p): Likewise.
88956         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
88958 2007-10-20  Bruno Haible  <bruno@clisp.org>
88960         * modules/ceil: New file.
88961         * m4/ceil.m4: New file.
88962         * doc/functions/ceil.texi: Mention the 'ceil' module.
88964 2007-10-20  Bruno Haible  <bruno@clisp.org>
88966         * modules/floor: New file.
88967         * m4/floor.m4: New file.
88968         * doc/functions/floor.texi: Mention the 'floor' module.
88970 2007-10-20  Bruno Haible  <bruno@clisp.org>
88972         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
88973         of %a.
88974         * modules/floorf-tests (Depends-on): Likewise.
88975         * modules/truncf-tests (Depends-on): Likewise.
88976         * modules/trunc-tests (Depends-on): Likewise.
88977         Reported by Ben Pfaff.
88979 2007-10-19  Jim Meyering  <meyering@redhat.com>
88981         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
88982         Don't bother testing specific errno values.  Just test ferror.
88984         New module: xprintf
88985         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
88987 2007-10-19  Bruno Haible  <bruno@clisp.org>
88989         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
88990         syntax.
88991         * modules/javaexec (Makefile.am): Likewise.
88992         * modules/relocatable-prog (Makefile.am): Likewise.
88993         Suggested by Jim Meyering.
88995 2007-10-18  Bruno Haible  <bruno@clisp.org>
88997         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
88998         Reported by Jim Meyering.
89000 2007-10-18  Eric Blake  <ebb9@byu.net>
89002         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
89004 2007-10-18  Bruno Haible  <bruno@clisp.org>
89006         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
89007         the format string into writable memory. Needed in Fortify conditions.
89009 2007-10-18  Colin Watson  <cjwatson@debian.org>  (tiny change)
89010             Bruno Haible  <bruno@clisp.org>
89012         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
89013         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
89014         * modules/trim (Depends-on): Add mbchar.
89015         (configure.ac): Add gl_FUNC_MBRTOWC.
89016         (Makefile.am): Augment lib_SOURCES.
89018 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
89020         Modify glob.c to use fstatat and dirfd, to simplify it.
89021         Suggested by Eric Blake.
89022         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
89023         Don't include <stdbool.h>; not used.
89024         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
89025         (link_exists_p): Simplify implementation, since we can now assume
89026         dirfd and fstatat.
89027         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
89029 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89031         * gnulib-tool (func_get_dependencies): Fix sed script to
89032         match only tests.
89034 2007-10-17  Bruno Haible  <bruno@clisp.org>
89036         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
89037         allow locale names without encoding suffix.
89038         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
89039         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
89041 2007-10-16  Bruno Haible  <bruno@clisp.org>
89043         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
89044         * lib/getgroups.c (getgroups): Likewise.
89045         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
89047 2007-10-16  Bruno Haible  <bruno@clisp.org>
89049         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
89050         * modules/malloc-posix (License): Likewise.
89051         * modules/realloc-posix (License): Likewise.
89052         * modules/calloc-posix (License): Likewise.
89053         * modules/intprops (License): Change from GPL to LGPL, with
89054         Paul Eggert's approval.
89056 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
89058         Merge glibc changes into lib/glob.c.
89060         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
89061         2007-10-15 04:59:03 UTC.  Here are the changes:
89063         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
89065         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
89067         * lib/glob.c: Add some branch prediction throughout.
89069         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
89071         [BZ #5103]
89072         * lib/glob.c (glob): Recognize patterns starting \/.
89074         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
89076         [BZ #3996]
89077         * lib/glob.c (attribute_hidden): Define if not defined.
89078         (glob): Unescape dirname, filename or username when needed and not
89079         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
89080         is NULL.  Handle unescaped [ in pattern without closing ].
89081         Don't pass GLOB_CHECK down to recursive glob for directories.
89082         (__glob_pattern_type): New function.
89083         (__glob_pattern_p): Implement using __glob_pattern_type.
89084         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
89085         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
89086         Remove unreachable code.
89088         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
89090         * lib/glob.c (glob_in_dir): Add some comments and asserts to
89091         explain why there are no leaks.
89093         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
89095         [BZ #3253]
89096         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
89097         time, rather allocate increasingly bigger arrays of pointers, if
89098         possible with alloca, if too large with malloc.
89100 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
89102         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
89103         Problem reported by H.Merijn Brand in
89104         <http://lists.gnu.org/r/bug-tar/2007-10/msg00018.html>.
89105         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
89106         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
89108 2007-10-15  Bruno Haible  <bruno@clisp.org>
89110         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
89111         with explicit rpl_ prefix.
89112         * lib/fopen.c (fopen): Likewise.
89113         * lib/freopen.c (freopen): Likewise.
89114         * lib/iconv.c (iconv): Likewise.
89115         * lib/iconv_close.c (iconv_close): Likewise.
89117 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89119         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
89121 2007-10-15  Bruno Haible  <bruno@clisp.org>
89123         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
89124         <stddef.h> instead of <stdlib.h> since we only need NULL.
89125         Reported by Ben Pfaff <blp@cs.stanford.edu>.
89127 2007-10-15  Bruno Haible  <bruno@clisp.org>
89129         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
89130         Replace paragraph talking about LIBOBJS.
89131         Reported by Colin Watson <cjwatson@debian.org>.
89133 2007-10-15  Bruno Haible  <bruno@clisp.org>
89135         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
89136         <stdlib.h> before using NULL.
89138 2007-10-15  Simon Josefsson  <simon@josefsson.org>
89140         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
89141         Reported by Albert Chin <china@thewrittenword.com>.
89143 2007-10-14  Bruno Haible  <bruno@clisp.org>
89145         * modules/iconv_open-utf-tests: New file.
89146         * tests/test-iconv-utf.c: New file.
89148         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
89149         * modules/iconv_open-utf: New file.
89150         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
89151         (iconv, iconv_close): New declarations.
89152         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
89153         be defined.
89154         (iconv_open): Add special handling of conversion between UTF-8 and
89155         UTF-{16,32}{BE,LE}.
89156         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
89157         * lib/iconv_close.c: New file.
89158         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
89159         gl_FUNC_ICONV_OPEN.
89160         (gl_FUNC_ICONV_OPEN): Use it.
89161         (gl_FUNC_ICONV_OPEN_UTF): New macro.
89162         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
89163         and REPLACE_ICONV_UTF.
89164         * modules/iconv_open (Depends-on): Add c-strcase.
89165         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
89166         ICONV_CONST.
89167         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
89169 2007-10-13  Albert Chin  <china@thewrittenword.com>
89170             Bruno Haible  <bruno@clisp.org>
89172         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
89173         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
89175 2007-10-13  Bruno Haible  <bruno@clisp.org>
89177         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
89178         defined, use the ISO C99 inline semantics.
89179         * lib/argp.h (ARGP_EI): Likewise.
89181 2007-10-13  Bruno Haible  <bruno@clisp.org>
89183         Handle 'inline' change in gcc 4.3.0.
89184         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
89185         argp_fmtstream_write, argp_fmtstream_set_lmargin,
89186         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
89187         argp_fmtstream_point): Disable 'extern' declaration if the function
89188         definition is going to be provided inline.
89189         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
89190         semantics, not the ISO C99 inline semantics.
89191         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
89192         'extern' declaration if the function definition is going to be provided
89193         inline.
89194         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
89195         the GNU C inline semantics, not the ISO C99 inline semantics. With
89196         GCC 4.2, avoid a warning.
89198 2007-10-13  Bruno Haible  <bruno@clisp.org>
89200         * lib/freading.h (freading): Enable the use of __freading for
89201         glibc >= 2.7.
89202         * lib/freading.c (freading): Likewise.
89204 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
89206         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
89207         "warning: C99 inline functions are not supported; using GNU89".
89209 2007-10-12  Bruno Haible  <bruno@clisp.org>
89211         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
89212         of 2.
89213         * tests/test-ceilf2.c: New file.
89214         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
89216         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
89217         * modules/ceilf-tests: Update.
89219 2007-10-12  Bruno Haible  <bruno@clisp.org>
89221         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
89222         of 2.
89223         * tests/test-floorf2.c: New file.
89224         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
89226         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
89227         * modules/floorf-tests: Update.
89229 2007-10-12  Bruno Haible  <bruno@clisp.org>
89231         * tests/test-trunc2.c: New file.
89232         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
89234         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
89235         * modules/trunc-tests: Update.
89237 2007-10-12  Bruno Haible  <bruno@clisp.org>
89239         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
89240         of 2.
89241         * tests/test-truncf2.c: New file.
89242         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
89244         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
89245         * modules/truncf-tests: Update.
89247 2007-10-11  Eric Blake  <ebb9@byu.net>
89249         Don't claim strerror is broken on Interix.
89250         * doc/functions/strerror.texi (strerror): Known broken systems are
89251         now Solaris 8, and not Interix.
89252         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
89253         Interix on cross-compile.
89254         Reported by Martin Koeppe in
89255         http://lists.gnu.org/r/bug-gnulib/2007-10/msg00005.html.
89257 2007-10-11  Bruno Haible  <bruno@clisp.org>
89259         * modules/i-ring-tests: New file.
89260         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
89261         instead of assert.
89263 2007-10-11  Bruno Haible  <bruno@clisp.org>
89265         * modules/filenamecat-tests: New file.
89266         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
89267         * lib/filenamecat.c: Remove test code.
89269 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
89271         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
89273         * lib/strerror.c: Include <string.h> always, to test interface,
89274         and to remove the need for the dummy.
89275         Include intprops.h to compute width instead of doing it ourselves
89276         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
89277         (strerror): Define it to return NULL if there's no system strerror.
89278         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
89279         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
89280         ancient pre-strerror Unix systems well any more.  Saying "unknown
89281         system error" is enough.
89282         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
89283         simpler strerror.c implementation.
89284         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
89285         Simplify the tests to reflect the simpler strerror implementation.
89286         * modules/strerror (Depends-on): Add intprops.
89288 2007-10-09  Eric Blake  <ebb9@byu.net>
89290         Silence test-fpending.
89291         * modules/fpending-tests (Files): Add wrapper script.
89292         * tests/test-fpending.sh: New file.
89294 2007-10-09  Bruno Haible  <bruno@clisp.org>
89296         * MODULES.html.sh (func_module): Don't create a hyperlink for
89297         function names like 'printf_frexp'.
89298         (Misc): Add crc, memxor.
89299         (Characteristics of floating types): New section.
89300         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
89301         isnanf-nolibm, signbit, trunc, truncf, truncl.
89302         (Enhancements for ISO C 99 functions): New subsection Input/output.
89303         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
89304         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
89305         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
89306         (Compatibility checks for POSIX:2001 functions): Add clock-time.
89307         (Enhancements for POSIX:2001 functions): Add chdir-long.
89308         (File system functions): Add areadlink, chdir-safer, read-file.
89309         Remove cycle-check.
89310         (File system as inode set): New section.
89311         (Date and time): Add gethrxtime.
89312         (Multithreading): Add openmp.
89313         (Internationalization functions): Add localename.
89314         (Unicode string functions): Add unistr/u*-mbsnlen.
89315         (Support for maintaining and releasing projects): Add git-version-gen.
89316         (Lone files): Remove directories.
89318 2007-10-08  Ben Pfaff  <blp@gnu.org>
89320         * lib/xmalloca.h: Fix typo in comment.
89322 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
89324         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
89325         when avoiding problems with integer overflow.  Use a portable test
89326         instead.
89328 2007-10-08  Simon Josefsson  <simon@josefsson.org>
89330         * modules/dummy (License): Change to LGPLv2+.
89331         * modules/float (License): Likewise
89332         * modules/realloc (License): Likewise
89333         * modules/stdlib (License): Likewise
89335 2007-10-07  Bruno Haible  <bruno@clisp.org>
89337         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
89338         * floor.c (TWO_MANT_DIG): Likewise.
89339         * ceil.c (TWO_MANT_DIG): Likewise.
89340         Reported by Ben Pfaff.
89342 2007-10-07  Bruno Haible  <bruno@clisp.org>
89344         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
89345         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
89346         * lib/frexp.c (FUNC): Likewise.
89347         * lib/printf-frexp.h (printf_frexp): Likewise.
89348         * lib/printf-frexpl.h (printf_frexpl): Likewise.
89349         * lib/printf-frexp.c (FUNC): Likewise.
89350         Suggested by Jim Meyering.
89352 2007-10-07  Jim Meyering  <meyering@redhat.com>
89354         Make xnanosleep's integer overflow test more robust.
89355         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
89356         so that gcc-4.3.0 doesn't optimize away this test for overflow.
89358 2007-10-07  Bruno Haible  <bruno@clisp.org>
89360         * NEWS: Mention the license change.
89362         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
89363         abbreviations in the modules files.
89365         Change copyright notice from GPLv2+ to GPLv3+.
89366         * README: Change copyright notice.
89367         * MODULES.html.sh: Likewise.
89368         * build-aux/bootstrap.conf: Likewise.
89369         * build-aux/config.libpath: Likewise.
89370         * build-aux/csharpcomp.sh.in: Likewise.
89371         * build-aux/csharpexec.sh.in: Likewise.
89372         * build-aux/install-reloc: Likewise.
89373         * build-aux/javacomp.sh.in: Likewise.
89374         * build-aux/javaexec.sh.in: Likewise.
89375         * build-aux/ldd.sh.in: Likewise.
89376         * build-aux/reloc-ldflags: Likewise.
89377         * build-aux/relocatable.sh.in: Likewise.
89378         * build-aux/x-to-1.in: Likewise.
89379         * check-module: Likewise.
89380         * config/srclistvars.sh: Likewise.
89381         * gnulib-tool: Likewise.
89382         * lib/acl-internal.h: Likewise.
89383         * lib/acl.c: Likewise.
89384         * lib/acl.h: Likewise.
89385         * lib/acl_entries.c: Likewise.
89386         * lib/areadlink-with-size.c: Likewise.
89387         * lib/areadlink.c: Likewise.
89388         * lib/areadlink.h: Likewise.
89389         * lib/argmatch.c: Likewise.
89390         * lib/argmatch.h: Likewise.
89391         * lib/argp-ba.c: Likewise.
89392         * lib/argp-eexst.c: Likewise.
89393         * lib/argp-fmtstream.c: Likewise.
89394         * lib/argp-fmtstream.h: Likewise.
89395         * lib/argp-fs-xinl.c: Likewise.
89396         * lib/argp-help.c: Likewise.
89397         * lib/argp-namefrob.h: Likewise.
89398         * lib/argp-parse.c: Likewise.
89399         * lib/argp-pin.c: Likewise.
89400         * lib/argp-pv.c: Likewise.
89401         * lib/argp-pvh.c: Likewise.
89402         * lib/argp-xinl.c: Likewise.
89403         * lib/argp.h: Likewise.
89404         * lib/at-func.c: Likewise.
89405         * lib/atanl.c: Likewise.
89406         * lib/backupfile.c: Likewise.
89407         * lib/backupfile.h: Likewise.
89408         * lib/basename.c: Likewise.
89409         * lib/binary-io.h: Likewise.
89410         * lib/byteswap.in.h: Likewise.
89411         * lib/c-stack.c: Likewise.
89412         * lib/c-stack.h: Likewise.
89413         * lib/c-strcasestr.c: Likewise.
89414         * lib/c-strcasestr.h: Likewise.
89415         * lib/c-strstr.c: Likewise.
89416         * lib/c-strstr.h: Likewise.
89417         * lib/c-strtod.c: Likewise.
89418         * lib/calloc.c: Likewise.
89419         * lib/canon-host.c: Likewise.
89420         * lib/canon-host.h: Likewise.
89421         * lib/canonicalize-lgpl.c: Likewise.
89422         * lib/canonicalize.c: Likewise.
89423         * lib/canonicalize.h: Likewise.
89424         * lib/ceil.c: Likewise.
89425         * lib/ceilf.c: Likewise.
89426         * lib/ceill.c: Likewise.
89427         * lib/chdir-long.c: Likewise.
89428         * lib/chdir-long.h: Likewise.
89429         * lib/chdir-safer.c: Likewise.
89430         * lib/chdir-safer.h: Likewise.
89431         * lib/chown.c: Likewise.
89432         * lib/classpath.c: Likewise.
89433         * lib/classpath.h: Likewise.
89434         * lib/clean-temp.c: Likewise.
89435         * lib/clean-temp.h: Likewise.
89436         * lib/cloexec.c: Likewise.
89437         * lib/close-stream.c: Likewise.
89438         * lib/closein.c: Likewise.
89439         * lib/closein.h: Likewise.
89440         * lib/closeout.c: Likewise.
89441         * lib/closeout.h: Likewise.
89442         * lib/concat-filename.c: Likewise.
89443         * lib/copy-file.c: Likewise.
89444         * lib/copy-file.h: Likewise.
89445         * lib/count-one-bits.h: Likewise.
89446         * lib/crc.c: Likewise.
89447         * lib/crc.h: Likewise.
89448         * lib/creat-safer.c: Likewise.
89449         * lib/csharpcomp.c: Likewise.
89450         * lib/csharpcomp.h: Likewise.
89451         * lib/csharpexec.c: Likewise.
89452         * lib/csharpexec.h: Likewise.
89453         * lib/cycle-check.c: Likewise.
89454         * lib/cycle-check.h: Likewise.
89455         * lib/diacrit.c: Likewise.
89456         * lib/diacrit.h: Likewise.
89457         * lib/diffseq.h: Likewise.
89458         * lib/dirchownmod.c: Likewise.
89459         * lib/dirent.in.h: Likewise.
89460         * lib/dirfd.c: Likewise.
89461         * lib/dirfd.h: Likewise.
89462         * lib/dirname.c: Likewise.
89463         * lib/dirname.h: Likewise.
89464         * lib/dummy.c: Likewise.
89465         * lib/dup-safer.c: Likewise.
89466         * lib/dup2.c: Likewise.
89467         * lib/eealloc.h: Likewise.
89468         * lib/error.c: Likewise.
89469         * lib/error.h: Likewise.
89470         * lib/euidaccess.c: Likewise.
89471         * lib/exclude.c: Likewise.
89472         * lib/exclude.h: Likewise.
89473         * lib/execute.c: Likewise.
89474         * lib/execute.h: Likewise.
89475         * lib/exitfail.c: Likewise.
89476         * lib/exitfail.h: Likewise.
89477         * lib/expl.c: Likewise.
89478         * lib/fatal-signal.c: Likewise.
89479         * lib/fatal-signal.h: Likewise.
89480         * lib/fbufmode.c: Likewise.
89481         * lib/fbufmode.h: Likewise.
89482         * lib/fchdir.c: Likewise.
89483         * lib/fchmodat.c: Likewise.
89484         * lib/fchownat.c: Likewise.
89485         * lib/fcntl--.h: Likewise.
89486         * lib/fcntl-safer.h: Likewise.
89487         * lib/fcntl.in.h: Likewise.
89488         * lib/fd-safer.c: Likewise.
89489         * lib/fflush.c: Likewise.
89490         * lib/file-has-acl.c: Likewise.
89491         * lib/file-set.c: Likewise.
89492         * lib/file-type.c: Likewise.
89493         * lib/file-type.h: Likewise.
89494         * lib/fileblocks.c: Likewise.
89495         * lib/filemode.c: Likewise.
89496         * lib/filemode.h: Likewise.
89497         * lib/filename.h: Likewise.
89498         * lib/filenamecat.c: Likewise.
89499         * lib/filenamecat.h: Likewise.
89500         * lib/findprog.c: Likewise.
89501         * lib/findprog.h: Likewise.
89502         * lib/float.in.h: Likewise.
89503         * lib/floor.c: Likewise.
89504         * lib/floorf.c: Likewise.
89505         * lib/floorl.c: Likewise.
89506         * lib/fopen-safer.c: Likewise.
89507         * lib/fopen.c: Likewise.
89508         * lib/fpending.c: Likewise.
89509         * lib/fpending.h: Likewise.
89510         * lib/fprintf.c: Likewise.
89511         * lib/fprintftime.h: Likewise.
89512         * lib/fpucw.h: Likewise.
89513         * lib/fpurge.c: Likewise.
89514         * lib/fpurge.h: Likewise.
89515         * lib/freadable.c: Likewise.
89516         * lib/freadable.h: Likewise.
89517         * lib/freadahead.c: Likewise.
89518         * lib/freadahead.h: Likewise.
89519         * lib/freading.c: Likewise.
89520         * lib/freading.h: Likewise.
89521         * lib/free.c: Likewise.
89522         * lib/freopen.c: Likewise.
89523         * lib/frexp.c: Likewise.
89524         * lib/frexpl.c: Likewise.
89525         * lib/fseek.c: Likewise.
89526         * lib/fseterr.c: Likewise.
89527         * lib/fseterr.h: Likewise.
89528         * lib/fstatat.c: Likewise.
89529         * lib/fstrcmp.c: Likewise.
89530         * lib/fstrcmp.h: Likewise.
89531         * lib/fsusage.c: Likewise.
89532         * lib/fsusage.h: Likewise.
89533         * lib/ftell.c: Likewise.
89534         * lib/ftello.c: Likewise.
89535         * lib/fts-cycle.c: Likewise.
89536         * lib/fts.c: Likewise.
89537         * lib/fts_.h: Likewise.
89538         * lib/full-read.c: Likewise.
89539         * lib/full-read.h: Likewise.
89540         * lib/full-write.c: Likewise.
89541         * lib/full-write.h: Likewise.
89542         * lib/fwritable.c: Likewise.
89543         * lib/fwritable.h: Likewise.
89544         * lib/fwriteerror.c: Likewise.
89545         * lib/fwriteerror.h: Likewise.
89546         * lib/fwriting.c: Likewise.
89547         * lib/fwriting.h: Likewise.
89548         * lib/gcd.c: Likewise.
89549         * lib/gcd.h: Likewise.
89550         * lib/getcwd.c: Likewise.
89551         * lib/getdate.h: Likewise.
89552         * lib/getdate.y: Likewise.
89553         * lib/getdomainname.c: Likewise.
89554         * lib/getdomainname.h: Likewise.
89555         * lib/getgroups.c: Likewise.
89556         * lib/gethostname.c: Likewise.
89557         * lib/gethrxtime.c: Likewise.
89558         * lib/gethrxtime.h: Likewise.
89559         * lib/getloadavg.c: Likewise.
89560         * lib/getndelim2.c: Likewise.
89561         * lib/getndelim2.h: Likewise.
89562         * lib/getnline.c: Likewise.
89563         * lib/getnline.h: Likewise.
89564         * lib/getopt.c: Likewise.
89565         * lib/getopt.in.h: Likewise.
89566         * lib/getopt1.c: Likewise.
89567         * lib/getopt_int.h: Likewise.
89568         * lib/getpagesize.h: Likewise.
89569         * lib/getsubopt.c: Likewise.
89570         * lib/gettime.c: Likewise.
89571         * lib/getugroups.c: Likewise.
89572         * lib/getugroups.h: Likewise.
89573         * lib/getusershell.c: Likewise.
89574         * lib/gl_anyavltree_list1.h: Likewise.
89575         * lib/gl_anyavltree_list2.h: Likewise.
89576         * lib/gl_anyhash_list1.h: Likewise.
89577         * lib/gl_anyhash_list2.h: Likewise.
89578         * lib/gl_anylinked_list1.h: Likewise.
89579         * lib/gl_anylinked_list2.h: Likewise.
89580         * lib/gl_anyrbtree_list1.h: Likewise.
89581         * lib/gl_anyrbtree_list2.h: Likewise.
89582         * lib/gl_anytree_list1.h: Likewise.
89583         * lib/gl_anytree_list2.h: Likewise.
89584         * lib/gl_anytree_oset.h: Likewise.
89585         * lib/gl_anytreehash_list1.h: Likewise.
89586         * lib/gl_anytreehash_list2.h: Likewise.
89587         * lib/gl_array_list.c: Likewise.
89588         * lib/gl_array_list.h: Likewise.
89589         * lib/gl_array_oset.c: Likewise.
89590         * lib/gl_array_oset.h: Likewise.
89591         * lib/gl_avltree_list.c: Likewise.
89592         * lib/gl_avltree_list.h: Likewise.
89593         * lib/gl_avltree_oset.c: Likewise.
89594         * lib/gl_avltree_oset.h: Likewise.
89595         * lib/gl_avltreehash_list.c: Likewise.
89596         * lib/gl_avltreehash_list.h: Likewise.
89597         * lib/gl_carray_list.c: Likewise.
89598         * lib/gl_carray_list.h: Likewise.
89599         * lib/gl_linked_list.c: Likewise.
89600         * lib/gl_linked_list.h: Likewise.
89601         * lib/gl_linkedhash_list.c: Likewise.
89602         * lib/gl_linkedhash_list.h: Likewise.
89603         * lib/gl_list.c: Likewise.
89604         * lib/gl_list.h: Likewise.
89605         * lib/gl_oset.c: Likewise.
89606         * lib/gl_oset.h: Likewise.
89607         * lib/gl_rbtree_list.c: Likewise.
89608         * lib/gl_rbtree_list.h: Likewise.
89609         * lib/gl_rbtree_oset.c: Likewise.
89610         * lib/gl_rbtree_oset.h: Likewise.
89611         * lib/gl_rbtreehash_list.c: Likewise.
89612         * lib/gl_rbtreehash_list.h: Likewise.
89613         * lib/gl_sublist.c: Likewise.
89614         * lib/gl_sublist.h: Likewise.
89615         * lib/group-member.c: Likewise.
89616         * lib/group-member.h: Likewise.
89617         * lib/hard-locale.c: Likewise.
89618         * lib/hard-locale.h: Likewise.
89619         * lib/hash-pjw.c: Likewise.
89620         * lib/hash-pjw.h: Likewise.
89621         * lib/hash-triple.c: Likewise.
89622         * lib/hash.c: Likewise.
89623         * lib/hash.h: Likewise.
89624         * lib/human.c: Likewise.
89625         * lib/human.h: Likewise.
89626         * lib/i-ring.c: Likewise.
89627         * lib/i-ring.h: Likewise.
89628         * lib/idcache.c: Likewise.
89629         * lib/imaxabs.c: Likewise.
89630         * lib/imaxdiv.c: Likewise.
89631         * lib/inet_pton.c: Likewise.
89632         * lib/inet_pton.h: Likewise.
89633         * lib/intprops.h: Likewise.
89634         * lib/inttostr.c: Likewise.
89635         * lib/inttostr.h: Likewise.
89636         * lib/inttypes.in.h: Likewise.
89637         * lib/isapipe.c: Likewise.
89638         * lib/isdir.c: Likewise.
89639         * lib/isnan.c: Likewise.
89640         * lib/isnan.h: Likewise.
89641         * lib/isnanf.c: Likewise.
89642         * lib/isnanf.h: Likewise.
89643         * lib/isnanl-nolibm.h: Likewise.
89644         * lib/isnanl.c: Likewise.
89645         * lib/isnanl.h: Likewise.
89646         * lib/javacomp.c: Likewise.
89647         * lib/javacomp.h: Likewise.
89648         * lib/javaexec.c: Likewise.
89649         * lib/javaexec.h: Likewise.
89650         * lib/javaversion.c: Likewise.
89651         * lib/javaversion.h: Likewise.
89652         * lib/javaversion.java: Likewise.
89653         * lib/lbrkprop.h: Likewise.
89654         * lib/lchmod.h: Likewise.
89655         * lib/lchown.c: Likewise.
89656         * lib/ldexpl.c: Likewise.
89657         * lib/linebreak.c: Likewise.
89658         * lib/linebreak.h: Likewise.
89659         * lib/linebuffer.c: Likewise.
89660         * lib/linebuffer.h: Likewise.
89661         * lib/locale.in.h: Likewise.
89662         * lib/logl.c: Likewise.
89663         * lib/long-options.c: Likewise.
89664         * lib/long-options.h: Likewise.
89665         * lib/lstat.c: Likewise.
89666         * lib/lstat.h: Likewise.
89667         * lib/math.in.h: Likewise.
89668         * lib/mbchar.c: Likewise.
89669         * lib/mbchar.h: Likewise.
89670         * lib/mbfile.h: Likewise.
89671         * lib/mbiter.h: Likewise.
89672         * lib/mbscasecmp.c: Likewise.
89673         * lib/mbscasestr.c: Likewise.
89674         * lib/mbschr.c: Likewise.
89675         * lib/mbscspn.c: Likewise.
89676         * lib/mbslen.c: Likewise.
89677         * lib/mbsncasecmp.c: Likewise.
89678         * lib/mbsnlen.c: Likewise.
89679         * lib/mbspbrk.c: Likewise.
89680         * lib/mbspcasecmp.c: Likewise.
89681         * lib/mbsrchr.c: Likewise.
89682         * lib/mbssep.c: Likewise.
89683         * lib/mbsspn.c: Likewise.
89684         * lib/mbsstr.c: Likewise.
89685         * lib/mbstok_r.c: Likewise.
89686         * lib/mbswidth.c: Likewise.
89687         * lib/mbswidth.h: Likewise.
89688         * lib/mbuiter.h: Likewise.
89689         * lib/memcasecmp.c: Likewise.
89690         * lib/memcasecmp.h: Likewise.
89691         * lib/memchr.c: Likewise.
89692         * lib/memcmp.c: Likewise.
89693         * lib/memcoll.c: Likewise.
89694         * lib/memcoll.h: Likewise.
89695         * lib/memcpy.c: Likewise.
89696         * lib/memrchr.c: Likewise.
89697         * lib/mkancesdirs.c: Likewise.
89698         * lib/mkdir-p.c: Likewise.
89699         * lib/mkdir-p.h: Likewise.
89700         * lib/mkdir.c: Likewise.
89701         * lib/mkdirat.c: Likewise.
89702         * lib/mkdtemp.c: Likewise.
89703         * lib/mkstemp-safer.c: Likewise.
89704         * lib/mkstemp.c: Likewise.
89705         * lib/modechange.c: Likewise.
89706         * lib/modechange.h: Likewise.
89707         * lib/mountlist.c: Likewise.
89708         * lib/mountlist.h: Likewise.
89709         * lib/mpsort.c: Likewise.
89710         * lib/nanosleep.c: Likewise.
89711         * lib/obstack.c: Likewise.
89712         * lib/obstack.h: Likewise.
89713         * lib/open-safer.c: Likewise.
89714         * lib/open.c: Likewise.
89715         * lib/openat-die.c: Likewise.
89716         * lib/openat-priv.h: Likewise.
89717         * lib/openat-proc.c: Likewise.
89718         * lib/openat.c: Likewise.
89719         * lib/openat.h: Likewise.
89720         * lib/pagealign_alloc.c: Likewise.
89721         * lib/pagealign_alloc.h: Likewise.
89722         * lib/physmem.c: Likewise.
89723         * lib/physmem.h: Likewise.
89724         * lib/pipe-safer.c: Likewise.
89725         * lib/pipe.c: Likewise.
89726         * lib/pipe.h: Likewise.
89727         * lib/posixtm.c: Likewise.
89728         * lib/posixtm.h: Likewise.
89729         * lib/posixver.c: Likewise.
89730         * lib/printf-frexp.c: Likewise.
89731         * lib/printf-frexp.h: Likewise.
89732         * lib/printf-frexpl.c: Likewise.
89733         * lib/printf-frexpl.h: Likewise.
89734         * lib/printf.c: Likewise.
89735         * lib/progname.c: Likewise.
89736         * lib/progname.h: Likewise.
89737         * lib/progreloc.c: Likewise.
89738         * lib/putenv.c: Likewise.
89739         * lib/quote.c: Likewise.
89740         * lib/quote.h: Likewise.
89741         * lib/quotearg.c: Likewise.
89742         * lib/quotearg.h: Likewise.
89743         * lib/raise.c: Likewise.
89744         * lib/readline.c: Likewise.
89745         * lib/readline.h: Likewise.
89746         * lib/readlink.c: Likewise.
89747         * lib/readtokens.c: Likewise.
89748         * lib/readtokens.h: Likewise.
89749         * lib/readtokens0.c: Likewise.
89750         * lib/readtokens0.h: Likewise.
89751         * lib/readutmp.c: Likewise.
89752         * lib/readutmp.h: Likewise.
89753         * lib/realloc.c: Likewise.
89754         * lib/relocwrapper.c: Likewise.
89755         * lib/rename-dest-slash.c: Likewise.
89756         * lib/rename.c: Likewise.
89757         * lib/rmdir.c: Likewise.
89758         * lib/rpmatch.c: Likewise.
89759         * lib/safe-read.c: Likewise.
89760         * lib/safe-read.h: Likewise.
89761         * lib/safe-write.c: Likewise.
89762         * lib/safe-write.h: Likewise.
89763         * lib/same-inode.h: Likewise.
89764         * lib/same.c: Likewise.
89765         * lib/same.h: Likewise.
89766         * lib/save-cwd.c: Likewise.
89767         * lib/save-cwd.h: Likewise.
89768         * lib/savedir.c: Likewise.
89769         * lib/savedir.h: Likewise.
89770         * lib/savewd.c: Likewise.
89771         * lib/savewd.h: Likewise.
89772         * lib/search.in.h: Likewise.
89773         * lib/setenv.c: Likewise.
89774         * lib/setenv.h: Likewise.
89775         * lib/settime.c: Likewise.
89776         * lib/sh-quote.c: Likewise.
89777         * lib/sh-quote.h: Likewise.
89778         * lib/sig2str.c: Likewise.
89779         * lib/sig2str.h: Likewise.
89780         * lib/signal.in.h: Likewise.
89781         * lib/signbitd.c: Likewise.
89782         * lib/signbitf.c: Likewise.
89783         * lib/signbitl.c: Likewise.
89784         * lib/sigprocmask.c: Likewise.
89785         * lib/sincosl.c: Likewise.
89786         * lib/sleep.c: Likewise.
89787         * lib/sprintf.c: Likewise.
89788         * lib/sqrtl.c: Likewise.
89789         * lib/stat-time.h: Likewise.
89790         * lib/stdio--.h: Likewise.
89791         * lib/stdio-safer.h: Likewise.
89792         * lib/stdlib--.h: Likewise.
89793         * lib/stdlib-safer.h: Likewise.
89794         * lib/stdlib.in.h: Likewise.
89795         * lib/stpcpy.c: Likewise.
89796         * lib/stpncpy.c: Likewise.
89797         * lib/strchrnul.c: Likewise.
89798         * lib/strcspn.c: Likewise.
89799         * lib/strerror.c: Likewise.
89800         * lib/strftime.c: Likewise.
89801         * lib/strftime.h: Likewise.
89802         * lib/striconveh.c: Likewise.
89803         * lib/striconveh.h: Likewise.
89804         * lib/striconveha.c: Likewise.
89805         * lib/striconveha.h: Likewise.
89806         * lib/stripslash.c: Likewise.
89807         * lib/strnlen1.c: Likewise.
89808         * lib/strnlen1.h: Likewise.
89809         * lib/strtod.c: Likewise.
89810         * lib/strtoimax.c: Likewise.
89811         * lib/strtok_r.c: Likewise.
89812         * lib/strtol.c: Likewise.
89813         * lib/strtoll.c: Likewise.
89814         * lib/strtoul.c: Likewise.
89815         * lib/strtoull.c: Likewise.
89816         * lib/sysexits.in.h: Likewise.
89817         * lib/tempname.c: Likewise.
89818         * lib/tempname.h: Likewise.
89819         * lib/timespec.h: Likewise.
89820         * lib/tls.c: Likewise.
89821         * lib/tls.h: Likewise.
89822         * lib/tmpdir.c: Likewise.
89823         * lib/tmpdir.h: Likewise.
89824         * lib/tmpfile-safer.c: Likewise.
89825         * lib/tmpfile.c: Likewise.
89826         * lib/trigl.c: Likewise.
89827         * lib/trigl.h: Likewise.
89828         * lib/trim.c: Likewise.
89829         * lib/trim.h: Likewise.
89830         * lib/trunc.c: Likewise.
89831         * lib/truncf.c: Likewise.
89832         * lib/truncl.c: Likewise.
89833         * lib/tsearch.c: Likewise.
89834         * lib/unicodeio.c: Likewise.
89835         * lib/unicodeio.h: Likewise.
89836         * lib/unistd--.h: Likewise.
89837         * lib/unistd-safer.h: Likewise.
89838         * lib/unistdio/ulc-fprintf.c: Likewise.
89839         * lib/unistdio/ulc-vfprintf.c: Likewise.
89840         * lib/unlinkdir.c: Likewise.
89841         * lib/unlinkdir.h: Likewise.
89842         * lib/unlocked-io.h: Likewise.
89843         * lib/unsetenv.c: Likewise.
89844         * lib/userspec.c: Likewise.
89845         * lib/utime.c: Likewise.
89846         * lib/utimecmp.c: Likewise.
89847         * lib/utimecmp.h: Likewise.
89848         * lib/utimens.c: Likewise.
89849         * lib/verify.h: Likewise.
89850         * lib/verror.c: Likewise.
89851         * lib/verror.h: Likewise.
89852         * lib/version-etc-fsf.c: Likewise.
89853         * lib/version-etc.c: Likewise.
89854         * lib/version-etc.h: Likewise.
89855         * lib/vfprintf.c: Likewise.
89856         * lib/vprintf.c: Likewise.
89857         * lib/vsprintf.c: Likewise.
89858         * lib/w32spawn.h: Likewise.
89859         * lib/wait-process.c: Likewise.
89860         * lib/wait-process.h: Likewise.
89861         * lib/wcwidth.c: Likewise.
89862         * lib/write-any-file.c: Likewise.
89863         * lib/xalloc-die.c: Likewise.
89864         * lib/xalloc.h: Likewise.
89865         * lib/xasprintf.c: Likewise.
89866         * lib/xgetcwd.c: Likewise.
89867         * lib/xgetcwd.h: Likewise.
89868         * lib/xgetdomainname.c: Likewise.
89869         * lib/xgetdomainname.h: Likewise.
89870         * lib/xgethostname.c: Likewise.
89871         * lib/xmalloc.c: Likewise.
89872         * lib/xmalloca.c: Likewise.
89873         * lib/xmalloca.h: Likewise.
89874         * lib/xmemcoll.c: Likewise.
89875         * lib/xnanosleep.c: Likewise.
89876         * lib/xreadlink.c: Likewise.
89877         * lib/xreadlink.h: Likewise.
89878         * lib/xsetenv.c: Likewise.
89879         * lib/xsetenv.h: Likewise.
89880         * lib/xstriconv.c: Likewise.
89881         * lib/xstriconv.h: Likewise.
89882         * lib/xstrndup.c: Likewise.
89883         * lib/xstrndup.h: Likewise.
89884         * lib/xstrtod.c: Likewise.
89885         * lib/xstrtod.h: Likewise.
89886         * lib/xstrtol-error.c: Likewise.
89887         * lib/xstrtol.c: Likewise.
89888         * lib/xstrtol.h: Likewise.
89889         * lib/xtime.h: Likewise.
89890         * lib/xvasprintf.c: Likewise.
89891         * lib/xvasprintf.h: Likewise.
89892         * lib/yesno.c: Likewise.
89893         * lib/yesno.h: Likewise.
89894         * posix-modules: Likewise.
89895         * tests/test-alloca-opt.c: Likewise.
89896         * tests/test-arcfour.c: Likewise.
89897         * tests/test-arctwo.c: Likewise.
89898         * tests/test-argmatch.c: Likewise.
89899         * tests/test-argp-2.sh: Likewise.
89900         * tests/test-argp.c: Likewise.
89901         * tests/test-arpa_inet.c: Likewise.
89902         * tests/test-array_list.c: Likewise.
89903         * tests/test-array_oset.c: Likewise.
89904         * tests/test-atexit.c: Likewise.
89905         * tests/test-avltree_list.c: Likewise.
89906         * tests/test-avltree_oset.c: Likewise.
89907         * tests/test-avltreehash_list.c: Likewise.
89908         * tests/test-base64.c: Likewise.
89909         * tests/test-binary-io.c: Likewise.
89910         * tests/test-byteswap.c: Likewise.
89911         * tests/test-c-ctype.c: Likewise.
89912         * tests/test-c-strcasecmp.c: Likewise.
89913         * tests/test-c-strcasestr.c: Likewise.
89914         * tests/test-c-strncasecmp.c: Likewise.
89915         * tests/test-c-strstr.c: Likewise.
89916         * tests/test-canonicalize-lgpl.c: Likewise.
89917         * tests/test-canonicalize.c: Likewise.
89918         * tests/test-carray_list.c: Likewise.
89919         * tests/test-ceilf.c: Likewise.
89920         * tests/test-ceill.c: Likewise.
89921         * tests/test-count-one-bits.c: Likewise.
89922         * tests/test-crc.c: Likewise.
89923         * tests/test-dirname.c: Likewise.
89924         * tests/test-fbufmode.c: Likewise.
89925         * tests/test-fcntl.c: Likewise.
89926         * tests/test-fflush.c: Likewise.
89927         * tests/test-floorf.c: Likewise.
89928         * tests/test-floorl.c: Likewise.
89929         * tests/test-fopen.c: Likewise.
89930         * tests/test-fprintf-posix.c: Likewise.
89931         * tests/test-fprintf-posix.h: Likewise.
89932         * tests/test-fpurge.c: Likewise.
89933         * tests/test-freadable.c: Likewise.
89934         * tests/test-freadahead.c: Likewise.
89935         * tests/test-freading.c: Likewise.
89936         * tests/test-freopen.c: Likewise.
89937         * tests/test-frexp.c: Likewise.
89938         * tests/test-frexpl.c: Likewise.
89939         * tests/test-fseek.c: Likewise.
89940         * tests/test-fseeko.c: Likewise.
89941         * tests/test-fseterr.c: Likewise.
89942         * tests/test-fstrcmp.c: Likewise.
89943         * tests/test-ftell.c: Likewise.
89944         * tests/test-ftello.c: Likewise.
89945         * tests/test-fwritable.c: Likewise.
89946         * tests/test-fwriting.c: Likewise.
89947         * tests/test-getaddrinfo.c: Likewise.
89948         * tests/test-getpass.c: Likewise.
89949         * tests/test-gettimeofday.c: Likewise.
89950         * tests/test-hmac-md5.c: Likewise.
89951         * tests/test-hmac-sha1.c: Likewise.
89952         * tests/test-iconv.c: Likewise.
89953         * tests/test-iconvme.c: Likewise.
89954         * tests/test-inttypes.c: Likewise.
89955         * tests/test-isnan.c: Likewise.
89956         * tests/test-isnanf.c: Likewise.
89957         * tests/test-isnanl-nolibm.c: Likewise.
89958         * tests/test-isnanl.c: Likewise.
89959         * tests/test-isnanl.h: Likewise.
89960         * tests/test-ldexpl.c: Likewise.
89961         * tests/test-linked_list.c: Likewise.
89962         * tests/test-linkedhash_list.c: Likewise.
89963         * tests/test-locale.c: Likewise.
89964         * tests/test-localename.c: Likewise.
89965         * tests/test-lock.c: Likewise.
89966         * tests/test-lseek.c: Likewise.
89967         * tests/test-malloca.c: Likewise.
89968         * tests/test-math.c: Likewise.
89969         * tests/test-mbscasecmp.c: Likewise.
89970         * tests/test-mbscasestr1.c: Likewise.
89971         * tests/test-mbscasestr2.c: Likewise.
89972         * tests/test-mbscasestr3.c: Likewise.
89973         * tests/test-mbscasestr4.c: Likewise.
89974         * tests/test-mbschr.c: Likewise.
89975         * tests/test-mbscspn.c: Likewise.
89976         * tests/test-mbsncasecmp.c: Likewise.
89977         * tests/test-mbspbrk.c: Likewise.
89978         * tests/test-mbspcasecmp.c: Likewise.
89979         * tests/test-mbsrchr.c: Likewise.
89980         * tests/test-mbsspn.c: Likewise.
89981         * tests/test-mbsstr1.c: Likewise.
89982         * tests/test-mbsstr2.c: Likewise.
89983         * tests/test-mbsstr3.c: Likewise.
89984         * tests/test-md5.c: Likewise.
89985         * tests/test-memmem.c: Likewise.
89986         * tests/test-netinet_in.c: Likewise.
89987         * tests/test-open.c: Likewise.
89988         * tests/test-printf-frexp.c: Likewise.
89989         * tests/test-printf-frexpl.c: Likewise.
89990         * tests/test-printf-posix.c: Likewise.
89991         * tests/test-printf-posix.h: Likewise.
89992         * tests/test-rbtree_list.c: Likewise.
89993         * tests/test-rbtree_oset.c: Likewise.
89994         * tests/test-rbtreehash_list.c: Likewise.
89995         * tests/test-read-file.c: Likewise.
89996         * tests/test-rijndael.c: Likewise.
89997         * tests/test-search.c: Likewise.
89998         * tests/test-signbit.c: Likewise.
89999         * tests/test-sleep.c: Likewise.
90000         * tests/test-snprintf-posix.c: Likewise.
90001         * tests/test-snprintf-posix.h: Likewise.
90002         * tests/test-snprintf.c: Likewise.
90003         * tests/test-sprintf-posix.c: Likewise.
90004         * tests/test-sprintf-posix.h: Likewise.
90005         * tests/test-stat-time.c: Likewise.
90006         * tests/test-stdbool.c: Likewise.
90007         * tests/test-stdint.c: Likewise.
90008         * tests/test-stdio.c: Likewise.
90009         * tests/test-stdlib.c: Likewise.
90010         * tests/test-stpncpy.c: Likewise.
90011         * tests/test-strcasestr.c: Likewise.
90012         * tests/test-striconv.c: Likewise.
90013         * tests/test-striconveh.c: Likewise.
90014         * tests/test-striconveha.c: Likewise.
90015         * tests/test-string.c: Likewise.
90016         * tests/test-sys_select.c: Likewise.
90017         * tests/test-sys_socket.c: Likewise.
90018         * tests/test-sys_stat.c: Likewise.
90019         * tests/test-sys_time.c: Likewise.
90020         * tests/test-sysexits.c: Likewise.
90021         * tests/test-time.c: Likewise.
90022         * tests/test-tls.c: Likewise.
90023         * tests/test-trunc.c: Likewise.
90024         * tests/test-truncf.c: Likewise.
90025         * tests/test-truncl.c: Likewise.
90026         * tests/test-unistd.c: Likewise.
90027         * tests/test-vasnprintf-posix.c: Likewise.
90028         * tests/test-vasnprintf-posix2.c: Likewise.
90029         * tests/test-vasnprintf.c: Likewise.
90030         * tests/test-vasprintf-posix.c: Likewise.
90031         * tests/test-vasprintf.c: Likewise.
90032         * tests/test-verify.c: Likewise.
90033         * tests/test-vfprintf-posix.c: Likewise.
90034         * tests/test-vprintf-posix.c: Likewise.
90035         * tests/test-vsnprintf-posix.c: Likewise.
90036         * tests/test-vsnprintf.c: Likewise.
90037         * tests/test-vsprintf-posix.c: Likewise.
90038         * tests/test-wchar.c: Likewise.
90039         * tests/test-wctype.c: Likewise.
90040         * tests/test-wcwidth.c: Likewise.
90041         * tests/test-xstrtol.c: Likewise.
90042         * tests/test-xvasprintf.c: Likewise.
90043         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
90044         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
90045         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
90046         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
90047         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
90048         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
90049         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
90050         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
90051         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
90052         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
90053         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
90054         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
90055         * tests/uniname/test-uninames.c: Likewise.
90056         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
90057         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
90058         * tests/unistdio/test-u16-printf1.h: Likewise.
90059         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
90060         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
90061         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
90062         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
90063         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
90064         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
90065         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
90066         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
90067         * tests/unistdio/test-u32-printf1.h: Likewise.
90068         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
90069         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
90070         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
90071         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
90072         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
90073         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
90074         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
90075         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
90076         * tests/unistdio/test-u8-printf1.h: Likewise.
90077         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
90078         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
90079         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
90080         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
90081         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
90082         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
90083         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
90084         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
90085         * tests/unistdio/test-ulc-printf1.h: Likewise.
90086         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
90087         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
90088         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
90089         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
90090         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
90091         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
90092         * tests/uniwidth/test-u16-strwidth.c: Likewise.
90093         * tests/uniwidth/test-u16-width.c: Likewise.
90094         * tests/uniwidth/test-u32-strwidth.c: Likewise.
90095         * tests/uniwidth/test-u32-width.c: Likewise.
90096         * tests/uniwidth/test-u8-strwidth.c: Likewise.
90097         * tests/uniwidth/test-u8-width.c: Likewise.
90098         * tests/uniwidth/test-uc_width.c: Likewise.
90099         * config/srclist-update: Likewise.
90100         (fixlicense): Update to GPLv3+.
90102         Change copyright notice from LGPLv2.1+ to LGPLv3+.
90103         * tests/test-tsearch.c: Change copyright notice.
90105         Change copyright notice from LGPLv2.0+ to LGPLv3+.
90106         * lib/c-strcaseeq.h: Change copyright notice.
90107         * lib/streq.h: Likewise.
90108         * lib/uniconv.h: Likewise.
90109         * lib/uniconv/u-conv-from-enc.h: Likewise.
90110         * lib/uniconv/u-conv-to-enc.h: Likewise.
90111         * lib/uniconv/u-strconv-from-enc.h: Likewise.
90112         * lib/uniconv/u-strconv-to-enc.h: Likewise.
90113         * lib/uniconv/u16-conv-from-enc.c: Likewise.
90114         * lib/uniconv/u16-conv-to-enc.c: Likewise.
90115         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
90116         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
90117         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
90118         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
90119         * lib/uniconv/u32-conv-from-enc.c: Likewise.
90120         * lib/uniconv/u32-conv-to-enc.c: Likewise.
90121         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
90122         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
90123         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
90124         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
90125         * lib/uniconv/u8-conv-from-enc.c: Likewise.
90126         * lib/uniconv/u8-conv-to-enc.c: Likewise.
90127         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
90128         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
90129         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
90130         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
90131         * lib/uniname.h: Likewise.
90132         * lib/uniname/uniname.c: Likewise.
90133         * lib/unistdio.h: Likewise.
90134         * lib/unistdio/u-asnprintf.h: Likewise.
90135         * lib/unistdio/u-asprintf.h: Likewise.
90136         * lib/unistdio/u-printf-args.c: Likewise.
90137         * lib/unistdio/u-printf-args.h: Likewise.
90138         * lib/unistdio/u-printf-parse.h: Likewise.
90139         * lib/unistdio/u-snprintf.h: Likewise.
90140         * lib/unistdio/u-sprintf.h: Likewise.
90141         * lib/unistdio/u-vasprintf.h: Likewise.
90142         * lib/unistdio/u-vsnprintf.h: Likewise.
90143         * lib/unistdio/u-vsprintf.h: Likewise.
90144         * lib/unistdio/u16-asnprintf.c: Likewise.
90145         * lib/unistdio/u16-asprintf.c: Likewise.
90146         * lib/unistdio/u16-printf-parse.c: Likewise.
90147         * lib/unistdio/u16-snprintf.c: Likewise.
90148         * lib/unistdio/u16-sprintf.c: Likewise.
90149         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
90150         * lib/unistdio/u16-u16-asprintf.c: Likewise.
90151         * lib/unistdio/u16-u16-snprintf.c: Likewise.
90152         * lib/unistdio/u16-u16-sprintf.c: Likewise.
90153         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
90154         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
90155         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
90156         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
90157         * lib/unistdio/u16-vasnprintf.c: Likewise.
90158         * lib/unistdio/u16-vasprintf.c: Likewise.
90159         * lib/unistdio/u16-vsnprintf.c: Likewise.
90160         * lib/unistdio/u16-vsprintf.c: Likewise.
90161         * lib/unistdio/u32-asnprintf.c: Likewise.
90162         * lib/unistdio/u32-asprintf.c: Likewise.
90163         * lib/unistdio/u32-printf-parse.c: Likewise.
90164         * lib/unistdio/u32-snprintf.c: Likewise.
90165         * lib/unistdio/u32-sprintf.c: Likewise.
90166         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
90167         * lib/unistdio/u32-u32-asprintf.c: Likewise.
90168         * lib/unistdio/u32-u32-snprintf.c: Likewise.
90169         * lib/unistdio/u32-u32-sprintf.c: Likewise.
90170         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
90171         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
90172         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
90173         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
90174         * lib/unistdio/u32-vasnprintf.c: Likewise.
90175         * lib/unistdio/u32-vasprintf.c: Likewise.
90176         * lib/unistdio/u32-vsnprintf.c: Likewise.
90177         * lib/unistdio/u32-vsprintf.c: Likewise.
90178         * lib/unistdio/u8-asnprintf.c: Likewise.
90179         * lib/unistdio/u8-asprintf.c: Likewise.
90180         * lib/unistdio/u8-printf-parse.c: Likewise.
90181         * lib/unistdio/u8-snprintf.c: Likewise.
90182         * lib/unistdio/u8-sprintf.c: Likewise.
90183         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
90184         * lib/unistdio/u8-u8-asprintf.c: Likewise.
90185         * lib/unistdio/u8-u8-snprintf.c: Likewise.
90186         * lib/unistdio/u8-u8-sprintf.c: Likewise.
90187         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
90188         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
90189         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
90190         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
90191         * lib/unistdio/u8-vasnprintf.c: Likewise.
90192         * lib/unistdio/u8-vasprintf.c: Likewise.
90193         * lib/unistdio/u8-vsnprintf.c: Likewise.
90194         * lib/unistdio/u8-vsprintf.c: Likewise.
90195         * lib/unistdio/ulc-asnprintf.c: Likewise.
90196         * lib/unistdio/ulc-asprintf.c: Likewise.
90197         * lib/unistdio/ulc-printf-parse.c: Likewise.
90198         * lib/unistdio/ulc-snprintf.c: Likewise.
90199         * lib/unistdio/ulc-sprintf.c: Likewise.
90200         * lib/unistdio/ulc-vasnprintf.c: Likewise.
90201         * lib/unistdio/ulc-vasprintf.c: Likewise.
90202         * lib/unistdio/ulc-vsnprintf.c: Likewise.
90203         * lib/unistdio/ulc-vsprintf.c: Likewise.
90204         * lib/unistr.h: Likewise.
90205         * lib/unistr/u-cpy-alloc.h: Likewise.
90206         * lib/unistr/u-cpy.h: Likewise.
90207         * lib/unistr/u-endswith.h: Likewise.
90208         * lib/unistr/u-move.h: Likewise.
90209         * lib/unistr/u-set.h: Likewise.
90210         * lib/unistr/u-startswith.h: Likewise.
90211         * lib/unistr/u-stpcpy.h: Likewise.
90212         * lib/unistr/u-stpncpy.h: Likewise.
90213         * lib/unistr/u-strcat.h: Likewise.
90214         * lib/unistr/u-strcpy.h: Likewise.
90215         * lib/unistr/u-strcspn.h: Likewise.
90216         * lib/unistr/u-strdup.h: Likewise.
90217         * lib/unistr/u-strlen.h: Likewise.
90218         * lib/unistr/u-strncat.h: Likewise.
90219         * lib/unistr/u-strncpy.h: Likewise.
90220         * lib/unistr/u-strnlen.h: Likewise.
90221         * lib/unistr/u-strpbrk.h: Likewise.
90222         * lib/unistr/u-strspn.h: Likewise.
90223         * lib/unistr/u-strstr.h: Likewise.
90224         * lib/unistr/u-strtok.h: Likewise.
90225         * lib/unistr/u16-check.c: Likewise.
90226         * lib/unistr/u16-chr.c: Likewise.
90227         * lib/unistr/u16-cmp.c: Likewise.
90228         * lib/unistr/u16-cpy-alloc.c: Likewise.
90229         * lib/unistr/u16-cpy.c: Likewise.
90230         * lib/unistr/u16-endswith.c: Likewise.
90231         * lib/unistr/u16-mblen.c: Likewise.
90232         * lib/unistr/u16-mbsnlen.c: Likewise.
90233         * lib/unistr/u16-mbtouc-aux.c: Likewise.
90234         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
90235         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
90236         * lib/unistr/u16-mbtouc.c: Likewise.
90237         * lib/unistr/u16-mbtoucr.c: Likewise.
90238         * lib/unistr/u16-move.c: Likewise.
90239         * lib/unistr/u16-next.c: Likewise.
90240         * lib/unistr/u16-prev.c: Likewise.
90241         * lib/unistr/u16-set.c: Likewise.
90242         * lib/unistr/u16-startswith.c: Likewise.
90243         * lib/unistr/u16-stpcpy.c: Likewise.
90244         * lib/unistr/u16-stpncpy.c: Likewise.
90245         * lib/unistr/u16-strcat.c: Likewise.
90246         * lib/unistr/u16-strchr.c: Likewise.
90247         * lib/unistr/u16-strcmp.c: Likewise.
90248         * lib/unistr/u16-strcpy.c: Likewise.
90249         * lib/unistr/u16-strcspn.c: Likewise.
90250         * lib/unistr/u16-strdup.c: Likewise.
90251         * lib/unistr/u16-strlen.c: Likewise.
90252         * lib/unistr/u16-strmblen.c: Likewise.
90253         * lib/unistr/u16-strmbtouc.c: Likewise.
90254         * lib/unistr/u16-strncat.c: Likewise.
90255         * lib/unistr/u16-strncmp.c: Likewise.
90256         * lib/unistr/u16-strncpy.c: Likewise.
90257         * lib/unistr/u16-strnlen.c: Likewise.
90258         * lib/unistr/u16-strpbrk.c: Likewise.
90259         * lib/unistr/u16-strrchr.c: Likewise.
90260         * lib/unistr/u16-strspn.c: Likewise.
90261         * lib/unistr/u16-strstr.c: Likewise.
90262         * lib/unistr/u16-strtok.c: Likewise.
90263         * lib/unistr/u16-to-u32.c: Likewise.
90264         * lib/unistr/u16-to-u8.c: Likewise.
90265         * lib/unistr/u16-uctomb-aux.c: Likewise.
90266         * lib/unistr/u16-uctomb.c: Likewise.
90267         * lib/unistr/u32-check.c: Likewise.
90268         * lib/unistr/u32-chr.c: Likewise.
90269         * lib/unistr/u32-cmp.c: Likewise.
90270         * lib/unistr/u32-cpy-alloc.c: Likewise.
90271         * lib/unistr/u32-cpy.c: Likewise.
90272         * lib/unistr/u32-endswith.c: Likewise.
90273         * lib/unistr/u32-mblen.c: Likewise.
90274         * lib/unistr/u32-mbsnlen.c: Likewise.
90275         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
90276         * lib/unistr/u32-mbtouc.c: Likewise.
90277         * lib/unistr/u32-mbtoucr.c: Likewise.
90278         * lib/unistr/u32-move.c: Likewise.
90279         * lib/unistr/u32-next.c: Likewise.
90280         * lib/unistr/u32-prev.c: Likewise.
90281         * lib/unistr/u32-set.c: Likewise.
90282         * lib/unistr/u32-startswith.c: Likewise.
90283         * lib/unistr/u32-stpcpy.c: Likewise.
90284         * lib/unistr/u32-stpncpy.c: Likewise.
90285         * lib/unistr/u32-strcat.c: Likewise.
90286         * lib/unistr/u32-strchr.c: Likewise.
90287         * lib/unistr/u32-strcmp.c: Likewise.
90288         * lib/unistr/u32-strcpy.c: Likewise.
90289         * lib/unistr/u32-strcspn.c: Likewise.
90290         * lib/unistr/u32-strdup.c: Likewise.
90291         * lib/unistr/u32-strlen.c: Likewise.
90292         * lib/unistr/u32-strmblen.c: Likewise.
90293         * lib/unistr/u32-strmbtouc.c: Likewise.
90294         * lib/unistr/u32-strncat.c: Likewise.
90295         * lib/unistr/u32-strncmp.c: Likewise.
90296         * lib/unistr/u32-strncpy.c: Likewise.
90297         * lib/unistr/u32-strnlen.c: Likewise.
90298         * lib/unistr/u32-strpbrk.c: Likewise.
90299         * lib/unistr/u32-strrchr.c: Likewise.
90300         * lib/unistr/u32-strspn.c: Likewise.
90301         * lib/unistr/u32-strstr.c: Likewise.
90302         * lib/unistr/u32-strtok.c: Likewise.
90303         * lib/unistr/u32-to-u16.c: Likewise.
90304         * lib/unistr/u32-to-u8.c: Likewise.
90305         * lib/unistr/u32-uctomb.c: Likewise.
90306         * lib/unistr/u8-check.c: Likewise.
90307         * lib/unistr/u8-chr.c: Likewise.
90308         * lib/unistr/u8-cmp.c: Likewise.
90309         * lib/unistr/u8-cpy-alloc.c: Likewise.
90310         * lib/unistr/u8-cpy.c: Likewise.
90311         * lib/unistr/u8-endswith.c: Likewise.
90312         * lib/unistr/u8-mblen.c: Likewise.
90313         * lib/unistr/u8-mbsnlen.c: Likewise.
90314         * lib/unistr/u8-mbtouc-aux.c: Likewise.
90315         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
90316         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
90317         * lib/unistr/u8-mbtouc.c: Likewise.
90318         * lib/unistr/u8-mbtoucr.c: Likewise.
90319         * lib/unistr/u8-move.c: Likewise.
90320         * lib/unistr/u8-next.c: Likewise.
90321         * lib/unistr/u8-prev.c: Likewise.
90322         * lib/unistr/u8-set.c: Likewise.
90323         * lib/unistr/u8-startswith.c: Likewise.
90324         * lib/unistr/u8-stpcpy.c: Likewise.
90325         * lib/unistr/u8-stpncpy.c: Likewise.
90326         * lib/unistr/u8-strcat.c: Likewise.
90327         * lib/unistr/u8-strchr.c: Likewise.
90328         * lib/unistr/u8-strcmp.c: Likewise.
90329         * lib/unistr/u8-strcpy.c: Likewise.
90330         * lib/unistr/u8-strcspn.c: Likewise.
90331         * lib/unistr/u8-strdup.c: Likewise.
90332         * lib/unistr/u8-strlen.c: Likewise.
90333         * lib/unistr/u8-strmblen.c: Likewise.
90334         * lib/unistr/u8-strmbtouc.c: Likewise.
90335         * lib/unistr/u8-strncat.c: Likewise.
90336         * lib/unistr/u8-strncmp.c: Likewise.
90337         * lib/unistr/u8-strncpy.c: Likewise.
90338         * lib/unistr/u8-strnlen.c: Likewise.
90339         * lib/unistr/u8-strpbrk.c: Likewise.
90340         * lib/unistr/u8-strrchr.c: Likewise.
90341         * lib/unistr/u8-strspn.c: Likewise.
90342         * lib/unistr/u8-strstr.c: Likewise.
90343         * lib/unistr/u8-strtok.c: Likewise.
90344         * lib/unistr/u8-to-u16.c: Likewise.
90345         * lib/unistr/u8-to-u32.c: Likewise.
90346         * lib/unistr/u8-uctomb-aux.c: Likewise.
90347         * lib/unistr/u8-uctomb.c: Likewise.
90348         * lib/unitypes.h: Likewise.
90349         * lib/uniwidth.h: Likewise.
90350         * lib/uniwidth/cjk.h: Likewise.
90351         * lib/uniwidth/u16-strwidth.c: Likewise.
90352         * lib/uniwidth/u16-width.c: Likewise.
90353         * lib/uniwidth/u32-strwidth.c: Likewise.
90354         * lib/uniwidth/u32-width.c: Likewise.
90355         * lib/uniwidth/u8-strwidth.c: Likewise.
90356         * lib/uniwidth/u8-width.c: Likewise.
90357         * lib/uniwidth/width.c: Likewise.
90359 2007-10-07  Bruno Haible  <bruno@clisp.org>
90361         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
90362         The file is still under LGPL (see modules/inttypes).
90364 2007-10-06  Bruno Haible  <bruno@clisp.org>
90366         * modules/trunc (Dependencies): Add 'extensions'.
90367         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
90368         Reported by Ben Pfaff <blp@gnu.org>.
90370 2007-10-06  Bruno Haible  <bruno@clisp.org>
90372         * modules/freopen-tests: New file.
90373         * tests/test-freopen.c: New file.
90375         * modules/fopen-tests: New file.
90376         * tests/test-fopen.c: New file.
90378         * modules/fopen: New file.
90379         * lib/fopen.c: New file.
90380         * m4/fopen.m4: New file.
90381         * modules/freopen: New file.
90382         * lib/freopen.c: New file.
90383         * m4/freopen.m4: New file.
90384         * lib/stdio.in.h (fopen, freopen): New declarations.
90385         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
90386         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
90387         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
90388         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
90389         * doc/functions/fopen.texi: Mention the 'fopen' module.
90390         * doc/functions/freopen.texi: Mention the 'freopen' module.
90392 2007-10-06  Bruno Haible  <bruno@clisp.org>
90394         * modules/open-tests: New file.
90395         * tests/test-open.c: New file.
90397         * modules/open: New file.
90398         * lib/open.c: New file.
90399         * m4/open.m4: New file.
90400         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
90401         lib/open.c does.
90402         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
90403         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
90404         macros.
90405         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
90406         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
90407         REPLACE_OPEN.
90408         * doc/functions/open.texi: Mention the 'open' module.
90410 2007-10-04  Bruno Haible  <bruno@clisp.org>
90412         * modules/ceill-tests: New file.
90413         * tests/test-ceill.c: New file.
90415         * modules/ceill: New file.
90416         * lib/ceill.c: Replace entire file.
90417         * m4/ceill.m4: New file.
90418         * lib/math.in.h (ceill): Replace declaration.
90419         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
90420         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
90421         * doc/functions/ceill.texi: Mention the 'ceill' module.
90422         * modules/mathl (Files): Remove lib/ceill.c.
90423         (Depends-on): Add ceill.
90425 2007-10-04  Bruno Haible  <bruno@clisp.org>
90427         * modules/ceilf-tests: New file.
90428         * tests/test-ceilf.c: New file.
90430         * modules/ceilf: New file.
90431         * lib/ceil.c: New file.
90432         * lib/ceilf.c: New file.
90433         * m4/ceilf.m4: New file.
90434         * lib/math.in.h (ceilf): New declaration.
90435         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
90436         HAVE_DECL_CEILF.
90437         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
90438         HAVE_DECL_CEILF.
90439         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
90441 2007-10-04  Bruno Haible  <bruno@clisp.org>
90443         * modules/floorl-tests: New file.
90444         * tests/test-floorl.c: New file.
90446         * modules/floorl: New file.
90447         * lib/floorl.c: Replace entire file.
90448         * m4/floorl.m4: New file.
90449         * lib/math.in.h (floorl): Replace declaration.
90450         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
90451         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
90452         * doc/functions/floorl.texi: Mention the 'floorl' module.
90453         * modules/mathl (Files): Remove lib/floorl.c.
90454         (Depends-on): Add floorl.
90456 2007-10-04  Bruno Haible  <bruno@clisp.org>
90458         * modules/floorf-tests: New file.
90459         * tests/test-floorf.c: New file.
90461         * modules/floorf: New file.
90462         * lib/floor.c: New file.
90463         * lib/floorf.c: New file.
90464         * m4/floorf.m4: New file.
90465         * lib/math.in.h (floorf): New declaration.
90466         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
90467         HAVE_DECL_FLOORF.
90468         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
90469         HAVE_DECL_FLOORF.
90470         * doc/functions/floorf.texi: Mention the 'floorf' module.
90472 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
90473             Bruno Haible  <bruno@clisp.org>
90475         Advertise for the Git server instead of the CVS server.
90476         * doc/gnulib-intro.texi (Steady Development): Mention the Git
90477         repository instead of the CVS one.
90478         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
90479         about all VCS systems generically.
90480         * doc/gnulib.texi (Introduction): Capitalize `Git'.
90482 2007-10-04  Bruno Haible  <bruno@clisp.org>
90484         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
90485         means.
90486         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
90488 2007-10-04  Bruno Haible  <bruno@clisp.org>
90490         * modules/truncl-tests: New file.
90491         * tests/test-truncl.c: New file.
90493         * modules/truncl: New file.
90494         * lib/truncl.c: New file.
90495         * m4/truncl.m4: New file.
90496         * lib/math.in.h (truncl): New declaration.
90497         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
90498         HAVE_DECL_TRUNCL.
90499         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
90500         HAVE_DECL_TRUNCL.
90501         * doc/functions/truncl.texi: Mention the 'truncl' module.
90503 2007-10-04  Bruno Haible  <bruno@clisp.org>
90505         * modules/truncf-tests: New file.
90506         * tests/test-truncf.c: New file.
90508         * modules/truncf: New file.
90509         * lib/trunc.c: Make paramerizable through USE_* macros.
90510         * lib/truncf.c: New file.
90511         * m4/truncf.m4: New file.
90512         * lib/math.in.h (truncf): New declaration.
90513         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
90514         HAVE_DECL_TRUNCF.
90515         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
90516         HAVE_DECL_TRUNCF.
90517         * doc/functions/truncf.texi: Mention the 'truncf' module.
90519 2007-10-03  Bruno Haible  <bruno@clisp.org>
90521         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
90522         augmentation also for tests modules.
90523         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
90524         * modules/atexit-tests (Makefile.am): Likewise.
90525         * modules/binary-io-tests (Makefile.am): Likewise.
90526         * modules/c-strcase-tests (Makefile.am): Likewise.
90527         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
90528         * modules/canonicalize-tests (Makefile.am): Likewise.
90529         * modules/closein-tests (Makefile.am): Likewise.
90530         * modules/fprintf-posix-tests (Makefile.am): Likewise.
90531         * modules/freadahead-tests (Makefile.am): Likewise.
90532         * modules/fseek-tests (Makefile.am): Likewise.
90533         * modules/fseeko-tests (Makefile.am): Likewise.
90534         * modules/ftell-tests (Makefile.am): Likewise.
90535         * modules/ftello-tests (Makefile.am): Likewise.
90536         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
90537         * modules/isnanl-tests (Makefile.am): Likewise.
90538         * modules/lseek-tests (Makefile.am): Likewise.
90539         * modules/mbscasecmp-tests (Makefile.am): Likewise.
90540         * modules/mbscasestr-tests (Makefile.am): Likewise.
90541         * modules/mbschr-tests (Makefile.am): Likewise.
90542         * modules/mbscspn-tests (Makefile.am): Likewise.
90543         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
90544         * modules/mbspbrk-tests (Makefile.am): Likewise.
90545         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
90546         * modules/mbsrchr-tests (Makefile.am): Likewise.
90547         * modules/mbsspn-tests (Makefile.am): Likewise.
90548         * modules/mbsstr-tests (Makefile.am): Likewise.
90549         * modules/printf-posix-tests (Makefile.am): Likewise.
90550         * modules/snprintf-posix-tests (Makefile.am): Likewise.
90551         * modules/sprintf-posix-tests (Makefile.am): Likewise.
90552         * modules/tsearch-tests (Makefile.am): Likewise.
90553         * modules/uniname/uniname-tests (Makefile.am): Likewise.
90554         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
90555         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
90556         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
90557         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
90558         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
90559         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
90560         * modules/vprintf-posix-tests (Makefile.am): Likewise.
90561         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
90562         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
90563         * modules/xstrtoimax-tests (Makefile.am): Likewise.
90564         * modules/xstrtol-tests (Makefile.am): Likewise.
90565         * modules/xstrtoumax-tests (Makefile.am): Likewise.
90566         * modules/yesno-tests (Makefile.am): Likewise.
90568 2007-10-03  Bruno Haible  <bruno@clisp.org>
90570         * modules/trunc-tests: New file.
90571         * tests/test-trunc.c: New file.
90573         * modules/trunc: New file.
90574         * lib/trunc.c: New file.
90575         * m4/trunc.m4: New file.
90576         * lib/math.in.h (trunc): New declaration.
90577         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
90578         HAVE_DECL_TRUNC.
90579         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
90580         HAVE_DECL_TRUNC.
90581         * doc/functions/trunc.texi: Mention the 'trunc' module.
90583 2007-10-03  Bruno Haible  <bruno@clisp.org>
90585         * tests/test-fpending.c: New file, mostly copied
90586         from coreutils/lib/t-fpending.c.
90587         * modules/fpending-tests: New file.
90589 2007-10-03  Bruno Haible  <bruno@clisp.org>
90591         Port the stdio extensions to QNX (untested).
90592         * lib/fseterr.c (fseterr): Add support for QNX.
90593         * lib/fbufmode.c (fbufmode): Likewise.
90594         * lib/freadable.c (freadable): Likewise.
90595         * lib/fwritable.c (fwritable): Likewise.
90596         * lib/freading.c (freading): Likewise.
90597         * lib/fwriting.c (fwriting): Likewise.
90598         * lib/freadahead.c (freadahed): Likewise.
90599         * lib/fpurge.c (fpurge): Likewise.
90600         * lib/fseeko.c (rpl_fseeko): Likewise.
90602 2007-10-03  Bruno Haible  <bruno@clisp.org>
90603             Jim Meyering  <jim@meyering.net>
90604             Eric Blake  <ebb9@byu.net>
90606         * doc/relocatable.texi: Use @command instead of @program.
90608 2007-10-02  Jim Meyering  <jim@meyering.net>
90610         Perform one more "_.h" -> ".in.h" substitution.
90611         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
90612         instead of unistd_.h here, too.
90614 2007-10-01  Bruno Haible  <bruno@clisp.org>
90616         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
90617         Needed for the alloca-opt module.
90619 2007-09-30  Bruno Haible  <bruno@clisp.org>
90621         * lib/alloca.in.h: Renamed from lib/alloca_.h.
90622         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
90623         alloca_.h.
90624         * lib/argz.in.h: Renamed from lib/argz_.h.
90625         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
90626         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
90627         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
90628         byteswap_.h.
90629         * lib/dirent.in.h: Renamed from lib/dirent_.h.
90630         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
90631         dirent_.h.
90632         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
90633         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
90634         fcntl_.h.
90635         * lib/float.in.h: Renamed from lib/float_.h.
90636         * modules/float (Files, Makefile.am): Use float.in.h instead of
90637         float_.h.
90638         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
90639         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
90640         fnmatch_.h.
90641         * lib/getopt.in.h: Renamed from lib/getopt_.h.
90642         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
90643         getopt_.h.
90644         * lib/glob.in.h: Renamed from lib/glob_.h.
90645         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
90646         * lib/iconv.in.h: Renamed from lib/iconv_.h.
90647         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
90648         iconv_.h.
90649         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
90650         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
90651         inttypes_.h.
90652         * lib/locale.in.h: Renamed from lib/locale_.h.
90653         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
90654         locale_.h.
90655         * lib/math.in.h: Renamed from lib/math_.h.
90656         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
90657         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
90658         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
90659         of netinet_in_.h. Add dependency.
90660         * lib/poll.in.h: Renamed from lib/poll_.h.
90661         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
90662         * lib/search.in.h: Renamed from lib/search_.h.
90663         * modules/search (Files, Makefile.am): Use search.in.h instead of
90664         search_.h.
90665         * lib/signal.in.h: Renamed from lib/signal_.h.
90666         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
90667         _signal.h.
90668         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
90669         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
90670         stdbool_.h.
90671         * lib/stdint.in.h: Renamed from lib/stdint_.h.
90672         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
90673         stdint_.h.
90674         * lib/stdio.in.h: Renamed from lib/stdio_.h.
90675         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
90676         stdio_.h.
90677         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
90678         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
90679         stdlib_.h.
90680         * lib/string.in.h: Renamed from lib/string_.h.
90681         * modules/string (Files, Makefile.am): Use string.in.h instead of
90682         string_.h.
90683         * doc/gnulib-tool.texi (Initial import): Update.
90684         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
90685         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
90686         of sys_select_.h. Add dependency.
90687         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
90688         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
90689         of sys_socket_.h.
90690         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
90691         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
90692         sys_stat_.h.
90693         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
90694         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
90695         sys_time_.h.
90696         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
90697         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
90698         sysexits_.h.
90699         * lib/time.in.h: Renamed from lib/time_.h.
90700         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
90701         * lib/unistd.in.h: Renamed from lib/unistd_.h.
90702         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
90703         unistd_.h.
90704         * lib/wchar.in.h: Renamed from lib/wchar_.h.
90705         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
90706         wchar_.h.
90707         * lib/wctype.in.h: Renamed from lib/wctype_.h.
90708         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
90709         wctype_.h.
90710         * build-aux/bootstrap (slurp): Update.
90711         * lib/.cppi-disable: Update.
90713 2007-09-30  Bruno Haible  <bruno@clisp.org>
90715         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
90716         Needed on BeOS.
90718 2007-09-30  Bruno Haible  <bruno@clisp.org>
90720         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
90722 2007-09-29  Bruno Haible  <bruno@clisp.org>
90724         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
90726 2007-09-29  Bruno Haible  <bruno@clisp.org>
90728         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
90729         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
90730         * build-aux/install-reloc: Compile also areadlink.c.
90731         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
90733 2007-09-29  Bruno Haible  <bruno@clisp.org>
90735         * gnulib-tool (func_emit_initmacro_done): Indentation.
90737 2007-09-29  Bruno Haible  <bruno@clisp.org>
90739         * README: Add CVS checkout update instructions.
90740         Info from Bob Proulx <bob@proulx.com>.
90742 2007-09-28  Eric Blake  <ebb9@byu.net>
90744         Provide move-if-change.
90745         * build-aux/move-if-change: New file, based on best practice
90746         rather than any canonical upstream location.
90748 2007-09-28  Jim Meyering  <jim@meyering.net>
90750         Fix canonicalize loop-detection corner case.
90751         Do not attempt to stat the symlink values stored via seen_triple.
90752         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
90753         on linux-2.6.18, (but not 2.6.22).
90754         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
90755         triple_compare.  The former compares dev,ino,filename, while the latter
90756         would actually stat dirname(filename) when dev and ino were equal.
90757         * lib/hash-triple.c: Install <string.h>.
90758         (STREQ): Define.
90759         (triple_compare_ino_str): New function.
90760         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
90762 2007-09-28  Eric Blake  <ebb9@byu.net>
90764         Enforce that AC_REPLACE_FUNCS files exist.
90765         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
90766         override check for typos.
90768         Fix test-closein on Solaris 10.
90769         * tests/test-closein.c (main): Don't assume stdin can be inherited
90770         closed on all systems.
90771         * tests/test-closein.sh: Likewise.
90772         Reported by Piotr Tarnowski.
90774 2007-09-28  Jim Meyering  <jim@meyering.net>
90776         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
90778 2007-09-27  Jim Meyering  <jim@meyering.net>
90780         canonicalize: Avoid a false-positive cycle failure.
90781         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
90782         Sort.  Remove cycle-check.
90783         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
90784         not cycle-check.h.
90785         (seen_triple): New function.
90786         (canonicalize_filename_mode): Use it instead of cycle-check.
90787         * tests/test-canonicalize.c: Add a test for this bug.
90788         * tests/test-canonicalize.sh: Set up and run the test.
90790         New module, file-set, from coreutils.
90791         * modules/file-set: Define it.
90792         * lib/file-set.c, lib/file-set.h: Implement.
90794         New module, hash-triple, from coreutils.
90795         * modules/hash-triple: Define it.
90796         * lib/hash-triple.c, lib/hash-triple.h: Implement.
90798 2007-09-25  Eric Blake  <ebb9@byu.net>
90800         Fix strerror on Interix.
90801         * lib/string_.h (strerror): Declare replacement.
90802         * doc/functions/strerror.texi (strerror): Document the Interix
90803         shortcoming.
90804         * modules/string (Makefile.am): Support new hooks.
90805         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
90806         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
90807         gl_FUNC_STRERROR_SEPARATE.
90808         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
90809         * lib/strerror.c (rpl_strerror): Provide replacement.
90810         * modules/strerror (Depends-on): Add string.
90811         (configure.ac): Detect use of module.
90812         * tests/test-strerror.c: New file.
90813         * modules/strerror-tests: New test module.
90814         * modules/argp (Depends-on): Add strerror.
90815         * modules/error (Depends-on): Likewise.
90816         Reported by Martin Koeppe.
90818 2007-09-24  Bruno Haible  <bruno@clisp.org>
90820         * README: Update git instructions.
90822 2007-09-24  Eric Blake  <ebb9@byu.net>
90824         Revert fpending breakage from 2007-09-08.
90825         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
90826         __fpending.c.
90828 2007-09-24  Jim Meyering  <jim@meyering.net>
90830         filenamecat.c: Add a test.
90831         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
90832         showing how the function works when DIR is the empty string.
90834 2007-09-21  Simon Josefsson  <simon@josefsson.org>
90836         * tests/test-canonicalize.sh: Turn on executable bit.
90838 2007-09-19  Eric Blake  <ebb9@byu.net>
90840         * README: Update CVS instructions.
90842 2007-09-18  Bruno Haible  <bruno@clisp.org>
90844         * modules/areadlink: New file.
90845         * lib/areadlink.h (areadlink): New declaration.
90846         * lib/areadlink.c: New file, based on lib/xreadlink.c.
90848 2007-09-17  Jim Meyering  <jim@meyering.net>
90850         * lib/savewd.c (ESTALE) [!defined]: Define.
90851         Reported to be required on Interix by Martin Koeppe.
90853 2007-09-17  Bruno Haible  <bruno@clisp.org>
90855         * gnulib-tool (func_version): Use $version.
90857 2007-09-16  Bruno Haible  <bruno@clisp.org>
90859         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
90860         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
90861         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
90862         Reported by Greg Schafer <gschafer@zip.com.au>.
90864 2007-09-15  Bruno Haible  <bruno@clisp.org>
90866         * gnulib-tool (sed): Try a little harder to make bash understand the
90867         alias.
90868         Reported by Bruce Korb <bruce.korb@gmail.com>.
90870 2007-09-13  Eric Blake  <ebb9@byu.net>
90872         * ChangeLog: Remove conflict markers.
90874 2007-09-13  Simon Josefsson  <simon@josefsson.org>
90876         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
90877         Reported by Bruno Haible <bruno@clisp.org>.
90879 2007-09-12  Bruno Haible  <bruno@clisp.org>
90881         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
90882         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
90883         is not defined.
90885 2007-09-12  Eric Blake  <ebb9@byu.net>
90887         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
90888         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
90889         Autoconf definition.
90890         * modules/euidaccess (Depends-on): Add extensions, for
90891         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
90892         * modules/fnmatch (Depends-on): Likewise.
90893         * modules/getaddrinfo (Depends-on): Likewise.
90894         * modules/getdelim (Depends-on): Likewise.
90895         * modules/getline (Depends-on): Likewise.
90896         * modules/getsubopt (Depends-on): Likewise.
90897         * modules/gettext (Depends-on): Likewise.
90898         * modules/group-member (Depends-on): Likewise.
90899         * modules/mbchar (Depends-on): Likewise.
90900         * modules/memmem (Depends-on): Likewise.
90901         * modules/mempcpy (Depends-on): Likewise.
90902         * modules/memrchr (Depends-on): Likewise.
90903         * modules/pagealign_alloc (Depends-on): Likewise.
90904         * modules/readutmp (Depends-on): Likewise.
90905         * modules/stpcpy (Depends-on): Likewise.
90906         * modules/stpncpy (Depends-on): Likewise.
90907         * modules/strchrnul (Depends-on): Likewise.
90908         * modules/strndup (Depends-on): Likewise.
90909         * modules/strsep (Depends-on): Likewise.
90910         * modules/strverscmp (Depends-on): Likewise.
90911         * modules/vasprintf (Depends-on): Likewise.
90912         * modules/wcwidth (Depends-on): Likewise.
90913         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
90914         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
90915         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
90916         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
90917         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
90918         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
90919         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
90920         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
90921         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
90922         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
90923         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
90924         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
90925         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
90926         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
90927         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
90928         * m4/readutmp.m4 (gl_READUTMP): Likewise.
90929         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
90930         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
90931         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
90932         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
90933         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
90934         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
90935         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
90936         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
90937         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
90938         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
90939         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
90940         so that lock.m4 can be used in gettext without extensions module.
90942 2007-09-11  Bruno Haible  <bruno@clisp.org>
90944         * m4/isc-posix.m4: Remove file.
90945         Suggested by Eric Blake.
90947 2007-09-11  Eric Blake  <ebb9@byu.net>
90949         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
90951 2007-09-10  Bruno Haible  <bruno@clisp.org>
90953         * posix-modules: Fix typo in error message.
90954         Reported by Matt <mkraai@beckman.com>.
90956 2007-09-09  Bruno Haible  <bruno@clisp.org>
90958         * doc/functions/getdelim.texi: Update list of platforms lacking the
90959         function.
90960         * doc/functions/getline.texi: Likewise.
90962 2007-09-09  Jim Meyering  <jim@meyering.net>
90964         * lib/hash.c (hash_initialize): Detect calloc failure.
90965         Reported by Bruno Haible.
90967 2007-09-09  Bruno Haible  <bruno@clisp.org>
90969         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
90970         malloc or realloc fails.
90972 2007-09-09  Bruno Haible  <bruno@clisp.org>
90974         * modules/getcwd (Depends-on): Add malloc-posix.
90975         * modules/glob (Depends-on): Likewise.
90976         * modules/putenv (Depends-on): Likewise.
90977         * modules/strdup (Depends-on): Likewise.
90978         * modules/getdelim (Depends-on): Add realloc-posix.
90979         * modules/read-file (Depends-on): Likewise.
90981 2007-09-09  Bruno Haible  <bruno@clisp.org>
90983         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
90984         (gl_FUNC_MALLOC_POSIX): Require it.
90985         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
90986         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
90987         * modules/realloc (Files): Add m4/malloc.m4.
90988         * modules/calloc (Files): Likewise.
90990 2007-09-09  Bruno Haible  <bruno@clisp.org>
90992         * modules/malloc-posix: New file.
90993         * modules/malloc (Depends-on): Add malloc-posix.
90994         * lib/malloc.c: Include errno.h.
90995         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
90996         and a POSIX-compatible malloc into a single function. Set ENOMEM
90997         when returning NULL.
90998         * m4/malloc.m4: New file.
90999         * doc/functions/malloc.texi: Mention the malloc-posix module.
91000         * lib/stdlib_.h (malloc): New declaration.
91001         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
91002         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
91003         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
91004         and HAVE_MALLOC_POSIX.
91006 2007-09-09  Bruno Haible  <bruno@clisp.org>
91008         * modules/realloc-posix: New file.
91009         * modules/realloc (Depends-on): Add realloc-posix.
91010         * lib/realloc.c: Include errno.h.
91011         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
91012         and a POSIX-compatible realloc into a single function. Set ENOMEM
91013         when returning NULL.
91014         * m4/realloc.m4: New file.
91015         * doc/functions/realloc.texi: Mention the realloc-posix module.
91016         * lib/stdlib_.h (realloc): New declaration.
91017         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
91018         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
91019         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
91020         and HAVE_REALLOC_POSIX.
91022 2007-09-09  Bruno Haible  <bruno@clisp.org>
91024         * modules/calloc-posix: New file.
91025         * modules/calloc (Depends-on): Add calloc-posix.
91026         * lib/calloc.c: Include errno.h.
91027         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
91028         and a POSIX-compatible calloc into a single function. Set ENOMEM
91029         when returning NULL.
91030         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
91031         * doc/functions/calloc.texi: Mention the calloc-posix module.
91032         * lib/stdlib_.h (calloc): New declaration.
91033         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
91034         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
91035         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
91036         and HAVE_CALLOC_POSIX.
91038 2007-09-09  Bruno Haible  <bruno@clisp.org>
91040         Allow for modules to show an arbitrary notice.
91041         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
91042         * gnulib-tool: New option --extract-notice.
91043         (func_usage): Document it.
91044         (sed_extract_prog): Update.
91045         (func_get_notice): New function.
91046         (func_modules_notice): New function.
91047         (func_import, func_create_testdir): Invoke it.
91048         Suggested by Jim Meyering.
91050 2007-09-09  Bruno Haible  <bruno@clisp.org>
91052         * gnulib-tool: New options --verbose, --quiet.
91053         (func_usage): Document them.
91054         (verbose): New variable.
91055         (func_execute_command): New function.
91056         (func_import): Don't show the module list and the file list if
91057         $verbose < 0.
91058         (func_create_testdir): Likewise. Use func_execute_command.
91059         (func_create_megatestdir): Use func_execute_command.
91061 2007-09-08  Bruno Haible  <bruno@clisp.org>
91063         * gnulib-tool (func_import): Prefer rsync over wget when available,
91064         for fetching the PO files.
91066 2007-09-08  Bruno Haible  <bruno@clisp.org>
91068         * posix-modules: New file. Portions copied from gnulib-tool.
91069         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
91071 2007-09-08  Jim Meyering  <jim@meyering.net>
91073         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
91074         * lib/fpending.h: Rename from __fpending.h.
91075         * lib/fpending.c: Rename from __fpending.c.
91076         Include "fpending.h", not "__fpending.h".
91077         * lib/__fpending.h, lib/__fpending.c: Remove files.
91078         * modules/fpending (Files): Reflect new file names.
91079         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
91081 2007-09-08  Bruno Haible  <bruno@clisp.org>
91083         * m4/inttypes-h.m4: Remove stub file.
91085 2007-09-07  Simon Josefsson  <simon@josefsson.org>
91087         * doc/headers/stdint.texi: Discuss #include_next issue.
91089 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
91091         * build-aux/bootstrap: Remove obsolete comment about wget --help.
91093 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91095         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
91096         in variable name.
91098 2007-09-03  Jim Meyering  <jim@meyering.net>
91100         New module: git-version-gen.
91101         * modules/git-version-gen: New file.
91103         Import changes from coreutils for bootstrap script.
91105         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
91107         bootstrap: uses rsync to download the .po files
91108         * build-aux/bootstrap (po_download_command_format): New global.
91109         (download_po_files): Use rsync.
91110         (update_po_files): Don't remove .po files after download,
91111         so future rsync runs can take advantage of the copies.
91113         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
91115         Solve the unnecessary-.po-file-regeneration problem once and for all.
91116         * build-aux/bootstrap (download_po_files): New function, renamed from
91117         get_translations.  Now, downloads, but doesn't update LINGUAS.
91118         (update_po_files): New function.
91120         bootstrap: Ignore more.
91121         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
91122         uniwidth to e.g., lib/.gitignore.
91123         (slurp): Handle the sys_stat_.h -> sys mapping, too.
91125         * build-aux/bootstrap: New setting: vc_ignore.
91126         (insert_sorted_if_absent): Create $file if absent.
91127         Adapt to new, possibly empty, list: $vc_ignore.
91129         bootstrap: generate more ignorable names
91130         * build-aux/bootstrap (slurp): When generating ignorable names,
91131         also map .sin to .sed, .gperf to .c, and .y to .c.
91133 2007-09-03  Jim Meyering  <jim@meyering.net>
91135         * build-aux/git-version-gen: New file, from coreutils.  For details, see
91136         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
91138 2007-09-02  Bruno Haible  <bruno@clisp.org>
91140         Fix mis-recognition of 'mcs' on QNX 6.
91141         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
91142         output contains the string "Mono".
91143         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
91144         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
91146 2007-09-01  Bruno Haible  <bruno@clisp.org>
91148         Fix collision between uniwidth/* and linebreak modules.
91149         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
91150         u32_width): Remove declarations.
91151         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
91152         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
91153         streq3, streq2, streq1, streq0): Remove functions.
91154         (STREQ): Remove macro.
91155         (is_cjk_encoding): Remove function.
91156         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
91157         (uc_width, u8_width, u16_width, u32_width): Remove functions.
91158         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
91159         * NEWS: Document the change.
91161 2007-09-01  Bruno Haible  <bruno@clisp.org>
91163         * lib/streq.h: Add double-inclusion guard.
91165 2007-09-01  Karl Berry  <karl@gnu.org>
91167         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
91169 2007-08-28  Jim Meyering  <jim@meyering.net>
91171         Rename mreadlink_with_size to areadlink_with_size.
91172         * NEWS: Document the change.
91173         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
91174         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
91175         * lib/mreadlink.h: Rename this to...
91176         * lib/areadlink.h: ...this.
91177         * modules/mreadlink-with-size: Rename this to...
91178         * modules/areadlink-with-size: ...this.
91179         * lib/canonicalize.c: Reflect the renaming.
91180         * modules/canonicalize: Likewise.
91182 2007-08-26  Bruno Haible  <bruno@clisp.org>
91184         * gnulib-tool (func_import): When deciding which files to remove,
91185         consider also dangling symbolic links.
91186         Reported by Eric Blake.
91188 2007-08-26  Bruno Haible  <bruno@clisp.org>
91190         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
91192 2007-08-23  Simon Josefsson  <simon@josefsson.org>
91194         * lib/readline.c: Don't include getline.h, the prototype is now
91195         found in stdio.h.
91197 2007-08-23  Jim Meyering  <jim@meyering.net>
91199         Getdelim touchup.
91200         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
91201         around the funlockfile call, since funlockfile never sets errno.
91202         Don't set errno upon failed realloc.
91204 2007-08-22  Eric Blake  <ebb9@byu.net>
91206         Getline touchups.
91207         * lib/getdelim.c (getdelim): Revert regression that required *n to
91208         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
91209         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
91210         getdelim, rather than whether implementation is missing.
91211         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
91212         * lib/stdio_.h (getline): Also declare if replacement is
91213         required.
91214         * doc/functions/getdelim.texi: New file.
91215         * doc/functions/getline.texi: Likewise.
91216         * doc/gnulib.texi (Function Substitutes): Add new files.
91217         Reported by Bruno Haible.
91219 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
91221         * users.txt: Add Guile.
91223 2007-08-22  Eric Blake  <ebb9@byu.net>
91225         * tests/test-getdelim.c (main): Use remove, not unlink.
91226         * tests/test-getline.c (main): Likewise.
91228         Move getline and getdelim into stdio.h, per POSIX 200x.
91229         * modules/getline (Files): Remove getline.h.
91230         (Depends-on): Add stdio.
91231         (configure.ac): Add module indicator.
91232         * modules/getdelim (Files): Remove getdelim.h.
91233         (Depends-on): Add stdio.
91234         (configure.ac): Add module indicator.
91235         * modules/stdio (Makefile.am): Work with new indicators.
91236         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
91237         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
91238         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
91239         * lib/getdelim.h: Delete.
91240         * lib/getline.h: Delete.
91241         * lib/stdio_.h (getdelim, getline): Declare.
91242         * modules/getdelim-tests: New module.
91243         * modules/getline-tests: Likewise.
91244         * tests/test-getdelim.c: New file.
91245         * tests/test-getline.c: Likewise.
91246         * NEWS: Document the change.
91247         * lib/getline.c: Update choice of header.
91248         * lib/csharpcomp.c: Likewise.
91249         * lib/getpass.c: Likewise.
91250         * lib/javacomp.c: Likewise.
91251         * lib/javaversion.c: Likewise.
91252         * lib/yesno.c: Likewise.
91253         * lib/getdelim.c: Likewise.
91254         (getdelim): Set errno on failure, and avoid memory leak.
91256 2007-08-19  Bruno Haible  <bruno@clisp.org>
91258         * modules/closein (Depends-on): Add freadahead.
91259         * lib/closein.c: Include freadahead.h.
91260         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
91261         is zero.
91263 2007-08-19  Bruno Haible  <bruno@clisp.org>
91265         * modules/freadahead-tests: New file.
91266         * tests/test-freadahead.sh: New file.
91267         * tests/test-freadahead.c: New file.
91269         * modules/freadahead: New file.
91270         * lib/freadahead.h: New file.
91271         * lib/freadahead.c: New file.
91272         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
91273         fbufmode, fpurge, freadable, fwritable.
91275 2007-08-19  Eric Blake  <ebb9@byu.net>
91277         Test yesno in combination with closein.
91278         * lib/yesno.c (yesno): Document use of stdin.
91279         * modules/yesno-tests (Files): New module.
91280         * tests/test-yesno.c (main): New file.
91281         * tests/test-yesno.sh: Likewise.
91283 2007-08-19  Bruno Haible  <bruno@clisp.org>
91285         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
91286         * lib/fseeko.c (rpl_fseeko): Likewise.
91287         * lib/fseterr.c (fseterr): Likewise.
91289 2007-08-19  Bruno Haible  <bruno@clisp.org>
91291         * tests/test-lseek.c (main): Disable a test for BeOS.
91292         * doc/functions/lseek.texi: Document the BeOS bug.
91294 2007-08-19  Bruno Haible  <bruno@clisp.org>
91295             Eric Blake  <ebb9@byu.net>
91297         * lib/lseek.c: Include <sys/stat.h>.
91298         (rpl_lseek): Add workaround code also for Unix platforms.
91299         Needed for BeOS.
91300         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
91301         * doc/functions/lseek.texi: Document BeOS definiency.
91303 2007-08-18  Bruno Haible  <bruno@clisp.org>
91305         * modules/fstrcmp-tests: New file.
91306         * tests/test-fstrcmp.c: New file.
91308 2007-08-18  Bruno Haible  <bruno@clisp.org>
91310         * modules/fstrcmp: New file, from GNU gettext with modifications.
91311         * lib/fstrcmp.h: New file, from GNU gettext.
91312         * lib/fstrcmp.c: New file, from GNU gettext.
91313         * MODULES.html.sh (String handling): Add fstrcmp.
91315 2007-08-18  Bruno Haible  <bruno@clisp.org>
91317         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
91318         'bool'.
91319         (diag, compareseq): Remove const from the ctxt argument.
91320         (USE_HEURISTIC): Undefine at the end.
91322 2007-08-18  Jim Meyering  <jim@meyering.net>
91324         New file: lib/idcache.h
91325         * NEWS: Mention the addition.
91326         * modules/idcache (Files): Add lib/idcache.h
91327         * lib/idcache.c: Include "idcache.h".
91328         Don't include <sys/types.h>.
91329         Add a FIXME comment.
91330         Move file-scoped "static" declarations to the top.
91331         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
91333 2007-08-17  Bruno Haible  <bruno@clisp.org>
91334         and Paul Eggert  <eggert@cs.ucla.edu>
91336         * MODULES.html.sh: Add diffseq.
91337         * modules/diffseq: New file.
91338         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
91339         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
91341 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
91343         Import changes from coreutils for bootstrap script.
91345         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
91347         * build-aux/bootstrap (slurp): Work even in environments where
91348         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
91349         current code does not slurp files whose names start with ".", and
91350         this looks like it might be a troublesome area.
91352         2007-07-11  Jim Meyering  <jim@meyering.net>
91354         If there's a GPL vN copyright comment, require that N == 3.
91356         2007-07-08  Jim Meyering  <jim@meyering.net>
91358         Run the coreutils-specific code only if tests/Makefile.am.in exists.
91359         * build-aux/bootstrap (mam_template): Move definition out of loop.
91361         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
91363         * build-aux/bootstrap (symlink_to_dir): Rename function from
91364         symlink_to_gnulib.  Add a directory parameter.  Update all
91365         callers.
91366         (cp_mark_as_generated): Also check for -- and link to -- files in
91367         gl/.
91369         2007-07-08  Jim Meyering  <jim@meyering.net>
91371         Adapt to deeper hierarchy in gnulib.
91372         * build-aux/bootstrap (symlink_to_dir): If the destination
91373         directory doesn't exist, create it. This is required at least for
91374         "lib/uniwidth/cjk.h".
91376         2007-05-15  Jim Meyering  <jim@meyering.net>
91378         * build-aux/bootstrap: Now that generated Makefile.am files
91379         are no longer under version control, they must be created at
91380         bootstrap time.
91382 2007-08-14  Ben Pfaff  <blp@gnu.org>
91384         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
91386 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
91388         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
91389         given the changes below.
91390         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
91391         even on hosts that have padding bits beyond the supported 64.
91393 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
91395         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
91396         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
91397         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
91398         depends on it.
91399         (xstrtol_error): Remove.
91400         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
91401         but with a different signature.
91402         (ATTRIBUTE_NORETURN, __attribute__): New macros.
91403         * lib/xstrtol-error.c: Include exitfail.h.
91404         (xstrtol_fatal): New function, with a different signature from the
91405         old xstrtol_error, so that the caller need not worry about passing
91406         in an exit status, or about storage management of the option argument.
91407         (xstrtol_error): Now a static function.  Redo signature to
91408         implement xstrtol_fatal.  Output the correct number of hyphens in
91409         front of the option so that the caller need not worry about
91410         storage management.
91411         (N_): New macro.
91412         (_): Remove; not used now.
91413         * modules/xstrtol: Depend on getopt.
91414         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
91415         of old STRTOL_FATAL_ERROR macro.
91416         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
91417         of test program.
91418         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
91419         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
91421 2007-08-08  Eric Blake  <ebb9@byu.net>
91423         * lib/xstrtol-error.c: Add missing include.
91425         Move xstrtol messages into gnulib domain, when --pobase is used.
91426         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
91427         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
91428         * modules/xstrtol (Files): Distribute new file.
91429         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
91430         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
91431         * tests/test-xstrtol.c: ...into new file.
91432         * tests/test-xstrtoul.c: Also test xstrtoul.
91433         * tests/test-xstrtoimax.c: Also test xstrtoimax.
91434         * tests/test-xstrtoumax.c: Also test xstrtoumax.
91435         * tests/test-xstrtol.sh: Drive the tests.
91436         * tests/test-xstrtoimax.sh: Likewise.
91437         * tests/test-xstrtoumax.sh: Likewise.
91438         * modules/xstrtol-tests: New module.
91439         * modules/xstrtoimax-tests: Likewise.
91440         * modules/xstrtoumax-tests: Likewise.
91442 2007-08-08  Jim Meyering  <jim@meyering.net>
91444         New function: mfile_name_concat.
91445         * lib/filenamecat.c (mfile_name_concat): New function, just like
91446         file_name_concat, but return NULL upon failure rather than exiting
91447         with a diagnostic.
91448         * lib/filenamecat.h: Declare it.
91450 2007-08-07  Bruno Haible  <bruno@clisp.org>
91452         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
91453         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
91454         warning from gcc.
91455         Reported by Eric Blake.
91457 2007-08-07  Simon Josefsson  <simon@josefsson.org>
91459         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
91460         * modules/crypto/arcfour (License): Likewise.
91461         * modules/crypto/des-tests (License): Likewise.
91462         * modules/crypto/gc-arctwo-tests (License): Likewise.
91463         * modules/crypto/gc-des-tests (License): Likewise.
91464         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
91465         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
91466         * modules/crypto/gc-md2-tests (License): Likewise.
91467         * modules/crypto/gc-md4-tests (License): Likewise.
91468         * modules/crypto/gc-md5-tests (License): Likewise.
91469         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
91470         * modules/crypto/gc-rijndael-tests (License): Likewise.
91471         * modules/crypto/gc-sha1-tests (License): Likewise.
91472         * modules/crypto/gc-tests (License): Likewise.
91473         * modules/crypto/hmac-md5 (License): Likewise.
91474         * modules/crypto/hmac-sha1 (License): Likewise.
91475         * modules/crypto/md2-tests (License): Likewise.
91476         * modules/crypto/md4-tests (License): Likewise.
91477         * modules/crypto/md5 (License): Likewise.
91478         * modules/crypto/rijndael (License): Likewise.
91479         * modules/crypto/sha1 (License): Likewise.
91480         * modules/memxor (License): Likewise.
91482 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
91483         and Bruno Haible  <bruno@clisp.org>
91485         * NEWS: Describe interface changes to human, xstrtol.
91486         * lib/human.h: Include <xstrtol.h>.
91487         (human_options): Return enum strtol_error, not int.  Remove
91488         bool arg; take int * instead.
91489         * lib/human.c: Don't include "gettext.h".
91490         (_): Remove; no longer used.
91491         Don't include <xstrtol.h>, since human.h does it.
91492         (human_options): Adjust to abovementioned interface changes.
91493         Do not report error to stderr; that's now the caller's
91494         responsibility.
91495         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
91496         interface change.
91497         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
91498         Str, Argument_type_string.  All uses changed.  Put " argument"
91499         in diagnostics to make them clearer.  Change wording of suffix
91500         message for clarity.
91501         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
91502         Argument_type_string.
91503         (STRTOL_FATAL_WARN): Remove; no longer used.
91504         * modules/human (Depends-on): Remove gettext-h.
91506 2007-08-06  Simon Josefsson  <simon@josefsson.org>
91508         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
91510 2007-07-31  Bruno Haible  <bruno@clisp.org>
91512         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
91513         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
91514         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
91516 2007-07-31  Bruno Haible  <bruno@clisp.org>
91518         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
91519         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
91521 2007-07-30  Bruno Haible  <bruno@clisp.org>
91523         * modules/base64 (License): Use the synonymous term "LGPLv2+".
91524         * modules/c-ctype (License): Likewise.
91525         * modules/c-strcase (License): Likewise.
91526         * modules/check-version (License): Likewise.
91527         * modules/iconv (License): Likewise.
91528         * modules/iconv_open (License): Likewise.
91529         * modules/read-file (License): Likewise.
91530         * modules/striconv (License): Likewise.
91531         * modules/strverscmp (License): Likewise.
91532         * modules/vasprintf (License): Likewise.
91533         * modules/crypto/des (License): Likewise.
91534         * modules/crypto/gc (License): Likewise.
91535         * modules/crypto/gc-arcfour (License): Likewise.
91536         * modules/crypto/gc-arctwo (License): Likewise.
91537         * modules/crypto/gc-des (License): Likewise.
91538         * modules/crypto/gc-hmac-md5 (License): Likewise.
91539         * modules/crypto/gc-hmac-sha1 (License): Likewise.
91540         * modules/crypto/gc-md2 (License): Likewise.
91541         * modules/crypto/gc-md4 (License): Likewise.
91542         * modules/crypto/gc-md5 (License): Likewise.
91543         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
91544         * modules/crypto/gc-random (License): Likewise.
91545         * modules/crypto/gc-rijndael (License): Likewise.
91546         * modules/crypto/gc-sha1 (License): Likewise.
91547         * modules/crypto/md2 (License): Likewise.
91548         * modules/crypto/md4 (License): Likewise.
91550 2007-07-30  Jim Meyering  <jim@meyering.net>
91552         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
91553         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
91554         it has valid stat data.  This bug would cause du not to count the
91555         sizes of inaccessible directories.
91556         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
91557         in <http://bugzilla.redhat.com/250077>.
91559 2007-07-25  Peter O'Gorman  <peter@pogma.com>
91560             Bruno Haible  <bruno@clisp.org>
91562         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
91563         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
91564         #include_next, gives a diagnostic about it, but reports no error in
91565         the exit code.
91566         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
91568 2007-07-24  Ben Pfaff  <blp@gnu.org>
91570         Improve name: "count-one-bits" is better than "popcount".
91571         * MODULES.html.sh: Update name.
91572         * lib/popcount.h: Renamed lib/count-one-bits.h.
91573         (popcount): Renamed count_one_bits.
91574         (popcountl): Renamed count_one_bits_l.
91575         (popcountll): Renamed count_one_bits_ll.
91576         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
91577         * modules/popcount: Renamed module/count-one-bits.
91578         * modules/popcount-tests: Renamed module/count-one-bits-tests.
91579         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
91581 2007-07-23  Ben Pfaff  <blp@gnu.org>
91583         * lib/popcount.h (popcount32): Reduce size of constants, to allow
91584         better code generation, and add U to large constants to avoid
91585         warnings, in non-GCC case.
91586         Suggested by Bruno Haible.
91588 2007-07-23  Ben Pfaff  <blp@gnu.org>
91590         * lib/popcount.h: Use verify_true instead of if...abort.
91591         * modules/popcount: Depend on verify module.
91592         Suggested by Jim Meyering.
91594 2007-07-23  Bruno Haible  <bruno@clisp.org>
91596         * gnulib-tool (func_import): Create a .cvsignore file also when the
91597         directory is not yet in CVS but the toplevel directory is. When
91598         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
91599         Reported by Karl Berry.
91601 2007-07-22  Ben Pfaff  <blp@gnu.org>
91603         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
91604         case.
91605         Suggested by Eric Blake.
91607 2007-07-22  Ben Pfaff  <blp@gnu.org>
91609         New module: popcount.
91610         * MODULES.html.sh: Add popcount.
91611         * modules/popcount: New file.
91612         * modules/popcount-tests: New file.
91613         * tests/test-popcount.c: New file.
91614         * lib/popcount.h: New file.
91615         * m4/popcount.m4: New file.
91617 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
91619         * build-aux/announce-gen: Update to GPLv3.
91621         * build-aux/config.guess: Update from config.
91623 2007-07-21  Bruno Haible  <bruno@clisp.org>
91625         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
91626         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
91628 2007-07-20  Jim Meyering  <jim@meyering.net>
91630         * check-module: Diagnose a self-dependency.
91632 2007-07-19  Bruno Haible  <bruno@clisp.org>
91634         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
91635         empty.
91636         Reported by Eric Blake.
91638 2007-07-18  Bruno Haible  <bruno@clisp.org>
91640         * gnulib-tool: New options --po-base, --po-domain.
91641         (func_usage): Document them.
91642         (pobase, po_domain): New variables.
91643         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
91644         DEFAULT_TEXT_DOMAIN.
91645         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
91646         (func_import): Consider pobase and po_domain. Create a po/ directory.
91647         (func_create_testdir): Set pobase and po_domain to empty.
91648         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
91649         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
91651 2007-07-18  Bruno Haible  <bruno@clisp.org>
91653         * gnulib-tool (func_get_automake_snippet): Synthesize also an
91654         EXTRA_DIST augmentation for files in build-aux/.
91656 2007-07-16  Bruno Haible  <bruno@clisp.org>
91658         * modules/lseek (License): Use the synonymous term "LGPLv2+".
91659         * modules/getdelim (License): Likewise.
91661 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91663         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
91664         * modules/d-type (License): Likewise.
91665         * modules/extensions (License): Likewise.
91666         * modules/fnmatch (License): Likewise.
91667         * modules/fseeko (License): Likewise.
91668         * modules/getaddrinfo (License): Likewise.
91669         * modules/getline (License): Likewise.
91670         * modules/getlogin_r (License): Likewise.
91671         * modules/getpass (License): Likewise.
91672         * modules/gettimeofday (License): Likewise.
91673         * modules/glob (License): Likewise.
91674         * modules/inet_ntop (License): Likewise.
91675         * modules/malloc (License): Likewise.
91676         * modules/malloca (License): Likewise.
91677         * modules/memmem (License): Likewise.
91678         * modules/mempcpy (License): Likewise.
91679         * modules/memset (License): Likewise.
91680         * modules/minmax (License): Likewise.
91681         * modules/mktime (License): Likewise.
91682         * modules/netinet_in (License): Likewise.
91683         * modules/pathmax (License): Likewise.
91684         * modules/poll (License): Likewise.
91685         * modules/regex (License): Likewise.
91686         * modules/snprintf (License): Likewise.
91687         * modules/stdbool (License): Likewise.
91688         * modules/stdint (License): Likewise.
91689         * modules/stdio (License): Likewise.
91690         * modules/strcase (License): Likewise.
91691         * modules/strcasestr (License): Likewise.
91692         * modules/strdup (License): Likewise.
91693         * modules/string (License): Likewise.
91694         * modules/strndup (License): Likewise.
91695         * modules/strnlen (License): Likewise.
91696         * modules/strpbrk (License): Likewise.
91697         * modules/strptime (License): Likewise.
91698         * modules/strsep (License): Likewise.
91699         * modules/sys_select (License): Likewise.
91700         * modules/sys_socket (License): Likewise.
91701         * modules/sys_stat (License): Likewise.
91702         * modules/sys_time (License): Likewise.
91703         * modules/time (License): Likewise.
91704         * modules/time_r (License): Likewise.
91705         * modules/timegm (License): Likewise.
91706         * modules/unistd (License): Likewise.
91707         * modules/vsnprintf (License): Likewise.
91708         * modules/wctype (License): Likewise.
91710 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91712         * modules/argz (License): LGPLv2+.
91714 2007-07-15  Karl Berry  <karl@gnu.org>
91716         * doc/gnulib.texi: revise node structure per new fdl.texi.
91718 2007-07-14  Bruno Haible  <bruno@clisp.org>
91720         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
91721         the output file.
91722         * lib/uniname/uninames.h: Regenerated.
91724 2007-07-14  Karl Berry  <karl@gnu.org>
91726         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
91727         omitting sectioning and index commands.
91729 2007-07-13  Bruno Haible  <bruno@clisp.org>
91731         New gnulib-tool option --more-symlinks.
91732         * gnulib-tool (func_usage): Document --more-symlinks.
91733         (do_copyrights): New variable.
91734         Recognize option --more-symlinks.
91735         (func_import): Don't add a copyright notice transform to
91736         sed_transform_lib_file if do_copyrights is empty.
91738 2007-07-13  Bruno Haible  <bruno@clisp.org>
91740         * lib/vasnprintf.c (decimal_point_char): Define also if
91741         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
91742         && !NEED_PRINTF_DIRECTIVE_A.
91743         Reported by Clemens Koller <clemens.koller@anagramm.de> via
91744         Gary V. Vaughan <gary@gnu.org>.
91746 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
91748         * lib/inttypes_.h: Undo previous change, since it was fixed
91749         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
91751 2007-07-13  Bruno Haible  <bruno@clisp.org>
91753         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
91754         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
91756 2007-07-13  Jim Meyering  <jim@meyering.net>
91758         df: Don't fail for Tru64's "file-on-file mount".
91759         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
91760         so we fall through and use statfs instead.  Details here:
91761         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
91762         Reported by Albert Chin.
91764 2007-07-13  Bruno Haible  <bruno@clisp.org>
91766         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
91767         * modules/configmake (License): Likewise.
91768         * modules/gettext (License): Likewise.
91769         * modules/gettext-h (License): Likewise.
91770         * modules/include_next (License): Likewise.
91771         * modules/link-warning (License): Likewise.
91772         * modules/localcharset (License): Likewise.
91773         * modules/localename (License): Likewise.
91774         * modules/lock (License): Likewise.
91775         * modules/relocatable-lib-lgpl (License): Likewise.
91776         * modules/size_max (License): Likewise.
91777         * modules/vasnprintf (License): Likewise.
91778         * modules/wchar (License): Likewise.
91779         * modules/xsize (License): Likewise.
91781 2007-07-13  Bruno Haible  <bruno@clisp.org>
91783         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
91784         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
91786 2007-07-12  Bruno Haible  <bruno@clisp.org>
91788         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
91789         in the modules files.
91791 2007-07-11  Karl Berry  <karl@gnu.org>
91793         * MODULES.html.sh (func_module): use
91794          sed -e '\|^'"${includefile}"'$|d'
91795          instead of /.../d, to avoid errors on $includefile's containing /.
91797 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
91799         * gnulib-tool (func_import): Avoid duplication of --avoid
91800         statements
91801         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
91802         names to `_' in variable names.
91804 2007-07-10  Eric Blake  <ebb9@byu.net>
91806         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
91807         * NEWS: Document this change.
91809 2007-07-08  Bruno Haible  <bruno@clisp.org>
91811         Update to Unicode 5.0.
91812         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
91813         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
91814         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
91815         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
91816         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
91817         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
91818         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
91819         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
91820         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
91821         U+10A3F, U+1D242..U+1D244.
91822         (nonspacing_table_ind): Update.
91823         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
91824         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
91826 2007-07-08  Bruno Haible  <bruno@clisp.org>
91828         Update to Unicode 5.0.
91829         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
91830         code transform. Extend the name index field of unicode_name_to_code and
91831         unicode_code_to_name from 16 to 24 bits.
91832         * lib/uniname/uniname.c (unicode_character_name,
91833         unicode_name_character): Add the range 0x12xxx to the code transform.
91834         * lib/uniname/uninames.h: Regenerated.
91835         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
91837 2007-07-07  Bruno Haible  <bruno@clisp.org>
91839         * modules/wcwidth-tests: New file.
91840         * tests/test-wcwidth.c: New file.
91842         Work around MacOS X wcwidth() bug.
91843         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
91844         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
91845         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
91846         original wcwidth in non-UTF-8 locales.
91847         * modules/wcwidth (Depends-on): Add localcharset, streq,
91848         uniwidth/width.
91849         * doc/functions/wcwidth.texi: Update.
91851 2007-07-07  Bruno Haible  <bruno@clisp.org>
91853         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
91854         (wcwidth): New declaration.
91855         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
91856         macros.
91857         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
91858         here. Prepare for creating <wchar.h> unconditionally.
91859         * modules/wchar (Depends-on): Add link-warning.
91860         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
91861         REPLACE_WCWIDTH, and GL_LINK_WARNING.
91862         * lib/wcwidth.h: Remove file.
91863         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
91864         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
91865         * modules/wcwidth (Files): Remove lib/wcwidth.h.
91866         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
91867         (Include): Replace wcwidth.h with <wchar.h>.
91868         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
91869         * lib/mbchar.h: Don't include wcwidth.h.
91870         * lib/mbswidth.c: Likewise.
91871         * NEWS: Mention the change.
91873 2007-07-07  Bruno Haible  <bruno@clisp.org>
91875         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
91876         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
91877         definition with an external declaration.
91878         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
91879         defined as a function. Remove AC_C_INLINE requirement.
91880         * modules/wcwidth (Files): Add lib/wcwidth.c.
91881         (Makefile.am): Remove redundant statement.
91883 2007-07-07  Bruno Haible  <bruno@clisp.org>
91885         * MODULES.html.sh (Unicode string functions): Add the new modules.
91887         * tests/uniwidth/test-u32-strwidth.c: New file.
91888         * modules/uniwidth/u32-strwidth-tests: New file.
91890         * lib/uniwidth/u32-strwidth.c: New file.
91891         * modules/uniwidth/u32-strwidth: New file.
91893         * tests/uniwidth/test-u16-strwidth.c: New file.
91894         * modules/uniwidth/u16-strwidth-tests: New file.
91896         * lib/uniwidth/u16-strwidth.c: New file.
91897         * modules/uniwidth/u16-strwidth: New file.
91899         * tests/uniwidth/test-u8-strwidth.c: New file.
91900         * modules/uniwidth/u8-strwidth-tests: New file.
91902         * lib/uniwidth/u8-strwidth.c: New file.
91903         * modules/uniwidth/u8-strwidth: New file.
91905         * tests/uniwidth/test-u32-width.c: New file.
91906         * modules/uniwidth/u32-width-tests: New file.
91908         * lib/uniwidth/u32-width.c: New file.
91909         * modules/uniwidth/u32-width: New file.
91911         * tests/uniwidth/test-u16-width.c: New file.
91912         * modules/uniwidth/u16-width-tests: New file.
91914         * lib/uniwidth/u16-width.c: New file.
91915         * modules/uniwidth/u16-width: New file.
91917         * tests/uniwidth/test-u8-width.c: New file.
91918         * modules/uniwidth/u8-width-tests: New file.
91920         * lib/uniwidth/u8-width.c: New file.
91921         * modules/uniwidth/u8-width: New file.
91923         * tests/uniwidth/test-uc_width.c: New file.
91924         * modules/uniwidth/width-tests: New file.
91926         * lib/uniwidth/width.c: New file, from GNU libiconv.
91927         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
91928         * modules/uniwidth/width: New file.
91930         * lib/uniwidth.h: New file, from GNU libiconv.
91931         * modules/uniwidth/base: New file.
91933 2007-07-07  Bruno Haible  <bruno@clisp.org>
91935         * lib/uniname.h: New file, from GNU gettext.
91936         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
91937         * lib/uniname/uninames.h: New file, from GNU gettext.
91938         * lib/uniname/uniname.c: New file, from GNU gettext.
91939         * tests/uniname/test-uninames.sh: New file.
91940         * tests/uniname/test-uninames.c: New file, from GNU gettext.
91941         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
91942         * modules/uniname/base: New file.
91943         * modules/uniname/uniname: New file.
91944         * modules/uniname/uniname-tests: New file.
91945         * MODULES.html.sh (Unicode string functions): Add the new modules.
91947 2007-07-06  Bruno Haible  <bruno@clisp.org>
91949         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
91951 2007-07-06  Bruno Haible  <bruno@clisp.org>
91953         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
91954         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
91955         includes <cygwin/sys_time.h> which includes <sys/select.h> which
91956         include <sys/time.h>.
91957         Reported by Eric Blake.
91959 2007-07-06  Eric Blake  <ebb9@byu.net>
91961         Fix testing canonicalize on cygwin.
91962         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
91963         Revert patch from 2007-06-19.
91964         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
91965         canonicalize module is also in use.
91966         * tests/test-canonicalize.c: New file.
91967         * tests/test-canonicalize.sh: Likewise.
91968         * modules/canonicalize-tests: Likewise.
91970 2007-07-06  Jim Meyering  <jim@meyering.net>
91972         * lib/getugroups.c (getugroups): Detect getgrent failure.
91973         Adjust comment to reflect reality: this function may return -1.
91975 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
91977         * build-aux/bootstrap (TP_URL,get_translations): Update to use
91978         the new TP address.
91979         (usage): Fix typo
91980         (gnulib_mk): New variable.
91982 2007-07-05  Jim Meyering  <jim@meyering.net>
91984         Don't let endgrent clobber errno, no matter how improbable.
91985         * lib/getugroups.c (getugroups): Save and restore errno around
91986         endgrent call.
91988         Close the group DB even when failing with 2^31 or more members.
91989         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
91991 2007-07-04  Jim Meyering  <jim@meyering.net>
91993         * lib/getugroups.h: New file.
91994         * lib/getugroups.c: Include "getugroups.h".
91995         Remove uses of "register" keyword.
91996         Move local variable, "cp", down into scope where used.
91997         Give "username" parameter the "const" attribute.
91998         * modules/getugroups (Files): Add lib/getugroups.h
92000 2007-07-04  Karl Berry  <karl@gnu.org>
92002         * MODULES.html.sh (func_all_modules): Complete rename of
92003         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
92005 2007-07-02  Bruno Haible  <bruno@clisp.org>
92007         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
92008         mode, when inttypes.h comes from gnulib.
92009         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
92011 2007-07-02  Simon Josefsson  <simon@josefsson.org>
92013         * NEWS: Mention lgpl module name change.
92015         * modules/lgpl-2.1: Renamed from lgpl.
92017         * NEWS: Mention gpl module name change.
92019         * modules/gpl-3.0: New file, based on gpl-2.0.
92021         * modules/gpl-2.0: Renamed from gpl.
92023         * modules/gpl: Fix filename, doc/gpl.texi is now found at
92024         doc/gpl-2.0.texi.
92026 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
92028         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
92029         #define __STDC_LIMIT_MACROS temporarily while including
92030         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
92031         Problem reported by Joel E. Denny in
92032         <http://lists.gnu.org/r/bug-gnulib/2007-07/msg00008.html>.
92034 2007-07-01  Bruno Haible  <bruno@clisp.org>
92036         * lib/unistdio.h: New file.
92037         * lib/unistdio/u-asnprintf.h: New file.
92038         * lib/unistdio/u-asprintf.h: New file.
92039         * lib/unistdio/u-printf-args.c: New file.
92040         * lib/unistdio/u-printf-args.h: New file.
92041         * lib/unistdio/u-printf-parse.h: New file.
92042         * lib/unistdio/u-snprintf.h: New file.
92043         * lib/unistdio/u-sprintf.h: New file.
92044         * lib/unistdio/u-vasprintf.h: New file.
92045         * lib/unistdio/u-vsnprintf.h: New file.
92046         * lib/unistdio/u-vsprintf.h: New file.
92047         * lib/unistdio/ulc-asnprintf.c: New file.
92048         * lib/unistdio/ulc-asprintf.c: New file.
92049         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
92050         * lib/unistdio/ulc-printf-parse.c: New file.
92051         * lib/unistdio/ulc-snprintf.c: New file.
92052         * lib/unistdio/ulc-sprintf.c: New file.
92053         * lib/unistdio/ulc-vasnprintf.c: New file.
92054         * lib/unistdio/ulc-vasprintf.c: New file.
92055         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
92056         * lib/unistdio/ulc-vsnprintf.c: New file.
92057         * lib/unistdio/ulc-vsprintf.c: New file.
92058         * lib/unistdio/u8-asnprintf.c: New file.
92059         * lib/unistdio/u8-asprintf.c: New file.
92060         * lib/unistdio/u8-printf-parse.c: New file.
92061         * lib/unistdio/u8-snprintf.c: New file.
92062         * lib/unistdio/u8-sprintf.c: New file.
92063         * lib/unistdio/u8-vasnprintf.c: New file.
92064         * lib/unistdio/u8-vasprintf.c: New file.
92065         * lib/unistdio/u8-vsnprintf.c: New file.
92066         * lib/unistdio/u8-vsprintf.c: New file.
92067         * lib/unistdio/u8-u8-asnprintf.c: New file.
92068         * lib/unistdio/u8-u8-asprintf.c: New file.
92069         * lib/unistdio/u8-u8-snprintf.c: New file.
92070         * lib/unistdio/u8-u8-sprintf.c: New file.
92071         * lib/unistdio/u8-u8-vasnprintf.c: New file.
92072         * lib/unistdio/u8-u8-vasprintf.c: New file.
92073         * lib/unistdio/u8-u8-vsnprintf.c: New file.
92074         * lib/unistdio/u8-u8-vsprintf.c: New file.
92075         * lib/unistdio/u16-asnprintf.c: New file.
92076         * lib/unistdio/u16-asprintf.c: New file.
92077         * lib/unistdio/u16-printf-parse.c: New file.
92078         * lib/unistdio/u16-snprintf.c: New file.
92079         * lib/unistdio/u16-sprintf.c: New file.
92080         * lib/unistdio/u16-vasnprintf.c: New file.
92081         * lib/unistdio/u16-vasprintf.c: New file.
92082         * lib/unistdio/u16-vsnprintf.c: New file.
92083         * lib/unistdio/u16-vsprintf.c: New file.
92084         * lib/unistdio/u16-u16-asnprintf.c: New file.
92085         * lib/unistdio/u16-u16-asprintf.c: New file.
92086         * lib/unistdio/u16-u16-snprintf.c: New file.
92087         * lib/unistdio/u16-u16-sprintf.c: New file.
92088         * lib/unistdio/u16-u16-vasnprintf.c: New file.
92089         * lib/unistdio/u16-u16-vasprintf.c: New file.
92090         * lib/unistdio/u16-u16-vsnprintf.c: New file.
92091         * lib/unistdio/u16-u16-vsprintf.c: New file.
92092         * lib/unistdio/u32-asnprintf.c: New file.
92093         * lib/unistdio/u32-asprintf.c: New file.
92094         * lib/unistdio/u32-printf-parse.c: New file.
92095         * lib/unistdio/u32-snprintf.c: New file.
92096         * lib/unistdio/u32-sprintf.c: New file.
92097         * lib/unistdio/u32-vasnprintf.c: New file.
92098         * lib/unistdio/u32-vasprintf.c: New file.
92099         * lib/unistdio/u32-vsnprintf.c: New file.
92100         * lib/unistdio/u32-vsprintf.c: New file.
92101         * lib/unistdio/u32-u32-asnprintf.c: New file.
92102         * lib/unistdio/u32-u32-asprintf.c: New file.
92103         * lib/unistdio/u32-u32-snprintf.c: New file.
92104         * lib/unistdio/u32-u32-sprintf.c: New file.
92105         * lib/unistdio/u32-u32-vasnprintf.c: New file.
92106         * lib/unistdio/u32-u32-vasprintf.c: New file.
92107         * lib/unistdio/u32-u32-vsnprintf.c: New file.
92108         * lib/unistdio/u32-u32-vsprintf.c: New file.
92109         * tests/unistdio/test-ulc-asnprintf1.c: New file.
92110         * tests/unistdio/test-ulc-asnprintf1.h: New file.
92111         * tests/unistdio/test-ulc-printf1.h: New file.
92112         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
92113         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
92114         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
92115         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
92116         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
92117         * tests/unistdio/test-ulc-vasprintf1.c: New file.
92118         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
92119         * tests/unistdio/test-ulc-vsprintf1.c: New file.
92120         * tests/unistdio/test-u8-asnprintf1.c: New file.
92121         * tests/unistdio/test-u8-asnprintf1.h: New file.
92122         * tests/unistdio/test-u8-printf1.h: New file.
92123         * tests/unistdio/test-u8-vasnprintf1.c: New file.
92124         * tests/unistdio/test-u8-vasnprintf2.c: New file.
92125         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
92126         * tests/unistdio/test-u8-vasnprintf3.c: New file.
92127         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
92128         * tests/unistdio/test-u8-vasprintf1.c: New file.
92129         * tests/unistdio/test-u8-vsnprintf1.c: New file.
92130         * tests/unistdio/test-u8-vsprintf1.c: New file.
92131         * tests/unistdio/test-u16-asnprintf1.c: New file.
92132         * tests/unistdio/test-u16-asnprintf1.h: New file.
92133         * tests/unistdio/test-u16-printf1.h: New file.
92134         * tests/unistdio/test-u16-vasnprintf1.c: New file.
92135         * tests/unistdio/test-u16-vasnprintf2.c: New file.
92136         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
92137         * tests/unistdio/test-u16-vasnprintf3.c: New file.
92138         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
92139         * tests/unistdio/test-u16-vasprintf1.c: New file.
92140         * tests/unistdio/test-u16-vsnprintf1.c: New file.
92141         * tests/unistdio/test-u16-vsprintf1.c: New file.
92142         * tests/unistdio/test-u32-asnprintf1.c: New file.
92143         * tests/unistdio/test-u32-asnprintf1.h: New file.
92144         * tests/unistdio/test-u32-printf1.h: New file.
92145         * tests/unistdio/test-u32-vasnprintf1.c: New file.
92146         * tests/unistdio/test-u32-vasnprintf2.c: New file.
92147         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
92148         * tests/unistdio/test-u32-vasnprintf3.c: New file.
92149         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
92150         * tests/unistdio/test-u32-vasprintf1.c: New file.
92151         * tests/unistdio/test-u32-vsnprintf1.c: New file.
92152         * tests/unistdio/test-u32-vsprintf1.c: New file.
92153         * modules/unistdio/base: New file.
92154         * modules/unistdio/u-printf-args: New file.
92155         * modules/unistdio/ulc-asnprintf: New file.
92156         * modules/unistdio/ulc-asprintf: New file.
92157         * modules/unistdio/ulc-fprintf: New file.
92158         * modules/unistdio/ulc-printf-parse: New file.
92159         * modules/unistdio/ulc-snprintf: New file.
92160         * modules/unistdio/ulc-sprintf: New file.
92161         * modules/unistdio/ulc-vasnprintf: New file.
92162         * modules/unistdio/ulc-vasprintf: New file.
92163         * modules/unistdio/ulc-vfprintf: New file.
92164         * modules/unistdio/ulc-vsnprintf: New file.
92165         * modules/unistdio/ulc-vsprintf: New file.
92166         * modules/unistdio/u8-asnprintf: New file.
92167         * modules/unistdio/u8-asprintf: New file.
92168         * modules/unistdio/u8-printf-parse: New file.
92169         * modules/unistdio/u8-snprintf: New file.
92170         * modules/unistdio/u8-sprintf: New file.
92171         * modules/unistdio/u8-vasnprintf: New file.
92172         * modules/unistdio/u8-vasprintf: New file.
92173         * modules/unistdio/u8-vsnprintf: New file.
92174         * modules/unistdio/u8-vsprintf: New file.
92175         * modules/unistdio/u8-u8-asnprintf: New file.
92176         * modules/unistdio/u8-u8-asprintf: New file.
92177         * modules/unistdio/u8-u8-snprintf: New file.
92178         * modules/unistdio/u8-u8-sprintf: New file.
92179         * modules/unistdio/u8-u8-vasnprintf: New file.
92180         * modules/unistdio/u8-u8-vasprintf: New file.
92181         * modules/unistdio/u8-u8-vsnprintf: New file.
92182         * modules/unistdio/u8-u8-vsprintf: New file.
92183         * modules/unistdio/u16-asnprintf: New file.
92184         * modules/unistdio/u16-asprintf: New file.
92185         * modules/unistdio/u16-printf-parse: New file.
92186         * modules/unistdio/u16-snprintf: New file.
92187         * modules/unistdio/u16-sprintf: New file.
92188         * modules/unistdio/u16-vasnprintf: New file.
92189         * modules/unistdio/u16-vasprintf: New file.
92190         * modules/unistdio/u16-vsnprintf: New file.
92191         * modules/unistdio/u16-vsprintf: New file.
92192         * modules/unistdio/u16-u16-asnprintf: New file.
92193         * modules/unistdio/u16-u16-asprintf: New file.
92194         * modules/unistdio/u16-u16-snprintf: New file.
92195         * modules/unistdio/u16-u16-sprintf: New file.
92196         * modules/unistdio/u16-u16-vasnprintf: New file.
92197         * modules/unistdio/u16-u16-vasprintf: New file.
92198         * modules/unistdio/u16-u16-vsnprintf: New file.
92199         * modules/unistdio/u16-u16-vsprintf: New file.
92200         * modules/unistdio/u32-asnprintf: New file.
92201         * modules/unistdio/u32-asprintf: New file.
92202         * modules/unistdio/u32-printf-parse: New file.
92203         * modules/unistdio/u32-snprintf: New file.
92204         * modules/unistdio/u32-sprintf: New file.
92205         * modules/unistdio/u32-vasnprintf: New file.
92206         * modules/unistdio/u32-vasprintf: New file.
92207         * modules/unistdio/u32-vsnprintf: New file.
92208         * modules/unistdio/u32-vsprintf: New file.
92209         * modules/unistdio/u32-u32-asnprintf: New file.
92210         * modules/unistdio/u32-u32-asprintf: New file.
92211         * modules/unistdio/u32-u32-snprintf: New file.
92212         * modules/unistdio/u32-u32-sprintf: New file.
92213         * modules/unistdio/u32-u32-vasnprintf: New file.
92214         * modules/unistdio/u32-u32-vasprintf: New file.
92215         * modules/unistdio/u32-u32-vsnprintf: New file.
92216         * modules/unistdio/u32-u32-vsprintf: New file.
92217         * modules/unistdio/ulc-asnprintf-tests: New file.
92218         * modules/unistdio/ulc-vasnprintf-tests: New file.
92219         * modules/unistdio/ulc-vasprintf-tests: New file.
92220         * modules/unistdio/ulc-vsnprintf-tests: New file.
92221         * modules/unistdio/ulc-vsprintf-tests: New file.
92222         * modules/unistdio/u8-asnprintf-tests: New file.
92223         * modules/unistdio/u8-vasnprintf-tests: New file.
92224         * modules/unistdio/u8-vasprintf-tests: New file.
92225         * modules/unistdio/u8-vsnprintf-tests: New file.
92226         * modules/unistdio/u8-vsprintf-tests: New file.
92227         * modules/unistdio/u16-asnprintf-tests: New file.
92228         * modules/unistdio/u16-vasnprintf-tests: New file.
92229         * modules/unistdio/u16-vasprintf-tests: New file.
92230         * modules/unistdio/u16-vsnprintf-tests: New file.
92231         * modules/unistdio/u16-vsprintf-tests: New file.
92232         * modules/unistdio/u32-asnprintf-tests: New file.
92233         * modules/unistdio/u32-vasnprintf-tests: New file.
92234         * modules/unistdio/u32-vasprintf-tests: New file.
92235         * modules/unistdio/u32-vsnprintf-tests: New file.
92236         * modules/unistdio/u32-vsprintf-tests: New file.
92237         * MODULES.html.sh (Unicode string functions): Add the new modules.
92239 2007-07-01  Bruno Haible  <bruno@clisp.org>
92241         * lib/sprintf.c (sprintf): Limit the available length estimation,
92242         to avoid address wraparound.
92243         * lib/vsprintf.c (vsprintf): Likewise.
92244         * modules/sprintf-posix (Dependencies): Add stdint.
92245         * modules/vsprintf-posix (Dependencies): Likewise.
92247 2007-07-01  Bruno Haible  <bruno@clisp.org>
92249         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
92250         Windows PATH as well. Conservative double-quoting. Comments.
92252 2007-07-01  Bruno Haible  <bruno@clisp.org>
92253             Eric Blake  <ebb9@byu.net>
92254             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92256         * gnulib-tool (self_abspathname): Fix algorithm to cope with
92257         empty components in $PATH, denoting '.'.
92259 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92261         * gnulib-tool: Fix indentation.
92262         (func_create_megatestdir): Likewise.
92263         Report by Bruno Haible.
92265 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92267         Sync from Automake.
92268         * build-aux/gnupload: Fix shell portability issues with for loops.
92269         Report by Karl Berry.
92271 2007-06-29  Simon Josefsson  <simon@josefsson.org>
92273         * build-aux/maint.mk (POURL): Use translationproject.org.
92275 2007-06-27  Simon Josefsson  <simon@josefsson.org>
92276             Bruno Haible  <bruno@clisp.org>
92278         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
92279         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
92280         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
92281         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
92282         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
92284 2007-06-27  Bruno Haible  <bruno@clisp.org>
92286         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
92287         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
92289 2007-06-26  Karl Berry  <karl@gnu.org>
92291         * MODULES.html.sh: remove xreadlink-with-size.
92293 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
92295         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
92296         method that I hope also handles the double-include problem noted
92297         by Bruno Haible in
92298         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00186.html>.
92300 2007-06-23  Bruno Haible  <bruno@clisp.org>
92302         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
92303         Don't let the 'mostlyclean' target fail if the last subdirectory could
92304         not be removed.
92305         Reported by Karl Berry.
92307 2007-06-23  Bruno Haible  <bruno@clisp.org>
92309         * gnulib-tool (echo): Add a speedier workaround for ksh.
92310         * tests/test-echo.sh: Likewise.
92312 2007-06-23  Bruno Haible  <bruno@clisp.org>
92314         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
92315         * tests/test-echo.sh: Likewise.
92317 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92319         * gnulib-tool (IFS): Initialize early, so we don't set it to
92320         empty later.
92321         (self_abspathname): Rewrite algorithm to set it, reindent.
92322         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
92323         (func_create_megatestdir): Merge some sed scripts.
92325 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
92327         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
92328         exposed by Sun Studio 11 cc on Solaris 8.
92330 2007-06-22  Bruno Haible  <bruno@clisp.org>
92332         * gnulib-tool (echo): Ensure the echo primitive does not interpret
92333         backslashes.
92334         * tests/test-echo.sh: New file.
92336 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92338         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
92339         simplify `sed_replace_build_aux' scripts, they are portable but
92340         echoing them with `echo' is not.
92341         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
92343 2007-06-21  Karl Berry  <karl@gnu.org>
92345         * config/srclist.txt: guess we can't handle the licenses via
92346         srclist at the moment.
92348 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
92350         * MODULES.html.sh: Add include_next.
92351         * modules/include_next: New file.
92353 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
92355         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
92356         INCLUDE_NEXT.
92357         (gl_CHECK_NEXT_HEADERS): New macro.
92358         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
92359         the obsolescent gl_ABSOLUTE_HEADER.
92360         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
92361         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
92362         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
92363         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
92364         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
92365         * m4/math_h.m4 (gl_MATH_H): Likewise.
92366         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
92367         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
92368         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
92369         * m4/stdint.m4 (gl_STDINT_H): Likewise.
92370         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
92371         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
92372         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
92373         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
92374         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
92375         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
92376         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
92377         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
92378         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
92379         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
92380         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
92381         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
92382         * m4/inttypes.m4 (gl_INTTYPES_H): Define
92383         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
92384         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
92385         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
92386         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
92387         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
92388         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
92389         * lib/float_.h: Likewise.
92390         * lib/inttypes_.h: Likewise.
92391         * lib/math_.h: Likewise.
92392         * lib/search_.h: Likewise.
92393         * lib/signal_.h: Likewise.
92394         * lib/stdint_.h: Likewise.
92395         * lib/stdio_.h: Likewise.
92396         * lib/stdlib_.h: Likewise.
92397         * lib/string_.h: Likewise.
92398         * lib/sys_stat_.h: Likewise.
92399         * lib/sys_time_.h: Likewise.
92400         * lib/time_.h: Likewise.
92401         * lib/unistd_.h: Likewise.
92402         * lib/wchar_.h: Likewise.
92403         * lib/wctype_.h: Likewise.
92404         * lib/dirent_.h: Likewise.
92405         * lib/iconv_.h: Likewise.
92406         * lib/locale_.h: Likewise.
92407         * lib/netinet_in_.h: Likewise.
92408         * lib/sys_select_.h: Likewise.
92409         * lib/sys_socket_.h: Likewise.
92410         * lib/sysexits_.h: Likewise.
92411         * modules/fcntl (Depends-on): Depend on include_next, not
92412         absolute_header.
92413         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
92414         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
92415         * modules/fchdir: Likewise.
92416         * modules/float: Likewise.
92417         * modules/iconv_open: Likewise.
92418         * modules/inttypes: Likewise.
92419         * modules/locale: Likewise.
92420         * modules/math: Likewise.
92421         * modules/netinet_in: Likewise.
92422         * modules/search: Likewise.
92423         * modules/signal: Likewise.
92424         * modules/stdint: Likewise.
92425         * modules/stdio: Likewise.
92426         * modules/stdlib: Likewise.
92427         * modules/string: Likewise.
92428         * modules/sys_select: Likewise.
92429         * modules/sys_socket: Likewise.
92430         * modules/sys_stat: Likewise.
92431         * modules/sys_time: Likewise.
92432         * modules/sysexits: Likewise.
92433         * modules/time: Likewise.
92434         * modules/unistd: Likewise.
92435         * modules/wchar: Likewise.
92436         * modules/wctype: Likewise.
92437         * modules/sys_stat: Change maintainer to "all".
92438         * modules/unistd: Likewise.
92440 2007-06-20  Karl Berry  <karl@gnu.org>
92442         * config/srclist.txt: track www changes in license files.
92444 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
92446         * build-aux/bootstrap: Remove stray dot.
92447         Make sure build_aux settings are honored when linking
92448         gnulib_extra_files.
92450 2007-06-19  Eric Blake  <ebb9@byu.net>
92452         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
92453         Allow compilation on cygwin.
92455 2007-06-19  Jim Meyering  <jim@meyering.net>
92457         xreadlink-with-size: Remove module.  No longer used.
92458         Ex-callers now use xreadlink or mreadlink-with-size.
92459         * modules/xreadlink-with-size: Remove module.
92460         * lib/xreadlink-with-size.c: Remove file.
92461         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
92462         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
92463         just before the function definition *is* accurate.
92465         Eliminate one way canonicalize_filename_mode could exit.
92466         * lib/canonicalize.c (canonicalize_filename_mode):
92467         Use mreadlink_with_size, not xreadlink_with_size.
92469 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
92471         Detect porting problems to FreeBSD/arm, which has time_t wider than
92472         long int.  Original problem reported for GNU diff by Xin Li in
92473         <http://lists.gnu.org/r/bug-gnu-utils/2007-06/msg00091.html>.
92474         * modules/getdate (Depends-on): Add intprops, verify.
92475         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
92476         is an integer type no wider than long int.
92478 2007-06-18  Jim Meyering  <jim@meyering.net>
92480         New module: mreadlink-with-size.
92481         * MODULES.html.sh: Add mreadlink-with-size.
92482         * modules/mreadlink-with-size: New module
92483         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
92484         not xreadlink-with-size.
92485         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
92487 2007-06-16  Bruno Haible  <bruno@clisp.org>
92489         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
92490         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
92491         Reported by Gary V. Vaughan <gary@gnu.org>.
92493 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
92495         Revamp lchown so that it lives in unistd.h where it belongs.
92496         * lib/lchown.h: Remove.
92497         * lib/dirchownmod.c: Don't include lib/lchown.h.
92498         * lib/fchownat.c: Likewise.
92499         * lib/openat.c: Likewise.
92500         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
92501         does not follow symlinks.
92502         (EOPNOTSUPP): Define if not defined.
92503         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
92504         is defined to 0.
92505         (lchown): New decl.
92506         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
92507         Do not check for lchown decl.
92508         Set REPLACE_LCHOWN.
92509         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
92510         REPLACE_LCHOWN.
92511         * modules/chown: Make it clear it follows symlinks.
92512         * modules/lchown: Make it clear it doesn't follow symlinks.
92513         (Files): Remove lib/lchown.h
92514         (Depends-on): Add unistd.
92515         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
92516         (Include): Include <unistd.h>, not "lchown.h".
92517         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
92518         REPLACE_LCHOWN.
92520 2007-06-15  Jim Meyering  <jim@meyering.net>
92522         Change license (GPL to LGPL) of fsusage and dependents.
92523         * modules/fsusage (License): Change to LGPL.
92524         * modules/full-read (License): Likewise.
92525         * modules/full-write (License): Likewise.
92526         * modules/safe-read (License): Likewise.
92527         * modules/safe-write (License): Likewise.
92529 2007-06-14  Ben Pfaff  <blp@gnu.org>
92531         Missing part of allocsa -> malloca transition.
92532         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
92533         gl_MALLOCA.
92535 2007-06-12  Bruno Haible  <bruno@clisp.org>
92537         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
92538         to ia64, x86_64, i386.
92539         Reported by Eric Blake.
92541 2007-06-12  Bruno Haible  <bruno@clisp.org>
92543         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
92544         cross-compiling to x86_64.
92546 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
92548         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
92549         glitch reported by Ralf Wildenhues in
92550         <http://lists.gnu.org/r/bug-gnulib/2007-06/msg00114.html>.
92552         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
92553         Vin Shelton.
92555 2007-06-11  Bruno Haible  <bruno@clisp.org>
92557         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
92558         replacement string.
92559         Reported by Eric Blake.
92561 2007-06-10  Bruno Haible  <bruno@clisp.org>
92563         Prepare vasnprintf code for use with Unicode strings.
92564         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
92565         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
92566         TYPE_U32_STRING.
92567         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
92568         a_u32_string variants.
92569         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
92570         * lib/printf-args.c: Don't include config.h and the specification
92571         header if PRINTF_FETCHARGS is already defined.
92572         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
92573         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
92574         TYPE_U16_STRING, TYPE_U32_STRING.
92575         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
92576         u16_directive, u16_directives, u32_directive, u32_directives): New
92577         types.
92578         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
92579         New declarations.
92580         * lib/printf-parse.c: Don't include config.h and the specification
92581         header if PRINTF_PARSE is already defined. Eliminate the set of
92582         parameters for WIDE_CHAR_VERSION; the user of this file must provide
92583         them now. Include c-ctype.h.
92584         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
92585         directive and CHAR_T_ONLY_ASCII.
92586         * lib/vasnprintf.c: Don't include config.h and the specification header
92587         if VASNPRINTF is already defined.
92588         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
92589         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
92590         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
92591         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
92592         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
92593         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
92594         code accordingly.
92595         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
92596         pad_ourselves also in this case, with the 'c' and 's' directives, and
92597         with a different notion of "width".
92598         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
92600 2007-06-10  Bruno Haible  <bruno@clisp.org>
92602         * modules/unistr/u32-mbsnlen: New file.
92603         * lib/unistr/u32-mbsnlen.c: New file.
92605         * modules/unistr/u16-mbsnlen: New file.
92606         * lib/unistr/u16-mbsnlen.c: New file.
92608         * modules/unistr/u8-mbsnlen: New file.
92609         * lib/unistr/u8-mbsnlen.c: New file.
92611         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
92612         declarations.
92614 2007-06-10  Bruno Haible  <bruno@clisp.org>
92616         * lib/string_.h (mbsnlen): New declaration.
92617         * lib/mbsnlen.c: New file.
92618         * m4/mbsnlen.m4: New file.
92619         * modules/mbsnlen: New file.
92620         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
92621         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
92622         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
92624 2007-06-10  Bruno Haible  <bruno@clisp.org>
92626         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
92628 2007-06-10  Bruno Haible  <bruno@clisp.org>
92630         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
92631         * lib/mbuiter.h: Likewise.
92633 2007-06-10  Bruno Haible  <bruno@clisp.org>
92635         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
92636         declaration.
92638 2007-06-10  Karl Berry  <karl@gnu.org>
92640         * config/srclist.txt: remove gettext entries, Bruno prefers
92641         to update individually.
92643 2007-06-10  Bruno Haible  <bruno@clisp.org>
92645         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
92646         'maxlen'. Ensure only length + width bytes are allocated, not
92647         length + 1 + width.
92649 2007-06-09  Bruno Haible  <bruno@clisp.org>
92651         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
92652         (CHAR_T): Remove macro.
92653         (VASNPRINTF): Update.
92655 2007-06-09  Bruno Haible  <bruno@clisp.org>
92657         * MODULES.html.sh (Unicode string functions): Add the new modules.
92659         * modules/uniconv/u32-conv-to-enc: New file.
92660         * lib/uniconv/u32-conv-to-enc.c: New file.
92661         * modules/uniconv/u32-conv-to-enc-tests: New file.
92662         * tests/uniconv/test-u32-conv-to-enc.c: New file.
92664         * modules/uniconv/u16-conv-to-enc: New file.
92665         * lib/uniconv/u16-conv-to-enc.c: New file.
92666         * lib/uniconv/u-conv-to-enc.h: New file.
92667         * modules/uniconv/u16-conv-to-enc-tests: New file.
92668         * tests/uniconv/test-u16-conv-to-enc.c: New file.
92670         * modules/uniconv/u8-conv-to-enc: New file.
92671         * lib/uniconv/u8-conv-to-enc.c: New file.
92672         * modules/uniconv/u8-conv-to-enc-tests: New file.
92673         * tests/uniconv/test-u8-conv-to-enc.c: New file.
92675         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
92676         u32_conv_to_encoding): New declarations.
92678 2007-06-09  Bruno Haible  <bruno@clisp.org>
92680         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
92682 2007-06-09  Bruno Haible  <bruno@clisp.org>
92684         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
92685         * modules/malloca: Renamed from modules/allocsa, updated.
92686         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
92687         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
92688         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
92689         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
92690         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
92691         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
92692         * modules/xmalloca: Renamed from modules/xallocsa, updated.
92693         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
92694         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
92695         * modules/c-strcasestr (Depends-on): Update.
92696         * lib/c-strcasestr.c: Update.
92697         * modules/c-strstr (Depends-on): Update.
92698         * lib/c-strstr.c: Update.
92699         * modules/canonicalize-lgpl (Depends-on): Update.
92700         * lib/canonicalize-lgpl.c: Update.
92701         * modules/clean-temp (Depends-on): Update.
92702         * lib/clean-temp.c: Update.
92703         * modules/csharpcomp (Depends-on): Update.
92704         * lib/csharpcomp.c: Update.
92705         * modules/csharpexec (Depends-on): Update.
92706         * lib/csharpexec.c: Update.
92707         * modules/javacomp (Depends-on): Update.
92708         * lib/javacomp.c: Update.
92709         * modules/javaexec (Depends-on): Update.
92710         * lib/javaexec.c: Update.
92711         * modules/mbscasestr (Depends-on): Update.
92712         * lib/mbscasestr.c: Update.
92713         * modules/mbsstr (Depends-on): Update.
92714         * lib/mbsstr.c: Update.
92715         * modules/setenv (Depends-on): Update.
92716         * lib/setenv.c: Update.
92717         * modules/strcasestr (Depends-on): Update.
92718         * lib/strcasestr.c: Update.
92719         * modules/striconveha (Depends-on): Update.
92720         * lib/striconveha.c: Update.
92721         * modules/relocatable-prog-wrapper (Files): Update.
92722         * lib/relocwrapper.c: Update.
92723         * build-aux/install-reloc: Update.
92724         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
92726 2007-06-08  Bruno Haible  <bruno@clisp.org>
92728         Port to uClibc.
92729         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
92730         * lib/fpurge.c (fpurge): Likewise.
92731         * lib/freading.c (freading): Likewise.
92732         * lib/fseeko.c (rpl_fseeko): Likewise.
92733         * lib/fseterr.c (fseterr): Likewise.
92734         * lib/fwriting.c (fwriting): Likewise.
92735         * tests/test-fflush.c (main): Avoid a failure on uClibc.
92737 2007-06-08  Bruno Haible  <bruno@clisp.org>
92739         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
92740         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
92741         * modules/gettext (Files): Add m4/intlmacosx.m4.
92743 2007-06-07  Bruno Haible  <bruno@clisp.org>
92745         * modules/localename-tests: New file.
92746         * tests/test-localename.c: New file.
92748         New module 'localename'.
92749         * lib/localename.h: New file.
92750         * lib/localename.c: New file, from GNU gettext.
92751         * m4/localename.m4: New file.
92752         * modules/localename: New file.
92754 2007-06-07  Bruno Haible  <bruno@clisp.org>
92756         Work around the lack of <wchar.h> on some builds of uClibc.
92757         * doc/headers/wchar.texi: Update.
92758         * lib/wchar_.h: Include <wchar.h> only if it exists.
92759         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
92760         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
92761         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
92762         doesn't exist.
92763         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
92764         * modules/mbfile (Depends-on): Add wchar.
92765         * modules/mbiter (Depends-on): Likewise.
92766         * modules/mbuiter (Depends-on): Likewise.
92767         Reported by Simon Josefsson.
92769 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
92771         Work around problem reported by Steven M. Schweda in
92772         <http://lists.gnu.org/r/bug-tar/2007-06/msg00002.html>:
92773         Tru64 5.1B with the Compaq compiler environment installed declares
92774         an 'isblank' function but does not define it in the C library.
92775         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
92776         * lib/regex_internal.h (isblank): Likewise.
92777         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
92778         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
92780 2007-06-05  Bruno Haible  <bruno@clisp.org>
92782         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
92783         ia64.
92784         * modules/printf-safe: New file.
92785         * modules/fprintf-posix (Depends-on): Add printf-safe.
92786         * modules/printf-posix (Depends-on): Likewise.
92787         * modules/snprintf-posix (Depends-on): Likewise.
92788         * modules/sprintf-posix (Depends-on): Likewise.
92789         * modules/vasnprintf-posix (Depends-on): Likewise.
92790         * modules/vasprintf-posix (Depends-on): Likewise.
92791         * modules/vfprintf-posix (Depends-on): Likewise.
92792         * modules/vprintf-posix (Depends-on): Likewise.
92793         * modules/vsnprintf-posix (Depends-on): Likewise.
92794         * modules/vsprintf-posix (Depends-on): Likewise.
92795         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
92796         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
92797         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
92798         "no" on i386, x86_64, ia64.
92799         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
92800         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
92801         on i386, x86_64, ia64.
92802         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
92803         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
92804         on i386, x86_64, ia64.
92805         * tests/test-vasnprintf-posix.c: Include float.h.
92806         (LDBL80_WORDS): New macro.
92807         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
92808         on i386, x86_64, ia64.
92809         * tests/test-vasprintf-posix.c: Include float.h.
92810         (LDBL80_WORDS): New macro.
92811         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
92812         on i386, x86_64, ia64.
92813         * tests/test-snprintf-posix.c: Include float.h.
92814         * tests/test-sprintf-posix.c: Likewise.
92815         * tests/test-vsnprintf-posix.c: Likewise.
92816         * tests/test-vsprintf-posix.c: Likewise.
92818 2007-06-05  Bruno Haible  <bruno@clisp.org>
92820         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
92821         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
92822         non-IEEE numbers on i386, x86_64, ia64.
92823         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
92824         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
92825         * tests/test-isnanl.h: Include float.h.
92826         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
92828 2007-06-05  Bruno Haible  <bruno@clisp.org>
92830         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
92831         also the %a / %A. Handle the %a / %A code before this extra handling.
92833 2007-06-05  Bruno Haible  <bruno@clisp.org>
92835         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
92836         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
92838 2007-06-05  Bruno Haible  <bruno@clisp.org>
92840         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
92841         typo in variable name.
92843 2007-06-05  Eric Blake  <ebb9@byu.net>
92845         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
92846         Reported by Simon Josefsson.
92848 2007-06-04  Bruno Haible  <bruno@clisp.org>
92850         Avoid test failures on some PowerPC platforms.
92851         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
92852         Define differently for PowerPC.
92853         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
92854         Reported by Gary V. Vaughan <gary@gnu.org>.
92856 2007-06-02  Bruno Haible  <bruno@clisp.org>
92858         Fix test-stdint failure on FreeBSD/ia64.
92859         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
92860         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
92861         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
92862         * doc/headers/stdint.texi: Update.
92864 2007-06-01  Bruno Haible  <bruno@clisp.org>
92866         * tests/test-binary-io.c (main): Pass a third argument to open().
92867         Reported by Gary V. Vaughan <gary@gnu.org>.
92869 2007-06-01  Bruno Haible  <bruno@clisp.org>
92871         * doc/functions/frexpl.texi: Update for mingw.
92873 2007-06-01  Bruno Haible  <bruno@clisp.org>
92875         * tests/test-lseek.c (main): Disable test of errno for invalid third
92876         argument.
92877         * doc/functions/lseek.texi: Update.
92878         Reported by Gary V. Vaughan <gary@gnu.org>.
92880 2007-05-28  Bruno Haible  <bruno@clisp.org>
92882         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
92884 2007-05-31  Eric Blake  <ebb9@byu.net>
92886         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
92887         cross compiling.
92889 2007-05-30  Eric Blake  <ebb9@byu.net>
92890         and Bruno Haible  <bruno@clisp.org>
92892         Work around mingw test failures exposed by m4-1.4.9b.
92893         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
92894         * tests/test-unistd.c: Disable uid_t and git_t tests for the
92895         moment.
92897 2007-05-30  Bruno Haible  <bruno@clisp.org>
92899         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
92900         assuming that they are closed. Needed on HP-UX 11.
92902 2007-05-29  Bruno Haible  <bruno@clisp.org>
92904         Fix a problem with #include_next.
92905         * lib/dirent_.h: Split the double-inclusion guard.
92906         * lib/fcntl_.h: Likewise.
92907         * lib/float_.h: Likewise.
92908         * lib/iconv_.h: Likewise.
92909         * lib/inttypes_.h: Likewise.
92910         * lib/locale_.h: Likewise.
92911         * lib/math_.h: Likewise.
92912         * lib/netinet_in_.h: Likewise.
92913         * lib/search_.h: Likewise.
92914         * lib/signal_.h: Likewise.
92915         * lib/stdint_.h: Likewise.
92916         * lib/stdio_.h: Likewise.
92917         * lib/stdlib_.h: Likewise.
92918         * lib/string_.h: Likewise.
92919         * lib/sys_select_.h: Likewise.
92920         * lib/sys_socket_.h: Likewise.
92921         * lib/sys_stat_.h: Likewise.
92922         * lib/sys_time_.h: Likewise.
92923         * lib/sysexits_.h: Likewise.
92924         * lib/time_.h: Likewise.
92925         * lib/unistd_.h: Likewise.
92926         * lib/wchar_.h: Likewise.
92927         * lib/wctype_.h: Likewise.
92929 2007-05-29  Bruno Haible  <bruno@clisp.org>
92931         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
92932         for the moment.
92934 2007-05-29  Bruno Haible  <bruno@clisp.org>
92936         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
92937         invocation.
92938         Reported by Eric Blake.
92940 2007-05-29  Bruno Haible  <bruno@clisp.org>
92942         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
92943         compiling case.
92945 2007-05-29  Eric Blake  <ebb9@byu.net>
92946             Bruno Haible  <bruno@clisp.org>
92948         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
92949         cross compiles.
92951 2007-05-28  Eric Blake  <ebb9@byu.net>
92953         * modules/closein-tests (test_closein_LDADD): Support test on
92954         cygwin with libtool.
92956 2007-05-28  Bruno Haible  <bruno@clisp.org>
92958         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
92959         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
92960         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
92961         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
92962         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
92963         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
92964         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
92965         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
92966         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
92968 2007-05-28  Eric Blake  <ebb9@byu.net>
92970         Unconditionally include <config.h> in unit tests.
92971         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
92972         * tests/test-allocsa.c, tests/test-arcfour.c,
92973         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
92974         tests/test-array_list.c, tests/test-array_oset.c,
92975         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
92976         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
92977         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
92978         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
92979         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
92980         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
92981         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
92982         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
92983         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
92984         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
92985         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
92986         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
92987         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
92988         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
92989         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
92990         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
92991         test-md5.c, test-memmem.c, test-printf-posix.c,
92992         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
92993         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
92994         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
92995         test-strcasestr.c, test-striconv.c, test-striconveh.c,
92996         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
92997         test-vasnprintf-posix2.c, test-vasnprintf.c,
92998         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
92999         test-vfprintf-posix.c, test-vprintf-posix.c,
93000         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
93001         test-xvasprintf.c: Likewise.
93003 2007-05-28  Bruno Haible  <bruno@clisp.org>
93005         * gnulib-tool (func_import): Remember the --with-tests command-line
93006         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
93007         Reported by Eric Blake.
93009 2007-05-28  Bruno Haible  <bruno@clisp.org>
93011         * modules/ftell-tests: New file.
93012         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
93013         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
93015         * lib/ftell.c: New file.
93016         * modules/ftell: New file.
93017         * m4/ftell.m4: New file.
93018         * doc/functions/ftell.texi: Update.
93019         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
93020         REPLACE_FTELL.
93021         * lib/stdio_.h (rpl_ftell): New declaration.
93022         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
93023         REPLACE_FTELL.
93025 2007-05-28  Eric Blake  <ebb9@byu.net>
93027         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
93029 2007-05-28  Bruno Haible  <bruno@clisp.org>
93031         * modules/fseek-tests: New file.
93032         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
93033         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
93035         * lib/fseek.c: New file.
93036         * modules/fseek: New file.
93037         * m4/fseek.m4: New file.
93038         * doc/functions/fseek.texi: Update.
93039         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
93040         REPLACE_FSEEK.
93041         * lib/stdio_.h (rpl_fseek): New declaration.
93042         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
93043         REPLACE_FSEEK.
93045 2007-05-28  Bruno Haible  <bruno@clisp.org>
93047         * lib/stdio_.h (fflush): More comments.
93049 2007-05-28  Bruno Haible  <bruno@clisp.org>
93051         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
93052         runtime test.
93054 2007-05-28  Eric Blake  <ebb9@byu.net>
93056         Improve lseek module.
93057         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
93058         * lib/unistd_.h (lseek): Scale back link warning message.
93059         * tests/test-lseek.c: Beef up test.
93060         * tests/test-lseek.sh: Exercise more facets of lseek.
93061         Reported by Bruno Haible.
93063 2007-05-28  Bruno Haible  <bruno@clisp.org>
93065         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
93066         to define.
93068 2007-05-27  Bruno Haible  <bruno@clisp.org>
93070         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
93072 2007-05-27  Bruno Haible  <bruno@clisp.org>
93074         * modules/openmp: New file.
93075         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
93076         Noah Misch.
93078 2007-05-26  Bruno Haible  <bruno@clisp.org>
93080         * modules/chdir-long (Depends-on): Add fchdir.
93081         * modules/chdir-safer (Depends-on): Likewise.
93082         * modules/fts (Depends-on): Likewise.
93083         * modules/fts-lgpl (Depends-on): Likewise.
93084         * modules/openat (Depends-on): Likewise.
93085         * modules/savewd (Depends-on): Likewise.
93087 2007-05-24  Eric Blake  <ebb9@byu.net>
93089         Fix lseek on mingw.
93090         * modules/lseek: New module.
93091         * m4/lseek.m4: New file.
93092         * lib/lseek.c: New file.
93093         * modules/lseek-tests: New file.
93094         * tests/test-lseek.c: New file.
93095         * tests/test-lseek.sh: New file.
93096         * MODULES.html.sh: Document lseek module.
93097         * modules/fflush (Depends-on): Add lseek, fseeko.
93098         * modules/fseeko (Depends-on): Likewise.
93099         * modules/ftello (Depends-on): Likewise.
93100         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
93101         broken.
93102         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
93103         broken.
93104         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
93105         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
93106         * lib/ftello.c (rpl_ftello): Likewise.
93107         * tests/test-fseeko.c (main): Test this.
93108         * tests/test-fseeko.sh: Likewise.
93109         * tests/test-ftello.c (main): Likewise.
93110         * tests/test-ftello.sh: Likewise.
93111         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
93112         implies replacing fseek.
93113         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
93114         HAVE_FTELLO.
93115         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
93116         * modules/unistd (Makefile.am): Likewise.
93117         * lib/unistd_.h (lseek): Declare a replacement.
93118         * doc/functions/lseek.texi (lseek): Document this fix.
93119         * doc/functions/fseek.texi (fseek): Likewise.
93120         * doc/functions/ftell.texi (ftell): Likewise.
93122 2007-05-24  Bruno Haible  <bruno@clisp.org>
93124         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
93125         in the printed representation of a NaN.
93126         * tests/test-vasprintf-posix.c (test_function): Likewise.
93127         * tests/test-snprintf-posix.h (test_function): Likewise.
93128         * tests/test-sprintf-posix.h (test_function): Likewise.
93129         Reported by Eric Blake.
93131 2007-05-23  Eric Blake  <ebb9@byu.net>
93133         Fix fseeko/ftello on cygwin 1.5.24.
93134         * doc/functions/fseeko.texi (fseeko): Document the fix.
93135         * doc/functions/ftello.texi (ftello): Document the fix.
93136         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
93137         * doc/functions/stdout.text (stdout): New file.
93138         * doc/functions/stderr.text (stderr): New file.
93139         * doc/gnulib.texi (Function Substitutes): Use new files.
93140         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
93141         prior to 1.7.0.
93142         * tests/test-ftello.c (main): Likewise for ftello.
93143         * tests/test-fseeko.sh: New file.
93144         * tests/test-ftello.sh: New file.
93145         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
93146         with seekable stdin.
93147         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
93148         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
93149         (gl_REPLACE_FSEEKO): New macro.
93150         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
93151         * modules/fseeko (Files): Distribute fseeko.c.
93152         * modules/ftello (Files): Distribute ftello.c.
93153         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
93154         mode.
93155         * lib/ftello.c (rpl_ftello): New file.
93156         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
93157         fseeko, ftello.
93158         (gl_STDIN_LARGE_OFFSET): New macro.
93159         * modules/stdio (Makefile.am): Perform the replacement.
93160         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
93162 2007-05-23  Bruno Haible  <bruno@clisp.org>
93164         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
93165         GNULIB_POSIXCHECK is defined.
93167 2007-05-21  Bruno Haible  <bruno@clisp.org>
93169         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
93170         Check also the output for NaN arguments. When cross-compiling, guess
93171         no on IRIX.
93172         * lib/vasnprintf.c: Update comments.
93173         * tests/test-vasnprintf-posix.c (strisnan): New function.
93174         (test_function): Use it.
93175         * tests/test-vasprintf-posix.c (strisnan): New function.
93176         (test_function): Use it.
93177         * tests/test-snprintf-posix.h (strisnan): New function.
93178         (test_function): Use it.
93179         * tests/test-sprintf-posix.h (strisnan): New function.
93180         (test_function): Use it.
93181         Reported by Eric Blake.
93183 2007-05-20  Bruno Haible  <bruno@clisp.org>
93185         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
93186         numbers that fails on BeOS.
93187         * doc/functions/frexpl.texi: Update.
93189 2007-05-20  Jim Meyering  <jim@meyering.net>
93191         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
93192         forced upon us by glibc-2.6.
93194 2007-05-20  Bruno Haible  <bruno@clisp.org>
93196         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
93197         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
93198         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
93199         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
93200         NEED_PRINTF_INFINITE.
93201         (is_infinitel): New function.
93202         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
93203         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
93204         gl_PREREQ_VASNPRINTF_INFINITE.
93205         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
93206         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
93207         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
93208         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
93209         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
93210         gl_PREREQ_VASNPRINTF_INFINITE.
93211         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
93212         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
93213         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
93214         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
93215         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
93216         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
93217         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
93218         * doc/functions/fprintf.texi: Update.
93219         * doc/functions/printf.texi: Update.
93220         * doc/functions/snprintf.texi: Update.
93221         * doc/functions/sprintf.texi: Update.
93222         * doc/functions/vfprintf.texi: Update.
93223         * doc/functions/vprintf.texi: Update.
93224         * doc/functions/vsnprintf.texi: Update.
93225         * doc/functions/vsprintf.texi: Update.
93227 2007-05-20  Bruno Haible  <bruno@clisp.org>
93229         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
93230         was not found in libc.
93231         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
93233 2007-05-20  Bruno Haible  <bruno@clisp.org>
93235         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
93236         printed as "-nan" instead of "nan".
93237         * tests/test-vasprintf-posix.c (test_function): Likewise.
93238         * tests/test-snprintf-posix.h (test_function): Likewise.
93239         * tests/test-sprintf-posix.h (test_function): Likewise.
93240         Needed for HP-UX 11.
93242 2007-05-20  Jim Meyering  <jim@meyering.net>
93244         Fix buggy test for the fchownat-deref bug.
93245         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
93246         symlink required for the run-test.  Without it, this test would
93247         always declare that fchownat doesn't work, and client code would
93248         unnecessarily use the replacement function with fixed libc.
93249         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
93250         Reported by Greg Schafer.
93252 2007-05-19  Bruno Haible  <bruno@clisp.org>
93254         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
93255         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
93256         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
93257         Needed for IRIX 6.5 and Solaris 2.5.1.
93259 2007-05-19  Bruno Haible  <bruno@clisp.org>
93261         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
93262         (test_function): Skip tests involving -0.0 on platforms where
93263         -0.0 = 0.0.
93264         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
93265         (test_function): Skip tests involving -0.0 on platforms where
93266         -0.0 = 0.0.
93267         * tests/test-snprintf-posix.h (have_minus_zero): New function.
93268         (test_function): Skip tests involving -0.0 on platforms where
93269         -0.0 = 0.0.
93270         * tests/test-sprintf-posix.h (have_minus_zero): New function.
93271         (test_function): Skip tests involving -0.0 on platforms where
93272         -0.0 = 0.0.
93273         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
93274         tests.
93275         * tests/test-printf-posix.h (test_function): Likewise.
93276         * tests/test-printf-posix.output: Remove all -0.0 related results.
93277         Needed for IRIX 6.5.
93279 2007-05-19  Bruno Haible  <bruno@clisp.org>
93281         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
93282         printed as "nan0x7fffffff" instead of "nan".
93283         * tests/test-vasprintf-posix.c (test_function): Likewise.
93284         * tests/test-snprintf-posix.h (test_function): Likewise.
93285         * tests/test-sprintf-posix.h (test_function): Likewise.
93286         * tests/test-fprintf-posix.h (NaN): Remove macro.
93287         (test_function): Remove all NaN related tests.
93288         * tests/test-printf-posix.h (NaN): Remove macro.
93289         (test_function): Remove all NaN related tests.
93290         * tests/test-printf-posix.output: Remove all NaN related results.
93291         Needed for IRIX 6.5.
93293 2007-05-19  Bruno Haible  <bruno@clisp.org>
93295         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
93296         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
93298 2007-05-19  Bruno Haible  <bruno@clisp.org>
93300         * lib/float_.h: New file.
93301         * m4/float_h.m4: New file.
93302         * modules/float: New file.
93303         * modules/isnanl (Dependencies): Add float.
93304         * modules/isnanl-nolibm (Dependencies): Likewise.
93305         * modules/mathl (Dependencies): Likewise.
93306         * modules/printf-frexpl (Dependencies): Likewise.
93307         * modules/signbit (Dependencies): Likewise.
93308         * modules/vasnprintf (Dependencies): Likewise.
93309         * doc/headers/float.texi: Update.
93311 2007-05-19  Jim Meyering  <jim@meyering.net>
93313         * lib/utimens.c (gl_futimens): Rename from futimens,
93314         now that glibc-2.6 declares futimens.
93315         * lib/utimens.h: Likewise.
93317 2007-05-19  Bruno Haible  <bruno@clisp.org>
93319         Avoid test failures on mingw.
93320         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
93321         * tests/test-printf-posix.sh: Likewise.
93322         * tests/test-vfprintf-posix.sh: Likewise.
93323         * tests/test-vprintf-posix.sh: Likewise.
93325 2007-05-19  Bruno Haible  <bruno@clisp.org>
93327         Fix *printf result for NaN, Inf, -0.0 on mingw.
93328         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
93329         * lib/vasnprintf.c: Include math.h and isnan.h.
93330         (is_infinite_or_zero): New function.
93331         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
93332         values in the %f, %F, %e, %E, %g, %G directives.
93333         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
93334         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
93335         gl_PRINTF_INFINITE and test its result. Invoke
93336         gl_PREREQ_VASNPRINTF_INFINITE.
93337         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
93338         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
93339         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
93340         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
93341         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
93342         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
93343         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
93344         * doc/functions/fprintf.texi: Update.
93345         * doc/functions/printf.texi: Update.
93346         * doc/functions/snprintf.texi: Update.
93347         * doc/functions/sprintf.texi: Update.
93348         * doc/functions/vfprintf.texi: Update.
93349         * doc/functions/vprintf.texi: Update.
93350         * doc/functions/vsnprintf.texi: Update.
93351         * doc/functions/vsprintf.texi: Update.
93353 2007-05-19  Bruno Haible  <bruno@clisp.org>
93355         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
93356         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
93357         Instead of multiplying with 10^k, set extra_zeroes to k.
93358         (scale10_round_long_double): Remove function.
93360 2007-05-18  Bruno Haible  <bruno@clisp.org>
93362         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
93363         introduced on 2007-05-06.
93365 2007-05-18  Bruno Haible  <bruno@clisp.org>
93367         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
93368         %g directives.
93369         * tests/test-vasprintf-posix.c (test_function): Likewise.
93370         * tests/test-snprintf-posix.h (test_function): Likewise.
93371         * tests/test-sprintf-posix.h (test_function): Likewise.
93373 2007-05-18  Bruno Haible  <bruno@clisp.org>
93375         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
93376         (strmatch): New function.
93377         (test_function): Test the %f directive on numbers of various exponents.
93378         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
93379         (strmatch): New function.
93380         (test_function): Test the %f directive on numbers of various exponents.
93381         * tests/test-snprintf-posix.h (strmatch): New function.
93382         (test_function): Test the %f directive on numbers of various exponents.
93383         * tests/test-sprintf-posix.h (strmatch): New function.
93384         (test_function): Test the %f directive on numbers of various exponents.
93385         * tests/test-snprintf-posix.c (SIZEOF): New macro.
93386         * tests/test-sprintf-posix.c (SIZEOF): New macro.
93387         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
93388         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
93390 2007-05-18  Bruno Haible  <bruno@clisp.org>
93392         Add support for 'long double' number output.
93393         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
93394         * lib/vasnprintf.c: Include math.h and float+.h.
93395         (mp_limb_t): New type.
93396         (GMP_LIMB_BITS): New macro.
93397         (mp_twolimb_t): New type.
93398         (GMP_TWOLIMB_BITS): New macro.
93399         (mpn_t): New type.
93400         (multiply, divide, convert_to_decimal, decode_long_double,
93401         scale10_round_long_double, scale10_round_decimal_long_double,
93402         floorlog10l): New functions.
93403         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
93404         for the %f, %F, %e, %E, %g, %G directives.
93405         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
93406         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
93407         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
93408         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
93409         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
93410         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
93411         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
93412         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
93413         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
93414         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
93415         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
93416         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
93417         * modules/snprintf-posix (Depends-on): Likewise.
93418         * modules/sprintf-posix (Depends-on): Likewise.
93419         * modules/vasnprintf-posix (Depends-on): Likewise.
93420         * modules/vasprintf-posix (Depends-on): Likewise.
93421         * modules/vfprintf-posix (Depends-on): Likewise.
93422         * modules/vsnprintf-posix (Depends-on): Likewise.
93423         * modules/vsprintf-posix (Depends-on): Likewise.
93424         * modules/vasnprintf (Files): Add lib/float+.h.
93425         * doc/functions/fprintf.texi: Update.
93426         * doc/functions/printf.texi: Update.
93427         * doc/functions/snprintf.texi: Update.
93428         * doc/functions/sprintf.texi: Update.
93429         * doc/functions/vfprintf.texi: Update.
93430         * doc/functions/vprintf.texi: Update.
93431         * doc/functions/vsnprintf.texi: Update.
93432         * doc/functions/vsprintf.texi: Update.
93434 2007-05-18  Bruno Haible  <bruno@clisp.org>
93436         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
93438 2007-05-18  Bruno Haible  <bruno@clisp.org>
93440         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
93441         for printing 64-bit integers. Needed for mingw.
93443 2007-05-18  Bruno Haible  <bruno@clisp.org>
93445         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
93446         gl_FUNC_FREXPL_WORKS.
93447         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
93449 2007-05-18  Bruno Haible  <bruno@clisp.org>
93451         * modules/frexpl-nolibm-tests: New file.
93453         * modules/frexpl-nolibm: New file.
93454         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
93456 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
93458         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
93459         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
93460         GCC 4.2, which otherwise issues a lot of warnings.
93461         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
93462         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
93463         Likewise.
93464         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
93465         * modules/iconv_open (iconv.h): Likewise.
93466         * modules/locale (locale.h): Likewise.
93467         * modules/netinet_in (netinet/in.h): Likewise.
93468         * modules/sys_select (sys_select.h): Likewise.
93469         * modules/sys_socket (sys/socket.h): Likewise.
93470         * modules/sys_stat (sys/stat.h): Likewise.
93471         * modules/sysexits (sysexits.h): Likewise.
93472         * modules/unistd (unistd.h): Likewise.
93474 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93476         * modules/closein-tests (Makefile.am): Distribute
93477         `test-closein.sh'.
93479 2007-05-17  Bruno Haible  <bruno@clisp.org>
93481         * tests/test-printf-posix.output: Renamed from
93482         tests/test-fprintf-posix.out.
93483         * modules/fprintf-posix-tests: Update.
93484         * modules/printf-posix-tests: Update.
93485         * modules/vfprintf-posix-tests: Update.
93486         * modules/vprintf-posix-tests: Update.
93487         * tests/test-fprintf-posix.sh: Update.
93488         * tests/test-printf-posix.sh: Update.
93489         * tests/test-vfprintf-posix.sh: Update.
93490         * tests/test-vprintf-posix.sh: Update.
93491         Reported by Ralf Wildenhues.
93493 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
93495         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
93496         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
93497         GCC 4.2, which otherwise issues a lot of warnings.
93498         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
93499         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
93500         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
93501         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
93502         it should no longer be needed.
93503         * lib/string_.h: Likewise.
93504         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
93505         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
93506         * modules/inttypes (inttypes.h): Likewise.
93507         * modules/math (math.h): Likewise.
93508         * modules/search (search.h): Likewise.
93509         * modules/signal (signal.h): Likewise.
93510         * modules/stdint (stdint.h): Likewise.
93511         * modules/stdio (stdio.h): Likewise.
93512         * modules/stdlib (stdlib.h): Likewise.
93513         * modules/string (string.h): Likewise.
93514         * modules/sys_time (sys/time.h): Likewise.
93515         * modules/time (time.h): Likewise.
93516         * modules/wchar (wchar.h): Likewise.
93517         * modules/wctype (wtype.h): Likewise.
93519 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
93521         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
93523 2007-05-13  Bruno Haible  <bruno@clisp.org>
93525         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
93526         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
93527         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
93528         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
93529         (gl_PREREQ_STRTOK_R): Don't require it here.
93531 2007-05-13  Bruno Haible  <bruno@clisp.org>
93533         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
93534         when used in C++ mode.
93536 2007-05-12  Bruno Haible  <bruno@clisp.org>
93538         * lib/linebuffer.h: Tweak doc.
93539         * lib/linebuffer.c: Likewise.
93541 2007-05-12  James Youngman  <jay@gnu.org>
93543         * lib/linebuffer.c (readlinebuffer_delim): New function,
93544         like readlinebuffer, but use a caller-specified delimiter.
93545         (readlinebuffer): Just call readlinebuffer_delim with '\n'
93546         as the delimiter.
93547         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
93549 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
93551         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
93552         * modules/openat (Files): Remove openat-die.c.
93553         (Depends-on): Add openat-die.
93554         * modules/openat-die: New module.
93556 2007-05-06  Bruno Haible  <bruno@clisp.org>
93558         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
93559         Update with info about Cygwin.
93560         * doc/functions/fprintf.texi: Update.
93561         * doc/functions/printf.texi: Update.
93562         * doc/functions/snprintf.texi: Update.
93563         * doc/functions/sprintf.texi: Update.
93564         * doc/functions/vfprintf.texi: Update.
93565         * doc/functions/vprintf.texi: Update.
93566         * doc/functions/vsnprintf.texi: Update.
93567         * doc/functions/vsprintf.texi: Update.
93568         Reported by Eric Blake.
93570 2007-05-06  Bruno Haible  <bruno@clisp.org>
93572         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
93573         padding ourselves for the floating-point directives.
93574         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
93575         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
93576         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
93577         gl_PRINTF_FLAG_ZERO and test its result. Invoke
93578         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
93579         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
93580         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
93581         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
93582         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
93583         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
93584         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
93585         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
93586         * tests/test-snprintf-posix.h (test_function): Also check the width
93587         and some flags in the %f directive.
93588         * tests/test-sprintf-posix.h (test_function): Likewise.
93589         * tests/test-vasnprintf-posix.c (test_function): Likewise.
93590         * tests/test-vasprintf-posix.c (test_function): Likewise.
93591         * doc/functions/fprintf.texi: Update.
93592         * doc/functions/printf.texi: Update.
93593         * doc/functions/snprintf.texi: Update.
93594         * doc/functions/sprintf.texi: Update.
93595         * doc/functions/vfprintf.texi: Update.
93596         * doc/functions/vprintf.texi: Update.
93597         * doc/functions/vsnprintf.texi: Update.
93598         * doc/functions/vsprintf.texi: Update.
93600 2007-05-06  Bruno Haible  <bruno@clisp.org>
93602         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
93603         pass the ' flag character to sprintf or snprintf.
93604         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
93605         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
93606         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
93607         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
93608         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
93609         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
93610         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
93611         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
93612         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
93613         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
93614         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
93615         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
93616         * tests/test-snprintf-posix.h (test_function): Also check the grouping
93617         flag.
93618         * tests/test-sprintf-posix.h (test_function): Likewise.
93619         * tests/test-vasnprintf-posix.c (test_function): Likewise.
93620         * tests/test-vasprintf-posix.c (test_function): Likewise.
93621         * doc/functions/fprintf.texi: Update.
93622         * doc/functions/printf.texi: Update.
93623         * doc/functions/snprintf.texi: Update.
93624         * doc/functions/sprintf.texi: Update.
93625         * doc/functions/vfprintf.texi: Update.
93626         * doc/functions/vprintf.texi: Update.
93627         * doc/functions/vsnprintf.texi: Update.
93628         * doc/functions/vsprintf.texi: Update.
93630 2007-05-01  Bruno Haible  <bruno@clisp.org>
93632         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
93634 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
93636         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
93637         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
93639 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
93641         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
93642         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
93643         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00021.html>.
93645 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
93647         * lib/argp-help.c (struct hol_entry): New member `ord'.
93648         (HOL_ENTRY_PTRCMP): Use ord for comparison
93649         (hol_sort): Initialize ord.
93651 2007-05-01  Bruno Haible  <bruno@clisp.org>
93653         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
93654         Reported by Eric Blake.
93655         * doc/gnulib.texi (Function Substitutes): Update.
93657 2007-05-01  Bruno Haible  <bruno@clisp.org>
93659         * doc/functions.texi: Remove file, now redundant through
93660         doc/functions/*.texi.
93662 2007-05-01  Bruno Haible  <bruno@clisp.org>
93664         * modules/argp (Depends-on): Add sleep.
93666 2007-05-01  Bruno Haible  <bruno@clisp.org>
93668         * modules/sleep-tests: New file.
93669         * tests/test-sleep.c: New file.
93671         * modules/sleep: New file.
93672         * lib/sleep.c: New file.
93673         * m4/sleep.m4: New file.
93674         * lib/unistd_.h (sleep): New declaration.
93675         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
93676         HAVE_SLEEP.
93677         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
93678         * doc/functions/sleep.texi: Document the sleep module.
93680 2007-05-01  Bruno Haible  <bruno@clisp.org>
93682         * lib/sigprocmask.h: Remove file.
93683         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
93684         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
93685         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
93686         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
93687         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
93688         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
93689         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
93690         HAVE_SIGSET_T as a shell variable.
93691         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
93692         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
93693         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
93694         (Depends-on): Add signal. Remove verify.
93695         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
93696         (Include): Mention <signal.h> instead of sigprocmask.h.
93697         * NEWS: Mention the change.
93698         * lib/fatal-signal.c: Don't include sigprocmask.h.
93700 2007-05-01  Bruno Haible  <bruno@clisp.org>
93702         * modules/signal: New file.
93703         * lib/signal_.h: New file.
93704         * m4/signal_h.m4: New file.
93706 2007-05-01  Bruno Haible  <bruno@clisp.org>
93708         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
93709         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
93710         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
93711         HAVE_WCTYPE_CTMP_BUG into wctype.h.
93713 2007-05-01  Bruno Haible  <bruno@clisp.org>
93715         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
93716         configure time.
93717         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
93718         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
93719         * modules/sys_stat (Makefile.am): Substitute their values into
93720         sys/stat.h.
93722 2007-05-01  Bruno Haible  <bruno@clisp.org>
93724         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
93725         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
93726         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
93728 2007-05-01  Bruno Haible  <bruno@clisp.org>
93730         * doc/header/assert.texi: Undo last change: don't mention the gnulib
93731         'assert' module here.
93733 2007-05-01  Bruno Haible  <bruno@clisp.org>
93735         * doc/functions/*.texi: New files.
93736         * doc/functions/google-ranking.txt: New file.
93737         * doc/gnulib.texi (Function Substitutes): New chapter.
93738         (ctime, inet_ntoa): Remove sections.
93739         * doc/ctime.texi: Remove file.
93740         * doc/inet_ntoa.texi: Remove file.
93741         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
93742         dependencies.
93743         (%.info): New rule, specifying a --reference-limit.
93745 2007-05-01  Bruno Haible  <bruno@clisp.org>
93747         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
93749 2007-05-01  Bruno Haible  <bruno@clisp.org>
93751         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
93752         the portability of 'mkdir' to mingw systems.
93754 2007-05-01  Bruno Haible  <bruno@clisp.org>
93756         * doc/headers/google-ranking.txt: New file.
93758 2007-04-30  Eric Blake  <ebb9@byu.net>
93760         Prefer fseeko to fseek.
93761         * modules/getpass (Depends-on): Add fseeko.
93762         * lib/getpass.c (getpass): Use fseeko, not fseek.
93764 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
93766         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
93767         assumes the sorting is stable, while most qsort implementations
93768         are not.  Use argument addresses to ensure they never compare as
93769         equal.
93771         * tests/test-argp-2.sh (usage-indent test): Fix output
93772         (func_compare): Restore diff options
93773         * tests/test-argp.c: Restore #include "progname.h"
93775 2007-04-29  Bruno Haible  <bruno@clisp.org>
93777         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
93778         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
93779         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
93780         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
93781         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
93782         (configure.ac): Define CHECK_SNPRINTF_POSIX.
93783         (TESTS, check_PROGRAMS): Add test-snprintf.
93784         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
93785         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
93786         (TESTS, check_PROGRAMS): Add test-vsnprintf.
93787         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
93788         assertions that fail on HP-UX, OSF/1, or IRIX.
93789         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
93791 2007-04-29  Bruno Haible  <bruno@clisp.org>
93793         * MODULES.html.sh (posix_functions): Remove 'contents'.
93795 2007-04-29  Karl Berry  <karl@gnu.org>
93797         * config/srclist.txt (gendocs_template_min): new entry.
93799 2007-04-29  Bruno Haible  <bruno@clisp.org>
93801         Work around fpurge bug on BSD systems.
93802         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
93803         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
93804         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
93805         fpurge to rpl_fpurge if the system already has this function.
93806         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
93807         the case where the system already has this function. Correct invariants
93808         on BSD systems.
93809         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
93810         BSD systems.
93812 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
93814         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
93815         proposed by Sven Verdoolaege.
93817         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
93818         options.
93819         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
93820         (usage and help tests): Update
93822 2007-04-29  Bruno Haible  <bruno@clisp.org>
93824         * tests/test-fflush.c (main): Use a file of size 17, not 10.
93825         Print more information in case of failure. Disable a test on BeOS.
93827 2007-04-29  Bruno Haible  <bruno@clisp.org>
93829         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
93830         This helps debugging on systems on which no gdb is available.
93832 2007-04-29  Bruno Haible  <bruno@clisp.org>
93834         * lib/freading.h: Improve comments.
93835         * lib/fwriting.h: Likewise.
93836         * tests/test-freading.c (main): Don't check freading immediately after
93837         repositioning. Needed for glibc.
93839 2007-04-29  Bruno Haible  <bruno@clisp.org>
93841         * lib/freading.c (freading): Trivial simplification.
93843 2007-04-28  Bruno Haible  <bruno@clisp.org>
93845         * tests/test-fwriting.c (main): Also test the interaction between
93846         fflush and fwriting.
93847         * modules/fwriting-tests (Depends-on): Add fflush.
93849         * tests/test-freading.c (main): Also test the interaction between
93850         fflush and freading.
93851         * modules/freading-tests (Depends-on): Add fflush.
93853 2007-04-28  Bruno Haible  <bruno@clisp.org>
93855         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
93856         fseeko and ftello.
93857         Suggested by Eric Blake.
93859 2007-04-28  Jim Meyering  <jim@meyering.net>
93861         Avoid false-negative in gl_STDINT_H's C99 conformance test.
93862         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
93863         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
93865 2007-04-27  Eric Blake  <ebb9@byu.net>
93867         * doc/headers/assert.texi (assert.h): Document assert module use.
93869 2007-04-27  Bruno Haible  <bruno@clisp.org>
93871         * doc/headers/*.texi: New files.
93872         * doc/gnulib.texi (Header File Substitutes): New chapter.
93873         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
93874         dependencies.
93875         (standards.info ,standards.html, standards.dvi): Update dependencies.
93876         (mostlyclean, clean): New targets.
93878 2007-04-27  Bruno Haible  <bruno@clisp.org>
93880         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
93881         * modules/sysexits (Files, Makefile.am): Update.
93883         * lib/sys_socket_.h: Renamed from lib/socket_.h.
93884         * modules/sys_socket (Files, Makefile.am): Update.
93886         * lib/sys_stat_.h: Renamed from lib/stat_.h.
93887         * modules/sys_stat (Files, Makefile.am): Update.
93889 2007-04-27  Eric Blake  <ebb9@byu.net>
93891         * lib/freading.h: Improve comments.
93892         * lib/fwriting.h: Likewise.
93893         * lib/fflush.c: Likewise.
93895         Fix closein for mingw.
93896         * modules/closein-tests: Add tests for closein.
93897         * tests/test-closein.c: New file.
93898         * tests/test-closein.sh: Likewise.
93899         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
93900         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
93902 2007-04-27  Bruno Haible  <bruno@clisp.org>
93904         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
93905         version is < 6.
93906         * lib/math_.h [__DECC]: Likewise.
93907         * lib/stdio_.h [__DECC]: Likewise.
93908         * lib/stdlib_.h [__DECC]: Likewise.
93909         * lib/string_.h [__DECC]: Likewise.
93910         * lib/time_.h [__DECC]: Likewise.
93911         * lib/wchar_.h [__DECC]: Likewise.
93912         * lib/wctype_.h [__DECC]: Likewise.
93914 2007-04-27  Bruno Haible  <bruno@clisp.org>
93916         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
93918 2007-04-27  Bruno Haible  <bruno@clisp.org>
93920         * lib/fflush.c: Add comments.
93921         * modules/fpurge-tests (Depends-on): Add fflush.
93922         * modules/freadable-tests (Depends-on): Likewise.
93923         * modules/fwritable-tests (Depends-on): Likewise.
93925 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
93927         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
93928         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
93929         Report by Bruno Haible <bruno@clisp.org>.
93931 2007-04-26  Eric Blake  <ebb9@byu.net>
93933         Fix fflush on mingw.
93934         * modules/fflush (Depends-on): Add freading.
93935         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
93936         but unread data.
93938 2007-04-26  Eric Blake  <ebb9@byu.net>
93939         and Bruno Haible  <bruno@clisp.org>
93941         Implement freading and fwriting.
93942         * lib/freading.c: New file.
93943         * lib/freading.h: Likewise.
93944         * m4/freading.m4: Likewise.
93945         * modules/freading: Likewise.
93946         * modules/freading-tests: Likewise.
93947         * tests/test-freading.c: Likewise.
93948         * lib/fwriting.c: New file.
93949         * lib/fwriting.h: Likewise.
93950         * m4/fwriting.m4: Likewise.
93951         * modules/fwriting: Likewise.
93952         * modules/fwriting-tests: Likewise.
93953         * tests/test-fwriting.c: Likewise.
93954         * MODULES.html.sh (File stream based Input/Output): Mention them.
93956 2007-04-26  Bruno Haible  <bruno@clisp.org>
93958         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
93959         'long' when we assume it.
93960         Suggested by Eric Blake.
93962 2007-04-26  Bruno Haible  <bruno@clisp.org>
93964         Ensure fseeko, ftello are declared on glibc systems.
93965         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
93966         * modules/fseeko (configure.ac-early): Likewise.
93967         * modules/ftello (configure.ac-early): Likewise.
93968         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
93969         AC_FUNC_FSEEKO for this.
93970         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
93971         (gl_CHECK_FSEEKO): Remove macro.
93973 2007-04-26  Bruno Haible  <bruno@clisp.org>
93975         * tests/test-fflush.c (main): Also check the ftell result after
93976         fflush and fseek/fseeko.
93977         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
93978         file descriptor position cache in the stream.
93979         * lib/fseeko.c (rpl_fseeko): Likewise.
93981 2007-04-26  Bruno Haible  <bruno@clisp.org>
93983         * modules/fflush-tests (Depends-on): Add fseeko.
93985 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
93986             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93988         * lib/argz_.h: ensure error_t definition is obtained in same
93989         mechanism system argz.h would have.
93990         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
93991         argz facilities are known bad.  Err on the side of caution if
93992         cross-compiling.
93994 2007-04-25  Eric Blake  <ebb9@byu.net>
93996         * lib/fpurge.c (includes): Use stdlib.h for free.
93997         * tests/test-fflush.c (main): Also test fflush-fseeko.
93999 2007-04-25  Bruno Haible  <bruno@clisp.org>
94001         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
94002         * lib/fseeko.c: New file.
94003         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
94004         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
94005         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
94006         gl_FUNC_FSEEKO.
94007         (gl_FUNC_FSEEKO): Invoke it.
94008         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
94009         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
94010         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
94012 2007-04-25  Bruno Haible  <bruno@clisp.org>
94014         * modules/fflush (Depends-on): Add ftello.
94016 2007-04-25  Bruno Haible  <bruno@clisp.org>
94018         * modules/ftello-tests: New file.
94019         * tests/test-ftello.c: New file.
94021         * modules/ftello: New file.
94022         * m4/ftello.m4: New file.
94023         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
94024         HAVE_FTELLO.
94025         * lib/stdio_.h (ftello): New declaration.
94026         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
94027         HAVE_FTELLO.
94029 2007-04-25  Bruno Haible  <bruno@clisp.org>
94031         * modules/fseeko-tests: New file.
94032         * tests/test-fseeko.c: New file.
94034         * modules/fseeko: New file.
94035         * m4/fseeko.m4: New file.
94036         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
94037         HAVE_FSEEKO.
94038         * lib/stdio_.h (fseeko): New declaration.
94039         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
94040         HAVE_FSEEKO.
94042 2007-04-25  Bruno Haible  <bruno@clisp.org>
94044         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
94046 2007-04-25  Bruno Haible  <bruno@clisp.org>
94048         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
94049         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
94050         * tests/test-unistd.c: Likewise.
94051         * tests/test-fcntl.c: Likewise.
94053 2007-04-23  Eric Blake  <ebb9@byu.net>
94055         * lib/fflush.c: Fix missing include.
94056         Reported by Bruno Haible.
94058 2007-04-23  Bruno Haible  <bruno@clisp.org>
94060         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
94061         Reported by Eric Blake.
94063 2007-04-23  Bruno Haible  <bruno@clisp.org>
94065         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
94067 2007-04-23  Bruno Haible  <bruno@clisp.org>
94069         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
94071 2007-04-23  Bruno Haible  <bruno@clisp.org>
94073         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
94074         Needed on HP-UX 11.
94076 2007-04-16  Eric Blake  <ebb9@byu.net>
94078         Make fflush rely on fpurge.
94079         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
94080         open coding all variants.
94081         * modules/fflush (Depends-on): Add fpurge and unistd.
94082         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
94083         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
94085         Fix --with-tests compilation on cygwin.
94086         * modules/argmatch-tests (Makefile.am): List gnulib library first
94087         in LDADD.
94088         * modules/argp-tests (Makefile.am): Likewise.
94089         * modules/array-list-tests (Makefile.am): Likewise.
94090         * modules/array-oset-tests (Makefile.am): Likewise.
94091         * modules/avltree-list-tests (Makefile.am): Likewise.
94092         * modules/avltree-oset-tests (Makefile.am): Likewise.
94093         * modules/avltreehash-list-tests (Makefile.am): Likewise.
94094         * modules/carray-list-tests (Makefile.am): Likewise.
94095         * modules/dirname-tests (Makefile.am): Likewise.
94096         * modules/frexp-tests (Makefile.am): Likewise.
94097         * modules/isnanl-tests (Makefile.am): Likewise.
94098         * modules/linked-list-tests (Makefile.am): Likewise.
94099         * modules/linkedhash-list-tests (Makefile.am): Likewise.
94100         * modules/lock-tests (Makefile.am): Likewise.
94101         * modules/rbtree-list-tests (Makefile.am): Likewise.
94102         * modules/rbtree-oset-tests (Makefile.am): Likewise.
94103         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
94104         * modules/tls-tests (Makefile.am): Likewise.
94105         * modules/tsearch-tests (Makefile.am): Likewise.
94106         * modules/xvasprintf-tests (Makefile.am): Likewise.
94108         Fix fpurge for cygwin.
94109         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
94110         value.
94111         * modules/fpurge-tests (Depends-on): Clean up trash.
94113 2007-04-16  Simon Josefsson  <simon@josefsson.org>
94115         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
94117         * m4/autobuild.m4: Re-indent.
94119 2007-04-13  Bruno Haible  <bruno@clisp.org>
94121         * modules/fpurge-tests: New file.
94122         * tests/test-fpurge.c: New file.
94124         * modules/fpurge: New file.
94125         * lib/fpurge.h: New file.
94126         * lib/fpurge.c: New file.
94127         * m4/fpurge.m4: New file.
94129 2007-04-13  Bruno Haible  <bruno@clisp.org>
94131         * modules/fbufmode-tests: New file.
94132         * tests/test-fbufmode.c: New file.
94134         * modules/fbufmode: New file.
94135         * lib/fbufmode.h: New file.
94136         * lib/fbufmode.c: New file.
94137         * m4/fbufmode.m4: New file.
94139 2007-04-13  Bruno Haible  <bruno@clisp.org>
94141         * modules/fwritable-tests: New file.
94142         * tests/test-fwritable.c: New file.
94144         * modules/fwritable: New file.
94145         * lib/fwritable.h: New file.
94146         * lib/fwritable.c: New file.
94147         * m4/fwritable.m4: New file.
94149 2007-04-13  Bruno Haible  <bruno@clisp.org>
94151         * modules/freadable-tests: New file.
94152         * tests/test-freadable.c: New file.
94154         * modules/freadable: New file.
94155         * lib/freadable.h: New file.
94156         * lib/freadable.c: New file.
94157         * m4/freadable.m4: New file.
94159 2007-04-13  Bruno Haible  <bruno@clisp.org>
94161         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
94162         MOSTLYCLEANFILES.
94164 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
94166         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
94167         gzip bootstrap.conf to avoid dragging in i18n machinery.
94168         (gnulib_tool_option): Use it.
94170 2007-04-13  Bruno Haible  <bruno@clisp.org>
94172         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
94173         %F directives.
94174         * tests/test-vasprintf-posix.c (test_function): Likewise.
94175         * tests/test-snprintf-posix.h (test_function): Likewise.
94176         * tests/test-sprintf-posix.h (test_function): Likewise.
94177         * tests/test-fprintf-posix.h (test_function): Likewise.
94178         * tests/test-printf-posix.h (test_function): Likewise.
94179         * tests/test-fprintf-posix.out: Likewise.
94181 2007-04-13  Bruno Haible  <bruno@clisp.org>
94183         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
94184         * modules/tls-tests (configure.ac): Likewise.
94185         Reported by Arto C. Nirkko <anirkko@insel.ch>.
94187 2007-04-13  Bruno Haible  <bruno@clisp.org>
94189         * lib/tls.c (glthread_tls_get): Fix return type.
94190         Patch by Arto C. Nirkko <anirkko@insel.ch>.
94192 2007-04-12  Eric Blake  <ebb9@byu.net>
94194         * modules/gettime (Depends-on): Remove gettime.
94195         Reported by Dmitry V. Levin.
94197 2007-04-12  Bruno Haible  <bruno@clisp.org>
94199         * modules/fflush (Include): Mention <stdio.h>.
94200         * modules/strtoimax (Include): Mention <inttypes.h>.
94201         * modules/strtoumax (Include): Likewise.
94203 2007-04-12  Eric Blake  <ebb9@byu.net>
94205         * .cvsignore: New file.
94206         * .gitignore: Likewise.
94208 2007-04-12  Bruno Haible  <bruno@clisp.org>
94210         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
94211         not before, since $(LDADD) often contains libgnu.a.
94212         * modules/striconv-tests (test_striconv_LDADD): Likewise.
94213         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
94214         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
94215         Needed on Cygwin.
94217 2007-04-12  Eric Blake  <ebb9@byu.net>
94219         Work around glibc's failure to flush stdin on fclose.
94220         * lib/closein.c (close_stdin): Flush stdin before closing.
94222         Work around glibc's failure to reset seekable stdin on exit.
94223         * modules/closein: New module.
94224         * lib/closein.c: New file.
94225         * lib/closein.h: Likewise.
94226         * m4/closein.m4: Likewise.
94227         * MODULES.html.sh (File stream based Input/Output): Document it.
94229 2007-04-12  Simon Josefsson  <simon@josefsson.org>
94231         * gnulib-tool: Rename generated 'autobuild' script to
94232         'do-autobuild' in --create-megatestdir output.
94234         * doc/gnulib.texi (Build robot for gnulib): Fix.
94236 2007-04-12  Simon Josefsson  <simon@josefsson.org>
94238         * modules/sysexits (Depends-on): Add absolute-header.
94240 2007-04-12  Eric Blake  <ebb9@byu.net>
94242         No need to preserve errno on success.
94243         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
94244         Reported by Bruno Haible.
94246 2007-04-12  Simon Josefsson  <simon@josefsson.org>
94248         * MODULES.html.sh (Support for maintaining and releasing
94249         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
94251 2007-04-12  Simon Josefsson  <simon@josefsson.org>
94253         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
94255 2007-04-12  Simon Josefsson  <simon@josefsson.org>
94257         * modules/autobuild: New module.
94259         * m4/autobuild.m4: New file.
94261 2007-04-11  Bruno Haible  <bruno@clisp.org>
94263         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
94264         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
94265         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
94266         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
94267         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
94268         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
94269         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
94270         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
94271         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
94272         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
94273         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
94274         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
94275         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
94276         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
94277         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
94278         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
94279         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
94280         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
94281         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
94282         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
94283         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
94284         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
94285         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
94286         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
94287         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
94288         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
94289         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
94290         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
94291         Reported by Eric Blake.
94293 2007-04-11  Bruno Haible  <bruno@clisp.org>
94295         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
94297 2007-04-10  Bruno Haible  <bruno@clisp.org>
94299         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
94300         for NaN and Infinity. Needed on FreeBSD 6.1.
94301         * tests/test-vasnprintf-posix.c (test_function): Undo last change
94302         regarding results for "%010a" of Infinity and NaN.
94303         * tests/test-vasprintf-posix.c (test_function): Likewise.
94304         * tests/test-snprintf-posix.h (test_function): Likewise.
94305         * tests/test-sprintf-posix.h (test_function): Likewise.
94306         * tests/test-fprintf-posix.h (test_function): Likewise.
94307         * tests/test-printf-posix.h (test_function): Likewise.
94308         * tests/test-fprintf-posix.out: Likewise.
94310 2007-04-10  Bruno Haible  <bruno@clisp.org>
94312         * modules/locale-tests: New file.
94313         * tests/test-locale.c: New file.
94315         * modules/locale: New file.
94316         * lib/locale_.h: New file.
94317         * m4/locale_h.m4: New file.
94319 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
94320             Bruno Haible  <bruno@clisp.org>
94322         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
94323         be determined, test for availability of the copysignf, copysign,
94324         copysignl functions.
94325         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
94326         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
94327         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
94329 2007-04-09  Eric Blake  <ebb9@byu.net>
94331         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
94332         * modules/stdio (Makefile.am): Support fflush.
94333         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
94334         * modules/fflush: New file.
94335         * lib/fflush.c: Likewise.
94336         * m4/fflush.m4: Likewise.
94337         * modules/fflush-tests: New test.
94338         * tests/test-fflush.c: Likewise.
94339         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
94341 2007-04-06  Bruno Haible  <bruno@clisp.org>
94343         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
94344         (VASNPRINTF): Use signbit for faster determination whether to print a
94345         minus sign.
94346         * modules/vasnprintf (Files): Remove lib/float+.h.
94347         * modules/fprintf-posix (Depends-on): Add signbit.
94348         * modules/snprintf-posix (Depends-on): Likewise.
94349         * modules/sprintf-posix (Depends-on): Likewise.
94350         * modules/vasnprintf-posix (Depends-on): Likewise.
94351         * modules/vasprintf-posix (Depends-on): Likewise.
94352         * modules/vfprintf-posix (Depends-on): Likewise.
94353         * modules/vsnprintf-posix (Depends-on): Likewise.
94354         * modules/vsprintf-posix (Depends-on): Likewise.
94356 2007-04-06  Bruno Haible  <bruno@clisp.org>
94358         * tests/test-frexp.c (main): Test also the sign bit of zero results.
94359         * tests/test-frexpl.c (main): Likewise.
94360         * tests/test-ldexpl.c (main): Likewise.
94361         * modules/frexp-tests (Depends-on): Add signbit.
94362         * modules/frexpl-tests (Depdends-on): Likewise.
94363         * modules/ldexpl-tests (Depdends-on): Likewise.
94365 2007-04-06  Bruno Haible  <bruno@clisp.org>
94367         * modules/signbit-tests: New file.
94368         * tests/test-signbit.c: New file.
94370         * modules/signbit: New file.
94371         * lib/signbitf.c: New file.
94372         * lib/signbitd.c: New file.
94373         * lib/signbitl.c: New file.
94374         * m4/signbit.m4: New file.
94375         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
94376         (signbit): New macro.
94377         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
94378         REPLACE_SIGNBIT.
94379         * modules/math (Makefile.am): Substitute also GNULIB_SIGNBIT and
94380         REPLACE_FREXPL into math.h.
94382 2007-04-06  Bruno Haible  <bruno@clisp.org>
94384         * modules/isnanf-nolibm-tests: New file.
94385         * tests/test-isnanf.c: New file.
94387         * modules/isnanf-nolibm: New file.
94388         * lib/isnanf.h: New file.
94389         * lib/isnanf.c: New file.
94390         * lib/isnan.c: Consider the USE_FLOAT macro.
94391         * m4/isnanf.m4: New file.
94393 2007-04-06  Bruno Haible  <bruno@clisp.org>
94395         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
94396         (Link): New section.
94398         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
94400 2007-04-06  Bruno Haible  <bruno@clisp.org>
94402         Assume the 'long double' type.
94403         * m4/longdouble.m4: Remove file.
94404         * config/srclist.txt: Don't mention longdouble.m4.
94405         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
94406         * lib/float+.h: Likewise.
94407         * lib/frexp.c: Likewise.
94408         * lib/printf-args.h: Likewise.
94409         * lib/printf-args.c: Likewise.
94410         * lib/printf-frexp.c: Likewise.
94411         * lib/printf-parse.c: Likewise.
94412         * lib/vasnprintf.c: Likewise.
94413         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
94414         * m4/intl.m4: Likewise.
94415         * m4/isnanl.m4: Likewise.
94416         * m4/printf.m4: Likewise.
94417         * m4/printf-frexpl.m4: Likewise.
94418         * m4/vasnprintf.m4: Likewise.
94419         * modules/allocsa (Files): Remove m4/longdouble.m4.
94420         * modules/gettext (Files): Likewise.
94421         * modules/relocatable-prog-wrapper (Files): Likewise.
94422         * modules/vasnprintf (Files): Likewise.
94423         * modules/isnanl (Files): Likewise.
94424         (Include): Simplify.
94425         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
94426         (Include): Simplify.
94427         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
94428         (Include): Simplify.
94429         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
94430         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
94431         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
94432         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
94433         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
94434         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
94435         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
94436         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
94437         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
94438         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
94439         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
94440         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
94441         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
94442         * tests/test-isnanl.c: Likewise.
94443         * tests/test-snprintf-posix.h: Likewise.
94444         * tests/test-sprintf-posix.h: Likewise.
94445         * tests/test-vasnprintf-posix.c: Likewise.
94446         * tests/test-vasnprintf-posix2.c: Likewise.
94447         * tests/test-vasprintf-posix.c: Likewise.
94449 2007-04-06  Bruno Haible  <bruno@clisp.org>
94451         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
94452         * lib/math_.h [__DECC]: Include the overridden include file through
94453         #include_next, outside the double-inclusion guard.
94454         * lib/stdio_.h [__DECC]: Likewise.
94455         * lib/stdlib_.h [__DECC]: Likewise.
94456         * lib/string_.h [__DECC]: Likewise.
94457         * lib/time_.h [__DECC]: Likewise.
94458         * lib/wchar_.h [__DECC]: Likewise.
94459         * lib/wctype_.h [__DECC]: Likewise.
94460         * lib/inttypes_.h [__DECC]: Likewise.
94461         Reported by Albert Chin <china@thewrittenword.com> in
94462         <http://lists.gnu.org/r/bug-gnulib/2007-04/msg00088.html>.
94464 2007-04-04  Eric Blake  <ebb9@byu.net>
94466         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
94467         1.5.x.
94469 2007-04-04  Bruno Haible  <bruno@clisp.org>
94471         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
94472         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
94474 2007-04-04  Bruno Haible  <bruno@clisp.org>
94476         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
94477         results for "%010a" of Infinity and NaN.
94478         * tests/test-vasprintf-posix.c (test_function): Likewise.
94479         * tests/test-snprintf-posix.h (test_function): Likewise.
94480         * tests/test-sprintf-posix.h (test_function): Likewise.
94481         * tests/test-fprintf-posix.h (test_function): Remove these tests.
94482         * tests/test-printf-posix.h (test_function): Likewise.
94483         * tests/test-fprintf-posix.out: Update.
94484         Needed for FreeBSD 6.1.
94486 2007-04-04  Bruno Haible  <bruno@clisp.org>
94488         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
94489         directly used by the gnulib modules nor by gnulib-tool.
94491 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
94493         * DEPENDENCIES: Give overall description of version dependency
94494         desirability.  Use more-typical names for apps.
94495         Add shell, coreutils, diffutils, grep, tar, gzip.
94497 2007-04-04  Simon Josefsson  <simon@josefsson.org>
94499         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
94501 2007-04-04  Karl Berry  <karl@gnu.org>
94503         * MODULES.html.sh (func_module): missing '.
94505 2007-04-03  Bruno Haible  <bruno@clisp.org>
94507         * modules/argmatch-tests (Makefile.am): New variable
94508         test_argmatch_LDADD.
94509         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
94510         * modules/array-list-tests (Makefile.am): New variable
94511         test_array_list_LDADD.
94512         * modules/array-oset-tests (Makefile.am): New variable
94513         test_array_oset_LDADD.
94514         * modules/avltree-list-tests (Makefile.am): New variable
94515         test_avltree_list_LDADD.
94516         * modules/avltree-oset-tests (Makefile.am): New variable
94517         test_avltree_oset_LDADD.
94518         * modules/avltreehash-list-tests (Makefile.am): New variable
94519         test_avltreehash_list_LDADD.
94520         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
94521         test_canonicalize_lgpl_LDADD.
94522         * modules/carray-list-tests (Makefile.am): New variable
94523         test_carray_list_LDADD.
94524         * modules/dirname-tests (Makefile.am): New variable
94525         test_dirname_LDADD.
94526         * modules/linked-list-tests (Makefile.am): New variable
94527         test_linked_list_LDADD.
94528         * modules/linkedhash-list-tests (Makefile.am): New variable
94529         test_linkedhash_list_LDADD.
94530         * modules/rbtree-list-tests (Makefile.am): New variable
94531         test_rbtree_list_LDADD.
94532         * modules/rbtree-oset-tests (Makefile.am): New variable
94533         test_rbtree_oset_LDADD.
94534         * modules/rbtreehash-list-tests (Makefile.am): New variable
94535         test_rbtreehash_list_LDADD.
94536         * modules/xvasprintf-tests (Makefile.am): New variable
94537         test_xvasprintf_LDADD.
94538         Reported by Eric Blake.
94540 2007-04-03  Eric Blake  <ebb9@byu.net>
94542         * DEPENDENCIES: Weaken m4 requirements.
94544 2007-04-03  Bruno Haible  <bruno@clisp.org>
94546         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
94547         * modules/isnanl-tests (configure.ac): Likewise.
94549 2007-04-03  Ben Pfaff  <blp@gnu.org>
94551         * modules/iconv_open: Add $(srcdir)/ to source directory
94552         references in Makefile fragments that call gperf, to fix VPATH
94553         builds.
94555 2007-04-03  Bruno Haible  <bruno@clisp.org>
94557         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
94558         * lib/ldexpl.c: Undo last change.
94560 2007-04-03  Bruno Haible  <bruno@clisp.org>
94562         * modules/printf-frexpl (Depends-on): Undo last change.
94563         (Files): Add m4/ldexpl.m4.
94565 2007-04-03  Bruno Haible  <bruno@clisp.org>
94567         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
94568         * modules/isnanl (Link): New section.
94570         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
94571         * modules/frexp (Link): New section.
94573         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
94574         * modules/frexpl (Link): New section.
94576         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
94577         * modules/ldexpl (Link): New section.
94579 2007-04-03  Bruno Haible  <bruno@clisp.org>
94581         * modules/TEMPLATE-EXTENDED: New file.
94582         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
94584 2007-04-03  Bruno Haible  <bruno@clisp.org>
94586         * DEPENDENCIES: New file.
94587         Suggested by Simon Josefsson.
94589 2007-04-03  Bruno Haible  <bruno@clisp.org>
94591         * doc/gnulib.texi: Escape @.
94593 2007-04-03  James Youngman  <jay@gnu.org>
94594         and Paul Eggert  <eggert@cs.ucla.edu>
94596         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
94597         birthtime on all systems that have birthtime, not just those which
94598         use st_birthtimensec rather than st_birthtim.  Putting zero in
94599         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
94600         that the birth time is not available for files on an NFS mount.
94602 2007-04-03  Simon Josefsson  <simon@josefsson.org>
94604         * modules/memxor: Move back from crypto/, suggested by Bruno.
94605         * modules/crypto/hmac-sha1: Fix memxor dependency.
94607         * modules/crypto/gc: Moved from ../.
94609 2007-04-02  Eric Blake  <ebb9@byu.net>
94611         * lib/ldexpl.c (includes): Avoid libm.
94613         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
94615 2007-04-02  Bruno Haible  <bruno@clisp.org>
94617         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
94618         on IRIX.
94620 2007-04-02  Bruno Haible  <bruno@clisp.org>
94622         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
94623         x86 or x86_64 platforms running MacOS X.
94624         Reported by Ryan Schmidt <@ryandesign.com>.
94626 2007-04-02  Bruno Haible  <bruno@clisp.org>
94628         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
94629         i386.
94631 2007-04-01  Simon Josefsson  <simon@josefsson.org>
94633         * modules/crypto/arcfour: Moved from ../.
94634         * modules/crypto/arcfour-tests: Moved from ../.
94635         * modules/crypto/arctwo: Moved from ../.
94636         * modules/crypto/arctwo-tests: Moved from ../.
94637         * modules/crypto/des: Moved from ../.
94638         * modules/crypto/des-tests: Moved from ../.
94639         * modules/crypto/gc-arcfour: Moved from ../.
94640         * modules/crypto/gc-arcfour-tests: Moved from ../.
94641         * modules/crypto/gc-arctwo: Moved from ../.
94642         * modules/crypto/gc-arctwo-tests: Moved from ../.
94643         * modules/crypto/gc-des: Moved from ../.
94644         * modules/crypto/gc-des-tests: Moved from ../.
94645         * modules/crypto/gc-hmac-md5: Moved from ../.
94646         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
94647         * modules/crypto/gc-hmac-sha1: Moved from ../.
94648         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
94649         * modules/crypto/gc-md2: Moved from ../.
94650         * modules/crypto/gc-md2-tests: Moved from ../.
94651         * modules/crypto/gc-md4: Moved from ../.
94652         * modules/crypto/gc-md4-tests: Moved from ../.
94653         * modules/crypto/gc-md5: Moved from ../.
94654         * modules/crypto/gc-md5-tests: Moved from ../.
94655         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
94656         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
94657         * modules/crypto/gc-random: Moved from ../.
94658         * modules/crypto/gc-rijndael: Moved from ../.
94659         * modules/crypto/gc-rijndael-tests: Moved from ../.
94660         * modules/crypto/gc-sha1: Moved from ../.
94661         * modules/crypto/gc-sha1-tests: Moved from ../.
94662         * modules/crypto/gc-tests: Moved from ../.
94663         * modules/crypto/hmac-md5: Moved from ../.
94664         * modules/crypto/hmac-md5-tests: Moved from ../.
94665         * modules/crypto/hmac-sha1: Moved from ../.
94666         * modules/crypto/hmac-sha1-tests: Moved from ../.
94667         * modules/crypto/md2: Moved from ../.
94668         * modules/crypto/md2-tests: Moved from ../.
94669         * modules/crypto/md4: Moved from ../.
94670         * modules/crypto/md4-tests: Moved from ../.
94671         * modules/crypto/md5: Moved from ../.
94672         * modules/crypto/md5-tests: Moved from ../.
94673         * modules/crypto/memxor: Moved from ../.
94674         * modules/crypto/rijndael: Moved from ../.
94675         * modules/crypto/rijndael-tests: Moved from ../.
94676         * modules/crypto/sha1: Moved from ../.
94678 2007-03-30  James Youngman  <jay@gnu.org>
94680         * tests/test-stat-time.c (prepare_test): use chmod() rather than
94681         rename() to change the ctime of a file (because ctime is unaffected
94682         by rename on jfs2 on AIX 5.1).
94683         (main): Start by doing cleanup, in case a previous run failed leaving
94684         test files behind.
94686 2007-03-31  Bruno Haible  <bruno@clisp.org>
94688         Support old proprietary implementations of iconv.
94689         * modules/iconv_open: New file.
94690         * lib/iconv_.h: New file.
94691         * m4/iconv_h.m4: New file.
94692         * lib/iconv_open.c: New file.
94693         * lib/iconv_open-aix.gperf: New file.
94694         * lib/iconv_open-hpux.gperf: New file.
94695         * lib/iconv_open-irix.gperf: New file.
94696         * lib/iconv_open-osf.gperf: New file.
94697         * m4/iconv_open.m4: New file.
94698         * modules/linebreak (Depends-on): Add iconv_open.
94699         * modules/striconv (Depends-on): Likewise.
94700         * modules/striconveh (Depends-on): Likewise.
94701         * modules/unicodeio (Depends-on): Likewise.
94702         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
94703         (iconv_t)(-1).
94704         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
94705         conversion if cd is (iconv_t)(-1).
94706         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
94707         is not possible.
94709 2007-03-31  Bruno Haible  <bruno@clisp.org>
94711         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
94712         work on Solaris either. Protect also second use of "autodetect_jp".
94714 2007-03-31  Bruno Haible  <bruno@clisp.org>
94716         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
94717         the function is not present.
94719 2007-03-31  Bruno Haible  <bruno@clisp.org>
94721         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
94722         the function is not present.
94724 2007-03-31  Bruno Haible  <bruno@clisp.org>
94726         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
94727         a bug in HP-UX iconv_open().
94729 2007-03-31  Bruno Haible  <bruno@clisp.org>
94731         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
94732         (Mathematics <math.h>): New section, add fpieee.
94733         (Input/output <stdio.h>): Add fseterr.
94734         (Mathematics <math.h>): New section, add printf-frexp.
94735         (Container data structures): Add sublist.
94736         (Core language properties): Add fpucw, inline.
94737         (Functions for greatest-width integer types <inttypes.h>): Add
94738         imaxabs, imaxdiv, inttypes.
94739         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
94740         isnanl-nolibm, ldexp.
94741         (Mathematics <math.h>): New section, add printf-frexpl.
94742         (Support for systems lacking POSIX:2001): Add fprintf-posix,
94743         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
94744         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
94745         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
94746         (Unicode string functions): Add unistr/u*-mbtoucr.
94747         (Java): Add javacomp-script, javaexec-script.
94748         (C#): Add csharpcomp-script, csharpexec-script.
94749         (Support for building libraries and executables): Add havelib,
94750         relocatable-*.
94751         (Support for maintaining and releasing projects): Renamed from
94752         'Support for maintaining and release projects'. Add announce-gen.
94754 2007-03-31  Bruno Haible  <bruno@clisp.org>
94756         * README: Talk primarily about git.
94757         (git and CVS): Renamed from CVS.
94758         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
94759         gnulib is available through git.
94760         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
94762 2007-03-30  Bruno Haible  <bruno@clisp.org>
94764         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
94765         * lib/poll_.h: Likewise.
94766         * lib/stat_.h: Likewise.
94767         * lib/sys_time_.h: Likewise.
94768         * lib/sysexit_.h: Likewise.
94769         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
94770         * lib/stdbool_.h: Likewise.
94771         * lib/byteswap_.h: Add double-inclusion guard.
94773 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
94775         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
94777 2007-03-30  Karl Berry  <karl@gnu.org>
94779         * config/srclist-update: double space after USA in the license
94780         substitution, since that's how it's usually (?) written.
94782 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
94784         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
94785         reported by Bruno Haible.
94787 2007-03-29  Bruno Haible  <bruno@clisp.org>
94789         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
94790         a bug in AIX iconv().
94792 2007-03-29  Bruno Haible  <bruno@clisp.org>
94794         * modules/ldexpl-tests: New file.
94795         * tests/test-ldexpl.c: New file.
94797 2007-03-29  Bruno Haible  <bruno@clisp.org>
94799         * lib/ldexpl.c: Include fpucw.h.
94800         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
94801         multiplication.
94802         * modules/ldexpl (Depends-on): Add fpucw.
94804 2007-03-29  Bruno Haible  <bruno@clisp.org>
94806         * modules/ldexpl: New file.
94807         * m4/ldexpl.m4: New file.
94808         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
94809         set.
94810         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
94811         REPLACE_LDEXPL.
94812         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
94813         REPLACE_LDEXPL.
94814         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
94815         gl_FUNC_LDEXPL_WORKS.
94816         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
94817         * modules/mathl (Files): Remove lib/ldexpl.c.
94818         (Depends-on): Add ldexpl.
94820 2007-03-29  Bruno Haible  <bruno@clisp.org>
94822         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
94824 2007-03-29  Bruno Haible  <bruno@clisp.org>
94826         * tests/test-striconveh.c (main): Don't assume that a direct conversion
94827         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
94828         and possibly also HP-UX.
94829         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
94830         work on AIX, IRIX, HP-UX, OSF/1.
94831         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
94832         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
94833         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
94834         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
94835         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
94836         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
94838 2007-03-29  Bruno Haible  <bruno@clisp.org>
94840         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
94842 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
94844         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
94845         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
94847 2007-03-29  Eric Blake  <ebb9@byu.net>
94849         * lib/acl-internal.h: Remove redundant include.
94850         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
94851         Cygwin when a file is locked.
94853 2007-03-29  Bruno Haible  <bruno@clisp.org>
94855         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
94856         file.
94857         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
94859 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
94861         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
94862         try to remove a parent directory if the child couldn't be removed
94863         (except for the first rmdir, which could fail because the child
94864         doesn't exist).  Problem reported by Jeff Blaine in
94865         <http://lists.gnu.org/r/bug-tar/2007-03/msg00014.html>.
94867 2007-03-28  Bruno Haible  <bruno@clisp.org>
94869         * lib/striconveh.c (utf8conv_carefully): New function.
94870         (mem_cd_iconveh_internal): Invoke it.
94872 2007-03-28  Bruno Haible  <bruno@clisp.org>
94874         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
94875         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
94876         input.
94877         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
94878         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
94879         unistr/u8-uctomb.
94881 2007-03-28  Bruno Haible  <bruno@clisp.org>
94883         * modules/unistr/u8-mbtoucr: New file.
94884         * lib/unistr/u8-mbtoucr.c: New file.
94885         * modules/unistr/u16-mbtoucr: New file.
94886         * lib/unistr/u16-mbtoucr.c: New file.
94887         * modules/unistr/u16-mbtoucr: New file.
94888         * lib/unistr/u16-mbtoucr.c: New file.
94889         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
94891 2007-03-27  Simon Josefsson  <simon@josefsson.org>
94892             Bruno Haible  <bruno@clisp.org>
94894         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
94895         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
94896         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
94898         * m4/stdio_h.m4: Add stubs for vasprintf too.
94900         * modules/stdio: Support vasprintf in sed command.
94902         * modules/vasprintf: Depend on stdio for prototypes.  Remove
94903         vasprintf.h.  Add stdio module indicator.
94905         * lib/stdio_.h: Declare asprintf and vasprintf, based on
94906         vasprintf.h.
94908         * lib/vasprintf.h: File removed.
94910         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
94911         * lib/vasprintf.c: Ditto.
94912         * lib/xvasprintf.c: Ditto.
94913         * tests/test-vasprintf-posix.c: Ditto.
94914         * tests/test-vasprintf.c: Ditto.
94916 2007-03-27  Bruno Haible  <bruno@clisp.org>
94918         Make vasnprintf multithread-safe.
94919         * lib/vasnprintf.c (decimal_point_char): New function.
94920         (VASNPRINTF): Use it.
94921         Suggested by Simon Josefsson.
94923 2007-03-27  Eric Blake  <ebb9@byu.net>
94925         Support sub-second birthtime on cygwin.
94926         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
94927         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
94928         (get_stat_birthtime): Also work with st_birthtim.
94930 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
94932         * lib/stat-time.h (USE_BIRTHTIME): Remove.
94933         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
94934         (get_stat_birthtime_ns): Do not try to use "spare" fields.
94935         (get_stat_birthtime_ns): Simplify compile-time tests.
94936         (get_stat_birthtime): Change the API to look like
94937         get_stat_mtime etc., except return a negative tv_nsec on error.
94938         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
94939         Don't check for "spare" fields.
94940         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
94941         or for struct stat.st_birthtime, as these tests aren't used.
94942         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
94944 2007-03-27  Bruno Haible  <bruno@clisp.org>
94946         * lib/stat-time.h: Include <sys/stat.h>.
94948 2007-03-27  James Youngman  <jay@gnu.org>
94950         * lib/stat-time.h (get_stat_birthtime): New function for
94951           retrieving st_birthtime as provided by UFS2 (hence *BSD).
94952         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
94953           and its variants.
94954         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
94955         * modules/stat-time-test: New file.
94956         * tests/test-stat-time.c: New test, devised by Bruno Haible.
94958 2007-03-26  Bruno Haible  <bruno@clisp.org>
94960         Better support of signalling NaNs.
94961         * lib/atanl.c: Include isnanl.h.
94962         (atanl): Perform test for NaN at the beginning of the function and
94963         through a call to isnanl.
94964         * lib/cosl.c: Include isnanl.h.
94965         (cosl): Perform test for NaN at the beginning of the function and
94966         through a call to isnanl.
94967         * lib/ldexpl.c: Include isnanl.h.
94968         (ldexpl): Perform test for NaN through a call to isnanl.
94969         * lib/logl.c: Include isnanl.h.
94970         (logl): Perform test for NaN at the beginning of the function and
94971         through a call to isnanl.
94972         * lib/sinl.c: Include isnanl.h.
94973         (sinl): Perform test for NaN at the beginning of the function and
94974         through a call to isnanl.
94975         * lib/sqrtl.c: Include isnanl.h.
94976         (sqrtl): Perform test for NaN at the beginning of the function and
94977         through a call to isnanl.
94978         * lib/tanl.c: Include isnanl.h.
94979         (tanl): Perform test for NaN at the beginning of the function and
94980         through a call to isnanl.
94981         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
94982         * modules/mathl (Depends-on): Add isnanl.
94984 2007-03-26  Eric Blake  <ebb9@byu.net>
94986         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
94987         regression in logic sense of previous patch.
94989 2007-03-26  Bruno Haible  <bruno@clisp.org>
94991         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
94992         unportable shell command "if ! ...".
94993         Reported by Ralf Wildenhues.
94995 2007-03-25  Bruno Haible  <bruno@clisp.org>
94997         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
94998         <sysexits.h> file, and only add EX_CONFIG.
94999         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
95000         absolute file name and whether it is sufficient. Substitute also
95001         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
95002         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
95003         ABSOLUTE_SYSEXITS_H into sysexits.h.
95005 2007-03-25  Bruno Haible  <bruno@clisp.org>
95007         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
95008         hints is NULL.
95010 2007-03-25  Bruno Haible  <bruno@clisp.org>
95012         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
95013         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
95015 2007-03-25  Bruno Haible  <bruno@clisp.org>
95017         * lib/vasnprintf.c: Include langinfo.h.
95018         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
95019         multithread-safe.
95020         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
95021         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
95022         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
95023         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
95024         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
95025         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
95026         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
95027         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
95028         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
95029         Reported by Simon Josefsson.
95031 2007-03-25  Bruno Haible  <bruno@clisp.org>
95033         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
95034         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
95035         * modules/vasnprintf (Depends-on): Add stdint.
95037 2007-03-25  Bruno Haible  <bruno@clisp.org>
95039         * modules/fpieee: New file.
95040         * m4/fpieee.m4: New file.
95041         * modules/isnan-nolibm (Depends-on): Add fpieee.
95042         * modules/isnanl-nolibm (Depends-on): Add fpieee.
95043         * modules/isnanl (Depends-on): Add fpieee.
95045 2007-03-25  Bruno Haible  <bruno@clisp.org>
95047         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
95049 2007-03-25  Bruno Haible  <bruno@clisp.org>
95051         Avoid test failures on IRIX 6.5.
95052         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
95053         (main): Use it.
95054         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
95055         macros.
95056         (main): Use them.
95058 2007-03-25  Bruno Haible  <bruno@clisp.org>
95060         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
95061         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
95062         exists but doesn't work.
95063         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
95064         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
95065         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
95066         * modules/math (Makefile.am): Substitute also REPLACE_FREXPL into
95067         math.h.
95069 2007-03-25  Bruno Haible  <bruno@clisp.org>
95071         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
95072         returns inf. Needed on IRIX 6.5.
95074 2007-03-25  Bruno Haible  <bruno@clisp.org>
95076         * tests/test-frexpl.c: Include isnanl-nolibm.h.
95077         (main): Use isnanl instead of x != x idiom.
95078         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
95080         * tests/test-frexp.c: Include isnan.h.
95081         (main): Use isnan instead of x != x idiom.
95082         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
95084 2007-03-25  Bruno Haible  <bruno@clisp.org>
95086         * tests/test-frexp.c (NaN): New function/macro.
95087         (main): Use it instead of 0.0 / 0.0.
95088         * tests/test-isnan.c (NaN): New function/macro.
95089         (main): Use it instead of 0.0 / 0.0.
95090         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
95091         (test_function): Use it instead of 0.0 / 0.0.
95092         * tests/test-vasprintf-posix.c (NaN): New function/macro.
95093         (test_function): Use it instead of 0.0 / 0.0.
95094         * tests/test-snprintf-posix.h (NaN): New function/macro.
95095         (test_function): Use it instead of 0.0 / 0.0.
95096         * tests/test-sprintf-posix.h (NaN): New function/macro.
95097         (test_function): Use it instead of 0.0 / 0.0.
95098         * tests/test-fprintf-posix.h (NaN): New function/macro.
95099         (test_function): Use it instead of 0.0 / 0.0.
95100         * tests/test-printf-posix.h (NaN): New function/macro.
95101         (test_function): Use it instead of 0.0 / 0.0.
95103         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
95105 2007-03-25  Bruno Haible  <bruno@clisp.org>
95107         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
95109 2007-03-25  Bruno Haible  <bruno@clisp.org>
95111         * lib/regexec.c (merge_state_with_log): Make static.
95113 2007-03-25  Bruno Haible  <bruno@clisp.org>
95115         * lib/trigl.c (kernel_rem_pio2): Make static.
95117 2007-03-25  Bruno Haible  <bruno@clisp.org>
95119         * lib/sincosl.c (sincosl_table): Make static.
95121 2007-03-25  Bruno Haible  <bruno@clisp.org>
95123         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
95124         if the compiler does not support C99.
95126 2007-03-25  Bruno Haible  <bruno@clisp.org>
95128         * modules/time (Makefile.am): Ensure all rule action lines start with a
95129         tab.
95131 2007-03-24  Bruno Haible  <bruno@clisp.org>
95133         * modules/tsearch-tests: New file.
95134         * tests/test-tsearch.sh: New file.
95135         * tests/test-tsearch.c: New file, mostly copied from glibc.
95137         * modules/search-tests: New file.
95138         * tests/test-search.c: New file.
95140         * modules/search: New file.
95141         * lib/search_.h: New file, incorporating lib/tsearch.h.
95142         * m4/search_h.m4: New file.
95143         * lib/tsearch.h: Remove file.
95144         * lib/tsearch.c: Include search.h instead of tsearch.h.
95145         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
95146         HAVE_TSEARCH.
95147         * modules/tsearch (Files): Remove lib/tsearch.h.
95148         (Depends-on): Add search.
95149         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
95150         (Include): Change tsearch.h into search.h.
95152 2007-03-24  Bruno Haible  <bruno@clisp.org>
95154         * modules/fpucw: New file.
95155         * lib/fpucw.h: New file.
95156         * lib/frexp.c: Include fpucw.h.
95157         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
95158         (FUNC): Use them.
95159         * lib/printf-frexp.c: Include fpucw.h.
95160         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
95161         (FUNC): Use them.
95162         * lib/vasnprintf.c: Include fpucw.h.
95163         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
95164         'long double' calculations.
95165         * tests/test-frexpl.c: Include fpucw.h.
95166         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
95167         * tests/test-printf-frexpl.c: Include fpucw.h.
95168         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
95169         * modules/frexpl (Depends-on): Add fpucw.
95170         * modules/printf-frexpl (Depends-on): Likewise.
95171         * modules/fprintf-posix (Depends-on): Likewise.
95172         * modules/snprintf-posix (Depends-on): Likewise.
95173         * modules/sprintf-posix (Depends-on): Likewise.
95174         * modules/vasnprintf-posix (Depends-on): Likewise.
95175         * modules/vasprintf-posix (Depends-on): Likewise.
95176         * modules/vfprintf-posix (Depends-on): Likewise.
95177         * modules/vsnprintf-posix (Depends-on): Likewise.
95178         * modules/vsprintf-posix (Depends-on): Likewise.
95179         * modules/frexpl-tests (Depends-on): Likewise.
95180         * modules/printf-frexpl-tests (Depends-on): Likewise.
95182 2007-03-24  Bruno Haible  <bruno@clisp.org>
95184         * lib/float+.h: New file.
95185         * lib/isnan.c: Include float+.h.
95186         (SIZE): New macro.
95187         (FUNC): Compare only SIZE bytes of the value.
95188         * lib/vasnprintf.c: Include float+.h.
95189         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
95190         SIZEOF_LDBL or SIZEOF_DBL bytes.
95191         * modules/isnan-nolibm (Files): Add lib/float+.h.
95192         * modules/isnanl-nolibm (Files): Add lib/float+.h.
95193         * modules/isnanl (Files): Add lib/float+.h.
95194         * modules/vasnprintf (Files): Add lib/float+.h.
95196 2007-03-24  Bruno Haible  <bruno@clisp.org>
95198         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
95199         include isnanl-nolibm.h.
95201 2007-03-24  Bruno Haible  <bruno@clisp.org>
95203         * tests/test-read-file.c (main): Don't produce spurious output for
95204         expected situations. Make the test fail if it encountered unexpected
95205         results.
95207 2007-03-24  Bruno Haible  <bruno@clisp.org>
95209         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
95210         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
95212 2007-03-24  Bruno Haible  <bruno@clisp.org>
95214         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
95216 2007-03-24  Bruno Haible  <bruno@clisp.org>
95218         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
95219         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
95221         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
95222         * modules/utf8-ucs4: Turn into a symbolic link to module
95223         unistr/u8-mbtouc.
95225         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
95226         utf8-ucs4-unsafe.
95227         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
95228         unistr/u8-mbtouc-unsafe.
95230         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
95231         * modules/utf16-ucs4: Turn into a symbolic link to module
95232         unistr/u16-mbtouc.
95234         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
95235         utf16-ucs4-unsafe.
95236         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
95237         unistr/u16-mbtouc-unsafe.
95239         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
95240         * modules/ucs4-utf8: Turn into a symbolic link to module
95241         unistr/u8-ubtomb.
95243         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
95244         * modules/ucs4-utf16: Turn into a symbolic link to module
95245         unistr/u16-ubtomb.
95247 2007-03-24  Bruno Haible  <bruno@clisp.org>
95249         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
95250         Enable the function only if HAVE_INLINE.
95251         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
95252         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
95253         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
95254         Enable the function only if HAVE_INLINE.
95255         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
95256         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
95257         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
95258         Enable the function only if HAVE_INLINE.
95259         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
95260         Enable the function only if HAVE_INLINE.
95261         * modules/utf8-ucs4: Update.
95262         * modules/utf8-ucs4-unsafe: Update.
95263         * modules/utf16-ucs4: Update.
95264         * modules/utf16-ucs4-unsafe: Update.
95265         * modules/ucs4-utf8: Update.
95266         * modules/ucs4-utf16: Update.
95268 2007-03-24  Bruno Haible  <bruno@clisp.org>
95270         * lib/utf8-ucs4.h: Remove file.
95271         * lib/utf8-ucs4-unsafe.h: Remove file.
95272         * lib/utf16-ucs4.h: Remove file.
95273         * lib/utf16-ucs4-unsafe.h: Remove file.
95274         * lib/ucs4-utf8.h: Remove file.
95275         * lib/ucs4-utf16.h: Remove file.
95276         * lib/unistr.h: Include their previous contents.
95277         * m4/utf-ucs4.m4: Remove file.
95278         * m4/ucs4-utf.m4: Remove file.
95279         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
95280         (Depends-on): Add unistr/base.
95281         (configure.ac): Remove gl_UTF_UCS4.
95282         (Makefile.am): Update.
95283         (Include): Change to unistr.h.
95284         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
95285         (Depends-on): Add unistr/base.
95286         (configure.ac): Remove gl_UTF_UCS4.
95287         (Makefile.am): Update.
95288         (Include): Change to unistr.h.
95289         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
95290         (Depends-on): Add unistr/base.
95291         (configure.ac): Remove gl_UTF_UCS4.
95292         (Makefile.am): Update.
95293         (Include): Change to unistr.h.
95294         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
95295         (Depends-on): Add unistr/base.
95296         (configure.ac): Remove gl_UTF_UCS4.
95297         (Makefile.am): Update.
95298         (Include): Change to unistr.h.
95299         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
95300         (Depends-on): Add unistr/base.
95301         (configure.ac): Remove gl_UCS4_UTF.
95302         (Makefile.am): Update.
95303         (Include): Change to unistr.h.
95304         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
95305         (Depends-on): Add unistr/base.
95306         (configure.ac): Remove gl_UCS4_UTF.
95307         (Makefile.am): Update.
95308         (Include): Change to unistr.h.
95309         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
95310         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
95311         utf8-ucs4-unsafe.h.
95312         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
95313         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
95314         utf16-ucs4-unsafe.h.
95315         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
95316         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
95317         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
95318         * lib/unistr/u8-strchr.c: Likewise.
95319         * lib/unistr/u8-strrchr.c: Likewise.
95320         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
95321         * lib/unistr/u16-strchr.c: Likewise.
95322         * lib/unistr/u16-strrchr.c: Likewise.
95323         * lib/striconveh.c: Update.
95324         * lib/linebreak.c: Update.
95326 2007-03-24  Bruno Haible  <bruno@clisp.org>
95328         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
95329         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
95331 2007-03-22  Bruno Haible  <bruno@clisp.org>
95333         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
95335 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
95337         * MODULES.html.sh (File system functions): New module write-any-file.
95338         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
95339         * m4/write-any-file.m4: New files.
95341 2007-03-23  Eric Blake  <ebb9@byu.net>
95343         * gnulib-tool: Rearrange space-tab sequences, since some editors
95344         like to eat them.
95346 2007-03-23  Eric Blake  <ebb9@byu.net>
95348         * lib/version-etc.c (version_etc_va): Update license wording to
95349         be more concise.  Recommended by Richard Stallman.
95351 2007-03-22  Bruno Haible  <bruno@clisp.org>
95353         * lib/poll.c (MSG_PEEK): New fallback definition.
95355 2007-03-22  Bruno Haible  <bruno@clisp.org>
95357         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
95358         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
95359         (main): Update.
95360         Fixes a compilation error on BeOS.
95362 2007-03-22  Bruno Haible  <bruno@clisp.org>
95364         * modules/frexpl-tests: New file.
95365         * tests/test-frexpl.c: New file.
95367         * modules/frexpl: New file.
95368         * m4/frexpl.m4: New file.
95369         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
95370         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
95371         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
95372         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
95373         (Depends-on): Add frexpl. Remove isnanl-nolibm.
95374         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
95376 2007-03-22  Bruno Haible  <bruno@clisp.org>
95378         * lib/frexpl.c: Share code with lib/frexp.c.
95379         * modules/mathl (Files): Add lib/frexp.c.
95380         (Depends-on): Add isnanl-nolibm.
95382 2007-03-22  Bruno Haible  <bruno@clisp.org>
95384         * modules/printf-frexp (Files): Add m4/frexp.m4.
95385         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
95386         only if the found frexp function actually works.
95388 2007-03-22  Bruno Haible  <bruno@clisp.org>
95390         * lib/frexp.c: Remove older implementation that uses divisions.
95392 2007-03-21  Bruno Haible  <bruno@clisp.org>
95394         * modules/frexp-tests: New file.
95395         * tests/test-frexp.c: New file.
95397         * modules/frexp: New file.
95398         * lib/frexp.c: New file.
95399         * m4/frexp.m4: New file.
95400         * lib/math_.h (frexp): New declaration.
95401         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
95402         REPLACE_FREXP.
95403         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
95405 2007-03-21  Bruno Haible  <bruno@clisp.org>
95407         * modules/isnanl-tests: New file.
95408         * tests/test-isnanl.c: New file.
95410         * modules/isnanl: New file.
95411         * lib/isnanl.h: New file.
95412         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
95413         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
95414         gl_FUNC_ISNANL_WORKS.
95415         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
95416         New macros.
95418 2007-03-21  Bruno Haible  <bruno@clisp.org>
95420         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
95421         lib/isnanl.h.
95422         (Include): Update.
95423         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
95424         * lib/vasnprintf.c: Update.
95425         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
95426         tests/test-isnanl.h, remove tests/test-isnanl.c.
95427         (Makefile.am): Update.
95428         * tests/test-isnanl-nolibm.c: New file.
95429         * tests/test-isnanl.h: New file.
95430         * tests/test-isnanl.c: Remove file.
95432 2007-03-21  Jim Meyering  <jim@meyering.net>
95434         When trying to open ".", treat ESTALE like EACCES.
95435         * lib/savewd.c (savewd_save): Resort to forking not just upon
95436         failure with EACCES, but also when errno is ESTALE.
95438 2007-03-20  Bruno Haible  <bruno@clisp.org>
95440         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
95441         Needed on AIX 5.1. Reported by Matthew Woehlke.
95443 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
95445         Suggestions by Bruno Haible:
95446         * lib/acl-internal.h: Include "gettext.h" rather than rolling
95447         our own.
95448         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
95449         * modules/acl (Depends-on): Add gettext.
95451 2007-03-19  Bruno Haible  <bruno@clisp.org>
95453         * modules/iconvme: Remove file.
95454         * lib/iconvme.h: Remove file.
95455         * lib/iconvme.c: Remove file.
95456         * m4/iconvme.m4: Remove file.
95458 2007-03-19  Bruno Haible  <bruno@clisp.org>
95460         * doc/relocatable-maint.texi: Break long shell script line.
95461         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
95463 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
95465         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
95466         handle file_has_acl.
95467         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
95468         * lib/acl.c: Move header inclusions and related macro defns into
95469         lib/acl-internal.h.
95470         (S_ISLNK): Remove defn, since that's now done for us.
95471         (file_has_acl): Move to lib/file-has-acl.c.
95472         Call acl_trivial if available.  This is the crucial part of the fix.
95473         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
95474         shared within the library.  Rewrite a bit, partly to make it compatible
95475         with the GNU coding style.
95476         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
95477         Remove unnecessary double-quotes.
95478         Don't test for acl_to_text; the build will catch that.
95479         Replace acl_entries if it doesn't exist and it is needed.
95480         Check for -lsec and acl_trivial (as used on Solaris 10).
95481         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
95482         lib/file-has-acl.c.
95483         (Depends-on): Add sys_stat, for S_ISLNK.
95485 2007-03-19  Ben Pfaff  <blp@gnu.org>
95487         * doc/gnulib.texi: Fix typos.
95488         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
95490 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
95492         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
95493         If size is zero here, buf must be zero.
95495 2007-03-19  Simon Josefsson  <simon@josefsson.org>
95497         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
95498         <bruno@clisp.org>.
95500 2007-03-18  Bruno Haible  <bruno@clisp.org>
95502         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
95503         Suggested by Eric Blake.
95505 2007-03-18  Ben Pfaff  <blp@gnu.org>
95507         * doc/relocatable.texi: Recommend using as prefix a directory
95508         that does not exist and will never be created.  Based on
95509         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
95510         and others.
95512 2007-03-17  Bruno Haible  <bruno@clisp.org>
95514         * lib/fchownat.c: Include lchown.h.
95516 2007-03-17  Bruno Haible  <bruno@clisp.org>
95518         Fix endless loop when the given allocated size was > INT_MAX.
95519         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
95520         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
95521         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
95522         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
95523         * lib/sprintf.c (sprintf): Likewise.
95525 2007-03-17  Bruno Haible  <bruno@clisp.org>
95527         * tests/test-argp-2.sh (func_compare): Output a context diff.
95529 2007-03-17  Bruno Haible  <bruno@clisp.org>
95531         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
95532         locale's decimal-point character.
95534 2007-03-17  Bruno Haible  <bruno@clisp.org>
95536         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
95537         before comparing it. Needed because on some platforms (e.g. x86) a
95538         'long double' occupies less bytes than sizeof (long double).
95540 2007-03-17  Bruno Haible  <bruno@clisp.org>
95542         * tests/test-crc.c (main): Make printf statements 64-bit clean.
95543         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
95544         * tests/test-getaddrinfo.c (simple): Likewise.
95545         * tests/test-read-file.c (main): Likewise.
95547 2007-03-17  Bruno Haible  <bruno@clisp.org>
95549         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
95551 2007-03-17  Bruno Haible  <bruno@clisp.org>
95553         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
95554         unused variable.
95556 2007-03-17  Bruno Haible  <bruno@clisp.org>
95558         * tests/test-c-strcasecmp.c: Include c-strcase.h.
95559         * tests/test-c-strncasecmp.c: Likewise.
95561 2007-03-17  Bruno Haible  <bruno@clisp.org>
95563         * modules/stdlib (Depends-on): Add unistd.
95564         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
95565         Needed for MacOS X 10.3.
95567 2007-03-17  Bruno Haible  <bruno@clisp.org>
95569         * lib/unistr/u-strdup.h: Include <stdlib.h>.
95571 2007-03-17  Bruno Haible  <bruno@clisp.org>
95573         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
95575 2007-03-17  Bruno Haible  <bruno@clisp.org>
95577         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
95578         to reflect files copied from gnulib (with or without modifications).
95579         Suggested by Jim Meyering.
95581 2007-03-17  Eric Blake  <ebb9@byu.net>
95583         * NEWS: Document stdlib change from 2007-02-18.
95585 2007-03-17  Jim Meyering  <jim@meyering.net>
95587         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
95588         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
95589         someone uses a name containing shell meta-characters.
95590         Reported by Alfred M. Szmidt.
95592         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
95594 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
95596         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
95597         and copy gettext configuration files only if configure.ac contains
95598         a use of AM_GNU_GETTEXT_VERSION.
95600 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
95602         * build-aux/bootstrap (gnulib_name): New variable.
95603         (gnulib_tool_options): Use it.
95605 2007-03-13  Simon Josefsson  <simon@josefsson.org>
95607         * tests/test-des.c: Use new namespace.
95609 2007-03-15  Bruno Haible  <bruno@clisp.org>
95611         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
95612         Reported by James Youngman <jay@gnu.org>.
95614 2007-03-15  Bruno Haible  <bruno@clisp.org>
95616         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
95617         declared prototype. Needed with cc on OSF/1 5.1.
95619 2007-03-15  Bruno Haible  <bruno@clisp.org>
95621         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
95622         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
95623         (struct gl_list_implementation): Add dispose_fn argument to the
95624         'create_empty', 'create' methods.
95625         (struct gl_list_impl_base): Add field 'dispose_fn'.
95626         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
95627         argument.
95628         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
95629         dispose_fn argument.
95630         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
95631         dispose_fn on the dropped values.
95632         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
95633         dispose_fn argument.
95634         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
95635         dropped values.
95636         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
95637         (gl_tree_remove_node): Call dispose_fn on the dropped value.
95638         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
95639         (gl_tree_remove_node): Call dispose_fn on the dropped value.
95640         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
95641         argument.
95642         (gl_tree_list_free): Call dispose_fn on the dropped values.
95643         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
95644         the dropped values.
95645         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
95646         Add dispose_fn argument.
95647         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
95648         Call dispose_fn on the dropped values.
95649         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
95650         Add dispose_fn argument.
95651         (gl_sublist_create): Initialize the 'dispose_fn' field.
95652         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
95653         * tests/test-array_list.c (main): Update.
95654         * tests/test-carray_list.c (main): Update.
95655         * tests/test-avltree_list.c (main): Update.
95656         * tests/test-rbtree_list.c (main): Update.
95657         * tests/test-avltreehash_list.c (main): Update.
95658         * tests/test-rbtreehash_list.c (main): Update.
95659         * tests/test-linked_list.c (main): Update.
95660         * tests/test-linkedhash_list.c (main): Update.
95661         * tests/test-array_oset.c (main): Update.
95663 2007-03-15  Bruno Haible  <bruno@clisp.org>
95665         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
95666         (gl_oset_create_empty): Add dispose_fn argument.
95667         (struct gl_oset_implementation): Add dispose_fn argument to
95668         'create_empty' method.
95669         (struct gl_oset_impl_base): Add dispose_fn field.
95670         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
95671         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
95672         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
95673         values.
95674         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
95675         (gl_tree_oset_free): Call dispose_fn on the dropped values.
95676         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
95677         dropped value.
95678         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
95679         dropped value.
95680         * tests/test-array_oset.c (main): Update.
95681         * tests/test-avltree_oset.c (main): Update.
95682         * tests/test-rbtree_oset.c (main): Update.
95683         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
95685 2007-03-13  Bruno Haible  <bruno@clisp.org>
95687         * tests/test-stdbool.c (i): Update after last patch.
95689 2007-03-12  Bruno Haible  <bruno@clisp.org>
95691         * lib/quotearg.c: Include <wctype.h> early, before the definition of
95692         the iswprint macro. Needed on Solaris 2.5.1.
95694 2007-03-12  Bruno Haible  <bruno@clisp.org>
95696         * tests/test-printf-frexp.c (main): Declare x as volatile.
95698 2007-03-12  Simon Josefsson  <simon@josefsson.org>
95700         * doc/gnulib.texi (Build robot for gnulib): New section.
95702 2007-03-12  Jim Meyering  <jim@meyering.net>
95704         * build-aux/bootstrap: New file.
95705         * build-aux/bootstrap.conf: New file, from coreutils.
95707 2007-03-11  Bruno Haible  <bruno@clisp.org>
95709         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
95711 2007-03-12  Simon Josefsson  <simon@josefsson.org>
95713         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
95714         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
95715         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
95717 2007-03-11  Bruno Haible  <bruno@clisp.org>
95719         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
95720         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
95722 2007-03-11  Bruno Haible  <bruno@clisp.org>
95724         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
95725         formula. Needed for SunPRO C 5.0.
95727 2007-03-11  Bruno Haible  <bruno@clisp.org>
95729         * modules/long-options (Depends-on): Add getopt.
95731 2007-03-11  Bruno Haible  <bruno@clisp.org>
95733         * modules/modechange (Depends-on): Add stdbool.
95735 2007-03-11  Bruno Haible  <bruno@clisp.org>
95737         * modules/i-ring (Depends-on): Add stdbool.
95739 2007-03-11  Bruno Haible  <bruno@clisp.org>
95741         * modules/gc-des (Depends-on): Add stdbool.
95743 2007-03-11  Bruno Haible  <bruno@clisp.org>
95745         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
95747 2007-03-11  Bruno Haible  <bruno@clisp.org>
95749         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
95751 2007-03-11  Bruno Haible  <bruno@clisp.org>
95753         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
95755 2007-03-11  Bruno Haible  <bruno@clisp.org>
95757         * lib/vasnprintf.c (sprintf): Undefine.
95759 2007-03-11  Bruno Haible  <bruno@clisp.org>
95761         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
95762         initializers in SunPRO C and Compaq C compilers.
95764 2007-03-11  Bruno Haible  <bruno@clisp.org>
95766         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
95767         decrementing code ANSI C compliant.
95769 2007-03-11  Bruno Haible  <bruno@clisp.org>
95771         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
95772         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
95774 2007-03-11  Bruno Haible  <bruno@clisp.org>
95776         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
95777         <stdbool.h> substitute doesn't pass.
95779 2007-03-11  Bruno Haible  <bruno@clisp.org>
95781         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
95783 2007-03-11  Bruno Haible  <bruno@clisp.org>
95785         * gnulib-tool (func_create_megatestdir): Create also an autobuild
95786         script, for submission to autobuild.josefsson.org.
95788 2007-03-10  Bruno Haible  <bruno@clisp.org>
95790         * modules/canonicalize-lgpl-tests: New file.
95791         * tests/test-canonicalize-lgpl.sh: New file.
95792         * tests/test-canonicalize-lgpl.c: New file.
95794         * modules/c-strcase-tests: New file.
95795         * tests/test-c-strcase.sh: New file.
95796         * tests/test-c-strcasecmp.c: New file.
95797         * tests/test-c-strncasecmp.c: New file.
95799         * modules/atexit-tests: New file.
95800         * tests/test-atexit.sh: New file.
95801         * tests/test-atexit.c: New file.
95803 2007-03-10  Bruno Haible  <bruno@clisp.org>
95805         * tests/test-binary-io.sh: Use temporary filenames that are not so
95806         likely to clash with those of other tests (in a parallel make).
95807         * tests/test-binary-io.c: Likewise.
95809 2007-03-10  Bruno Haible  <bruno@clisp.org>
95811         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
95812         fallback; use #error instead.
95813         Suggested by Simon Josefsson.
95815 2007-03-10  Bruno Haible  <bruno@clisp.org>
95817         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
95818         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
95819         first and the last.
95821 2007-03-10  Bruno Haible  <bruno@clisp.org>
95823         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
95825 2007-03-10  Bruno Haible  <bruno@clisp.org>
95827         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
95828         "make distcheck".
95829         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
95830         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
95831         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
95833 2007-03-10  Bruno Haible  <bruno@clisp.org>
95835         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
95836         variable.
95837         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
95838         variable.
95840 2007-03-09  Eric Blake  <ebb9@byu.net>
95841         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
95843         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
95844         types are not being provided by gnulib.
95845         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
95846         types are supported.
95848 2007-03-10  Bruno Haible  <bruno@clisp.org>
95850         * lib/stdio_.h (__attribute__): New macro.
95851         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
95852         vsprintf): Specify __attribute__ __format__ for GCC.
95853         Suggested by Eric Blake.
95855 2007-03-09  Bruno Haible  <bruno@clisp.org>
95857         * modules/printf-posix-tests: New file.
95858         * tests/test-printf-posix.sh: New file.
95859         * tests/test-printf-posix.c: New file.
95861         * modules/printf-posix: New file.
95862         * lib/printf.c: New file.
95863         * m4/printf-posix-rpl.m4: New file.
95864         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
95865         REPLACE_PRINTF.
95866         * lib/stdio_.h (printf): New declaration.
95867         (format, __format__, ____printf____, ____scanf____, ____strftime____,
95868         ____strfmon____): New macros.
95869         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
95870         REPLACE_PRINTF.
95872 2007-03-09  Bruno Haible  <bruno@clisp.org>
95874         * tests/test-vasnprintf-posix2.sh: New file.
95875         * tests/test-vasnprintf-posix2.c: New file.
95876         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
95877         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
95878         (Makefile.am): Activate test-vasnprintf-posix2.sh.
95880         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
95881         a locale dependent decimal point, rather than always '.'.
95883 2007-03-09  Eric Blake  <ebb9@byu.net>
95885         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
95886         spite of platforms like Tandem/NSK that define it to -1.
95888 2007-03-08  Bruno Haible  <bruno@clisp.org>
95890         * modules/vprintf-posix-tests: New file.
95891         * tests/test-vprintf-posix.sh: New file.
95892         * tests/test-vprintf-posix.c: New file.
95893         * tests/test-printf-posix.h: New file.
95895         * modules/vprintf-posix: New file.
95896         * lib/vprintf.c: New file.
95897         * m4/vprintf-posix.m4: New file.
95898         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
95899         REPLACE_VPRINTF.
95900         * lib/stdio_.h (vprintf): New declaration.
95901         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
95902         REPLACE_VPRINTF.
95904 2007-03-08  Bruno Haible  <bruno@clisp.org>
95906         * modules/fprintf-posix-tests: New file.
95907         * tests/test-fprintf-posix.sh: New file.
95908         * tests/test-fprintf-posix.c: New file.
95910         * modules/fprintf-posix: New file.
95911         * lib/fprintf.c: New file.
95912         * m4/fprintf-posix.m4: New file.
95913         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
95914         REPLACE_FPRINTF.
95915         * lib/stdio_.h (fprintf): New declaration.
95916         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
95917         REPLACE_FPRINTF.
95919 2007-03-08  Bruno Haible  <bruno@clisp.org>
95921         * modules/vfprintf-posix-tests: New file.
95922         * tests/test-vfprintf-posix.sh: New file.
95923         * tests/test-vfprintf-posix.c: New file.
95924         * tests/test-fprintf-posix.h: New file.
95925         * tests/test-fprintf-posix.out: New file.
95927         * modules/vfprintf-posix: New file.
95928         * lib/vfprintf.c: New file.
95929         * m4/vfprintf-posix.m4: New file.
95930         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
95931         REPLACE_VFPRINTF.
95932         * lib/stdio_.h (vfprintf): New declaration.
95933         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
95934         REPLACE_VFPRINTF.
95936 2007-03-08  Bruno Haible  <bruno@clisp.org>
95938         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
95940 2007-03-08  Bruno Haible  <bruno@clisp.org>
95942         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
95943         instead of 'expr' invocations.
95944         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
95945         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
95946         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
95947         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
95948         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
95949         Suggested by Paul Eggert.
95951 2007-03-08  Bruno Haible  <bruno@clisp.org>
95953         * modules/fseterr-tests: New file.
95954         * tests/test-fseterr.c: New file.
95956         * modules/fseterr: New file.
95957         * lib/fseterr.h: New file.
95958         * lib/fseterr.c: New file.
95960 2007-03-08  Bruno Haible  <bruno@clisp.org>
95962         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
95963         * lib/getopt_.h: Likewise.
95964         * lib/mbswidth.h: Likewise.
95965         * lib/setenv.h: Likewise.
95966         * lib/vasnprintf.h: Likewise.
95967         * lib/vasprintf.h: Likewise.
95968         * lib/verror.h: Likewise.
95969         * lib/xsetenv.h: Likewise.
95970         * lib/xvasprintf.h: Likewise.
95972 2007-03-08  Jim Meyering  <jim@meyering.net>
95974         * users.txt: Add parted.
95976         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
95978 2007-03-07  Bruno Haible  <bruno@clisp.org>
95980         * m4/printf.m4: Make the shell script snippets copy&pastable.
95982 2007-03-02  Bruno Haible  <bruno@clisp.org>
95984         * lib/netinet_in_.h: New file.
95985         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
95986         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
95987         * modules/netinet_in (Files): Add lib/netinet_in_.h.
95988         (Depends-on): Add absolute-header.
95989         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
95990         into netinet/in.h.
95992 2007-03-03  Bruno Haible  <bruno@clisp.org>
95994         * lib/sys_select_.h: New file.
95995         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
95996         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
95997         * modules/sys_select (Files): Add lib/sys_select_.h.
95998         (Depends-on): Add absolute-header.
95999         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
96000         into sys/select.h.
96002 2007-03-02  Bruno Haible  <bruno@clisp.org>
96004         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
96005         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
96006         values.
96007         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
96008         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
96009         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
96010         * modules/sys_socket (Depends-on): Add absolute-header.
96011         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
96012         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
96013         (Include): Remove requirement of inclusion of <sys/types.h>.
96015 2007-03-02  Bruno Haible  <bruno@clisp.org>
96017         * lib/byteswap_.h (bswap_32): Fix formula.
96019 2007-03-06  Bruno Haible  <bruno@clisp.org>
96021         * modules/sprintf-posix-tests: New file.
96022         * tests/test-sprintf-posix.c: New file.
96024         * modules/sprintf-posix: New file.
96025         * lib/sprintf.c: New file.
96026         * m4/sprintf-posix.m4: New file.
96027         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
96028         REPLACE_SPRINTF.
96029         * lib/stdio_.h (sprintf): New declaration.
96030         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
96031         REPLACE_SPRINTF.
96033 2007-03-06  Bruno Haible  <bruno@clisp.org>
96035         * modules/vsprintf-posix-tests: New file.
96036         * tests/test-vsprintf-posix.c: New file.
96037         * tests/test-sprintf-posix.h: New file.
96039         * modules/vsprintf-posix: New file.
96040         * lib/vsprintf.c: New file.
96041         * m4/vsprintf-posix.m4: New file.
96042         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
96043         REPLACE_VSPRINTF.
96044         * lib/stdio_.h (vsprintf): New declaration.
96045         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
96046         REPLACE_VSPRINTF.
96048 2007-03-06  Bruno Haible  <bruno@clisp.org>
96050         * modules/vsnprintf (Depend-on): Remove minmax.
96052 2007-03-06  Bruno Haible  <bruno@clisp.org>
96054         * modules/snprintf-posix-tests: New file.
96055         * tests/test-snprintf-posix.c: New file.
96057         * modules/snprintf-posix: New file.
96058         * m4/snprintf-posix.m4: New file.
96059         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
96060         gl_FUNC_SNPRINTF.
96061         (gl_FUNC_SNPRINTF): Invoke it.
96062         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
96063         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
96064         is set.
96065         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
96067 2007-03-06  Bruno Haible  <bruno@clisp.org>
96069         * modules/vsnprintf-posix-tests: New file.
96070         * tests/test-vsnprintf-posix.c: New file.
96071         * tests/test-snprintf-posix.h: New file.
96073         * modules/vsnprintf-posix: New file.
96074         * m4/vsnprintf-posix.m4: New file.
96075         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
96076         gl_FUNC_VSNPRINTF.
96077         (gl_FUNC_VSNPRINTF): Invoke it.
96078         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
96079         * lib/stdio_.h (vsnprintf): Define as a replacement if
96080         REPLACE_VSNPRINTF is set.
96081         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
96083 2007-03-06  Bruno Haible  <bruno@clisp.org>
96085         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
96086         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
96088 2007-03-06  Bruno Haible  <bruno@clisp.org>
96090         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
96091         (asinl): Declare also if HAVE_DECL_ASINL is set.
96092         (atanl): Declare also if HAVE_DECL_ATANL is set.
96093         (ceill): Declare also if HAVE_DECL_CEILL is set.
96094         (cosl): Declare also if HAVE_DECL_COSL is set.
96095         (expl): Declare also if HAVE_DECL_EXPL is set.
96096         (floorl): Declare also if HAVE_DECL_FLOORL is set.
96097         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
96098         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
96099         (logl): Declare also if HAVE_DECL_LOGL is set.
96100         (sinl): Declare also if HAVE_DECL_SINL is set.
96101         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
96102         (tanl): Declare also if HAVE_DECL_TANL is set.
96103         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
96104         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
96105         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
96106         declaration of frexpl, ldexpl.
96107         * modules/printf-frexpl (Depends-on): Add math.
96108         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
96110 2007-03-05  Bruno Haible  <bruno@clisp.org>
96112         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
96113         frexpl and ldexpl are declared.
96114         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
96116 2007-03-05  Bruno Haible  <bruno@clisp.org>
96118         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
96119         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
96121 2007-03-05  Bruno Haible  <bruno@clisp.org>
96123         * lib/stdio_.h: Include <stddef.h>.
96125 2007-03-05  Bruno Haible  <bruno@clisp.org>
96127         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
96129 2007-03-05  Bruno Haible  <bruno@clisp.org>
96131         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
96132         NetBSD 4, from Ralf Wildenhues.
96134 2007-03-04  Bruno Haible  <bruno@clisp.org>
96136         * lib/vasprintf.h: Update #if logic for the case when the functions
96137         exist but are overridden.
96139 2007-03-04  Bruno Haible  <bruno@clisp.org>
96141         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
96142         implementations: glibc-2.4 and MacOS X 10.3.
96143         * tests/test-vasnprintf-posix.c (test_function): Test also the case
96144         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
96145         * tests/test-vasprintf-posix.c (test_function): Likewise.
96147 2007-03-04  Bruno Haible  <bruno@clisp.org>
96149         * modules/vasprintf-posix-tests: New file.
96150         * tests/test-vasprintf-posix.c: New file.
96152         * modules/vasprintf-posix: New file.
96153         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
96154         defined.
96155         * m4/vasprintf-posix.m4: New file.
96156         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
96157         gl_FUNC_VASPRINTF.
96158         (gl_FUNC_VASPRINTF): Invoke it.
96159         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
96160         here.
96161         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
96163 2007-03-04  Bruno Haible  <bruno@clisp.org>
96165         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
96166         REPLACE_GETTIMEOFDAY.
96167         * modules/sys_time (Makefile.am): Likewise.
96168         * m4/sys_time_h.m4: Likewise.
96169         * m4/gettimeofday.m4: Likewise.
96171 2007-03-04  Bruno Haible  <bruno@clisp.org>
96173         * modules/vasnprintf-posix-tests: New file.
96174         * tests/test-vasnprintf-posix.c: New file.
96176         * modules/vasnprintf-posix: New file.
96177         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
96178         printf-frexpl.h.
96179         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
96180         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
96181         REPLACE_VASNPRINTF is defined.
96182         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
96183         gl_FUNC_VASNPRINTF.
96184         (gl_FUNC_VASNPRINTF): Invoke it.
96185         * m4/vasnprintf-posix.m4: New file.
96186         * m4/printf.m4: New file.
96188 2007-03-04  Bruno Haible  <bruno@clisp.org>
96190         Compile progreloc.c only if --enable-relocatable is specified.
96191         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
96192         if --enable-relocatable was specified.
96193         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
96194         lib_SOURCES.
96196 2007-03-04  Jim Meyering  <jim@meyering.net>
96198         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
96199         Use it consistently, rather than enumerating errno constants.
96201 2007-03-04  Bruno Haible  <bruno@clisp.org>
96203         * modules/xvasprintf-tests: New file.
96204         * tests/test-xvasprintf.c: New file.
96206         * modules/vasprintf-tests: New file.
96207         * tests/test-vasprintf.c: New file.
96209         * modules/vasnprintf-tests: New file.
96210         * tests/test-vasnprintf.c: New file.
96212         * modules/vsnprintf-tests: New file.
96213         * tests/test-vsnprintf.c: New file.
96215         * modules/snprintf-tests: New file.
96216         * tests/test-snprintf.c: New file.
96218 2007-03-04  Bruno Haible  <bruno@clisp.org>
96220         Compile relocatable.c only if --enable-relocatable is specified.
96221         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
96222         gl_RELOCATABLE_LIBRARY.
96223         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
96224         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
96225         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
96226         gl_RELOCATABLE_LIBRARY.
96227         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
96228         (Makefile.am): Remove lib_SOURCES.
96229         * modules/relocatable-lib-lgpl (configure.ac): Invoke
96230         gl_RELOCATABLE_LIBRARY.
96231         (Makefile.am): Remove lib_SOURCES.
96232         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
96233         always.
96234         * modules/relocatable-prog-wrapper (configure.ac): Invoke
96235         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
96237 2007-03-04  Bruno Haible  <bruno@clisp.org>
96239         * modules/argmatch-tests: New file.
96240         * tests/test-argmatch.c: New file.
96242         * tests/test-allocsa.c (main): Halve the number of loop runs.
96244         * modules/alloca-opt-tests: New file.
96245         * tests/test-alloca-opt.c: New file.
96247 2007-03-04  Jim Meyering  <jim@meyering.net>
96249         Work around difference between Linux ACLs and Solaris 10 ZFS.
96250         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
96251         for EINVAL.
96253 2007-03-03  Bruno Haible  <bruno@clisp.org>
96255         * modules/relocatable-prog (Depends-on): Add back progreloc's
96256         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
96258 2007-03-03  Bruno Haible  <bruno@clisp.org>
96260         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
96261         * modules/relocatable-lib: New file.
96263 2007-03-03  Bruno Haible  <bruno@clisp.org>
96265         * modules/relocatable-prog: Renamed from modules/relocatable.
96266         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
96268 2007-03-03  Bruno Haible  <bruno@clisp.org>
96270         * modules/relocatable-script (Files): Add doc/relocatable.texi,
96271         m4/relocatable-lib.m4.
96272         (Depends-on): Remove 'relocatable'.
96273         (configure.ac): Add gl_RELOCATABLE_NOP.
96275 2007-03-03  Bruno Haible  <bruno@clisp.org>
96277         * modules/relocatable-prog-wrapper: New file.
96278         * modules/relocatable (Depends-on): Add it. Remove all other
96279         dependencies except progname.
96280         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
96282         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
96283         (gl_FUNC_STRERROR): Nop.
96284         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
96286         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
96287         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
96289         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
96290         (gl_FUNC_READLINK): Update.
96292         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
96294 2007-03-03  Bruno Haible  <bruno@clisp.org>
96296         * lib/xreadlink.c: Include <unistd.h> unconditionally.
96297         * modules/xreadlink (Depends-on): Add unistd.
96298         * modules/xreadlink-with-size (Depends-on): Likewise.
96300 2007-03-03  Bruno Haible  <bruno@clisp.org>
96302         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
96303         extracted from gt_FUNC_SETENV.
96304         (gt_FUNC_SETENV): Remove macro.
96305         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
96306         remove gt_FUNC_SETENV.
96308 2007-03-03  Bruno Haible  <bruno@clisp.org>
96310         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
96311         ENABLE_RELOCATABLE here.
96312         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
96314 2007-03-03  Bruno Haible  <bruno@clisp.org>
96316         * modules/rbtreehash-list-tests (Depends-on): Add progname.
96317         * tests/test-rbtreehash_list.c: Include progname.h.
96318         (main): Call set_program_name.
96320         * modules/rbtree-oset-tests (Depends-on): Add progname.
96321         * tests/test-rbtree_oset.c: Include progname.h.
96322         (main): Call set_program_name.
96324         * modules/rbtree-list-tests (Depends-on): Add progname.
96325         * tests/test-rbtree_list.c: Include progname.h.
96326         (main): Call set_program_name.
96328         * modules/linked-list-tests (Depends-on): Add progname.
96329         * tests/test-linked_list.c: Include progname.h.
96330         (main): Call set_program_name.
96332 2007-03-03  Bruno Haible  <bruno@clisp.org>
96334         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
96335         All uses of __restrict changed to _Restrict_.
96336         * lib/glob_.h (__restrict): Remove macro.
96338 2007-03-02  Bruno Haible  <bruno@clisp.org>
96340         * modules/gettext (configure.ac): Require gettext infrastructure
96341         from version 0.16.1.
96343 2007-03-02  Bruno Haible  <bruno@clisp.org>
96345         * modules/linkedhash-list-tests (Depends-on): Add progname.
96346         * tests/test-linkedhash_list.c: Include progname.h.
96347         (main): Call set_program_name.
96349         * modules/carray-list-tests (Depends-on): Add progname.
96350         * tests/test-carray_list.c: Include progname.h.
96351         (main): Call set_program_name.
96353         * modules/avltreehash-list-tests (Depends-on): Add progname.
96354         * tests/test-avltreehash_list.c: Include progname.h.
96355         (main): Call set_program_name.
96357         * modules/avltree-oset-tests (Depends-on): Add progname.
96358         * tests/test-avltree_oset.c: Include progname.h.
96359         (main): Call set_program_name.
96361         * modules/avltree-list-tests (Depends-on): Add progname.
96362         * tests/test-avltree_list.c: Include progname.h.
96363         (main): Call set_program_name.
96365         * modules/array-oset-tests (Depends-on): Add progname.
96366         * tests/test-array_oset.c: Include progname.h.
96367         (main): Call set_program_name.
96369         * modules/array-list-tests (Depends-on): Add progname.
96370         * tests/test-array_list.c: Include progname.h.
96371         (main): Call set_program_name.
96373         * modules/argp-tests (Depends-on): Add progname.
96374         * tests/test-argp.c: Include argp.h first. Include progname.h.
96375         (main): Call set_program_name.
96377 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
96379         * doc/gnulib-tool.texi (Initial import): Reword description of
96380         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
96381         limited effect even if defined after the first system include.
96383 2007-03-01  Bruno Haible  <bruno@clisp.org>
96385         * build-aux/config.libpath: Update to libtool-1.5.22.
96386         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
96388 2007-03-01  Bruno Haible  <bruno@clisp.org>
96390         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
96391         foo_CFLAGS.
96392         Reported by Ralf Wildenhues.
96394 2007-03-01  Bruno Haible  <bruno@clisp.org>
96396         * build-aux/install-reloc: Remove object files left over by some
96397         compilers.
96398         Reported by Ralf Wildenhues.
96400 2007-03-01  Bruno Haible  <bruno@clisp.org>
96402         * build-aux/install-reloc: Break long lines.
96404 2007-03-01  Bruno Haible  <bruno@clisp.org>
96406         * doc/relocatable.texi: Document that it may not work on OpenBSD.
96407         Reported by Ralf Wildenhues.
96409 2007-03-01  Bruno Haible  <bruno@clisp.org>
96411         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
96412         include ordering constraints.
96414 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
96416         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
96417         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00136.html>.
96418         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
96419         as another example.
96420         * lib/time_.h: Fix misspelling.
96421         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
96422         Require gl_HEADER_TIME_H_DEFAULTS.
96423         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
96424         * m4/time_r.m4 (gl_TIME_R): Likewise.
96425         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
96427 2007-03-01  Bruno Haible  <bruno@clisp.org>
96429         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
96430         * m4/utimens.m4 (gl_UTIMENS): Likewise.
96432 2007-03-01  Jim Meyering  <jim@meyering.net>
96434         * modules/xreadlink (Maintainer): Add my name.
96435         * modules/xreadlink-with-size (Depends-on): Alphabetize.
96437 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
96438             Bruno Haible  <bruno@clisp.org>
96440         * build-aux/install-reloc: Compile also c-ctype.c.
96441         * build-aux/relocatable.sh.in: New file.
96442         * doc/relocatable.texi: New file.
96443         * doc/relocatable-maint.texi: New file.
96444         * doc/gnulib.texi: Include relocatable-maint.texi.
96445         * lib/progreloc.c: Include unistd.h unconditionally.
96446         * lib/relocwrapper.c: Include unistd.h unconditionally.
96447         Include c-ctype.h.
96448         (add_dotbin): Use c_tolower.
96449         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
96450         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
96451         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
96452         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
96453         to m4/relocatable-lib.m4.
96454         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
96455         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
96456         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
96457         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
96458         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
96459         * modules/relocatable: New file.
96460         * modules/relocatable-lib: New file.
96461         * modules/relocatable-script: New file.
96463 2007-02-28  Bruno Haible  <bruno@clisp.org>
96465         Import --enable-relocatable infrastructure.
96466         * build-aux/config.libpath: New file, from GNU gettext.
96467         * build-aux/install-reloc: New file, from GNU gettext.
96468         * build-aux/reloc-ldflags: New file, from GNU gettext.
96469         * lib/relocatable.h: New file, from GNU gettext.
96470         * lib/relocatable.c: New file, from GNU gettext.
96471         * lib/relocwrapper.c: New file, from GNU gettext.
96472         * m4/relocatable.m4: New file, from GNU gettext.
96474 2007-02-28  Bruno Haible  <bruno@clisp.org>
96476         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
96478         * modules/xreadlink: New file, from GNU gettext with modifications.
96479         * lib/xreadlink.c: New file, from GNU gettext.
96480         * lib/xreadlink.h: Add comments.
96481         (xreadlink): New declaration.
96483         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
96484         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
96485         lib/xreadlink-with-size.c.
96486         (configure.ac): Remove gl_XREADLINK invocation.
96487         (Makefile.am): Augment lib_SOURCES.
96488         * m4/xreadlink.m4: Remove file.
96489         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
96490         (xreadlink_with_size): Renamed from xreadink.
96491         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
96492         * modules/canonicalize (Depends-on): Replace xreadlink with
96493         xreadlink-with-size.
96494         * lib/canonicalize.c (canonicalize_filename_mode): Update.
96496 2007-02-25  Jim Meyering  <jim@meyering.net>
96498         * build-aux/announce-gen: When complaining about excess arguments,
96499         list them.
96501 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
96503         * README: Document signed integer overflow situation more
96504         accurately.
96506 2007-02-25  Bruno Haible  <bruno@clisp.org>
96508         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
96509         'a' or 'A' conversion.
96511 2007-02-25  Bruno Haible  <bruno@clisp.org>
96513         * modules/filename: Renamed from modules/pathname.
96514         (Files): Replace lib/pathname.h with lib/filename.h. Replace
96515         lib/concatpath.c with lib/concat-filename.c.
96516         (Makefile.am): Update.
96517         (Include): Replace pathname.h with filename.h.
96518         * lib/filename.h: Renamed from lib/pathname.h.
96519         (concatenated_filename): Renamed from concatenated_pathname.
96520         * lib/concat-filename.c: Renamed from lib/concatpath.c.
96521         (concatenated_filename): Renamed from concatenated_pathname.
96522         * lib/findprog.c: Include filename.h instead of pathname.h.
96523         (find_in_path): Update.
96524         * lib/javacomp.c: Include filename.h instead of pathname.h.
96525         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
96526         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
96527         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
96528         is_oldgcj_14_13_usable, is_javac_usable): Update.
96529         * lib/javaexec.c: Include filename.h instead of pathname.h.
96530         (execute_java_class): Update.
96531         * modules/findprog: Update.
96532         * modules/javacomp: Update.
96533         * modules/javaexec: Update.
96534         * MODULES.html.sh (File system functions): Add 'filename', remove
96535         'pathname'.
96537 2007-02-25  Bruno Haible  <bruno@clisp.org>
96539         * modules/printf-frexpl-tests: New file.
96540         * tests/test-printf-frexpl.c: New file.
96542         * modules/printf-frexpl: New file.
96543         * lib/printf-frexpl.h: New file.
96544         * lib/printf-frexpl.c: New file.
96545         * m4/printf-frexpl.m4: New file.
96547 2007-02-25  Bruno Haible  <bruno@clisp.org>
96549         * modules/printf-frexp-tests: New file.
96550         * tests/test-printf-frexp.c: New file.
96552         * modules/printf-frexp: New file.
96553         * lib/printf-frexp.h: New file.
96554         * lib/printf-frexp.c: New file.
96555         * m4/printf-frexp.m4: New file.
96557 2007-02-25  Bruno Haible  <bruno@clisp.org>
96559         Assume automake >= 1.10 for the tests.
96560         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
96561         * modules/arctwo-tests: Likewise.
96562         * modules/argp-tests: Likewise.
96563         * modules/avltree-list-tests: Likewise.
96564         * modules/avltree-oset-tests: Likewise.
96565         * modules/avltreehash-list-tests: Likewise.
96566         * modules/carray-list-tests: Likewise.
96567         * modules/crc-tests: Likewise.
96568         * modules/des-tests: Likewise.
96569         * modules/gc-arcfour-tests: Likewise.
96570         * modules/gc-arctwo-tests: Likewise.
96571         * modules/gc-des-tests: Likewise.
96572         * modules/gc-hmac-md5-tests: Likewise.
96573         * modules/gc-hmac-sha1-tests: Likewise.
96574         * modules/gc-md2-tests: Likewise.
96575         * modules/gc-md4-tests: Likewise.
96576         * modules/gc-md5-tests: Likewise.
96577         * modules/gc-pbkdf2-sha1-tests: Likewise.
96578         * modules/gc-rijndael-tests: Likewise.
96579         * modules/gc-sha1-tests: Likewise.
96580         * modules/gc-tests: Likewise.
96581         * modules/getaddrinfo-tests: Likewise.
96582         * modules/hmac-md5-tests: Likewise.
96583         * modules/hmac-sha1-tests: Likewise.
96584         * modules/linked-list-tests: Likewise.
96585         * modules/linkedhash-list-tests: Likewise.
96586         * modules/lock-tests: Likewise.
96587         * modules/md2-tests: Likewise.
96588         * modules/md4-tests: Likewise.
96589         * modules/md5-tests: Likewise.
96590         * modules/rbtree-list-tests: Likewise.
96591         * modules/rbtree-oset-tests: Likewise.
96592         * modules/rbtreehash-list-tests: Likewise.
96593         * modules/read-file-tests: Likewise.
96594         * modules/rijndael-tests: Likewise.
96595         * modules/stdint-tests: Likewise.
96596         * modules/tls-tests: Likewise.
96598 2007-02-24  Bruno Haible  <bruno@clisp.org>
96600         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
96601         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
96602         function; instead check whether isnan with a double argument links.
96603         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
96604         function; instead check whether isnan with a 'long double' argument
96605         links.
96606         Reported by Eric Blake <ebb9@byu.net>.
96608 2007-02-24  Bruno Haible  <bruno@clisp.org>
96610         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
96611         defined.
96612         * lib/isnanl.c: Remove all code. Just include isnan.c.
96613         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
96615 2007-02-25  Jim Meyering  <jim@meyering.net>
96617         Avoid conflicting types for 'unsetenv' on FreeBSD.
96618         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
96619         conflicting with FreeBSD's (5.0 and 6.1) function declaration
96620         in stdlib.h.
96622 2007-02-24  Bruno Haible  <bruno@clisp.org>
96624         * modules/isnanl-nolibm-tests: New file.
96625         * tests/test-isnanl.c: New file.
96627         * modules/isnanl-nolibm: New file.
96628         * lib/isnanl.h: New file.
96629         * lib/isnanl.c: New file.
96630         * m4/isnanl.m4: New file.
96632 2007-02-24  Bruno Haible  <bruno@clisp.org>
96634         * modules/isnan-nolibm-tests: New file.
96635         * tests/test-isnan.c: New file.
96637         * modules/isnan-nolibm: New file.
96638         * lib/isnan.h: New file.
96639         * lib/isnan.c: New file.
96640         * m4/isnan.m4: New file.
96642 2007-02-24  Bruno Haible  <bruno@clisp.org>
96644         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
96645         assume that an exponent fits in 20 bits.
96647 2007-02-24  Jim Meyering  <jim@meyering.net>
96649         * m4/regex.m4: Update the description of the configure-time option,
96650         --without-included-regex, to state accurately what the defaults are,
96651         and perhaps to give people an idea why using this option is risky.
96653 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
96655         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
96656         loops on small arguments.  This attempts to avoid the problem
96657         Bruno Haible reported for AIX 4.3.2 in
96658         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00309.html>.
96660 2007-02-23  Bruno Haible  <bruno@clisp.org>
96662         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
96663         Needed for help2man.
96665 2007-02-23  Karl Berry  <karl@gnu.org>
96667         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
96668         exists, foo.h should be cvs-ignored, not committed.
96670 2007-02-23  Eric Blake  <ebb9@byu.net>
96672         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
96673         * lib/stat-time.h (includes): Likewise.
96674         * lib/utimecmp.c (includes): Likewise.
96675         * lib/utimens.h (includes): Likewise.
96676         * lib/getdate.y (includes): Also include "timespec.h" for use
96677         internal to the module.
96678         * modules/utimens (Depends-on): Revert yesterday's patch.
96679         * modules/nanosleep (Depends-on): Add missing dependency.
96681 2007-02-22  Bruno Haible  <bruno@clisp.org>
96683         * lib/glob.c: Don't include getlogin_r.h.
96685 2007-02-22  Jim Meyering  <jim@meyering.net>
96687         * modules/utimens (Depends-on): Add timespec, required for
96688         utimens.h's inclusion of timespec.h.
96690 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
96692         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
96693         long unreadable paths in GNU/Linux.  Problem reported by Andreas
96694         Schwab in
96695         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00261.html>.
96696         I'll try to think of a better way to fix the Solaris problem.
96698         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
96699         like glibc; on Solaris 10, it fails with errno == EINVAL.
96700         POSIX says the behavior is unspecified if the first argument is NULL,
96701         so play it safe and never pass NULL to the system getcwd.
96703 2007-02-21  Jim Meyering  <jim@meyering.net>
96705         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
96706         of gettimeofday.  It would conflict with the one now always
96707         provided via sys_time_.h.  Reported by Matthew Woehlke, as
96708         an IRIX 6.5 build failure.
96710 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
96712         Minor fixups to port to Solaris 10 with Sun C 5.8.
96713         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
96714         * modules/getcwd (Depends-on): Add dirfd.
96715         * lib/putenv.c (putenv): #undef it.
96716         (rpl_putenv): New decl.
96717         (malloc, free): Include <stdlib.h> rather than prototyping separately.
96719 2007-02-20  Bruno Haible  <bruno@clisp.org>
96721         * modules/stdio-tests: New file.
96722         * tests/test-stdio.c: New file.
96724         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
96725         (Depends-on): Add stdio.
96726         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
96727         (Include): Use <stdio.h> instead of vsnprintf.h.
96728         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
96729         HAVE_DECL_VSNPRINTF.
96730         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
96732         * modules/snprintf (Files): Remove lib/snprintf.h.
96733         (Depends-on): Add stdio.
96734         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
96735         (Include): Use <stdio.h> instead of snprintf.h.
96736         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
96737         HAVE_DECL_SNPRINTF.
96738         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
96739         * lib/getaddrinfo.c: Likewise.
96741         * modules/stdio: New file.
96742         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
96743         * lib/snprintf.h: Remove file.
96744         * lib/vsnprintf.h: Remove file.
96745         * lib/.cppi-disable: Remove snprintf.h.
96746         * m4/stdio_h.m4: New file.
96747         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
96749 2007-02-20  Jim Meyering  <jim@meyering.net>
96751         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
96752         used by e.g., mingw.  From Bruno Haible.
96754 2007-02-19  Bruno Haible  <bruno@clisp.org>
96756         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
96757         warnings.
96758         Reported by Ben Pfaff <blp@cs.stanford.edu>.
96760 2007-02-19  Bruno Haible  <bruno@clisp.org>
96762         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
96763         from mingw users.
96765 2007-02-19  Bruno Haible  <bruno@clisp.org>
96767         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
96768         warnings.
96769         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
96771 2007-02-19  Jim Meyering  <jim@meyering.net>
96773         Don't use FD after a successful "fdopendir (fd)".
96774         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
96775         Reset it by calling dirfd on the just-obtained DIR*.
96777         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
96778         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
96780 2007-02-18  Bruno Haible  <bruno@clisp.org>
96782         * lib/readlink.c: Include <unistd.h>.
96783         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
96784         HAVE_READLINK.
96785         * modules/readlink (Depends-on): Add unistd.
96786         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
96787         (Include): Add <unistd.h>.
96789         * lib/getlogin_r.h: Remove file.
96790         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
96791         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
96792         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
96793         HAVE_DECL_GETLOGIN_R.
96794         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
96795         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
96796         (Include): Use <unistd.h> instead of getlogin_r.h.
96798         * lib/getcwd.h: Remove file.
96799         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
96800         * lib/xgetcwd.c: Likewise.
96801         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
96802         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
96803         * modules/getcwd (Files): Remove lib/getcwd.h.
96804         (Depends-on): Add unistd.
96805         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
96806         (Include): Use <unistd.h> instad of getcwd.h.
96808         * lib/ftruncate.c: Include <unistd.h> first.
96809         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
96810         Set HAVE_FTRUNCATE.
96811         * modules/ftruncate (Depends-on): Add unistd.
96812         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
96814         * lib/fchdir.c: Include <unistd.h> first.
96815         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
96816         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
96817         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
96818         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
96819         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
96821         * lib/dup2.c: Include <unistd.h> first.
96822         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
96823         HAVE_DUP2.
96824         * modules/dup2 (Depends-on): Add unistd.
96825         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
96827         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
96828         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
96829         REPLACE_CHOWN. Don't define chown as a macro here.
96830         * modules/chown (Depends-on): Add unistd.
96831         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
96833         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
96834         Add definition for GL_LINK_WARNING.
96835         (chown, dup2): New declarations.
96836         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
96837         link warning.
96838         (ftruncate): New declaration.
96839         (getcwd): New declaration, taken from old getcwd.h.
96840         (getlogin_r): New declaration, taken from old getlogin_r.h.
96841         (readlink): New declaration.
96842         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
96843         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
96844         (gl_PREREQ_UNISTD): Remove macro.
96845         (gl_UNISTD_MODULE_INDICATOR): New macro.
96846         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
96847         many new variables. Don't set UNISTD_H.
96848         * modules/unistd (Description): Change.
96849         (Depends-on): Add link-warning.
96850         (configure.ac): Update.
96851         (Makefile.am): Create unistd.h always. Substitute many new variables
96852         into it.
96854 2007-02-18  Bruno Haible  <bruno@clisp.org>
96856         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
96857         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
96858         HAVE_GETSUBOPT.
96859         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
96860         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
96861         * lib/getsubopt.h: Remove file.
96862         * modules/getsubopt (Files): Remove lib/getsubopt.h.
96863         (Depends-on): Add stdlib.
96864         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
96865         (Includes): Use <stdlib.h> instead of getsubopt.h.
96866         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
96867         Set HAVE_GETSUBOPT.
96868         * lib/getsubopt.c: Don't include getsubopt.h.
96870 2007-02-18  Bruno Haible  <bruno@clisp.org>
96872         * modules/fchdir (Depends-on): Add dup2.
96874 2007-02-18  Bruno Haible  <bruno@clisp.org>
96876         * lib/stdlib_.h: Handle glibc's special invocation convention
96877         specially.
96879 2007-02-18  Bruno Haible  <bruno@clisp.org>
96881         * modules/stdlib-tests: New file.
96882         * tests/test-stdlib.c: New file.
96884         * modules/mkstemp (Files): Remove lib/mkstemp.h.
96885         (Depends-on): Add stdlib.
96886         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
96887         (Includes): Use <stdlib.h> instead of mkstemp.h.
96888         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
96889         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
96890         * lib/mkstemp.c: Don't include mkstemp.h.
96891         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
96892         * lib/stdlib--.h: Don't include mkstemp.h.
96894         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
96895         (Depends-on): Add stdlib.
96896         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
96897         (Includes): Use <stdlib.h> instead of mkdtemp.h.
96898         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
96899         HAVE_MKDTEMP.
96900         * lib/mkdtemp.c: Don't include mkdtemp.h.
96901         * lib/clean-temp.c: Don't include mkdtemp.h.
96903         * modules/exit (Files): Remove lib/exit.h.
96904         (Depends-on): Add stdlib.
96905         (Makefile.am): Remove lib_SOURCES.
96906         (Include): Use <stdlib.h> instead of exit.h.
96907         * lib/argmatch.c: Don't include exit.h.
96908         * lib/execute.c: Likewise.
96909         * lib/pagealign_alloc.c: Likewise.
96910         * lib/pipe.c: Likewise.
96911         * lib/wait-process.c: Likewise.
96912         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
96913         * lib/exitfail.c: Likewise.
96914         * lib/savewd.c: Likewise.
96915         * lib/xsetenv.c: Likewise.
96917         * modules/stdlib: New file.
96918         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
96919         and extra comments about mkstemp().
96920         * lib/exit.h: Remove file.
96921         * lib/mkdtemp.h: Remove file.
96922         * lib/mkstemp.h: Remove file.
96923         * m4/stdlib_h.m4: New file.
96924         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
96926 2007-02-18  Bruno Haible  <bruno@clisp.org>
96928         * modules/math-tests: New file.
96929         * tests/test-math.c: New file.
96931         * modules/math: New file.
96932         * modules/mathl (Files): Remove lib/mathl.h.
96933         (Depends-on): Add math.
96934         (Makefile.am): Don't mention mathl.h.
96935         (Include): Use <math.h> instead of mathl.h.
96936         * lib/math_.h: New file.
96937         * lib/mathl.h: Remove file.
96938         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
96939         mathl.h.
96940         * lib/asinl.c: Likewise.
96941         * lib/atanl.c: Likewise.
96942         * lib/ceill.c: Likewise.
96943         * lib/cosl.c: Likewise.
96944         * lib/expl.c: Likewise.
96945         * lib/floorl.c: Likewise.
96946         * lib/frexpl.c: Likewise.
96947         * lib/ldexpl.c: Likewise.
96948         * lib/logl.c: Likewise.
96949         * lib/sincosl.c: Likewise.
96950         * lib/sinl.c: Likewise.
96951         * lib/sqrtl.c: Likewise.
96952         * lib/tanl.c: Likewise.
96953         * lib/trigl.c: Likewise.
96954         * m4/math_h.m4: New file.
96955         * MODULES.html.sh (Mathematics): Add math.
96957 2007-02-17  Bruno Haible  <bruno@clisp.org>
96959         * modules/wctype-tests: New file.
96960         * tests/test-wctype.c: New file.
96962         * modules/wchar-tests: New file.
96963         * tests/test-wchar.c: New file.
96965         * modules/unistd-tests: New file.
96966         * tests/test-unistd.c: New file.
96968         * modules/time-tests: New file.
96969         * tests/test-time.c: New file.
96971         * modules/sysexits-tests: New file.
96972         * tests/test-sysexits.c: New file.
96974         * modules/sys_time-tests: New file.
96975         * tests/test-sys_time.c: New file.
96977         * modules/sys_stat-tests: New file.
96978         * tests/test-sys_stat.c: New file.
96980         * modules/sys_socket-tests: New file.
96981         * tests/test-sys_socket.c: New file.
96983         * modules/sys_select-tests: New file.
96984         * tests/test-sys_select.c: New file.
96986         * modules/string-tests: New file.
96987         * tests/test-string.c: New file.
96989         * modules/stdbool-tests: New file.
96990         * tests/test-stdbool.c: New file.
96992         * modules/netinet_in-tests: New file.
96993         * tests/test-netinet_in.c: New file.
96995         * modules/inttypes-tests: New file.
96996         * tests/test-inttypes.c: New file.
96998         * modules/fcntl-tests: New file.
96999         * tests/test-fcntl.c: New file.
97001         * modules/byteswap-tests: New file.
97002         * tests/test-byteswap.c: New file.
97004         * modules/arpa_inet-tests: New file.
97005         * tests/test-arpa_inet.c: New file.
97007 2007-02-17  Bruno Haible  <bruno@clisp.org>
97009         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
97010         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
97011         if the corresponding module is not enabled. Emit link warnings if
97012         the function is used nevertheless.
97013         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
97014         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
97015         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
97016         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
97017         * modules/inttypes (Depends-on): Add link-warning.
97018         (Makefile.am): Copy the contents of build-aux/link-warning.h into
97019         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
97020         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
97021         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
97022         * modules/imaxdiv (configure.ac): Likewise.
97023         * modules/strtoimax (configure.ac): Likewise.
97024         * modules/strtoumax (configure.ac): Likewise.
97026 2007-02-17  Bruno Haible  <bruno@clisp.org>
97028         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
97029         gl_STRING_MODULE_INDICATOR_DEFAULTS.
97030         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
97031         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
97033 2007-02-17  Bruno Haible  <bruno@clisp.org>
97035         * modules/link-warning: New file.
97036         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
97037         * lib/string_.h (GL_LINK_WARNING): Remove definition.
97038         * modules/string (Depends-on): Add link-warning.
97039         (Makefile.am): Copy the contents of build-aux/link-warning.h into
97040         string.h.
97041         * MODULES.html.sh (Support for building libraries and executables): Add
97042         link-warning.
97044 2007-02-17  Bruno Haible  <bruno@clisp.org>
97046         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
97047         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
97048         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
97049         long lines.
97051 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
97052             Bruno Haible  <bruno@clisp.org>
97054         * modules/tmpfile: New file.
97055         * lib/tmpfile.c: New file.
97056         * m4/tmpfile.m4: New file.
97057         * MODULES.html.sh (func_all_modules): New section "Input/output".
97059 2007-02-15  Bruno Haible  <bruno@clisp.org>
97061         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
97062         (supports_delete_on_close): New function.
97063         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
97065 2007-02-14  Bruno Haible  <bruno@clisp.org>
97067         * modules/mbspcasecmp-tests: New file.
97068         * tests/test-mbspcasecmp.sh: New file.
97069         * tests/test-mbspcasecmp.c: New file.
97071         New module mbspcasecmp.
97072         * modules/mbspcasecmp: New file.
97073         * lib/mbspcasecmp.c: New file.
97074         * lib/string_.h (strncasecmp): Change warning message.
97075         (mbspcasecmp): New declaration.
97076         * m4/mbspcasecmp.m4: New file.
97077         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
97078         GNULIB_MBSPCASECMP.
97079         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
97080         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
97082 2007-02-14  Bruno Haible  <bruno@clisp.org>
97084         * modules/mbsncasecmp-tests: New file.
97085         * tests/test-mbsncasecmp.sh: New file.
97086         * tests/test-mbsncasecmp.c: New file.
97088         New module mbsncasecmp.
97089         * modules/mbsncasecmp: New file.
97090         * lib/mbsncasecmp.c: New file.
97091         * lib/string_.h (mbsncasecmp): New declaration.
97092         * m4/mbsncasecmp.m4: New file.
97093         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
97094         GNULIB_MBSNCASECMP.
97095         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
97096         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
97098 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
97100         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
97101         Verify that it doesn't overlap with our flags.
97102         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
97103         do not have the desired effect in multibyte locales; instead, use
97104         mbscasecmp.
97105         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
97106         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
97107         we don't require GNU fnmatch ourselves (if our users require it, they
97108         should do so explicitly).
97110         Fix regex code so it doesn't rely on strcasecmp.
97111         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
97112         Otherwise, include gnulib's langinfo.h.
97113         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
97114         undesirable behavior in non-C locales.  Instead, rely on localecharset.
97115         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
97116         * modules/regex (FILES): Remove m4/codeset.m4.
97117         (Depends-on): Add localcharset.  Remove strcase.
97119 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97121         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
97122         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
97124 2007-02-13  Bruno Haible  <bruno@clisp.org>
97126         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
97127         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
97129 2007-02-12  Bruno Haible  <bruno@clisp.org>
97131         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
97132         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
97133         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
97134         time warning rather than a link error.
97136 2007-02-12  Bruno Haible  <bruno@clisp.org>
97138         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
97139         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
97140         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
97142 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
97144         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
97145         args, not 2.
97147 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
97149         New module 'time', so that apps can include <time.h> as per
97150         POSIX and GNU instead of separate include files like time_r.h
97151         and timegm.h.  This implementation tries out a simpler approach
97152         for replacing decls in standard include files (as compared to
97153         the string module), somewhat as an experiment.
97155         * config/srclist.txt: Comment out mktime.c for now.
97156         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
97157         since it doesn't apply any more.  Use generic wording instead.
97158         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
97159         'time'.
97160         * lib/time_.h, m4/time_h.m4, modules/time: New files.
97161         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
97162         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
97163         Don't include <sys/types.h>; no longer needed since we assume C89.
97164         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
97165         * lib/strftime.c: Likewise.
97166         * lib/time_r.c: Likewise.
97167         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
97168         * lib/nanosleep.c: Include <time.h> first, to check interface.
97169         * lib/strptime.c: Likewise.
97170         * lib/time_r.c: Likewise.
97171         * lib/timegm.c: Likewise.
97172         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
97173         needed.
97174         * lib/timegm.c: Don't include timegm.h; no longer needed.
97175         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
97176         time.h now handles any problems in that area.
97177         (struct timespec, nanosleep): Remove; time.h now arranges for these.
97178         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
97179         that time.h defines struct timespec.
97180         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
97181         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
97182         handles that.
97183         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
97184         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
97185         needed.  Set REPLACE_LOCALTIME.
97186         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
97187         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
97188         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
97189         nanosleep; time_h.m4 now does that.  Don't require
97190         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
97191         module handles this now.
97192         * modules/getdate (Depends-on): Remove timespec.  Add time.
97193         * modules/nanosleep (Depends-on): Likewise.
97194         * modules/stat-time (Depends-on): Likewise.
97195         * modules/nanosleep (Include): Include time.h, not timespec.h.
97196         * modules/strptime (Files): Remove lib/strptime.h.
97197         (Depends-on): Add extensions, time.
97198         (Include): Include time.h, not strptime.h.
97199         * modules/time_r (Files): Remove lib/time_r.h.
97200         (Depends-on): Add time.
97201         (Include): Include time.h, not time_r.h.
97202         * modules/timegm: Likewise.
97203         * modules/timespec (Description): Now does timespec-related decls
97204         of our own, instead of struct timespec itself.
97205         (Depends-on): Add time; remove extensions.
97206         (Maintainer): Add self.
97207         * modules/utimecmp (Depends-on): Add time; remove timespec.
97208         * modules/utimens (Depends-on): Likewise.
97209         * modules/xnanosleep (Depends-on): Likewise.
97211 2007-02-11  Bruno Haible  <bruno@clisp.org>
97213         * lib/c-strstr.c: Include allocsa.h.
97214         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
97215         * lib/c-strcasestr.c: Include allocsa.h.
97216         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
97217         * lib/strcasestr.c: Include allocsa.h.
97218         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
97219         * lib/mbsstr.c: Include allocsa.h.
97220         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
97221         allocsa/freesa instead of malloc/free.
97222         * lib/mbscasestr.c: Include allocsa.h.
97223         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
97224         allocsa/freesa instead of malloc/free.
97225         * modules/c-strstr (Depends-on): Add allocsa.
97226         * modules/c-strcasestr (Depends-on): Likewise.
97227         * modules/strcasestr (Depends-on): Likewise.
97228         * modules/mbsstr (Depends-on): Likewise.
97229         * modules/mbscasestr (Depends-on): Likewise.
97231 2007-02-11  Bruno Haible  <bruno@clisp.org>
97233         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
97235         * modules/mbsspn-tests: New file.
97236         * tests/test-mbsspn.sh: New file.
97237         * tests/test-mbsspn.c: New file.
97239 2007-02-11  Bruno Haible  <bruno@clisp.org>
97241         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
97243         * modules/mbspbrk-tests: New file.
97244         * tests/test-mbspbrk.sh: New file.
97245         * tests/test-mbspbrk.c: New file.
97247 2007-02-11  Bruno Haible  <bruno@clisp.org>
97249         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
97250         unneeded cast.
97252         * modules/mbscspn-tests: New file.
97253         * tests/test-mbscspn.sh: New file.
97254         * tests/test-mbscspn.c: New file.
97256 2007-02-11  Bruno Haible  <bruno@clisp.org>
97258         * modules/mbscasecmp-tests: New file.
97259         * tests/test-mbscasecmp.sh: New file.
97260         * tests/test-mbscasecmp.c: New file.
97262 2007-02-11  Bruno Haible  <bruno@clisp.org>
97264         Ensure O(n) worst-case complexity of mbscasestr.
97265         * lib/mbscasestr.c: Include stdbool.h.
97266         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
97267         functions.
97268         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
97269         the bookkeeping indicates that it's worth it.
97270         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
97272         * modules/mbscasestr-tests: New file.
97273         * tests/test-mbscasestr1.c: New file.
97274         * tests/test-mbscasestr2.sh: New file.
97275         * tests/test-mbscasestr2.c: New file.
97276         * tests/test-mbscasestr3.sh: New file.
97277         * tests/test-mbscasestr3.c: New file.
97278         * tests/test-mbscasestr4.sh: New file.
97279         * tests/test-mbscasestr4.c: New file.
97280         * m4/locale-tr.m4: New file.
97282 2007-02-11  Bruno Haible  <bruno@clisp.org>
97284         Ensure O(n) worst-case complexity of mbsstr.
97285         * lib/mbsstr.c: Include stdbool.h.
97286         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
97287         functions.
97288         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
97289         bookkeeping indicates that it's worth it.
97290         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
97292         * modules/mbsstr-tests: New file.
97293         * tests/test-mbsstr1.c: New file.
97294         * tests/test-mbsstr2.sh: New file.
97295         * tests/test-mbsstr2.c: New file.
97296         * tests/test-mbsstr3.sh: New file.
97297         * tests/test-mbsstr3.c: New file.
97298         * m4/locale-fr.m4: New file.
97300 2007-02-11  Bruno Haible  <bruno@clisp.org>
97302         * lib/mbsrchr.c (mbsrchr): Fix bug.
97304         * modules/mbsrchr-tests: New file.
97305         * tests/test-mbsrchr.sh: New file.
97306         * tests/test-mbsrchr.c: New file.
97308 2007-02-11  Bruno Haible  <bruno@clisp.org>
97310         * lib/mbschr.c (mbschr): Fix bug.
97312         * modules/mbschr-tests: New file.
97313         * tests/test-mbschr.sh: New file.
97314         * tests/test-mbschr.c: New file.
97315         * m4/locale-zh.m4: New file.
97317 2007-02-11  Bruno Haible  <bruno@clisp.org>
97319         Support for copying multibyte string iterators.
97320         * lib/mbiter.h: Include <string.h>.
97321         (mbiter_multi_copy): New function.
97322         (mbi_copy): New macro.
97323         * lib/mbuiter.h: Include <string.h>.
97324         (mbuiter_multi_copy): New function.
97325         (mbui_copy): New macro.
97327 2007-02-11  Bruno Haible  <bruno@clisp.org>
97329         New module mbslen.
97330         * modules/mbslen: New file.
97331         * lib/mbslen.c: New file.
97332         * lib/string_.h (mbslen): New declaration.
97333         * m4/mbslen.m4: New file.
97334         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
97335         GNULIB_MBSLEN.
97336         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
97337         * MODULES.html.sh (Internationalization functions): Add mbslen.
97339 2007-02-11  Bruno Haible  <bruno@clisp.org>
97341         Ensure O(n) worst-case complexity of strcasestr substitute.
97342         * lib/strcasestr.c: Include stdbool.h.
97343         (knuth_morris_pratt): New function.
97344         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
97345         bookkeeping indicates that it's worth it.
97346         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
97348         * modules/strcasestr-tests: New file.
97349         * tests/test-strcasestr.c: New file.
97351 2007-02-11  Bruno Haible  <bruno@clisp.org>
97353         Ensure O(n) worst-case complexity of c_strcasestr.
97354         * lib/c-strcasestr.c: Include stdbool.h, string.h.
97355         (knuth_morris_pratt): New function.
97356         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
97357         the bookkeeping indicates that it's worth it.
97358         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
97360         * modules/c-strcasestr-tests: New file.
97361         * tests/test-c-strcasestr.c: New file.
97363 2007-02-11  Bruno Haible  <bruno@clisp.org>
97365         Ensure O(n) worst-case complexity of c_strstr.
97366         * lib/c-strstr.c: Include stdbool.h, string.h.
97367         (knuth_morris_pratt): New function.
97368         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
97369         bookkeeping indicates that it's worth it.
97370         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
97372         * lib/c-strstr.c: Complete rewrite for maintainability.
97374         * modules/c-strstr-tests: New file.
97375         * tests/test-c-strstr.c: New file.
97377 2007-02-11  Bruno Haible  <bruno@clisp.org>
97379         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
97380         5.2.1 and earlier, whereby \055 was treated just like the range
97381         delimiter '-'.
97382         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
97384 2007-02-08  Bruno Haible  <bruno@clisp.org>
97386         * modules/regex (Depends-on): Add stdbool.
97387         Reported by Dalibor Topic <robilad@kaffe.org>.
97389 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
97391         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
97392         Prefer returning from main to exiting from it.
97393         Remove unnecessary parens after sizeof.
97395 2007-02-05  Bruno Haible  <bruno@clisp.org>
97397         New module mbssep.
97398         * modules/mbssep: New file.
97399         * lib/mbssep.c: New file.
97400         * lib/string_.h (strsep): Add a conditional link warning.
97401         (mbssep): New declaration.
97402         * m4/mbssep.m4: New file.
97403         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
97404         GNULIB_MBSSEP.
97405         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
97406         * MODULES.html.sh (Internationalization functions): Add mbssep.
97408 2007-02-05  Bruno Haible  <bruno@clisp.org>
97410         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
97411         Optimize search in case of 1 delimiter.
97413 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
97415         * lib/acl.h: Include sys/types.h before sys/acl.h.
97417 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
97419         Merge upstream fix for glibc bugzilla #3957:
97421         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
97423         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
97424         bit for RE_HAT_LISTS_NOT_NEWLINE.
97425         (build_charclass_op): Remove bogus comment.
97427 2007-02-05  Simon Josefsson  <simon@josefsson.org>
97429         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
97431 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
97433         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
97434         * lib/memmem.c [!defined _LIBC]: Include config.h.
97436 2007-02-04  Bruno Haible  <bruno@clisp.org>
97438         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
97439         warning message.
97441 2007-02-04  Bruno Haible  <bruno@clisp.org>
97443         New module mbstok_r.
97444         * modules/mbstok_r: New file.
97445         * lib/mbstok_r.c: New file.
97446         * lib/string_.h (strtok_r): Change argument names to match the
97447         comments. Add a conditional link warning.
97448         (mbstok_r): New declaration.
97449         * m4/mbstok_r.m4: New file.
97450         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
97451         GNULIB_MBSTOK_R.
97452         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
97453         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
97455 2007-02-04  Bruno Haible  <bruno@clisp.org>
97457         New module mbsspn.
97458         * modules/mbsspn: New file.
97459         * lib/mbsspn.c: New file.
97460         * lib/string_.h (strspn): Add a conditional link warning.
97461         (mbsspn): New declaration.
97462         * m4/mbsspn.m4: New file.
97463         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
97464         GNULIB_MBSSPN.
97465         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
97466         * MODULES.html.sh (Internationalization functions): Add mbsspn.
97468 2007-02-04  Bruno Haible  <bruno@clisp.org>
97470         New module mbspbrk.
97471         * modules/mbspbrk: New file.
97472         * lib/mbspbrk.c: New file.
97473         * lib/string_.h (strpbrk): Add a conditional link warning.
97474         (mbspbrk): New declaration.
97475         * m4/mbspbrk.m4: New file.
97476         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
97477         GNULIB_MBSPBRK.
97478         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
97479         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
97481 2007-02-04  Bruno Haible  <bruno@clisp.org>
97483         New module mbscspn.
97484         * modules/mbscspn: New file.
97485         * lib/mbscspn.c: New file.
97486         * lib/string_.h (strcspn): Add a conditional link warning.
97487         (mbscspn): New declaration.
97488         * m4/mbscspn.m4: New file.
97489         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
97490         GNULIB_MBSCSPN.
97491         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
97492         * MODULES.html.sh (Internationalization functions): Add mbscspn.
97494 2007-02-04  Bruno Haible  <bruno@clisp.org>
97496         New module mbscasestr, reduced goal of strcasestr.
97497         * modules/mbscasestr: New file.
97498         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
97499         (mbscasestr): Renamed from strcasestr.
97500         * lib/strcasestr.c: Don't include mbuiter.h.
97501         (strcasestr): Remove support for multibyte locales.
97502         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
97503         Change the conditional link warning.
97504         (mbscasestr): New declaration.
97505         * m4/mbscasestr.m4: New file.
97506         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
97507         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
97508         REPLACE_STRCASESTR.
97509         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
97510         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
97511         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
97512         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
97513         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
97514         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
97515         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
97516         (Depends-on): Remove mbuiter.
97517         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
97519 2007-02-04  Bruno Haible  <bruno@clisp.org>
97521         Simplify handling of strncasecmp.
97522         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
97523         the conditional link warning.
97524         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
97525         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
97526         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
97527         * modules/strcase (configure.ac): Don't invoke
97528         gl_STRING_MODULE_INDICATOR.
97529         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
97531 2007-02-04  Bruno Haible  <bruno@clisp.org>
97533         New module mbscasecmp, reduced goal of strcasecmp.
97534         * modules/mbscasecmp: New file.
97535         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
97536         (mbscasecmp): Renamed from strcasecmp.
97537         * lib/strcasecmp.c: Don't include mbuiter.h.
97538         (strcasecmp): Remove support for multibyte locales.
97539         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
97540         Change the conditional link warning.
97541         (mbscasecmp): New declaration.
97542         * m4/mbscasecmp.m4: New file.
97543         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
97544         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
97545         REPLACE_STRCASECMP.
97546         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
97547         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
97548         GNULIB_MBSCASECMP.
97549         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
97550         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
97551         * modules/strcase (Files): Remove m4/mbrtowc.m4.
97552         (Depends-on): Remove mbuiter.
97553         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
97555 2007-02-04  Bruno Haible  <bruno@clisp.org>
97557         New module mbsstr. Remove module strstr.
97558         * modules/mbsstr: New file.
97559         * modules/strstr: Remove file.
97560         * lib/mbsstr.c: Renamed from lib/strstr.c.
97561         (mbsstr): Renamed from strstr.
97562         * lib/string_.h (strstr): Remove declaration. Change the conditional
97563         link warning.
97564         (mbsstr): New declaration.
97565         * m4/mbsstr.m4: New file.
97566         * m4/strstr.m4: Remove file.
97567         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
97568         REPLACE_STRSTR.
97569         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
97570         Don't initialize GNULIB_STRSTR.
97571         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
97572         substitute GNULIB_STRSTR and REPLACE_STRSTR.
97573         * MODULES.html.sh (Internationalization functions): Add mbsstr.
97574         (Support for systems lacking ANSI C 89): Remove strstr.
97576 2007-02-04  Bruno Haible  <bruno@clisp.org>
97578         New module mbsrchr.
97579         * modules/mbsrchr: New file.
97580         * lib/mbsrchr.c: New file.
97581         * lib/string_.h (strrchr): Add a conditional link warning.
97582         (mbsrchr): New declaration.
97583         * m4/mbsrchr.m4: New file.
97584         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
97585         GNULIB_MBSRCHR.
97586         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
97587         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
97589 2007-02-04  Bruno Haible  <bruno@clisp.org>
97591         New module mbschr.
97592         * modules/mbschr: New file.
97593         * lib/mbschr.c: New file.
97594         * lib/string_.h (strchr): Add a conditional link warning.
97595         (mbschr): New declaration.
97596         * m4/mbschr.m4: New file.
97597         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
97598         GNULIB_MBSCHR.
97599         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
97600         * MODULES.html.sh (Internationalization functions): Add mbschr.
97602 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
97604         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
97606         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
97608 2007-02-04  Bruno Haible  <bruno@clisp.org>
97610         New module description section 'configure.ac-early'.
97611         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
97612         (func_get_autoconf_early_snippet): New function.
97613         (func_import, func_create_testdir): Use it. Remove special cases for
97614         modules 'extensions' and 'lock'.
97615         * modules/extensions (configure.ac-early): Require
97616         gl_USE_SYSTEM_EXTENSIONS.
97617         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
97619 2007-02-04  Bruno Haible  <bruno@clisp.org>
97621         Make use of gcj-4.3's -fsource and -ftarget option.
97622         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
97623         and if so try the options -fsource and -ftarget.
97624         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
97625         source_version, ftarget_option, target_version arguments.
97626         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
97627         (is_envjavac_oldgcj_14_14_usable): Renamed from
97628         is_envjavac_gcj_14_14_usable.
97629         (is_envjavac_oldgcj_14_13_usable): Renamed from
97630         is_envjavac_gcj_14_13_usable.
97631         (is_gcj_present): Update.
97632         (is_gcj_43, is_gcj43_usable): New functions.
97633         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
97634         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
97635         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
97636         try the options -fsource and -ftarget.
97638 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
97640         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
97641         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
97642         larger value.
97644 2007-02-03  Jim Meyering  <jim@meyering.net>
97646         Give tools a better chance to allocate space for very large buffers.
97647         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
97649         Make pwd and readlink work also when run with an unreadable parent dir
97650         on systems with openat support.
97651         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
97652         provided getcwd function, even when we have openat support.
97653         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
97655 2007-02-02  Bruno Haible  <bruno@clisp.org>
97657         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
97658         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
97659         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
97660         portability problems if one of these functions is only used on specific
97661         platforms.
97662         Reported by Paul Eggert.
97664 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
97666         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
97667         is causing more trouble than it's curing.
97668         * lib/regex_internal.h (__mempcpy): Remove.
97669         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
97670         (and make the code a tad smaller to boot).
97671         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
97673 2007-02-02  Jim Meyering  <jim@meyering.net>
97675         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
97676         section, not in the Makefile.am: one.
97678 2007-02-02  Eric Blake  <ebb9@byu.net>
97680         * lib/strchrnul.c: Always include config.h first.
97682         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
97683         gnulib strstr is not necessary here.
97685 2007-02-02  Simon Josefsson  <simon@josefsson.org>
97687         * m4/socklen.m4: Fix typo.
97689 2007-02-02  Eric Blake  <ebb9@byu.net>
97691         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
97692         * modules/netinet_in (Makefile.am): Likewise.
97694 2007-02-01  Bruno Haible  <bruno@clisp.org>
97696         * lib/string_.h (GL_LINK_WARNING): New macro.
97697         (strcasecmp, strstr, strcasestr): If provided by the system,
97698         conditionally define as a macro that leads to a warning instead of to
97699         an error.
97700         (strncasecmp): Conditionally define as a macro that leads to a warning.
97702 2007-02-01  Karl Berry  <karl@gnu.org>
97704         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
97706 2007-02-01  Bruno Haible  <bruno@clisp.org>
97708         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
97709         renamings.
97711 2007-02-01  Eric Blake  <ebb9@byu.net>
97713         * modules/regex (Depends-on): Revert dependence on mempcpy.
97714         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
97715         module's definition of mempcpy.
97716         Reported by Paul Eggert.
97718 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
97720         * lib/string_.h: If the gnulib module XYZ is not present, undefine
97721         the symbol XYZ before redefining it.  This fixes a problem with
97722         programs that don't use XYZ, when compiled on systems that define
97723         XYZ to something else.
97725 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
97727         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
97728         occurs when "mkdir -m foo" creates a setgid directory that is (1)
97729         writeable to group or other and (2) is intended to have a special
97730         mode bit that is set or cleared.  In such a case, the directory
97731         should be neither group- nor other-writeable until the special
97732         mode bits are right.
97734 2007-01-31  Eric Blake  <ebb9@byu.net>
97736         * modules/mountlist (Depends-on): Add strstr.
97738         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
97739         bug.
97740         * modules/string (Makefile.am): Remove redundant replacement.
97741         * modules/regex (Depends-on): Add mempcpy.
97743 2007-01-31  Bruno Haible  <bruno@clisp.org>
97745         New module description field 'Link'.
97746         * gnulib-tool (func_usage): Document --extract-link-directive.
97747         (sed_extract_prog): Recognize 'Link' directive.
97748         (func_get_link_directive): New function.
97749         (func_import): Show summary of link directives.
97750         Handle --extract-link-directive option.
97751         * modules/acl (Link): New section.
97752         * modules/clock-time (Link): New section.
97753         * modules/euidaccess (Link): New section.
97754         * modules/gettext (Link): New section.
97755         * modules/iconv (Link): New section.
97756         * modules/lock (Link): New section.
97757         * modules/nanosleep (Link): New section.
97758         * modules/readline (Link): New section.
97760 2007-01-27  Bruno Haible  <bruno@clisp.org>
97762         Enforce the use of gnulib modules for unportable <string.h> functions.
97763         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
97764         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
97765         (gl_HEADER_STRING_H_BODY): Require it.
97766         * lib/string_.h: If the gnulib module XYZ is not present, redefine
97767         the symbol XYZ to one that gives a link error.
97768         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
97769         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
97770         * modules/mempcpy (configure.ac): Likewise.
97771         * modules/memrchr (configure.ac): Likewise.
97772         * modules/stpcpy (configure.ac): Likewise.
97773         * modules/stpncpy (configure.ac): Likewise.
97774         * modules/strcase (configure.ac): Likewise.
97775         * modules/strcasestr (configure.ac): Likewise.
97776         * modules/strchrnul (configure.ac): Likewise.
97777         * modules/strdup (configure.ac): Likewise.
97778         * modules/strndup (configure.ac): Likewise.
97779         * modules/strnlen (configure.ac): Likewise.
97780         * modules/strpbrk (configure.ac): Likewise.
97781         * modules/strsep (configure.ac): Likewise.
97782         * modules/strstr (configure.ac): Likewise.
97783         * modules/strtok_r (configure.ac): Likewise.
97785 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
97787         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
97789 2007-01-30  Jim Meyering  <jim@meyering.net>
97791         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
97793 2007-01-29  Bruno Haible  <bruno@clisp.org>
97795         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
97796         * lib/execute.c: Likewise.
97797         * lib/pipe.c: Likewise.
97798         * lib/printf-args.h: Likewise.
97799         * lib/printf-args.c: Likewise.
97800         * lib/printf-parse.c: Likewise.
97801         * lib/vasnprintf.c: Likewise.
97803 2007-01-29  Eric Blake  <ebb9@byu.net>
97805         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
97806         declaration.
97808 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
97810         * lib/strptime.h (strptime): Use 'restrict' for args where
97811         POSIX requires this.
97812         * lib/strptime.c (strptime): Likewise.
97813         Change license notice from LGPL to GPL, since gnulib-tool will
97814         change this as needed.
97815         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
97816         defined.
97817         Include "strptime.h" first, to check interface.
97818         Do not #undef _LIBC and _NL_CURRENT.
97819         Do not include <stdlib.h>; no longer needed.
97820         Include "time_r.h" and declare ptime_locale_status
97821         only if _LIBC is not defined.
97822         (__P): Remove unused macro.
97823         (match_string): Bring back glibc version, but use it only if _LIBC
97824         is defined.
97825         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
97826         Remove unnecessary assertion and abort() call.
97827         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
97828         * m4/strptime.m4: Fix serial number comment.
97829         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
97830         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
97831         (Depends-on): Add time_r.
97833 2007-01-29  Bruno Haible  <bruno@clisp.org>
97835         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
97836         strptime.
97837         * modules/strptime (Depends-on): Add stdbool.
97838         * lib/strptime.h: Include <time.h> always. Add comments.
97840 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
97842         * modules/strptime: New file.
97843         * lib/strptime.h: New file.
97844         * lib/strptime.c: New file.
97845         * m4/strptime.m4: New file.
97847 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
97849         * MODULES.html.sh: New module mpsort.
97850         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
97852         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
97853         a circularity problem with HP-UX ia64 reported by Bob Proulx in
97854         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00394.html>.
97855         All uses changed.
97856         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
97857         All uses changed.
97858         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
97859         to _Restrict_.
97860         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
97861         the parameter matches the prototype.
97863 2007-01-28  Jim Meyering  <jim@meyering.net>
97865         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
97866         sys/time.h here, reverting that part of the previous patch:
97867         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
97869 2007-01-28  Bruno Haible  <bruno@clisp.org>
97871         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
97872         value of $(SYS_TIME_H).
97873         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
97874         remove it conditionally, too. [added by Jim Meyering]
97875         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
97876         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
97877         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
97878         GETTIMEOFDAY_REPLACEMENT to 1.
97880 2007-01-28  Bruno Haible  <bruno@clisp.org>
97882         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
97883         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
97884         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
97885         Set UNISTD_H instead of UNISTD_H2.
97886         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
97888 2007-01-28  Bruno Haible  <bruno@clisp.org>
97890         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
97891         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
97893 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97895         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
97896         (func_create_testdir): Ensure C locale for `grep' and `tr'
97897         character ranges.
97898         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
97899         ACLOCAL_AMFLAGS parsing state machine.
97901 2007-01-27  Bruno Haible  <bruno@clisp.org>
97903         * modules/unistr/base: Update.
97905 2007-01-27  Bruno Haible  <bruno@clisp.org>
97907         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
97908         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
97909         * modules/unistr/u32-mbtouc-unsafe: Renamed from
97910         modules/unistr/u32-mbtouc.
97911         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
97912         * lib/unistr.h: Update.
97913         * lib/linebreak.c: Update.
97914         * modules/unistr/u32-mbtouc: Renamed from
97915         modules/unistr/u32-mbtouc-safe.
97916         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
97917         * lib/unistr.h: Update.
97918         * lib/unistr/u32-to-u8.c: Update.
97919         * lib/unistr/u32-to-u16.c: Update.
97921 2007-01-27  Bruno Haible  <bruno@clisp.org>
97923         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
97924         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
97925         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
97926         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
97927         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
97928         * modules/unistr/u16-mbtouc-unsafe: Renamed from
97929         modules/unistr/u16-mbtouc.
97930         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
97931         * lib/unistr.h: Update.
97932         * lib/linebreak.c: Update.
97933         * modules/linebreak: Update.
97934         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
97935         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
97936         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
97937         * modules/unistr/u16-mbtouc: Renamed from
97938         modules/unistr/u16-mbtouc-safe.
97939         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
97940         * lib/unistr.h: Update.
97941         * lib/unistr/u16-to-u8.c: Update.
97942         * modules/unistr/u16-to-u8: Update.
97943         * lib/unistr/u16-to-u32.c: Update.
97944         * modules/unistr/u16-to-u32: Update.
97946 2007-01-27  Bruno Haible  <bruno@clisp.org>
97948         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
97949         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
97950         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
97951         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
97952         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
97953         * modules/unistr/u8-mbtouc-unsafe: Renamed from
97954         modules/unistr/u8-mbtouc.
97955         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
97956         * lib/unistr.h: Update.
97957         * lib/striconveh.c: Update.
97958         * modules/striconveh: Update.
97959         * lib/linebreak.c: Update.
97960         * modules/linebreak: Update.
97961         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
97962         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
97963         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
97964         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
97965         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
97966         * lib/unistr.h: Update.
97967         * lib/striconveh.c: Update.
97968         * modules/striconveh: Update.
97969         * lib/unistr/u8-to-u16.c: Update.
97970         * modules/unistr/u8-to-u16: Update.
97971         * lib/unistr/u8-to-u32.c: Update.
97972         * modules/unistr/u8-to-u32: Update.
97974 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97976         Sync from Libtool.
97977         * lib/argz.c: Do not include strings.h nor memory.h, include
97978         string.h unconditionally.  Patch by Simon Josefsson.
97980 2007-01-27  Bruno Haible  <bruno@clisp.org>
97982         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
97983         from gl_HEADER_STRING_H_BODY.
97984         (gl_HEADER_STRING_H_BODY): Require it.
97985         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
97986         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
97987         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
97988         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
97989         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
97990         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
97991         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
97992         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
97993         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
97994         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
97995         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
97996         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
97997         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
97998         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
97999         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
98001 2007-01-27  Bruno Haible  <bruno@clisp.org>
98003         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
98004         check_PROGRAMS into noinst_PROGRAMS.
98005         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
98006         check_PROGRAMS in this case.
98007         (func_import): Set for_test to false.
98008         (func_create_testdir): Set for_test to true.
98010 2007-01-27  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
98011             Bruno Haible  <bruno@clisp.org>
98013         * modules/strcasestr (Files): Remove lib/strcasestr.h.
98014         (Depends-on): Add string.
98015         (Includes): Use <string.h> instead of strcasestr.h.
98016         * modules/string (Makefile.am): Also substitute the value of
98017         REPLACE_STRCASESTR.
98018         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
98019         assume strcasestr is declared in <string.h> not <strings.h>. Also
98020         set REPLACE_STRCASESTR.
98021         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
98022         REPLACE_STRCASESTR.
98023         * lib/strcasestr.h: Remove file.
98024         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
98025         * lib/string_.h (strcasestr): New declaration.
98027 2007-01-27  Bruno Haible  <bruno@clisp.org>
98029         * lib/string_.h: Use 'extern'.
98031 2007-01-27  Jim Meyering  <jim@meyering.net>
98033         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
98034         of set-but-not-used local, "q".
98036         * lib/mempcpy.c: Include <config.h> before <string.h>.
98037         This fixes a compilation error on HP-UX, due to the system's
98038         "restrict"-using mempcpy prototype.
98040 2007-01-26  Bruno Haible  <bruno@clisp.org>
98042         Small optimization.
98043         * lib/javacomp.c: Include c-strstr.h.
98044          (is_envjavac_gcj): Use c_strstr instead of strstr.
98045         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
98047 2007-01-26  Bruno Haible  <bruno@clisp.org>
98049         * MODULES.html.sh (Unicode string functions): Add the new modules.
98051         * modules/uniconv/u32-strconv-to-locale: New file.
98052         * lib/uniconv/u32-strconv-to-locale.c: New file.
98054         * modules/uniconv/u16-strconv-to-locale: New file.
98055         * lib/uniconv/u16-strconv-to-locale.c: New file.
98057         * modules/uniconv/u8-strconv-to-locale: New file.
98058         * lib/uniconv/u8-strconv-to-locale.c: New file.
98060         * modules/uniconv/u32-strconv-from-locale: New file.
98061         * lib/uniconv/u32-strconv-from-locale.c: New file.
98063         * modules/uniconv/u16-strconv-from-locale: New file.
98064         * lib/uniconv/u16-strconv-from-locale.c: New file.
98066         * modules/uniconv/u8-strconv-from-locale: New file.
98067         * lib/uniconv/u8-strconv-from-locale.c: New file.
98069         * modules/uniconv/u32-strconv-to-enc: New file.
98070         * lib/uniconv/u32-strconv-to-enc.c: New file.
98071         * modules/uniconv/u32-strconv-to-enc-tests: New file.
98072         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
98074         * modules/uniconv/u16-strconv-to-enc: New file.
98075         * lib/uniconv/u16-strconv-to-enc.c: New file.
98076         * lib/uniconv/u-strconv-to-enc.h: New file.
98077         * modules/uniconv/u16-strconv-to-enc-tests: New file.
98078         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
98080         * modules/uniconv/u8-strconv-to-enc: New file.
98081         * lib/uniconv/u8-strconv-to-enc.c: New file.
98082         * modules/uniconv/u8-strconv-to-enc-tests: New file.
98083         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
98085         * modules/uniconv/u32-strconv-from-enc: New file.
98086         * lib/uniconv/u32-strconv-from-enc.c: New file.
98087         * modules/uniconv/u32-strconv-from-enc-tests: New file.
98088         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
98090         * modules/uniconv/u16-strconv-from-enc: New file.
98091         * lib/uniconv/u16-strconv-from-enc.c: New file.
98092         * modules/uniconv/u16-strconv-from-enc-tests: New file.
98093         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
98095         * modules/uniconv/u8-strconv-from-enc: New file.
98096         * lib/uniconv/u8-strconv-from-enc.c: New file.
98097         * lib/uniconv/u-strconv-from-enc.h: New file.
98098         * modules/uniconv/u8-strconv-from-enc-tests: New file.
98099         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
98101         * modules/uniconv/u32-conv-from-enc: New file.
98102         * lib/uniconv/u32-conv-from-enc.c: New file.
98103         * modules/uniconv/u32-conv-from-enc-tests: New file.
98104         * tests/uniconv/test-u32-conv-from-enc.c: New file.
98106         * modules/uniconv/u16-conv-from-enc: New file.
98107         * lib/uniconv/u16-conv-from-enc.c: New file.
98108         * lib/uniconv/u-conv-from-enc.h: New file.
98109         * modules/uniconv/u16-conv-from-enc-tests: New file.
98110         * tests/uniconv/test-u16-conv-from-enc.c: New file.
98112         * modules/uniconv/u8-conv-from-enc: New file.
98113         * lib/uniconv/u8-conv-from-enc.c: New file.
98114         * modules/uniconv/u8-conv-from-enc-tests: New file.
98115         * tests/uniconv/test-u8-conv-from-enc.c: New file.
98117         * modules/uniconv/base: New file.
98118         * lib/uniconv.h: New file.
98120 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
98122         * doc/gnulib-tool.texi (Initial import): Update to match current
98123         behavior with strdup module.
98124         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
98125         * lib/memmem.h: Remove; all uses removed.  This is now done
98126         by <string.h>.
98127         * lib/mempcpy.h: Likewise.
98128         * lib/memrchr.h: Likewise.
98129         * lib/stpcpy.h: Likewise.
98130         * lib/stpncpy.h: Likewise.
98131         * lib/strcase.h: Likewise.
98132         * lib/strchrnul.h: Likewise.
98133         * lib/strdup.h: Likewise.
98134         * lib/strndup.h: Likewise.
98135         * lib/strnlen.h: Likewise.
98136         * lib/strpbrk.h: Likewise.
98137         * lib/strsep.h: Likewise.
98138         * lib/strstr.h: Likewise.
98139         * lib/strtok_r.h: Likewise.
98140         * lib/string_.h: New file.
98141         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
98142         Rely on <string.h> instead.
98143         * lib/canon-host.c: Likewise.
98144         * lib/chdir-long.c: Likewise.
98145         * lib/concatpath.c: Likewise.
98146         * lib/exclude.c: Likewise.
98147         * lib/fchdir.c: Likewise.
98148         * lib/getaddrinfo.c: Likewise.
98149         * lib/getcwd.c: Likewise.
98150         * lib/getsubopt.c: Likewise.
98151         * lib/glob.c: Likewise.
98152         * lib/hard-locale.c: Likewise.
98153         * lib/iconvme.c: Likewise.
98154         * lib/javacomp.c: Likewise.
98155         * lib/mempcpy.c: Likewise.
98156         * lib/memrchr.c: Likewise.
98157         * lib/regex_internal.h: Likewise.
98158         * lib/stpncpy.c: Likewise.
98159         * lib/strcasecmp.c: Likewise.
98160         * lib/strchrnul.c: Likewise.
98161         * lib/strdup.c: Likewise.
98162         * lib/striconv.c: Likewise.
98163         * lib/striconveh.c: Likewise.
98164         * lib/striconveha.c: Likewise.
98165         * lib/strncasecmp.c: Likewise.
98166         * lib/strndup.c: Likewise.
98167         * lib/strnlen.c: Likewise.
98168         * lib/strsep.c: Likewise.
98169         * lib/strstr.c: Likewise.
98170         * lib/strtok_r.c: Likewise.
98171         * lib/userspec.c: Likewise.
98172         * lib/w32spawn.h: Likewise.
98173         * lib/xstrndup.c: Likewise.
98174         * lib/mountlist.c (strstr): Remove decl.
98175         * m4/string_h.m4: New file.
98176         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
98177         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
98178         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
98179         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
98180         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
98181         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
98182         Set REPLACE_STRCASECMP if necessary.
98183         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
98184         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
98185         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
98186         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
98187         HAVE_DECL_STRDUP if necessary.
98188         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
98189         since gl_FUNC_STRNDUP does that now.
98190         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
98191         Check for decl here...
98192         (gl_PREREQ_STRNLEN): ... not here.
98193         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
98194         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
98195         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
98196         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
98197         necessary.
98198         * modules/string: New file.
98199         * modules/memmem (Files): Remove special-purpose include file.
98200         (Depends-on): Add string.
98201         (Include): Include <string.h>, not the removed file.
98202         * modules/mempcpy: Likewise.
98203         * modules/memrchr: Likewise.
98204         * modules/stpcpy: Likewise.
98205         * modules/stpncpy: Likewise.
98206         * modules/strcase: Likewise.
98207         * modules/strchrnul: Likewise.
98208         * modules/strdup: Likewise.
98209         * modules/strndup: Likewise.
98210         * modules/strnlen: Likewise.
98211         * modules/strpbrk: Likewise.
98212         * modules/strsep: Likewise.
98213         * modules/strstr: Likewise.
98214         * modules/strtok_r: Likewise.
98215         * tests/test-dirname.c: Don't include "strdup.h", since
98216         <string.h> now suffices.
98217         * tests/test-memmem.c: Don't include "memmem.h", since
98218         <string.h> now suffices.
98220 2007-01-25  Bruno Haible  <bruno@clisp.org>
98222         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
98223         *resultp is 0.
98225         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
98226         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
98227         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
98228         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
98230         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
98231         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
98232         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
98233         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
98234         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
98235         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
98237 2007-01-24  Bruno Haible  <bruno@clisp.org>
98239         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
98240         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00279.html>.
98241         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
98242         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
98243         gl_FUNC_FTS_CORE.
98244         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
98245         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
98246         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
98247         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
98248         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
98249         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
98250         gl_FUNC_FCHOWNAT.
98251         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
98252         gl_FUNC_STRFTIME.
98253         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
98254         Reported by Ralf Wildenhues.
98256 2007-01-24  Bruno Haible  <bruno@clisp.org>
98258         Drop AC_REQUIRE calls that are redundant with the module dependencies.
98259         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
98260         gl_GETADDRINFO.
98261         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
98262         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
98263         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
98265 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
98267         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
98268         Don't use 'exit'; just return from 'main'.
98269         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
98271         * lib/fnmatch_.h: Readjust white space and comments to match
98272         glibc, to avoid spurious diffs.
98274 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
98276         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
98277         2004-12-01 change by Jakub Jelinek, since this code won't compile
98278         if !LIBC.  Problem reported by Bob Proulx.
98280 2007-01-23  Bruno Haible  <bruno@clisp.org>
98282         * lib/striconveh.c: Include c-strcaseeq.h.
98283         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
98284         * modules/striconveh (Depends-on): Add c-strcaseeq.
98286 2007-01-23  Bruno Haible  <bruno@clisp.org>
98288         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
98290         * modules/c-strcaseeq: New file.
98291         * lib/c-strcaseeq.h: New file.
98293         * modules/streq: New file.
98294         * lib/streq.h: New file.
98296 2007-01-23  Bruno Haible  <bruno@clisp.org>
98298         * modules/striconveha-tests: New file.
98299         * tests/test-striconveha.c: New file.
98301         * lib/striconveha.h: Include <stdbool.h>.
98302         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
98303         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
98304         (mem_iconveha_notranslit): Renamed from mem_iconveha.
98305         (mem_iconveha): New function.
98306         (str_iconveha_notranslit): Renamed from str_iconveha.
98307         (str_iconveha): New function.
98308         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
98309         c-strcase.
98311 2007-01-23  Bruno Haible  <bruno@clisp.org>
98313         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
98314         encodings without forgiving before trying any encoding with handler.
98315         (str_iconveha): Try all encodings without forgiving before trying any
98316         encoding with handler.
98318 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
98320         Import the following changes from libc.
98322         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
98324         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
98326         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
98328         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
98329         normal_bracket label.
98331         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
98333         [BZ #361]
98334         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
98335         to normal_bracket after fetching the next character.
98337 2007-01-22  Bruno Haible  <bruno@clisp.org>
98339         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
98340         argument.
98341         * lib/striconveh.c (iconv_carefully_1): New function.
98342         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
98343         argument.
98344         (str_cd_iconveh): Update.
98345         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
98346         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
98347         * tests/test-striconveh.c (MAGIC): New macro.
98348         (new_offsets): New function.
98349         (main): Test call with and without offsets.
98351 2007-01-22  Bruno Haible  <bruno@clisp.org>
98353         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
98354         * modules/sys_select (Makefile.am): Likewise.
98355         * modules/sys_socket (Makefile.am): Likewise.
98356         * modules/sys_time (Makefile.am): Likewise.
98358 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
98360         * modules/gettimeofday (License): Change from GPL to LGPL, since
98361         gettimeofday is a library function.
98363 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
98365         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
98367 2007-01-21  Bruno Haible  <bruno@clisp.org>
98369         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
98371 2007-01-21  Bruno Haible  <bruno@clisp.org>
98373         * modules/striconveha: New file.
98374         * lib/striconveha.h: New file.
98375         * lib/striconveha.c: New file.
98376         * MODULES.html.sh (Internationalization functions): Add striconveha.
98377         * lib/striconv.c (str_iconv): Optimize the case of an empty input
98378         string.
98379         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
98381 2007-01-21  Bruno Haible  <bruno@clisp.org>
98383         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
98384         * lib/striconveh.c (str_iconveh): Likewise.
98386 2007-01-21  Bruno Haible  <bruno@clisp.org>
98388         * lib/striconveh.h (mem_iconveh): New declaration.
98389         * lib/striconveh.c (mem_iconveh): New function.
98390         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
98392 2007-01-21  Bruno Haible  <bruno@clisp.org>
98394         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
98396         * lib/striconveh.h (mem_cd_iconveh): Change specification.
98397         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
98398         original result buffer.
98399         (str_cd_iconveh): Update.
98400         * tests/test-striconveh.c (main): Update.
98402         * lib/striconv.h (mem_cd_iconv): Change specification.
98403         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
98404         result buffer.
98405         (str_cd_iconv): Update.
98406         * tests/test-striconv.c (main): Update.
98408 2007-01-21  Bruno Haible  <bruno@clisp.org>
98410         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
98412 2007-01-20  Jim Meyering  <jim@meyering.net>
98414         * lib/userspec.c (parse_with_separator): If a user or group string
98415         starts with "+", skip the corresponding name-to-ID look-up, since
98416         such a look-up must fail: user and group names may not include "+".
98418 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
98420         * lib/poll.c: Include sys/time.h and time.h unconditionally,
98421         since we now assume the sys_time module.
98422         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
98423         check for sys/time.h; no longer needed.
98424         * modules/poll (Depends-on): Depend on sys_time.
98426 2007-01-18  Bruno Haible  <bruno@clisp.org>
98428         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
98429         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
98431         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
98432         gettimeofday.
98434         * tests/test-gettimeofday.c: Include <time.h>.
98435         (dummy): Remove variable.
98437         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
98438         gl_HEADER_SYS_TIME_H.
98439         (gl_HEADER_SYS_TIME_H): New macro.
98441         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
98442         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
98443         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
98444         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
98445         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
98446         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
98447         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
98448         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
98449         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
98450         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
98451         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
98453         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
98454         last change; it caused a compilation error when cross-compiling to
98455         Cygwin.
98457 2007-01-18  Jim Meyering  <jim@meyering.net>
98459         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
98460         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
98461         than the race-prone "test -d sys || mkdir sys".
98462         (configure.ac): Use AC_PROG_MKDIR_P.
98463         * modules/sys_select: Likewise.
98464         * modules/sys_socket: Likewise.
98465         * modules/sys_time: Likewise.
98467 2007-01-18  Eric Blake  <ebb9@byu.net>
98469         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
98470         replace gettimeofday.
98471         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
98472         name, to avoid infinite recursion.
98474 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
98476         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
98477         module sys_time.
98478         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
98479         assume timespec.h defines struct timeval.
98480         * lib/settime.c: Likewise.
98481         * lib/utimens.c: Likewise.
98482         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
98483         since we now assume the gettimeofday module.
98484         * lib/tempname.c (__gen_tempname): Likewise.
98485         * lib/gettimeofday.h: Remove.
98486         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
98487         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
98488         Include <time.h>, for 'time()'.
98489         (localtime_buffer_addr): Also use this workaround if
98490         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
98491         to simplify the uses.  All uses changed.
98492         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
98493         that #undef is inside {}, and 'const' follows type name consistently.
98494         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
98495         (gettimeofday): Do not use the maximum possible value for
98496         tv->tv_usec, since that might break usages other than ls.c.
98497         Instead, we'll leave ls.c alone.  This undoes today's patch
98498         by Bruno.  Add a compile-time warning for 1s-clock resolution;
98499         we've never observed the problem but might as well keep the
98500         canary.
98501         * lib/nanosleep.c: Include timespec.h first, for interface check.
98502         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
98503         now assume the sys_time module.
98504         * lib/tempname.c: Likewise.
98505         * lib/timespec.h: Likewise.
98506         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
98507         needed.
98508         * lib/strftime.c: Likewise.
98509         * lib/timespec.h: Likewise.
98510         * lib/posixtm.c: Include posixtm.h first, for interface check.
98511         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
98512         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
98513         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
98514         * lib/sys_time_.h: New file.
98515         * lib/timespec.h (struct timespec): Use long int, not long.
98516         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
98517         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
98518         Remove obsolescent call to AC_HEADER_TIME.
98519         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
98520         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
98521         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
98522         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
98523         Likewise.
98524         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
98525         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
98526         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
98527         into the sys_time module.  Check for gettimeofday just once.
98528         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
98529         for gettimeofday signature to just check the signature.  Merely
98530         compile it, since linking doesn't test signature.  Improve test for
98531         whether gettimeofday.o is actually needed.
98532         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
98533         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
98534         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
98535         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
98536         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
98537         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
98538         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
98539         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
98540         than worrying about sys/time.h.
98541         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
98542         Don't bother worrying about TIME_WITH_SYS_TIME.
98543         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
98544         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
98545         * m4/sys_time_h.m4: New file.
98546         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
98547         Don't include sys/time.h.  Return from main rather than exiting.
98548         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
98549         all uses changed.
98550         * modules/gethrxtime (Depends-on): Add sys_time.
98551         * modules/gettime (Depends-on): Likewise.
98552         * modules/gettimeofday (Depends-on): Likewise.
98553         * modules/nanosleep (Depends-on): Likewise.
98554         * modules/settime (Depends-on): Likewise.
98555         * modules/tempname (Depends-on): Likewise.
98556         * modules/utimens (Depends-on): Likewise.
98557         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
98558         (Include): Change back to <sys/time.h>.
98559         (Maintainer): Add self.
98560         * modules/sys_time: New file.
98561         * modules/tempname (Depends-on): Add gettimeofday.
98562         * tests/test-gettimeofday.c: Include <sys/time.h>
98563         rather than gettimeofday.h.
98565 2007-01-17  Bruno Haible  <bruno@clisp.org>
98567         * gnulib-tool (func_get_license): Revert last patch. Instead, let
98568         the license default to GPL.
98569         (func_create_testdir): Don't complain if a module is LGPL and its
98570         tests module depends on GPLed modules.
98572 2007-01-17  Bruno Haible  <bruno@clisp.org>
98574         * lib/gettimeofday.c (gettimeofday): Add code for the case
98575         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
98576         maximum possible value for tv->tv_usec, rather than the minimum one.
98578 2005-10-08  Martin Lambers  <marlam@marlam.de>
98579 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
98580 2007-01-16  Bruno Haible  <bruno@clisp.org>
98582         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
98583         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
98584         gl_FUNC_GETTIMEOFDAY.
98585         (Include): Add gettimeofday.h.
98586         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
98587         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
98588         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
98589         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
98590         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
98591         * lib/gettimeofday.h: New file.
98592         * lib/gettimeofday.c: Include <sys/timeb.h>.
98593         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
98594         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
98595         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
98596         fall back on time().
98598         * tests/test-gettimeofday.c: New file.
98599         * modules/gettimeofday-tests: New file.
98601 2007-01-16  Eric Blake  <ebb9@byu.net>
98603         * modules/fnmatch (Depends-on): Depend on wchar.
98604         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
98605         * m4/fnmatch.m4: Likewise.
98606         * modules/mbchar (Makefile.am): Assume <wchar.h>.
98607         * m4/mbchar.m4: Likewise.
98608         * modules/mbswidth (Depends-on): Depend on wchar.
98609         * lib/mbswidth.c: Assume <wchar.h>.
98610         * m4/mbswidth.m4: Likewise.
98611         * modules/quotearg (Depends-on): Depend on wchar.
98612         * lib/quotearg.c: Assume <wchar.h>.
98613         * m4/quotearg.m4: Likewise.
98614         * modules/regex (Depends-on): Depend on wchar.
98615         * lib/regex_internal.h: Assume <wchar.h>.
98616         * m4/regex.m4: Likewise.
98617         * modules/stdint (Depends-on): Depend on wchar.
98618         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
98619         * m4/stdint.m4: Likewise.
98620         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
98621         * modules/strftime (Depends-on): Depend on wchar.
98622         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
98623         * modules/strtol (Depends-on): Depend on wchar.
98624         * lib/strtol.c: Assume <wchar.h>.
98625         * modules/wcwidth (Depends-on): Depend on wchar.
98626         * lib/wcwidth.h: Assume <wchar.h>.
98627         * m4/wcwidth.m4: Likewise.
98629 2007-01-16  Bruno Haible  <bruno@clisp.org>
98631         * modules/csharpexec-script: New, created from...
98632         * modules/csharpexec: ... this.
98634 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
98636         * modules/javaexec-script: New, created from...
98637         * modules/javaexec: ... this.
98639 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
98641         * modules/poll (Dependencies): Add sys_select.
98643 2007-01-15  Jim Meyering  <jim@meyering.net>
98645         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
98646         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
98647         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
98648         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
98650 2007-01-15  Bruno Haible  <bruno@clisp.org>
98652         * modules/striconveh: New file.
98653         * lib/striconveh.h: New file.
98654         * lib/striconveh.c: New file.
98655         * MODULES.html.sh (Internationalization functions): Add striconveh.
98657         * modules/striconveh-tests: New file.
98658         * tests/test-striconveh.c: New file.
98660 2007-01-15  Bruno Haible  <bruno@clisp.org>
98662         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
98663         not from GNU libiconv or GNU libc.
98665 2007-01-15  Bruno Haible  <bruno@clisp.org>
98667         * doc/gnulib-intro.texi (Copyright): Explain the different license
98668         terms for module descriptions, autoconf macros, tests, documentation.
98670 2007-01-14  Bruno Haible  <bruno@clisp.org>
98672         * modules/striconv-tests: New file.
98673         * tests/test-striconv.c: New file.
98675 2007-01-14  Bruno Haible  <bruno@clisp.org>
98677         * modules/iconv-tests: New file.
98678         * tests/test-iconv.c: New file.
98680 2007-01-14  Bruno Haible  <bruno@clisp.org>
98682         * gnulib-tool (func_get_license): For test modules, use the license of
98683         the main module.
98685 2007-01-14  Bruno Haible  <bruno@clisp.org>
98687         * modules/iconv (Include): Clarify that <iconv.h> can only be included
98688         if iconv is found to exist.
98690 2007-01-14  Bruno Haible  <bruno@clisp.org>
98692         * modules/c-ctype-tests: New file.
98693         * tests/test-c-ctype.c: New file.
98695 2007-01-14  Bruno Haible  <bruno@clisp.org>
98697         * modules/binary-io-tests: New file.
98698         * tests/test-binary-io.sh: New file.
98699         * tests/test-binary-io.c: New file.
98701 2007-01-14  Bruno Haible  <bruno@clisp.org>
98703         * modules/array-oset-tests: New file.
98704         * tests/test-array_oset.c: New file.
98706 2007-01-14  Bruno Haible  <bruno@clisp.org>
98708         * modules/array-list-tests: New file.
98709         * tests/test-array_list.c: New file.
98711 2007-01-14  Bruno Haible  <bruno@clisp.org>
98713         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
98714         and make.
98715         Reported by Simon Josefsson in
98716         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00139.html>
98718 2007-01-14  Bruno Haible  <bruno@clisp.org>
98720         * modules/allocsa-tests: New file.
98721         * tests/test-allocsa.c: New file.
98723 2007-01-14  Bruno Haible  <bruno@clisp.org>
98725         * modules/fchdir (Depends-on): Add absolute-header.
98726         * modules/unistd (Depends-on): Likewise.
98728 2006-12-30  Bruno Haible  <bruno@clisp.org>
98730         * modules/fchdir: New file.
98731         * modules/unistd (Files): Add lib/unistd_.h.
98732         (Makefile.am): Generate unistd.h from unistd_.h.
98733         * lib/fchdir.c: New file.
98734         * lib/dirent_.h: New file.
98735         * lib/unistd_.h: New file.
98736         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
98737         * m4/fchdir.m4: New file.
98738         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
98739         (gl_HEADER_UNISTD): Invoke it.
98740         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
98741         function.
98742         * lib/backupfile.c (opendir, closedir): Undefine.
98743         * lib/chown.c (open, close): Undefine.
98744         * lib/clean-temp.c (open, close): Undefine.
98745         * lib/copy-file.c (open, close): Undefine.
98746         * lib/execute.c (open, close): Undefine.
98747         * lib/fsusage.c (open, close): Undefine.
98748         * lib/gc-gnulib.c (open, close): Undefine.
98749         * lib/getcwd.c (opendir, closedir): Undefine.
98750         * lib/glob.c (opendir, closedir): Undefine.
98751         * lib/javacomp.c (open, close): Undefine.
98752         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
98753         * lib/openat-proc.c (open, close): Undefine.
98754         * lib/pagealign_alloc.c (open, close): Undefine.
98755         * lib/pipe.c (open, close): Undefine.
98756         * lib/progreloc.c (open, close): Undefine.
98757         * lib/savedir.c (opendir, closedir): Undefine.
98758         * lib/utime.c (open, close): Undefine.
98759         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
98761 2007-01-10  Bruno Haible  <bruno@clisp.org>
98763         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
98765 2007-01-12  Eric Blake  <ebb9@byu.net>
98767         Provide a robust <wchar.h>.  Further simplifications are now
98768         possible in other modules, but not included here.
98769         * modules/wchar: New module.
98770         * m4/wchar.m4: New file.
98771         * lib/wchar_.h: Likewise.
98772         * modules/mbchar (Depends-on): Depend on wchar, as the first use
98773         of the new module.
98774         * MODULES.html.sh (Extended multibyte and wide character utilities):
98775         New section.
98777 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
98779         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
98780         to a reasonable default for memory allocation.
98781         (xreadlink): Don't allocate a huge buffer, to work around a buggy
98782         file system that reports garbage st_size values for symlinks.
98783         Problem reported by Liyang Hu.
98785 2007-01-11  Simon Josefsson  <simon@josefsson.org>
98787         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
98788         Emacs .#* auto-save files).
98790 2007-01-11  Bruno Haible  <bruno@clisp.org>
98792         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
98793         directory.
98795 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
98797         Use @...@ consistently in lib/wctype_.h.
98798         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
98799         on it being set to 1 or 0.
98800         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
98801         go back to AC_SUBSTing it.
98802         * modules/wctype (Makefile.am): Undo previous change.
98804 2007-01-10  Eric Blake  <ebb9@byu.net>
98806         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
98807         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
98808         * modules/wctype (Makefile.am): Likewise.
98809         Reported by Chris McGuire.
98811 2007-01-10  Jim Meyering  <jim@meyering.net>
98813         fts.c: a small readability/maintainability improvement
98814         * lib/fts.c (fts_read): Make this code slightly more readable and
98815         maintainable by hoisting the "sp->fts_cur = p" assignments to
98816         immediately follow the statements that set P.  Derived from
98817         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
98819 2007-01-10  Eric Blake  <ebb9@byu.net>
98821         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
98822         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
98823         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
98824         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
98825         Reported by Chris McGuire.
98827 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98829         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
98830         in sed script.
98832 2007-01-09  Bruno Haible  <bruno@clisp.org>
98834         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
98835         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
98836         variables.
98837         (func_module): Use them.
98839 2007-01-09  Bruno Haible  <bruno@clisp.org>
98841         * modules/unistr/base: New file.
98842         * lib/unistr.h: New file.
98844         * modules/unistr/u8-to-u16: New file.
98845         * lib/unistr/u8-to-u16.c: New file.
98847         * modules/unistr/u8-to-u32: New file.
98848         * lib/unistr/u8-to-u32.c: New file.
98850         * modules/unistr/u16-to-u8: New file.
98851         * lib/unistr/u16-to-u8.c: New file.
98853         * modules/unistr/u16-to-u32: New file.
98854         * lib/unistr/u16-to-u32.c: New file.
98856         * modules/unistr/u32-to-u8: New file.
98857         * lib/unistr/u32-to-u8.c: New file.
98859         * modules/unistr/u32-to-u16: New file.
98860         * lib/unistr/u32-to-u16.c: New file.
98862         * modules/unistr/u8-check: New file.
98863         * modules/unistr/u16-check: New file.
98864         * modules/unistr/u32-check: New file.
98865         * lib/unistr/u8-check.c: New file.
98866         * lib/unistr/u16-check.c: New file.
98867         * lib/unistr/u32-check.c: New file.
98869         * modules/unistr/u8-chr: New file.
98870         * modules/unistr/u16-chr: New file.
98871         * modules/unistr/u32-chr: New file.
98872         * lib/unistr/u8-chr.c: New file.
98873         * lib/unistr/u16-chr.c: New file.
98874         * lib/unistr/u32-chr.c: New file.
98876         * modules/unistr/u8-cmp: New file.
98877         * modules/unistr/u16-cmp: New file.
98878         * modules/unistr/u32-cmp: New file.
98879         * lib/unistr/u8-cmp.c: New file.
98880         * lib/unistr/u16-cmp.c: New file.
98881         * lib/unistr/u32-cmp.c: New file.
98883         * modules/unistr/u8-cpy: New file.
98884         * modules/unistr/u16-cpy: New file.
98885         * modules/unistr/u32-cpy: New file.
98886         * lib/unistr/u8-cpy.c: New file.
98887         * lib/unistr/u16-cpy.c: New file.
98888         * lib/unistr/u32-cpy.c: New file.
98889         * lib/unistr/u-cpy.h: New file.
98891         * modules/unistr/u8-cpy-alloc: New file.
98892         * modules/unistr/u16-cpy-alloc: New file.
98893         * modules/unistr/u32-cpy-alloc: New file.
98894         * lib/unistr/u8-cpy-alloc.c: New file.
98895         * lib/unistr/u16-cpy-alloc.c: New file.
98896         * lib/unistr/u32-cpy-alloc.c: New file.
98897         * lib/unistr/u-cpy-alloc.h: New file.
98899         * modules/unistr/u8-endswith: New file.
98900         * modules/unistr/u16-endswith: New file.
98901         * modules/unistr/u32-endswith: New file.
98902         * lib/unistr/u8-endswith.c: New file.
98903         * lib/unistr/u16-endswith.c: New file.
98904         * lib/unistr/u32-endswith.c: New file.
98905         * lib/unistr/u-endswith.h: New file.
98907         * modules/unistr/u8-mblen: New file.
98908         * modules/unistr/u16-mblen: New file.
98909         * modules/unistr/u32-mblen: New file.
98910         * lib/unistr/u8-mblen.c: New file.
98911         * lib/unistr/u16-mblen.c: New file.
98912         * lib/unistr/u32-mblen.c: New file.
98914         * modules/unistr/u8-mbtouc: New file.
98915         * modules/unistr/u16-mbtouc: New file.
98916         * modules/unistr/u32-mbtouc: New file.
98917         * lib/unistr/u8-mbtouc.c: New file.
98918         * lib/unistr/u16-mbtouc.c: New file.
98919         * lib/unistr/u32-mbtouc.c: New file.
98921         * modules/unistr/u8-mbtouc-safe: New file.
98922         * modules/unistr/u16-mbtouc-safe: New file.
98923         * modules/unistr/u32-mbtouc-safe: New file.
98924         * lib/unistr/u8-mbtouc-safe.c: New file.
98925         * lib/unistr/u16-mbtouc-safe.c: New file.
98926         * lib/unistr/u32-mbtouc-safe.c: New file.
98928         * modules/unistr/u8-move: New file.
98929         * modules/unistr/u16-move: New file.
98930         * modules/unistr/u32-move: New file.
98931         * lib/unistr/u8-move.c: New file.
98932         * lib/unistr/u16-move.c: New file.
98933         * lib/unistr/u32-move.c: New file.
98934         * lib/unistr/u-move.h: New file.
98936         * modules/unistr/u8-next: New file.
98937         * modules/unistr/u16-next: New file.
98938         * modules/unistr/u32-next: New file.
98939         * lib/unistr/u8-next.c: New file.
98940         * lib/unistr/u16-next.c: New file.
98941         * lib/unistr/u32-next.c: New file.
98943         * modules/unistr/u8-prev: New file.
98944         * modules/unistr/u16-prev: New file.
98945         * modules/unistr/u32-prev: New file.
98946         * lib/unistr/u8-prev.c: New file.
98947         * lib/unistr/u16-prev.c: New file.
98948         * lib/unistr/u32-prev.c: New file.
98950         * modules/unistr/u8-set: New file.
98951         * modules/unistr/u16-set: New file.
98952         * modules/unistr/u32-set: New file.
98953         * lib/unistr/u8-set.c: New file.
98954         * lib/unistr/u16-set.c: New file.
98955         * lib/unistr/u32-set.c: New file.
98956         * lib/unistr/u-set.h: New file.
98958         * modules/unistr/u8-startswith: New file.
98959         * modules/unistr/u16-startswith: New file.
98960         * modules/unistr/u32-startswith: New file.
98961         * lib/unistr/u8-startswith.c: New file.
98962         * lib/unistr/u16-startswith.c: New file.
98963         * lib/unistr/u32-startswith.c: New file.
98964         * lib/unistr/u-startswith.h: New file.
98966         * modules/unistr/u8-stpcpy: New file.
98967         * modules/unistr/u16-stpcpy: New file.
98968         * modules/unistr/u32-stpcpy: New file.
98969         * lib/unistr/u8-stpcpy.c: New file.
98970         * lib/unistr/u16-stpcpy.c: New file.
98971         * lib/unistr/u32-stpcpy.c: New file.
98972         * lib/unistr/u-stpcpy.h: New file.
98974         * modules/unistr/u8-stpncpy: New file.
98975         * modules/unistr/u16-stpncpy: New file.
98976         * modules/unistr/u32-stpncpy: New file.
98977         * lib/unistr/u8-stpncpy.c: New file.
98978         * lib/unistr/u16-stpncpy.c: New file.
98979         * lib/unistr/u32-stpncpy.c: New file.
98980         * lib/unistr/u-stpncpy.h: New file.
98982         * modules/unistr/u8-strcat: New file.
98983         * modules/unistr/u16-strcat: New file.
98984         * modules/unistr/u32-strcat: New file.
98985         * lib/unistr/u8-strcat.c: New file.
98986         * lib/unistr/u16-strcat.c: New file.
98987         * lib/unistr/u32-strcat.c: New file.
98988         * lib/unistr/u-strcat.h: New file.
98990         * modules/unistr/u8-strchr: New file.
98991         * modules/unistr/u16-strchr: New file.
98992         * modules/unistr/u32-strchr: New file.
98993         * lib/unistr/u8-strchr.c: New file.
98994         * lib/unistr/u16-strchr.c: New file.
98995         * lib/unistr/u32-strchr.c: New file.
98997         * modules/unistr/u8-strcmp: New file.
98998         * modules/unistr/u16-strcmp: New file.
98999         * modules/unistr/u32-strcmp: New file.
99000         * lib/unistr/u8-strcmp.c: New file.
99001         * lib/unistr/u16-strcmp.c: New file.
99002         * lib/unistr/u32-strcmp.c: New file.
99004         * modules/unistr/u8-strcpy: New file.
99005         * modules/unistr/u16-strcpy: New file.
99006         * modules/unistr/u32-strcpy: New file.
99007         * lib/unistr/u8-strcpy.c: New file.
99008         * lib/unistr/u16-strcpy.c: New file.
99009         * lib/unistr/u32-strcpy.c: New file.
99010         * lib/unistr/u-strcpy.h: New file.
99012         * modules/unistr/u8-strcspn: New file.
99013         * modules/unistr/u16-strcspn: New file.
99014         * modules/unistr/u32-strcspn: New file.
99015         * lib/unistr/u8-strcspn.c: New file.
99016         * lib/unistr/u16-strcspn.c: New file.
99017         * lib/unistr/u32-strcspn.c: New file.
99018         * lib/unistr/u-strcspn.h: New file.
99020         * modules/unistr/u8-strdup: New file.
99021         * modules/unistr/u16-strdup: New file.
99022         * modules/unistr/u32-strdup: New file.
99023         * lib/unistr/u8-strdup.c: New file.
99024         * lib/unistr/u16-strdup.c: New file.
99025         * lib/unistr/u32-strdup.c: New file.
99026         * lib/unistr/u-strdup.h: New file.
99028         * modules/unistr/u8-strlen: New file.
99029         * modules/unistr/u16-strlen: New file.
99030         * modules/unistr/u32-strlen: New file.
99031         * lib/unistr/u8-strlen.c: New file.
99032         * lib/unistr/u16-strlen.c: New file.
99033         * lib/unistr/u32-strlen.c: New file.
99034         * lib/unistr/u-strlen.h: New file.
99036         * modules/unistr/u8-strmblen: New file.
99037         * modules/unistr/u16-strmblen: New file.
99038         * modules/unistr/u32-strmblen: New file.
99039         * lib/unistr/u8-strmblen.c: New file.
99040         * lib/unistr/u16-strmblen.c: New file.
99041         * lib/unistr/u32-strmblen.c: New file.
99043         * modules/unistr/u8-strmbtouc: New file.
99044         * modules/unistr/u16-strmbtouc: New file.
99045         * modules/unistr/u32-strmbtouc: New file.
99046         * lib/unistr/u8-strmbtouc.c: New file.
99047         * lib/unistr/u16-strmbtouc.c: New file.
99048         * lib/unistr/u32-strmbtouc.c: New file.
99050         * modules/unistr/u8-strncat: New file.
99051         * modules/unistr/u16-strncat: New file.
99052         * modules/unistr/u32-strncat: New file.
99053         * lib/unistr/u8-strncat.c: New file.
99054         * lib/unistr/u16-strncat.c: New file.
99055         * lib/unistr/u32-strncat.c: New file.
99056         * lib/unistr/u-strncat.h: New file.
99058         * modules/unistr/u8-strncmp: New file.
99059         * modules/unistr/u16-strncmp: New file.
99060         * modules/unistr/u32-strncmp: New file.
99061         * lib/unistr/u8-strncmp.c: New file.
99062         * lib/unistr/u16-strncmp.c: New file.
99063         * lib/unistr/u32-strncmp.c: New file.
99065         * modules/unistr/u8-strncpy: New file.
99066         * modules/unistr/u16-strncpy: New file.
99067         * modules/unistr/u32-strncpy: New file.
99068         * lib/unistr/u8-strncpy.c: New file.
99069         * lib/unistr/u16-strncpy.c: New file.
99070         * lib/unistr/u32-strncpy.c: New file.
99071         * lib/unistr/u-strncpy.h: New file.
99073         * modules/unistr/u8-strnlen: New file.
99074         * modules/unistr/u16-strnlen: New file.
99075         * modules/unistr/u32-strnlen: New file.
99076         * lib/unistr/u8-strnlen.c: New file.
99077         * lib/unistr/u16-strnlen.c: New file.
99078         * lib/unistr/u32-strnlen.c: New file.
99079         * lib/unistr/u-strnlen.h: New file.
99081         * modules/unistr/u8-strpbrk: New file.
99082         * modules/unistr/u16-strpbrk: New file.
99083         * modules/unistr/u32-strpbrk: New file.
99084         * lib/unistr/u8-strpbrk.c: New file.
99085         * lib/unistr/u16-strpbrk.c: New file.
99086         * lib/unistr/u32-strpbrk.c: New file.
99087         * lib/unistr/u-strpbrk.h: New file.
99089         * modules/unistr/u8-strrchr: New file.
99090         * modules/unistr/u16-strrchr: New file.
99091         * modules/unistr/u32-strrchr: New file.
99092         * lib/unistr/u8-strrchr.c: New file.
99093         * lib/unistr/u16-strrchr.c: New file.
99094         * lib/unistr/u32-strrchr.c: New file.
99096         * modules/unistr/u8-strspn: New file.
99097         * modules/unistr/u16-strspn: New file.
99098         * modules/unistr/u32-strspn: New file.
99099         * lib/unistr/u8-strspn.c: New file.
99100         * lib/unistr/u16-strspn.c: New file.
99101         * lib/unistr/u32-strspn.c: New file.
99102         * lib/unistr/u-strspn.h: New file.
99104         * modules/unistr/u8-strstr: New file.
99105         * modules/unistr/u16-strstr: New file.
99106         * modules/unistr/u32-strstr: New file.
99107         * lib/unistr/u8-strstr.c: New file.
99108         * lib/unistr/u16-strstr.c: New file.
99109         * lib/unistr/u32-strstr.c: New file.
99110         * lib/unistr/u-strstr.h: New file.
99112         * modules/unistr/u8-strtok: New file.
99113         * modules/unistr/u16-strtok: New file.
99114         * modules/unistr/u32-strtok: New file.
99115         * lib/unistr/u8-strtok.c: New file.
99116         * lib/unistr/u16-strtok.c: New file.
99117         * lib/unistr/u32-strtok.c: New file.
99118         * lib/unistr/u-strtok.h: New file.
99120         * modules/unistr/u8-uctomb: New file.
99121         * modules/unistr/u16-uctomb: New file.
99122         * modules/unistr/u32-uctomb: New file.
99123         * lib/unistr/u8-uctomb.c: New file.
99124         * lib/unistr/u16-uctomb.c: New file.
99125         * lib/unistr/u32-uctomb.c: New file.
99127         * MODULES.html.sh (Unicode string functions): Add the new modules.
99129 2007-01-08  Bruno Haible  <bruno@clisp.org>
99131         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
99132         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
99133         subdirectories.
99135 2007-01-08  Karl Berry  <karl@gnu.org>
99137         * doc/error.texi: mention that main() fns must set program_name
99138         when progname is used.
99140 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
99142         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
99143         WCTYPE_H is empty, for the benefit of builds from non-distclean
99144         directories.  Problem reported by Eric Blake in
99145         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00157.html>.
99147 2007-01-08  Bruno Haible  <bruno@clisp.org>
99149         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
99150         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
99151         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
99152         PROVIDE_CANONICALIZE_FILENAME_MODE.
99153         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
99155 2007-01-08  Bruno Haible  <bruno@clisp.org>
99157         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
99158         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
99159         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
99160         * lib/fts.c: Likewise.
99161         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
99163 2006-12-25  Bruno Haible  <bruno@clisp.org>
99165         * modules/utf8-ucs4-safe: New file.
99166         * lib/utf8-ucs4-safe.h: New file.
99167         * lib/unistr/utf8-ucs4-safe.c: New file.
99169         * modules/utf16-ucs4-safe: New file.
99170         * lib/utf16-ucs4-safe.h: New file.
99171         * lib/unistr/utf16-ucs4-safe.c: New file.
99173         * MODULES.html.sh (Unicode string functions): Add the new modules.
99175 2007-01-08  Bruno Haible  <bruno@clisp.org>
99177         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
99178         (Depends-on): Add unitypes.
99179         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
99180         (u8_mbtouc_aux): Move out to separate file.
99181         (u8_mbtouc): Use ucs4_t, uint8_t types.
99182         * lib/unistr/utf8-ucs4.c: New file.
99184         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
99185         (Depends-on): Add unitypes.
99186         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
99187         (u16_mbtouc_aux): Move out to separate file.
99188         (u16_mbtouc): Use ucs4_t, uint16_t types.
99189         * lib/unistr/utf16-ucs4.c: New file.
99191         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
99192         (Depends-on): Add unitypes.
99193         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
99194         (u8_uctomb_aux): Move out to separate file.
99195         (u8_uctomb): Use ucs4_t, uint8_t types.
99196         * lib/unistr/ucs4-utf8.c: New file.
99198         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
99199         (Depends-on): Add unitypes.
99200         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
99201         (u16_uctomb_aux): Move out to separate file.
99202         (u16_uctomb): Use ucs4_t, uint16_t types.
99203         * lib/unistr/ucs4-utf16.c: New file.
99205 2006-12-25  Bruno Haible  <bruno@clisp.org>
99207         * modules/unitypes: New file.
99208         * lib/unitypes.h: New file.
99209         * MODULES.html.sh (func_all_modules): New section "Unicode string
99210         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
99211         this section. Add unitypes.
99213 2007-01-08  Bruno Haible  <bruno@clisp.org>
99215         Avoid variable names that conflict with those from libtool.
99216         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
99217         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
99218         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
99219         library_names_spec to acl_library_names_spec, hardcode_* to
99220         acl_hardcode_*.
99221         Reported by Ralf Wildenhues.
99223 2007-01-08  Bruno Haible  <bruno@clisp.org>
99225         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
99226         definition.
99227         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
99228         definition.
99229         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
99230         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
99231         definition.
99232         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
99233         definition.
99234         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
99235         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
99236         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
99237         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
99238         definition.
99239         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
99240         definition.
99241         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
99242         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
99243         GC_USE_<algorithm>.
99244         * lib/gc-libgcrypt.c: Likewise.
99245         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
99246         * modules/gc-arctwo (configure.ac): Likewise.
99247         * modules/gc-des (configure.ac): Likewise.
99248         * modules/gc-hmac-md5 (configure.ac): Likewise.
99249         * modules/gc-hmac-sha1 (configure.ac): Likewise.
99250         * modules/gc-md2 (configure.ac): Likewise.
99251         * modules/gc-md4 (configure.ac): Likewise.
99252         * modules/gc-md5 (configure.ac): Likewise.
99253         * modules/gc-random (configure.ac): Likewise.
99254         * modules/gc-rijndael (configure.ac): Likewise.
99255         * modules/gc-sha1 (configure.ac): Likewise.
99257 2007-01-08  Bruno Haible  <bruno@clisp.org>
99259         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
99260         macro definition.
99261         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
99262         definition.
99263         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
99264         definition.
99265         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
99266         * modules/fcntl-safer (configure.ac): Likewise.
99267         * modules/fopen-safer (configure.ac): Likewise.
99268         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
99269         GNULIB_FWRITEERROR macro definition.
99271 2007-01-08  Bruno Haible  <bruno@clisp.org>
99273         * m4/gnulib-common.m4: New file.
99274         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
99275         (func_get_filelist): Add m4/gnulib-common.m4.
99277 2007-01-08  Bruno Haible  <bruno@clisp.org>
99279         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
99280         command.
99282 2007-01-08  Jim Meyering  <jim@meyering.net>
99284         Use a more robust test for a "can't happen" condition.
99285         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
99286         narrowed the st_size value.  Presuming the "can't happen" condition
99287         is true, that narrowing could conceivably convert an invalid st_size
99288         value into a valid one.  Instead, use a change based on Matthew
99289         Woehlke's original patch.
99291         Slight readability improvement: use an assert-like macro
99292         in place of literal "abort ()" uses.
99293         * lib/fts.c (fts_assert): Define.
99294         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
99295         Use this macro instead of a bare 'abort'.
99297 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
99299         Don't worry about using IRIX 5.3's wctype.h broken definitions;
99300         simply work around them.
99301         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
99302         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
99303         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
99304         declaring.
99305         Don't bother to define as macros, since the standard doesn't require it.
99306         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
99307         longer worry about IRIX 5.3.
99308         (HAVE_WCTYPE_CTMP_BUG): Remove.
99310 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
99312         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
99313         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
99314         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
99315         Problems reported by Georg Schwarz for IRIX 5.3.
99317         * gnulib-tool (autoconf_minversion): Take the maximum version number
99318         found, not the minimum.  Problem reported by James Youngman.
99320 2007-01-03  Karl Berry  <karl@gnu.org>
99322         * doc/error.texi: new file, explaining interaction with progname.
99323         * doc/gnulib.texi: include it.  Update copyright.
99325 2007-01-03  Simon Josefsson  <simon@josefsson.org>
99327         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
99328         AC_CANONICAL_HOST, to improve autobuild outputs.
99330 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
99331             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
99333         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
99334         sockets, server sockets, and other file descriptors.  Count errors
99335         to compute the return value.  Reorder the code a bit to be easier
99336         to follow.  Don't set event bits that were not requested (except
99337         POLLERR and POLLHUP).
99339 2007-01-01  Bruno Haible  <bruno@clisp.org>
99341         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
99343 2007-01-03  Jim Meyering  <jim@meyering.net>
99345         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
99347 2007-01-02  Bruno Haible  <bruno@clisp.org>
99349         * modules/settime (Include): Require timespec.h.
99350         * modules/nanosleep (Include): Likewise.
99352 2007-01-01  Bruno Haible  <bruno@clisp.org>
99354         * gnulib-tool (func_emit_copyright_notice): Bump year.
99355         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
99357 2007-01-01  Bruno Haible  <bruno@clisp.org>
99359         Improve support for OpenBSD.
99360         * build-aux/config.rpath (libname_spec): Export.
99361         (library_names_spec): New variable. Export.
99362         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
99363         library_names_spec from the config.rpath output. Locate shared library
99364         through the name pattern in library_names_spec.
99366 2007-01-01  Eric Blake  <ebb9@byu.net>
99368         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
99370 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
99372         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
99373         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
99374         assume the C locale, and avoid an "eval" that could cause trouble.
99375         Problem with SORT reported by Bob Proulx.
99377         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
99378         Define.  Trivial patch from Henning Nielsen Lund, originally
99379         sent to bug-grep@gnu.org today.
99381 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
99383         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
99384         struct stat.  Problem reported by Henning Nielsen Lund.
99385         * lib/acl.c: Include acl.h first, to check interface.  Don't
99386         bother to include sys/types.h and sys/stat.h again.
99388 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
99390         Import the following change from libc; problem reported by
99391         Sven Verdoolaege.
99393         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
99395         [BZ #1373]
99396         * lib/argp.h: Remove __NTH for __argp_usage inline function.
99398 2006-12-28  Jim Meyering  <jim@meyering.net>
99400         * build-aux/announce-gen: Do not assume that the package
99401         builds any of tar.gz, tar.bz2, and .xdelta files.
99402         Suggestion from Simon Josefsson.
99404 2006-12-28  Simon Josefsson  <simon@josefsson.org>
99406         * modules/announce-gen: New file.
99408 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
99410         * lib/mbchar.h: Just include <wctype.h>; the wctype module
99411         handles its gotchas now.
99412         * lib/mbswidth.c: Likewise.
99413         * lib/wcwidth.h: Likewise.
99414         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
99415         and iswcntrl; the wctype module does this stuff now.
99416         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
99417         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
99418         * modules/mbchar (Depends-on): Add wctype.
99419         * modules/mbswidth (Depends-on): Likewise.
99420         * modules/wcwidth (Depends-on): Likewise.
99422 2006-12-27  Eric Blake  <ebb9@byu.net>
99424         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
99425         module uses more than what <wctype.h> is required to provide.
99427 2006-12-26  Eric Blake  <ebb9@byu.net>
99429         * gnulib-tool (sed_extract_prog): Avoid space-tab.
99431 2006-12-26  Eric Blake  <ebb9@byu.net>
99433         * modules/absolute-header: New module.
99434         * modules/fcntl (Depends-on): Depend on it.
99435         * modules/inttypes (Depends-on): Likewise.
99436         * modules/stdint (Depends-on): Likewise.
99437         * modules/sys_stat (Depends-on): Likewise.
99438         * modules/wctype (Depends-on): Likewise.
99439         * MODULES.html.sh (Support for building libraries and
99440         executables): Document it.
99442 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
99444         * gnulib-tool (SED): Remove, undoing previous change.
99445         The problem was that it broke coreutils on Solaris, because
99446         "sed --posix" leaked into a makefile.
99447         (sed): New alias, if 'alias' and GNU sed.
99449 2006-12-24  Jim Meyering  <jim@meyering.net>
99451         Work around an fchownat bug in glibc-2.4:
99452         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
99453         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
99454         in spite of the -P option.
99455         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
99456         New macros.
99457         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
99458         * modules/openat (Files): Add lib/fchownat.c.
99459         * lib/openat.c (fchownat): Don't define here.  Move to...
99460         * lib/fchownat.c: ...this new file.
99462 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
99464         Fix bug reported by Bruno Haible in
99465         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00228.html>
99466         where quotearg.c didn't compile on Mac OS X 10.2 because it
99467         lacks <wchar.h> and wint_t.
99468         * lib/wctype_.h (__wctype_wint_t): New type.
99469         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
99470         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
99471         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
99472         Arg is now of type __wctype_wint_t, not wint_t.
99473         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
99474         substitute HAVE_WINT_T.
99475         * modules/wctype (Files): Add m4/wint_t.m4.
99476         (wctype.h): Substitute HAVE_WINT_T.
99478 2006-12-23  Bruno Haible  <bruno@clisp.org>
99480         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
99482 2006-12-23  Bruno Haible  <bruno@clisp.org>
99484         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
99485         S_ISLNK.
99486         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
99487         mingw.
99489 2006-12-22  Bruno Haible  <bruno@clisp.org>
99491         * lib/copy-file.c: Include acl.h.
99492         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
99493         Close the file descriptors only after being done with copy_acl.
99494         * modules/copy-file (Depends-on): Add acl.
99496 2006-12-22  Bruno Haible  <bruno@clisp.org>
99498         * gnulib-tool (SED): New variable.
99499         Use $SED instead of sed everywhere.
99501 2006-12-22  Bruno Haible  <bruno@clisp.org>
99503         * modules/no-c++: New file.
99504         * m4/no-c++.m4: New file.
99505         * MODULES.html.sh (Support for building libraries and executables):
99506         Add no-c++.
99508 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
99510         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
99511         Include <limits.h>, and use its INT_MAX to rewrite the
99512         j loop so that it does not overflow 'int'.  Problem reported by
99513         Ralf Wildenhues in
99514         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00084.html>.
99515         Play it safe by shifting left by 1 rather than multiplying by 2,
99516         as GCC is less likely to optimize this away when the value
99517         is signed (when it assumes overflow leads to undefined behavior).
99518         Also, don't assume time_t uses two's complement.
99520 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
99522         * MODULES.html.sh: New module wctype.
99523         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
99524         * lib/fnmatch.c: Don't bother to include <wchar.h> before
99525         <wctype.h>, since the new wctype module should fix this.
99526         * lib/quotearg.c: Include <wctype.h> unconditionally, since
99527         the wctype module should arrange for it.
99528         * lib/regex_internal.h: Likewise.
99529         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
99530         since the wctype module should handle this now.
99531         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
99532         * modules/fnmatch (Depends-on): Add wctype.
99533         * modules/quotearg (Depends-on): Likewise.
99534         * modules/regex (Depends-on): Likewise.
99536 2006-12-19  Bruno Haible  <bruno@clisp.org>
99538         * lib/strdup.h [C++]: Wrap definitions in extern "C".
99539         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
99541 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99543         * modules/savewd (Depends-on): Fix dependency on fcntl.
99545 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
99547         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
99548         conforms to C99, rather than relying on the user's environment
99549         setting of STDINT_H.
99551 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
99552         and Eric Blake  <ebb9@byu.net>
99554         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
99555         This is more consistent with the other defines here.
99556         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
99557         Port to z/OS.  Problem reported by Paul Gilmartin.
99558         Change local vars to use gl_ prefix rather than ac_.
99559         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
99560         with other defines.
99561         * modules/double-slash-root: New module.
99562         * modules/dirname (Files): Remove m4/double-slash-root.m4.
99563         (Depends-on): Add double-slash-root.
99564         * MODULES.html.sh (File system functions): Mention new module.
99566 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
99568         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
99569         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
99570         This is for the benefit of gzip, which doesn't do i18n.
99572 2006-12-12  Jim Meyering  <jim@meyering.net>
99574         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
99575         Reported by Andreas Schwab <schwab@suse.de>.
99577 2006-12-12  Bruno Haible  <bruno@clisp.org>
99579         Merge these changes.
99580         2006-09-05  Bruno Haible  <bruno@clisp.org>
99581         * lib/iconvme.c (iconv_string): No need to save and restore errno when
99582         iconv_alloc succeeded.
99583         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
99584         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
99585         test for " && dest " at the end - dest is always != NULL there. Call
99586         iconv with 4xNULL arguments initially, to reset the state. Call iconv
99587         with 2xNULL arguments, also to flush the state storage. Handle the
99588         IRIX iconv behaviour. Realloc the final result, to throw away unused
99589         memory.
99591 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
99593         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
99594         and fchmodat unconditionally, since glibc 2.4 has them.
99595         Problem reported by Arkadiusz Miskiewicz.
99597 2006-12-10  Bruno Haible  <bruno@clisp.org>
99599         * gnulib-tool (func_import): Show the include files only for those
99600         modules that are copied and specified.
99601         Reported by Karl Berry.
99603 2006-12-08  Jim Meyering  <jim@meyering.net>
99605         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
99606         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
99608         * build-aux/announce-gen: Add two new options, both optional:
99609         --bootstrap-tools=TOOL_LIST
99610               a comma-separated list of tools, e.g.,
99611               autoconf,automake,bison,gnulib
99612         --gnulib-snapshot-date=DATE
99613               if gnulib is in the bootstrap tool list,
99614               then report this as the snapshot date.
99615               If not specified, use the current date/time.
99616               If you specify a date here, be sure it's UTC.
99618 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99620         * tests/test-argp-2.sh: Fix test to match actual output.
99621         (func_compare): Fix sed script to be portable.
99623 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
99625         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
99626         workaround for this case.  It is not autoconfigured now; offhand
99627         it's hard to see how to autoconfigure it.
99629 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
99631         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
99632         a directory that is about to be chowned.  Such a directory's
99633         initial file permissions should permit the owner only and this
99634         should not be changed until after the chown, since the group and
99635         other bits would be incorrect if they granted permission before
99636         the chown.
99638         Fix porting problem for iswctype reported by Georg Schwarz in:
99639         http://lists.gnu.org/r/bug-coreutils/2006-12/msg00017.html
99640         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
99641         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
99642         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
99643         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
99645 2006-12-03  Jim Meyering  <jim@meyering.net>
99647         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
99648         p->fts_statp may not yet be defined.
99649         (fts_read): Instead, set it in the caller, once p->fts_statp is
99650         sure to be defined, and corresponds to a top-level directory.
99651         This bug made du -x fail.  Here's the coreutils test case:
99652         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
99653         Reported by Mike Frysinger.
99655 2006-12-01  Jim Meyering  <jim@meyering.net>
99657         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
99658         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
99659         Reported by Simon Josefsson.
99661 2006-11-30  Jim Meyering  <jim@meyering.net>
99663         * m4/warning.m4: Use the all-permissive copyright notice
99664         recommended by RMS (rather than LGPL).
99665         * m4/vararrays.m4: Likewise.
99666         * m4/flexmember.m4: Likewise.
99668 2006-11-29  Bruno Haible  <bruno@clisp.org>
99670         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
99671         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
99672         using +=.
99673         Reported by Simon Josefsson <simon@josefsson.org>.
99675 2006-11-28  James Youngman  <jay@gnu.org>
99677         * README: Advise users that they might find the bug-gnulib@gnu.org
99678         and autotools-announce@gnu.org mailing lists useful.
99680 2006-11-28  Bruno Haible  <bruno@clisp.org>
99682         * m4/ptrdiff_max.m4: Remove file.
99684 2006-11-21  Bruno Haible  <bruno@clisp.org>
99686         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
99687         _AC_COMPUTE_INT.
99688         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
99689         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
99690         _AC_COMPUTE_INT.
99691         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
99692         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
99693         _AC_COMPUTE_INT.
99694         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
99696 2006-11-28  Jim Meyering  <jim@meyering.net>
99698         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
99699         warning from "gcc -Wshadow" about shadowing the builtin.
99701 2006-11-27  Bruno Haible  <bruno@clisp.org>
99703         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
99704         _AC_COMPUTE_INT.
99705         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
99707 2006-11-27  Bruno Haible  <bruno@clisp.org>
99708             Paul Eggert  <eggert@cs.ucla.edu>
99710         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
99712 2006-11-26  Bruno Haible  <bruno@clisp.org>
99714         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
99715         noinst_LTLIBRARIES.
99717 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
99718             Bruno Haible  <bruno@clisp.org>
99720         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
99721         if compiling with "gcc -ansi".
99723 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
99725         Fix some incompatibilities with gcc -ansi -pedantic.
99726         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
99727         if compiling pedantically with GCC, unless it's C99 or later.
99728         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
99729         it mishandles gcc -ansi -pedantic as well.
99730         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
99731         if gcc -pedantic.
99732         * lib/regexec.c (check_node_accept_bytes): Don't use auto
99733         initializers for struct if -pedantic, unless it's C99 or later.
99735 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
99737         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
99738         Don't close an fd more than once. Identical atimes indicate
99739         success, not failure.
99741 2006-11-22  Robinson Mittmann  <bob@hoplon.com>  (tiny change)
99743         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
99745 2006-11-23  Jim Meyering  <jim@meyering.net>
99747         * build-aux/announce-gen: New file.  From coreutils.
99749 2006-11-22  Jim Meyering  <jim@meyering.net>
99751         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
99752         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
99753         (fts_read): Use a temporary to narrow the overused st_size member
99754         before using it in a switch statement.  Reported by Matthew Woehlke.
99756         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
99757         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
99759 2006-11-20  Bruno Haible  <bruno@clisp.org>
99761         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
99762         changequote instead of pairs of brackets.
99763         Reported by Andreas Schwab <schwab@suse.de>.
99765 2006-11-21  Jim Meyering  <jim@meyering.net>
99767         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
99768         so as to remain compatible with older compilers.
99769         Patch from Michael Deutschmann.
99771 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
99773         * MODULES.html.sh (File system functions): Add openat.
99775         * lib/openat.h (rpl_fstatat): New macro, if
99776         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
99777         (fstatat): Define to rpl_fstatat under the same conditions,
99778         unless COMPILING_FSTATAT.
99779         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
99780         seems to have the bug.
99781         * lib/fstatat.c: New file.
99782         * modules/openat (Files): Add it.
99784 2006-11-20  Bruno Haible  <bruno@clisp.org>
99786         * Makefile: New file.
99788 2006-11-20  Jim Meyering  <jim@meyering.net>
99790         The beginnings of syntax-related checks for gnulib.
99791         * lib/Makefile: New file.
99792         * lib/t-idcache: New script.  Ensure that the two halves of
99793         idcache.c stay in sync.
99795         * lib/idcache.c: Adjust comments in user- and group- portions to
99796         be more accurate, and to be consistent with one another.
99798 2006-11-20  Jim Meyering  <jim@meyering.net>
99800         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
99801         continue using the flexible array member (thus, this module performs
99802         half as many malloc calls), with the addition that...
99803         (getgroup, getuser): Consistently record a non-match via an empty
99804         "name" string, and map an empty string match to a NULL return value.
99805         * modules/idcache (Depends-on): Re-add flexmember.
99807         * lib/idcache.c (getuser): Remove all uses of the register keyword.
99808         (getuidbyname, getgroup, getgidbyname): Likewise.
99810         Use cleaner syntax: NULL rather than 0.
99811         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
99813 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
99815         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
99816         It mishandled the case where the group was missing.
99817         Problem reported by Greg Schafer.
99818         * modules/idcache: Likewise.
99820 2006-11-18  Jim Meyering  <jim@meyering.net>
99822         * check-module (%exempt_header): Add exception for some
99823         conditionally-included headers.
99825         * modules/i-ring (Depends-on): Add verify.
99826         (License): Change to LGPL.
99828 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
99830         * modules/getaddrinfo (Depends-on): Remove inttostr; add snprintf.
99831         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
99832         and inttostr.h.  Use snprintf rather than uinttostr, so that
99833         LGPLed code doesn't depend on GPLed.
99835 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
99837         * modules/inline (License): Change from GPL to LGPL.
99839 2006-11-17  Jim Meyering  <jim@meyering.net>
99841         * modules/d-type (License): Switch to LGPL.
99843 2006-11-15  Bruno Haible  <bruno@clisp.org>
99845         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
99847 2006-11-15  Eric Blake  <ebb9@byu.net>
99849         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
99850         the module dependency.
99852 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
99853             Bruno Haible  <bruno@clisp.org>
99855         * gnulib-tool (func_create_testdir): Add license consistency check.
99857 2006-11-15  Eric Blake  <ebb9@byu.net>
99859         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
99860         random "(cached)" in configure output.
99862 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99864         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
99865         test for conforming inttypes.h is both announced and cached.
99867         * MODULES.html.sh (seen_modules, seen_files): New variables.
99868         (func_module): Rewrite to use a few less gnulib-tool and sed
99869         invocations.  Avoid a couple of quadratic algorithms for ...
99870         (missed_modules, missed_files): ... these, with ...
99871         (func_append, func_tmpdir): ... these new functions, from
99872         gnulib-tool.  Analogously, install traps for cleanup.
99874         * tests/test-gc.c (main): Remove unused variables.
99875         * tests/test-read-file.c: Include stdlib.h, for 'free'.
99877 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
99879         * modules/inttostr (License): Change to LGPL.
99881 2006-11-14  Eric Blake  <ebb9@byu.net>
99883         * modules/tempname (License): Change to LGPL.
99885 2006-11-14  Eric Blake  <ebb9@byu.net>
99887         * doc/functions.texi (Function Portability): *printf functions on
99888         Cygwin now understand all POSIX size specifiers.
99890 2006-11-14  Bruno Haible  <bruno@clisp.org>
99892         * modules/c-ctype (License): Change to LGPL.
99894 2006-11-12  Bruno Haible  <bruno@clisp.org>
99896         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
99897         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
99898         for GNOME libraries, for which the include files are installed in
99899         subdirectories of $prefix/include.
99901 2006-11-12  Bruno Haible  <bruno@clisp.org>
99903         * m4/lib-link.m4: Require at least autoconf-2.54.
99904         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
99905         name to underscores for the --with option.
99907 2006-11-13  Bruno Haible  <bruno@clisp.org>
99909         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
99910         the tests directory.
99911         Reported by Ralf Wildenhues.
99913 2006-11-13  Bruno Haible  <bruno@clisp.org>
99915         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
99916         (func_emit_initmacro_end): Undo the override here.
99917         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
99918         Works around the famous automake error in coreutils.
99920 2006-11-13  Eric Blake  <ebb9@byu.net>
99922         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
99923         element, not its node.
99925 2006-11-12  Bruno Haible  <bruno@clisp.org>
99927         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
99928         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
99930 2006-11-12  Bruno Haible  <bruno@clisp.org>
99932         * gnulib-tool: New option --local-symlink.
99933         (func_usage): Document it.
99934         (lsymbolic): New variable.
99935         (func_import, func_create_testdir): If --symlink was not specified,
99936         test whether --local-symlink was specified and the file comes from
99937         the local_gnulib_dir.
99939 2006-11-12  Bruno Haible  <bruno@clisp.org>
99941         * gnulib-tool (func_ln): New function.
99942         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
99944 2006-11-12  Bruno Haible  <bruno@clisp.org>
99946         Finish support for source files in subdirectories.
99947         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
99948         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
99949         AUTOMAKE_OPTIONS.
99950         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
99952 2006-11-12  Bruno Haible  <bruno@clisp.org>
99954         * gnulib-tool (func_get_automake_snippet): Synthesize also an
99955         EXTRA_lib_SOURCES augmentation.
99956         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
99958 2006-11-12  Jim Meyering  <jim@meyering.net>
99960         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
99961         file descriptors.  This also averts a failure on systems with
99962         native openat support when a traversed directory lacks "x" access.
99963         * lib/fts_.h: Include "i-ring.h"
99964         (struct FTS) [fts_fd_ring]: New member.
99965         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
99966         (FCHDIR): Add parentheses.
99967         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
99968         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
99969         When descending, rather than simply closing the previous
99970         fts_cwd_fd value, push that file descriptor onto the ring.
99971         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
99972         (fts_open): Initialize the new fd_ring member.
99973         (fts_close): Clear the ring.
99974         (fts_safe_changedir): When possible, use our new fd_ring to skip
99975         the diropen and fstat and dev/ino comparison that would normally
99976         accompany a virtual `chdir ("..")'.
99978         * modules/fts (Depends-on): Add i-ring.
99979         * modules/i-ring: New module.
99980         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
99981         * m4/i-ring.m4: New file.
99983 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99985         * gnulib-tool (func_create_testdir): Fix replacement of
99986         `build-aux' in configure.ac.  Run autotools in gltests
99987         subdirectory.
99988         (func_create_testdir, func_create_megatestdir, test): There is
99989         no need for '--force' in most autotool invocations in a new
99990         tree.  Actually fail the whole test if any of the tools, or the
99991         configure or make stages fail.
99993         Sync from Automake.
99994         * build-aux/gnupload: Revert last change.  Add pointer to upload
99995         instructions of the GNU Maintenance Instructions.
99996         Suggestion by Karl Berry.
99998 2006-11-10  Jim Meyering  <jim@meyering.net>
100000         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
100002 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
100004         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
100005         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
100006         (bind_textdomain_codeset) [! ENABLE_NLS]:
100007         Evaluate all the arguments.  That way, callers get compatible behavior
100008         if the arguments have side effects.  Also, it avoids some GCC
100009         diagnostics in some cases; Joel E. Denny reported problems when Bison
100010         was configured with --enable-gcc-warnigs.
100012 2006-11-10  Jim Meyering  <jim@meyering.net>
100014         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
100015         relevant options in CFLAGS (like -O, -fno-inline) are taken into
100016         account.
100018 2006-11-10  Jim Meyering  <jim@meyering.net>
100020         * modules/inline: New file/module.
100021         * modules/xalloc (Files): Remove m4/inline.m4.
100022         (Depends-on): Add inline, instead.
100023         * modules/oset: Likewise.
100024         * modules/list: Likewise.
100026 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
100028         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
100029         Problem reported by Matthew Woehlke.
100031 2006-11-09  Bruno Haible  <bruno@clisp.org>
100033         * lib/tempname.c (gen_tempname): Remove variant that invokes
100034         __gen_tempname.
100035         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
100036         __gen_tempname.
100038 2006-11-08  Bruno Haible  <bruno@clisp.org>
100040         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
100041         to 'yes' instead of 'cross-compiling'.
100043 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
100045         * lib/quotearg.h (quotearg_free): New decl.
100046         * lib/quotearg.c (quotearg_free): New function.
100047         (slot0, nslots, slotvec0, slotvec):
100048         Now file-scope so that quotearg_free can get at them.
100050 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100052         Sync from Automake.
100053         * build-aux/gnupload: Add missing 'gnu' to example URL.
100054         Report by Karl Berry.
100056 2006-11-08  Bruno Haible  <bruno@clisp.org>
100058         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
100059         Suggested by Paul Eggert.
100061 2006-11-08  Jim Meyering  <jim@meyering.net>
100063         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
100064         It's already included if !_LIBC.
100065         (fts_safe_changedir): Add a comment.
100067 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
100069         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
100070         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
100071         Matthew Woehlke.
100073         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
100074         definitions up, to avoid colliding with change below.
100075         (static_inline) [HAVE_INLINE]: New macro.
100076         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
100077         Provide extern decls when !HAVE_INLINE.  Do not define unless
100078         static_inline is defined, either by us or by xmalloc.c.  Use
100079         static_inline rather than static inline.
100080         (XCALLOC): Optimize sizeof(T) = 1 case.
100081         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
100083 2006-11-07  Bruno Haible  <bruno@clisp.org>
100085         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
100086         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
100087         AC_C_INLINE.
100088         * modules/xalloc (Files): Add m4/inline.m4.
100090 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100092         * README: Fix typo.
100093         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
100094         (Miscellanous Notes): ...from this.
100096 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
100098         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
100099         Mention that offsetof should be used instead of sizeof.
100100         From Bruno Haible.
100102 2006-11-07  Bruno Haible  <bruno@clisp.org>
100104         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
100106 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
100108         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
100109         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
100110         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
100111         (gl_tree_add_before, gl_tree_add_after):
100112         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
100113         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
100114         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
100115         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
100116         (gl_linked_add_after, gl_linked_add_at): Likewise.
100117         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
100118         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
100119         (gl_tree_add_before, gl_tree_add_after): Likewise.
100120         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
100121         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
100122         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
100124 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100126         * lib/gl_oset.h: Use C comment style, not C++ comment style.
100128 2006-11-06  Bruno Haible  <bruno@clisp.org>
100130         * m4/inline.m4: New file.
100131         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
100132         * modules/list (Files): Add m4/inline.m4.
100133         * modules/oset (Files): Likewise.
100135 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
100137         * lib/idcache.c: Include <stddef.h>, for offsetof.
100138         (struct userid.name): Change from char * to a flexible array member.
100139         All uses changed.
100140         * modules/idcache (Depends-on): Add flexmember.
100142         * MODULES.html.sh (Core language properties): New module flexmember.
100143         * modules/flexmember, m4/flexmember.m4: New files.
100145         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
100146         inline functions that are identical with the old xnmalloc_inline,
100147         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
100148         that we can avoid some unnecessary integer multiplications and
100149         divisions in the common case where the element size is known at
100150         compile time.
100151         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
100152         needed.
100153         (xnboundedmalloc): Remove.
100154         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
100155         arguments, for consistency with rest of this header.
100156         (xcharalloc): Rewrite using XNMALLOC.
100157         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
100158         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
100159         versions have been moved to lib/xalloc.h and renamed to be the
100160         non-*_inline versions.
100161         (xmalloc, xrealloc): Implement without reference to the xnmalloc
100162         and xnrealloc functions, since those functions are now inline and
100163         now call us.
100164         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
100165         renaming described above.
100166         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
100167         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
100168         captures the dependency in AC_C_INLINE.
100170         New module canonicalize-lgpl, proposed by Charles Wilson in
100171         <http://lists.gnu.org/r/bug-gnulib/2006-11/msg00020.html>
100172         with a few small changes afterwards.
100173         * MODULES.html.sh (File system functions): New module
100174         canonicalize-lgpl.
100175         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
100176         and canonicalize_file_name.
100177         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
100178         * modules/canonicalize-lgpl: New files.
100180 2006-11-05  Bruno Haible  <bruno@clisp.org>
100182         * gnulib-tool (func_import, func_create_testdir): Create directories
100183         also for files in subdirectories of lib/.
100185 2006-11-05  Bruno Haible  <bruno@clisp.org>
100187         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
100188         ANSI C compliant.
100190 2006-11-03  Bruno Haible  <bruno@clisp.org>
100192         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
100193         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
100194         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
100195         (xnboundedmalloc): New inline function.
100196         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
100197         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
100198         xmalloc.
100199         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
100200         xmalloc.
100201         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
100202         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
100203         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
100204         xmalloc.
100205         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
100206         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
100207         xmalloc.
100208         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
100209         gl_tree_add_after): Use XMALLOC instead of xmalloc.
100210         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
100211         xmalloc.
100212         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
100213         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
100214         gl_tree_add_after): Use XMALLOC instead of xmalloc.
100215         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
100216         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
100217         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
100218         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
100220 2006-11-03  Bruno Haible  <bruno@clisp.org>
100222         * lib/c-ctype.h [C++]: Define functions without name mangling.
100223         * lib/fwriteerror.h [C++]: Likewise.
100224         * lib/gcd.h [C++]: Likewise.
100225         * lib/linebreak.h [C++]: Likewise.
100227 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
100229         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
100230         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
100231         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
100232         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
100233         Check for functions and headers just once.
100234         Check for declaration of canonicalize_file_name.
100235         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
100237 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
100239         * gnulib-tool (func_import): Fix typo in actioncmd.
100241 2006-11-02  Bruno Haible  <bruno@clisp.org>
100243         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
100244         newline sequence in the Makefile.am snippet as a space, like "make"
100245         does.
100246         Reported by Roger Persson <perrog@gmail.com>.
100248 2006-11-01  Bruno Haible  <bruno@clisp.org>
100250         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
100251         already declared in <string.h>.
100252         * lib/strcase.h (strncasecmp): Don't declare it if yes.
100254 2006-11-01  Bruno Haible  <bruno@clisp.org>
100256         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
100257         * lib/strcase.h: Include <string.h>.
100258         (strcasecmp): Define to rpl_strcasecmp here.
100260 2006-11-01  Bruno Haible  <bruno@clisp.org>
100262         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
100264 2006-11-01  Eric Blake  <ebb9@byu.net>
100266         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
100268         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
100270 2006-10-29  Bruno Haible  <bruno@clisp.org>
100272         Make it compile in C++ mode.
100273         * lib/full-write.c (full_rw): Add a cast.
100275 2006-11-01  Bruno Haible  <bruno@clisp.org>
100277         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
100278         be POSIX compliant.
100279         Reported by Roger Persson <perrog@gmail.com>.
100281 2006-11-01  Eric Blake  <ebb9@byu.net>
100283         * lib/getopt_.h: Fix comments.
100285 2006-10-31  Eric Blake  <ebb9@byu.net>
100287         * modules/tmpdir (Depends-on): Add sys_stat.
100288         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
100289         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
100290         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
100291         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
100292         tempname.
100294 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
100296         Avoid some C++ diagnostics reported by Bruno Haible.
100297         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
100298         xmalloc.
100299         (quotearg_alloc): Use xcharalloc rather than xmalloc.
100300         (struct slotvec): Move to top level.
100301         (quotearg_n_options): Rewrite to avoid xmalloc.
100302         * lib/xalloc.h (xcharalloc): New function.
100303         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
100304         [defined __cplusplus]: Add function template that provides result
100305         type propagation.  This part of the change is from Bruno Haible.
100307 2006-10-29  Bruno Haible  <bruno@clisp.org>
100309         Make it compile in C++ mode.
100310         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
100311         * lib/strnlen1.c (strnlen1): Cast memchr result.
100312         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
100313         * lib/clean-temp.c (string_equals, string_hash): Add casts.
100314         (create_temp_dir): Rename local variable 'template'.
100315         (compile_csharp_using_sscli): Add cast.
100316         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
100317         * lib/findprog.c (find_in_path): Likewise.
100318         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
100319         * lib/wait-process.c (register_slave_subprocess): Likewise.
100321 2006-10-22  Bruno Haible  <bruno@clisp.org>
100323         * modules/tsearch: New file.
100324         * lib/tsearch.h: New file.
100325         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
100326         * m4/tsearch.m4: New file.
100327         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
100329 2006-10-29  Eric Blake  <ebb9@byu.net>
100331         * lib/arcfour.c: Assume config.h.
100332         * lib/arctwo.c: Likewise.
100333         * lib/base64.c: Likewise.
100334         * lib/check-version.c: Likewise.
100335         * lib/crc.c: Likewise.
100336         * lib/des.c: Likewise.
100337         * lib/gc-gnulib.c: Likewise.
100338         * lib/gc-libgcrypt.c: Likewise.
100339         * lib/gc-pbkdf2-sha1.c: Likewise.
100340         * lib/getaddrinfo.c: Likewise.
100341         * lib/getdelim.c: Likewise.
100342         * lib/getline.c: Likewise.
100343         * lib/hmac-md5.c: Likewise.
100344         * lib/hmac-sha1.c: Likewise.
100345         * lib/iconvme.c: Likewise.
100346         * lib/md2.c: Likewise.
100347         * lib/md4.c: Likewise.
100348         * lib/memxor.c: Likewise.
100349         * lib/read-file.c: Likewise.
100350         * lib/readline.c: Likewise.
100351         * lib/rijndael-alg-fst.c: Likewise.
100352         * lib/rijndael-api-fst.c: Likewise.
100353         * lib/xgetdomainname.c: Likewise.
100355 2006-10-28  Eric Blake  <ebb9@byu.net>
100357         * lib/xstrndup.c: Assume config.h.
100359 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
100361         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
100362         stat-macros.h is now for our own macros, whereas stat_h is for
100363         macros in the <sys/stat.h> name space.
100364         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
100365         (STAT_MACROS_H): Remove.
100366         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
100367         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
100368         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
100369         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
100370         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
100371         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
100372         Move these macros to ...
100373         * lib/stat_.h: here.  Don't include stat-macros.h.
100374         * lib/canonicalize.c: Don't include stat-macros.h.
100375         * lib/chown.c: Likewise.
100376         * lib/euidaccess.c: Likewise.
100377         * lib/file-type.c: Likewise.
100378         * lib/filemode.c: Likewise.
100379         * lib/glob.c: Likewise.
100380         * lib/isapipe.c: Likewise.
100381         * lib/lchown.c: Likewise.
100382         * lib/lstat.c: Likewise.
100383         * lib/mkdir-p.c: Likewise.
100384         * lib/rmdir.c: Likewise.
100385         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
100386         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
100387         unless mkdir isn't declared, to speed up 'configure'.
100388         Always create sys/stat.h, since it's unlikely any real sys/stat.h
100389         would define all the S_* symbols.
100390         * modules/canonicalize (Depends-on):
100391         Depend on sys_stat, not stat-macros.
100392         * modules/chown: Likewise.
100393         * modules/euidaccess: Likewise.
100394         * modules/filemode: Likewise.
100395         * modules/file-type: Likewise.
100396         * modules/glob: Likewise.
100397         * modules/isapipe: Likewise.
100398         * modules/lchown: Likewise.
100399         * modules/lstat: Likewise.
100400         * modules/mkancesdirs: Likewise.
100401         * modules/rmdir: Likewise.
100402         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
100403         * modules/modechange: Likewise.
100404         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
100405         (configure.ac): Remove gl_STAT_MACROS.
100406         * modules/sys_stat (Depends-on): Remove stat-macros.
100408 2006-10-27  Bruno Haible  <bruno@clisp.org>
100410         * m4/signed.m4: Remove file.
100411         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
100412         invocation.
100413         * modules/vasnprintf (Files): Remove m4/signed.m4.
100415 2006-10-27  Bruno Haible  <bruno@clisp.org>
100417         Update to GNU gettext 0.16.
100418         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
100419         m4/inttypes-h.m4, m4/signed.m4.
100420         * m4/gettext.m4: Update to GNU gettext 0.16.
100421         * m4/intl.m4: New file, from GNU gettext.
100422         * m4/intldir.m4: New file, from GNU gettext.
100423         * config/srclist.txt: Update
100425 2006-10-27  Eric Blake  <ebb9@byu.net>
100427         * MODULES.html.sh: Document tempname.
100428         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
100429         dependencies.
100430         (Files): Move lib/tempname.c...
100431         * modules/tempname: ...to this new module.
100432         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
100433         (gl_PREREQ_TEMPNAME): Move...
100434         * m4/tempname.m4: ...to this new file.
100435         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
100436         * modules/sys_stat (Depends-on): Add stat-macros.
100437         * lib/stat_.h (includes): Pick up stat macros.
100438         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
100439         if stat macros are broken.
100440         * lib/tempname.c (includes): No need to include "stat-macros.h".
100441         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
100442         (direxists, __path_search) [!_LIBC]: Don't compile these in
100443         gnulib; the tmpdir module covers that.
100444         * lib/tempname.h: New file.
100446 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
100448         * COPYING: Explain how gnulib-tool converts licence headers.
100449         Almost all wording by Eric Blake.
100451 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
100453         * lib/mbchar.h (is_basic_table): Make read-only.
100454         * lib/mbchar.c (is_basic_table): Likewise.
100455         Reported by John Darrington.
100457 2006-10-25  Bruno Haible  <bruno@clisp.org>
100459         * lib/progname.h (set_program_name): Undefine before defining.
100461 2006-10-25  Bruno Haible  <bruno@clisp.org>
100463         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
100464         false for non-gcc C++ compilers.
100465         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
100467 2006-10-24  Bruno Haible  <bruno@clisp.org>
100469         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
100470         iconv implementations like Irix iconv.
100472 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
100474         * modules/vararrays: New file.
100475         * m4/vararrays.m4: New file, taken from diffutils.
100476         * MODULES.html.sh: New module vararrays.
100478 2006-10-24  Karl Berry  <karl@gnu.org>
100480         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
100481         Don't call GNU Unix.
100483 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100485         * users.txt: Add Libtool.
100487         Sync from Libtool:
100489         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
100491         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
100492         to gnulib's policy of including config.h unconditionally.
100494 2006-10-24  Bruno Haible  <bruno@clisp.org>
100496         * modules/wcwidth (Files): Add m4/wint_t.m4.
100497         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
100498         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
100500 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
100502         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
100503         to pacify GCC with some -W flags enabled.  Problem reported by
100504         Bruno Haible.
100506 2006-10-24  Jim Meyering  <jim@meyering.net>
100508         * MODULES.html.sh: Remove uinttostr.  It's not a module.
100509         Reported by Karl Berry.
100511 2006-10-23  Bruno Haible  <bruno@clisp.org>
100513         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
100515 2006-10-24  Bruno Haible  <bruno@clisp.org>
100517         * lib/gl_list.h: Use C comment style, not C++ comment style.
100519 2006-10-23  Eric Blake  <ebb9@byu.net>
100521         * lib/getaddrinfo.c (includes): Add missing include.
100523 2006-10-23  Bruno Haible  <bruno@clisp.org>
100524             Paul Eggert  <eggert@cs.ucla.edu>
100526         Ability to rename obstack_free.
100527         * lib/obstack.h (__obstack_free): New macro. Declare instead of
100528         obstack_free.
100529         (obstack_free): Invoke the __obstack_free macro.
100530         * lib/obstack.c (obstack_free): Use __obstack_free macro.
100532 2006-10-23  Bruno Haible  <bruno@clisp.org>
100533             Paul Eggert  <eggert@cs.ucla.edu>
100535         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
100536         __argc, __argv from the declaration. (They are defined as macros on
100537         mingw.)
100539 2006-10-22  Bruno Haible  <bruno@clisp.org>
100541         * doc/gnulib-intro.texi: New file.
100542         * doc/gnulib.texi: Include it.
100544 2006-10-21  Bruno Haible  <bruno@clisp.org>
100546         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
100547         "Introduction", "Miscellanous Notes", "Particular Modules".
100549 2006-10-21  Bruno Haible  <bruno@clisp.org>
100551         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
100552         Change mostlyclean-local rule to avoid sh syntax error from bash
100553         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
100555 2006-10-23  Jim Meyering  <jim@meyering.net>
100557         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
100558         in place of snprintf.
100560         * modules/inttostr (Files): Add lib/uinttostr.c.
100561         * lib/uinttostr.c (inttostr): New file/function.
100562         * lib/inttostr.h (uinttostr): Declare.
100563         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
100564         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
100565         Add uinttostr.
100566         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
100568 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
100570         * lib/canonicalize.c (ELOOP): Define if not already defined.
100571         Problem reported by Bruno Haible in
100572         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00282.html>.
100574 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
100576         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
100577         Problem reported by Perry Smith and Ville Laurikari.
100579         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
100580         uses.
100582 2006-10-19  Bruno Haible  <bruno@clisp.org>
100584         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
100585         for mingw.
100587 2006-10-19  Bruno Haible  <bruno@clisp.org>
100589         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
100590         Needed for mingw.
100592 2006-10-19  Bruno Haible  <bruno@clisp.org>
100594         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
100596 2006-10-19  Bruno Haible  <bruno@clisp.org>
100598         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
100599         it.
100601 2006-10-19  Bruno Haible  <bruno@clisp.org>
100603         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
100604         invocation.
100606 2006-10-19  Bruno Haible  <bruno@clisp.org>
100608         * gnulib-tool (func_create_testdir): Don't include ftruncate and
100609         mountlist by default.
100611 2006-10-16  Bruno Haible  <bruno@clisp.org>
100613         * lib/c-strstr.c: Include c-strstr.h.
100615 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
100617         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
100618         in a slash.
100620 2006-10-18  Bruno Haible  <bruno@clisp.org>
100622         * lib/lock.h [C++]: Wrap definitions in extern "C".
100624 2006-10-18  Bruno Haible  <bruno@clisp.org>
100626         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
100627         gl_LIBOBJS list.
100629 2006-10-18  Bruno Haible  <bruno@clisp.org>
100631         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
100633 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
100635         * lib/xstrtol.h: Include gettext.h.
100636         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
100637         Problem reported by Eric Blake.
100638         * modules/xstrtol (Depends-on): Add gettext-h.
100640 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
100642         * lib/strftime.c (advance): New macro.
100643         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
100644         incomplete type, so you can't add 0 to it.  Problem and patch
100645         reported by Eelco Dolstra for dietlibc.
100647 2006-10-18  Jim Meyering  <jim@meyering.net>
100649         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
100650         type for a local, and rename it: s/up/user_proc/.
100652 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
100654         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
100655         READ_UTMP_USER_PROCESS.
100656         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
100658 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
100660         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
100661         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
100663 2006-10-17  Eric Blake  <ebb9@byu.net>
100665         * lib/sigprocmask.c (sigprocmask): Fix typo.
100667         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
100669         * modules/clean-temp (Makefile.am): Don't add to make output...
100670         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
100671         config.h.
100673 2006-10-17  Bruno Haible  <bruno@clisp.org>
100675         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
100676         differently if DEFAULT_TEXT_DOMAIN is set.
100678 2006-10-16  Bruno Haible  <bruno@clisp.org>
100680         * lib/clean-temp.c: Include fwriteerror.h.
100682 2006-10-16  Bruno Haible  <bruno@clisp.org>
100684         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
100686 2006-10-16  Bruno Haible  <bruno@clisp.org>
100688         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
100689         * lib/sigprocmask.h: Include <sys/types.h>.
100690         (sigset_t): Use the system's definition if present.
100692 2006-10-17  Eric Blake  <ebb9@byu.net>
100694         * lib/xvasprintf.c (includes): Assume config.h.
100695         * lib/xasprintf.c (includes): Likewise.
100697 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
100699         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
100700         at least as wide as intmax_t.
100702 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
100704         (Imported from Automake.)
100705         * build-aux/gnupload: Update to version 1.1 of directive file.
100707 2006-10-16  Eric Blake  <ebb9@byu.net>
100709         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
100710         match Automake 1.10a.
100712 2006-10-14  Bruno Haible  <bruno@clisp.org>
100714         * modules/sigprocmask: New file.
100715         * lib/sigprocmask.h: New file.
100716         * lib/sigprocmask.c: New file.
100717         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
100718         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
100719         request sigprocmask.o.
100720         (gl_PREREQ_SIGPROCMASK): New macro.
100721         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
100722         (Depends-on): Add sigprocmask.
100723         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
100724         gt_SIGNALBLOCKING. Test for 'raise' only once.
100725         * lib/fatal-signal.c: Include sigprocmask.h.
100726         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
100727         unblock_fatal_signals): Define always.
100728         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
100729         sigprocmask.
100731 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
100733         Sync from Automake.
100734         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
100735         which incorrectly sets the mode of an existing destination
100736         directory.  In some cases the unpatched install-sh could do the
100737         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
100738         system.  We hope this is rare in practice, but it's clearly worth
100739         fixing.  Problem reported by Alex Unleashed in
100740         <http://lists.gnu.org/r/bug-autoconf/2006-10/msg00012.html>.
100741         Also, don't bother to check for -m bugs unless we're using -m;
100742         suggested by Stepan Kasal.
100744 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100746         Sync from Automake.
100747         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
100748         `-c' flag, so they appear at the same position as in %FASTDEP%
100749         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
100750         which ignores unknown options only after the first non-option.
100751         Bug report against M4 by Nelson H. F. Beebe.
100753 2006-10-13  Jim Meyering  <jim@meyering.net>
100755         Fix a bug in yesterday's change.
100756         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
100757         p->fts_statp->st_dev would be used uninitialized.
100758         Ensures that we always call fts_stat on the very first entry.
100759         Miklos Szeredi reported that find -xdev stopped working.
100761 2006-10-12  Bruno Haible  <bruno@clisp.org>
100763         * gnulib-tool (func_get_automake_snippet): Append an automatically
100764         computed EXTRA_DIST augmentation.
100765         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
100766         * modules/alloca-opt (Makefile.am): Likewise.
100767         * modules/allocsa (Makefile.am): Likewise.
100768         * modules/arcfour (Makefile.am): Likewise.
100769         * modules/arctwo (Makefile.am): Likewise.
100770         * modules/argmatch (Makefile.am): Likewise.
100771         * modules/argz (Makefile.am): Likewise.
100772         * modules/atexit (Makefile.am): Likewise.
100773         * modules/backupfile (Makefile.am): Likewise.
100774         * modules/byteswap (Makefile.am): Likewise.
100775         * modules/c-strtod (Makefile.am): Likewise.
100776         * modules/c-strtold (Makefile.am): Likewise.
100777         * modules/calloc (Makefile.am): Likewise.
100778         * modules/canon-host (Makefile.am): Likewise.
100779         * modules/canonicalize (Makefile.am): Likewise.
100780         * modules/chdir-long (Makefile.am): Likewise.
100781         * modules/chdir-safer (Makefile.am): Likewise.
100782         * modules/check-version (Makefile.am): Likewise.
100783         * modules/chown (Makefile.am): Likewise.
100784         * modules/cloexec (Makefile.am): Likewise.
100785         * modules/close-stream (Makefile.am): Likewise.
100786         * modules/closeout (Makefile.am): Likewise.
100787         * modules/crc (Makefile.am): Likewise.
100788         * modules/csharpexec (Makefile.am): Likewise.
100789         * modules/cycle-check (Makefile.am): Likewise.
100790         * modules/des (Makefile.am): Likewise.
100791         * modules/dev-ino (Makefile.am): Likewise.
100792         * modules/dirfd (Makefile.am): Likewise.
100793         * modules/dirname (Makefile.am): Likewise.
100794         * modules/dup2 (Makefile.am): Likewise.
100795         * modules/eealloc (Makefile.am): Likewise.
100796         * modules/error (Makefile.am): Likewise.
100797         * modules/euidaccess (Makefile.am): Likewise.
100798         * modules/exclude (Makefile.am): Likewise.
100799         * modules/exitfail (Makefile.am): Likewise.
100800         * modules/fcntl-safer (Makefile.am): Likewise.
100801         * modules/fcntl (Makefile.am): Likewise.
100802         * modules/file-type (Makefile.am): Likewise.
100803         * modules/fileblocks (Makefile.am): Likewise.
100804         * modules/filemode (Makefile.am): Likewise.
100805         * modules/filenamecat (Makefile.am): Likewise.
100806         * modules/fnmatch (Makefile.am): Likewise.
100807         * modules/fopen-safer (Makefile.am): Likewise.
100808         * modules/fpending (Makefile.am): Likewise.
100809         * modules/fprintftime (Makefile.am): Likewise.
100810         * modules/free (Makefile.am): Likewise.
100811         * modules/fsusage (Makefile.am): Likewise.
100812         * modules/ftruncate (Makefile.am): Likewise.
100813         * modules/fts (Makefile.am): Likewise.
100814         * modules/gc-arcfour (Makefile.am): Likewise.
100815         * modules/gc-des (Makefile.am): Likewise.
100816         * modules/gc-hmac-md5 (Makefile.am): Likewise.
100817         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
100818         * modules/gc-md4 (Makefile.am): Likewise.
100819         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
100820         * modules/gc-sha1 (Makefile.am): Likewise.
100821         * modules/gc (Makefile.am): Likewise.
100822         * modules/getaddrinfo (Makefile.am): Likewise.
100823         * modules/getcwd (Makefile.am): Likewise.
100824         * modules/getdelim (Makefile.am): Likewise.
100825         * modules/getdomainname (Makefile.am): Likewise.
100826         * modules/getgroups (Makefile.am): Likewise.
100827         * modules/gethostname (Makefile.am): Likewise.
100828         * modules/gethrxtime (Makefile.am): Likewise.
100829         * modules/getline (Makefile.am): Likewise.
100830         * modules/getloadavg (Makefile.am): Likewise.
100831         * modules/getlogin_r (Makefile.am): Likewise.
100832         * modules/getndelim2 (Makefile.am): Likewise.
100833         * modules/getopt (Makefile.am): Likewise.
100834         * modules/getpagesize (Makefile.am): Likewise.
100835         * modules/getpass-gnu (Makefile.am): Likewise.
100836         * modules/getpass (Makefile.am): Likewise.
100837         * modules/getsubopt (Makefile.am): Likewise.
100838         * modules/gettime (Makefile.am): Likewise.
100839         * modules/gettimeofday (Makefile.am): Likewise.
100840         * modules/getugroups (Makefile.am): Likewise.
100841         * modules/getusershell (Makefile.am): Likewise.
100842         * modules/glob (Makefile.am): Likewise.
100843         * modules/group-member (Makefile.am): Likewise.
100844         * modules/hard-locale (Makefile.am): Likewise.
100845         * modules/hash (Makefile.am): Likewise.
100846         * modules/hmac-md5 (Makefile.am): Likewise.
100847         * modules/hmac-sha1 (Makefile.am): Likewise.
100848         * modules/human (Makefile.am): Likewise.
100849         * modules/idcache (Makefile.am): Likewise.
100850         * modules/imaxabs (Makefile.am): Likewise.
100851         * modules/imaxdiv (Makefile.am): Likewise.
100852         * modules/inet_ntop (Makefile.am): Likewise.
100853         * modules/inet_pton (Makefile.am): Likewise.
100854         * modules/intprops (Makefile.am): Likewise.
100855         * modules/inttostr (Makefile.am): Likewise.
100856         * modules/inttypes (Makefile.am): Likewise.
100857         * modules/isapipe (Makefile.am): Likewise.
100858         * modules/javaversion (Makefile.am): Likewise.
100859         * modules/lchmod (Makefile.am): Likewise.
100860         * modules/lchown (Makefile.am): Likewise.
100861         * modules/localcharset (Makefile.am): Likewise.
100862         * modules/long-options (Makefile.am): Likewise.
100863         * modules/lstat (Makefile.am): Likewise.
100864         * modules/malloc (Makefile.am): Likewise.
100865         * modules/mathl (Makefile.am): Likewise.
100866         * modules/mbchar (Makefile.am): Likewise.
100867         * modules/md2 (Makefile.am): Likewise.
100868         * modules/md4 (Makefile.am): Likewise.
100869         * modules/md5 (Makefile.am): Likewise.
100870         * modules/memcasecmp (Makefile.am): Likewise.
100871         * modules/memchr (Makefile.am): Likewise.
100872         * modules/memcmp (Makefile.am): Likewise.
100873         * modules/memcoll (Makefile.am): Likewise.
100874         * modules/memcpy (Makefile.am): Likewise.
100875         * modules/memmem (Makefile.am): Likewise.
100876         * modules/memmove (Makefile.am): Likewise.
100877         * modules/mempcpy (Makefile.am): Likewise.
100878         * modules/memrchr (Makefile.am): Likewise.
100879         * modules/memset (Makefile.am): Likewise.
100880         * modules/memxor (Makefile.am): Likewise.
100881         * modules/mkancesdirs (Makefile.am): Likewise.
100882         * modules/mkdir-p (Makefile.am): Likewise.
100883         * modules/mkdir (Makefile.am): Likewise.
100884         * modules/mkdtemp (Makefile.am): Likewise.
100885         * modules/mkstemp (Makefile.am): Likewise.
100886         * modules/mktime (Makefile.am): Likewise.
100887         * modules/modechange (Makefile.am): Likewise.
100888         * modules/mountlist (Makefile.am): Likewise.
100889         * modules/nanosleep (Makefile.am): Likewise.
100890         * modules/obstack (Makefile.am): Likewise.
100891         * modules/openat (Makefile.am): Likewise.
100892         * modules/pagealign_alloc (Makefile.am): Likewise.
100893         * modules/pathmax (Makefile.am): Likewise.
100894         * modules/physmem (Makefile.am): Likewise.
100895         * modules/poll (Makefile.am): Likewise.
100896         * modules/posixtm (Makefile.am): Likewise.
100897         * modules/posixver (Makefile.am): Likewise.
100898         * modules/putenv (Makefile.am): Likewise.
100899         * modules/quote (Makefile.am): Likewise.
100900         * modules/quotearg (Makefile.am): Likewise.
100901         * modules/raise (Makefile.am): Likewise.
100902         * modules/read-file (Makefile.am): Likewise.
100903         * modules/readline (Makefile.am): Likewise.
100904         * modules/readlink (Makefile.am): Likewise.
100905         * modules/readtokens (Makefile.am): Likewise.
100906         * modules/readutmp (Makefile.am): Likewise.
100907         * modules/realloc (Makefile.am): Likewise.
100908         * modules/regex (Makefile.am): Likewise.
100909         * modules/rename-dest-slash (Makefile.am): Likewise.
100910         * modules/rename (Makefile.am): Likewise.
100911         * modules/rijndael (Makefile.am): Likewise.
100912         * modules/rmdir (Makefile.am): Likewise.
100913         * modules/rpmatch (Makefile.am): Likewise.
100914         * modules/safe-read (Makefile.am): Likewise.
100915         * modules/safe-write (Makefile.am): Likewise.
100916         * modules/same-inode (Makefile.am): Likewise.
100917         * modules/same (Makefile.am): Likewise.
100918         * modules/save-cwd (Makefile.am): Likewise.
100919         * modules/savedir (Makefile.am): Likewise.
100920         * modules/setenv (Makefile.am): Likewise.
100921         * modules/settime (Makefile.am): Likewise.
100922         * modules/sha1 (Makefile.am): Likewise.
100923         * modules/sig2str (Makefile.am): Likewise.
100924         * modules/snprintf (Makefile.am): Likewise.
100925         * modules/stat-macros (Makefile.am): Likewise.
100926         * modules/stat-time (Makefile.am): Likewise.
100927         * modules/stdbool (Makefile.am): Likewise.
100928         * modules/stdint (Makefile.am): Likewise.
100929         * modules/stdlib-safer (Makefile.am): Likewise.
100930         * modules/stpcpy (Makefile.am): Likewise.
100931         * modules/stpncpy (Makefile.am): Likewise.
100932         * modules/strcase (Makefile.am): Likewise.
100933         * modules/strcasestr (Makefile.am): Likewise.
100934         * modules/strchrnul (Makefile.am): Likewise.
100935         * modules/strcspn (Makefile.am): Likewise.
100936         * modules/strdup (Makefile.am): Likewise.
100937         * modules/strerror (Makefile.am): Likewise.
100938         * modules/strftime (Makefile.am): Likewise.
100939         * modules/strndup (Makefile.am): Likewise.
100940         * modules/strnlen (Makefile.am): Likewise.
100941         * modules/strpbrk (Makefile.am): Likewise.
100942         * modules/strsep (Makefile.am): Likewise.
100943         * modules/strstr (Makefile.am): Likewise.
100944         * modules/strtod (Makefile.am): Likewise.
100945         * modules/strtoimax (Makefile.am): Likewise.
100946         * modules/strtok_r (Makefile.am): Likewise.
100947         * modules/strtol (Makefile.am): Likewise.
100948         * modules/strtoll (Makefile.am): Likewise.
100949         * modules/strtoul (Makefile.am): Likewise.
100950         * modules/strtoull (Makefile.am): Likewise.
100951         * modules/strtoumax (Makefile.am): Likewise.
100952         * modules/strverscmp (Makefile.am): Likewise.
100953         * modules/sys_socket (Makefile.am): Likewise.
100954         * modules/sys_stat (Makefile.am): Likewise.
100955         * modules/sysexits (Makefile.am): Likewise.
100956         * modules/time_r (Makefile.am): Likewise.
100957         * modules/timegm (Makefile.am): Likewise.
100958         * modules/timespec (Makefile.am): Likewise.
100959         * modules/tmpfile-safer (Makefile.am): Likewise.
100960         * modules/trim (Makefile.am): Likewise.
100961         * modules/unistd-safer (Makefile.am): Likewise.
100962         * modules/unlinkdir (Makefile.am): Likewise.
100963         * modules/unlocked-io (Makefile.am): Likewise.
100964         * modules/userspec (Makefile.am): Likewise.
100965         * modules/utime (Makefile.am): Likewise.
100966         * modules/utimecmp (Makefile.am): Likewise.
100967         * modules/utimens (Makefile.am): Likewise.
100968         * modules/vasnprintf (Makefile.am): Likewise.
100969         * modules/vasprintf (Makefile.am): Likewise.
100970         * modules/vsnprintf (Makefile.am): Likewise.
100971         * modules/xalloc (Makefile.am): Likewise.
100972         * modules/xgetcwd (Makefile.am): Likewise.
100973         * modules/xnanosleep (Makefile.am): Likewise.
100974         * modules/xreadlink (Makefile.am): Likewise.
100975         * modules/xstrtod (Makefile.am): Likewise.
100976         * modules/xstrtol (Makefile.am): Likewise.
100977         * modules/xstrtold (Makefile.am): Likewise.
100978         * modules/yesno (Makefile.am): Likewise.
100979         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
100981 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
100983         * modules/error (Makefile.am): Distribute files through
100984         EXTRA_DIST, not lib_SOURCES.
100986 2006-10-12  Eric Blake  <ebb9@byu.net>
100988         * modules/error (Makefile.am): Distribute files in /lib.
100989         * modules/obstack (Makefile.am): Likewise.
100991 2006-10-12  Bruno Haible  <bruno@clisp.org>
100993         * modules/acl (Makefile.am): Distribute all files in lib/ through
100994         EXTRA_DIST.
100995         * modules/arcfour (Makefile.am): Likewise.
100996         * modules/arctwo (Makefile.am): Likewise.
100997         * modules/argmatch (Makefile.am): Likewise.
100998         * modules/argz (Makefile.am): Likewise.
100999         * modules/atexit (Makefile.am): Likewise.
101000         * modules/backupfile (Makefile.am): Likewise.
101001         * modules/c-strtod (Makefile.am): Likewise.
101002         * modules/c-strtold (Makefile.am): Likewise.
101003         * modules/calloc (Makefile.am): Likewise.
101004         * modules/canon-host (Makefile.am): Likewise.
101005         * modules/canonicalize (Makefile.am): Likewise.
101006         * modules/chdir-long (Makefile.am): Likewise.
101007         * modules/chdir-safer (Makefile.am): Likewise.
101008         * modules/check-version (Makefile.am): Likewise.
101009         * modules/chown (Makefile.am): Likewise.
101010         * modules/cloexec (Makefile.am): Likewise.
101011         * modules/close-stream (Makefile.am): Likewise.
101012         * modules/closeout (Makefile.am): Likewise.
101013         * modules/crc (Makefile.am): Likewise.
101014         * modules/cycle-check (Makefile.am): Likewise.
101015         * modules/des (Makefile.am): Likewise.
101016         * modules/dirfd (Makefile.am): Likewise.
101017         * modules/dirname (Makefile.am): Likewise.
101018         * modules/dup2 (Makefile.am): Likewise.
101019         * modules/euidaccess (Makefile.am): Likewise.
101020         * modules/exclude (Makefile.am): Likewise.
101021         * modules/exitfail (Makefile.am): Likewise.
101022         * modules/fcntl-safer (Makefile.am): Likewise.
101023         * modules/file-type (Makefile.am): Likewise.
101024         * modules/fileblocks (Makefile.am): Likewise.
101025         * modules/filemode (Makefile.am): Likewise.
101026         * modules/filenamecat (Makefile.am): Likewise.
101027         * modules/fnmatch (Makefile.am): Likewise.
101028         * modules/fopen-safer (Makefile.am): Likewise.
101029         * modules/fpending (Makefile.am): Likewise.
101030         * modules/fprintftime (Makefile.am): Likewise.
101031         * modules/free (Makefile.am): Likewise.
101032         * modules/fsusage (Makefile.am): Likewise.
101033         * modules/ftruncate (Makefile.am): Likewise.
101034         * modules/fts (Makefile.am): Likewise.
101035         * modules/gc (Makefile.am): Likewise.
101036         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
101037         * modules/getaddrinfo (Makefile.am): Likewise.
101038         * modules/getcwd (Makefile.am): Likewise.
101039         * modules/getdelim (Makefile.am): Likewise.
101040         * modules/getdomainname (Makefile.am): Likewise.
101041         * modules/getgroups (Makefile.am): Likewise.
101042         * modules/gethostname (Makefile.am): Likewise.
101043         * modules/gethrxtime (Makefile.am): Likewise.
101044         * modules/getline (Makefile.am): Likewise.
101045         * modules/getloadavg (Makefile.am): Likewise.
101046         * modules/getlogin_r (Makefile.am): Likewise.
101047         * modules/getopt (Makefile.am): Likewise.
101048         * modules/getpass (Makefile.am): Likewise.
101049         * modules/getpass-gnu (Makefile.am): Likewise.
101050         * modules/getsubopt (Makefile.am): Likewise.
101051         * modules/gettime (Makefile.am): Likewise.
101052         * modules/gettimeofday (Makefile.am): Likewise.
101053         * modules/getugroups (Makefile.am): Likewise.
101054         * modules/getusershell (Makefile.am): Likewise.
101055         * modules/glob (Makefile.am): Likewise.
101056         * modules/group-member (Makefile.am): Likewise.
101057         * modules/hard-locale (Makefile.am): Likewise.
101058         * modules/hash (Makefile.am): Likewise.
101059         * modules/hmac-md5 (Makefile.am): Likewise.
101060         * modules/hmac-sha1 (Makefile.am): Likewise.
101061         * modules/human (Makefile.am): Likewise.
101062         * modules/idcache (Makefile.am): Likewise.
101063         * modules/imaxabs (Makefile.am): Likewise.
101064         * modules/imaxdiv (Makefile.am): Likewise.
101065         * modules/inet_ntop (Makefile.am): Likewise.
101066         * modules/inet_pton (Makefile.am): Likewise.
101067         * modules/inttostr (Makefile.am): Likewise.
101068         * modules/isapipe (Makefile.am): Likewise.
101069         * modules/lchown (Makefile.am): Likewise.
101070         * modules/long-options (Makefile.am): Likewise.
101071         * modules/lstat (Makefile.am): Likewise.
101072         * modules/malloc (Makefile.am): Likewise.
101073         * modules/mathl (Makefile.am): Likewise.
101074         * modules/mbchar (Makefile.am): Likewise.
101075         * modules/md2 (Makefile.am): Likewise.
101076         * modules/md4 (Makefile.am): Likewise.
101077         * modules/md5 (Makefile.am): Likewise.
101078         * modules/memcasecmp (Makefile.am): Likewise.
101079         * modules/memchr (Makefile.am): Likewise.
101080         * modules/memcmp (Makefile.am): Likewise.
101081         * modules/memcoll (Makefile.am): Likewise.
101082         * modules/memcpy (Makefile.am): Likewise.
101083         * modules/memmem (Makefile.am): Likewise.
101084         * modules/memmove (Makefile.am): Likewise.
101085         * modules/mempcpy (Makefile.am): Likewise.
101086         * modules/memrchr (Makefile.am): Likewise.
101087         * modules/memset (Makefile.am): Likewise.
101088         * modules/memxor (Makefile.am): Likewise.
101089         * modules/mkancesdirs (Makefile.am): Likewise.
101090         * modules/mkdir (Makefile.am): Likewise.
101091         * modules/mkdir-p (Makefile.am): Likewise.
101092         * modules/mkdtemp (Makefile.am): Likewise.
101093         * modules/mkstemp (Makefile.am): Likewise.
101094         * modules/mktime (Makefile.am): Likewise.
101095         * modules/modechange (Makefile.am): Likewise.
101096         * modules/mountlist (Makefile.am): Likewise.
101097         * modules/nanosleep (Makefile.am): Likewise.
101098         * modules/openat (Makefile.am): Likewise.
101099         * modules/pagealign_alloc (Makefile.am): Likewise.
101100         * modules/physmem (Makefile.am): Likewise.
101101         * modules/poll (Makefile.am): Likewise.
101102         * modules/posixtm (Makefile.am): Likewise.
101103         * modules/posixver (Makefile.am): Likewise.
101104         * modules/putenv (Makefile.am): Likewise.
101105         * modules/quote (Makefile.am): Likewise.
101106         * modules/quotearg (Makefile.am): Likewise.
101107         * modules/raise (Makefile.am): Likewise.
101108         * modules/read-file (Makefile.am): Likewise.
101109         * modules/readline (Makefile.am): Likewise.
101110         * modules/readlink (Makefile.am): Likewise.
101111         * modules/readtokens (Makefile.am): Likewise.
101112         * modules/readutmp (Makefile.am): Likewise.
101113         * modules/realloc (Makefile.am): Likewise.
101114         * modules/regex (Makefile.am): Likewise.
101115         * modules/rename (Makefile.am): Likewise.
101116         * modules/rename-dest-slash (Makefile.am): Likewise.
101117         * modules/rijndael (Makefile.am): Likewise.
101118         * modules/rmdir (Makefile.am): Likewise.
101119         * modules/rpmatch (Makefile.am): Likewise.
101120         * modules/safe-read (Makefile.am): Likewise.
101121         * modules/safe-write (Makefile.am): Likewise.
101122         * modules/same (Makefile.am): Likewise.
101123         * modules/save-cwd (Makefile.am): Likewise.
101124         * modules/savedir (Makefile.am): Likewise.
101125         * modules/setenv (Makefile.am): Likewise.
101126         * modules/settime (Makefile.am): Likewise.
101127         * modules/sha1 (Makefile.am): Likewise.
101128         * modules/sig2str (Makefile.am): Likewise.
101129         * modules/snprintf (Makefile.am): Likewise.
101130         * modules/stdlib-safer (Makefile.am): Likewise.
101131         * modules/stpcpy (Makefile.am): Likewise.
101132         * modules/stpncpy (Makefile.am): Likewise.
101133         * modules/strcase (Makefile.am): Likewise.
101134         * modules/strcasestr (Makefile.am): Likewise.
101135         * modules/strchrnul (Makefile.am): Likewise.
101136         * modules/strcspn (Makefile.am): Likewise.
101137         * modules/strdup (Makefile.am): Likewise.
101138         * modules/strerror (Makefile.am): Likewise.
101139         * modules/strftime (Makefile.am): Likewise.
101140         * modules/strndup (Makefile.am): Likewise.
101141         * modules/strnlen (Makefile.am): Likewise.
101142         * modules/strpbrk (Makefile.am): Likewise.
101143         * modules/strsep (Makefile.am): Likewise.
101144         * modules/strstr (Makefile.am): Likewise.
101145         * modules/strtod (Makefile.am): Likewise.
101146         * modules/strtoimax (Makefile.am): Likewise.
101147         * modules/strtok_r (Makefile.am): Likewise.
101148         * modules/strtol (Makefile.am): Likewise.
101149         * modules/strtoll (Makefile.am): Likewise.
101150         * modules/strtoul (Makefile.am): Likewise.
101151         * modules/strtoull (Makefile.am): Likewise.
101152         * modules/strtoumax (Makefile.am): Likewise.
101153         * modules/strverscmp (Makefile.am): Likewise.
101154         * modules/time_r (Makefile.am): Likewise.
101155         * modules/timegm (Makefile.am): Likewise.
101156         * modules/tmpfile-safer (Makefile.am): Likewise.
101157         * modules/unistd-safer (Makefile.am): Likewise.
101158         * modules/unlinkdir (Makefile.am): Likewise.
101159         * modules/userspec (Makefile.am): Likewise.
101160         * modules/utime (Makefile.am): Likewise.
101161         * modules/utimecmp (Makefile.am): Likewise.
101162         * modules/utimens (Makefile.am): Likewise.
101163         * modules/vasnprintf (Makefile.am): Likewise.
101164         * modules/vasprintf (Makefile.am): Likewise.
101165         * modules/vsnprintf (Makefile.am): Likewise.
101166         * modules/xalloc (Makefile.am): Likewise.
101167         * modules/xgetcwd (Makefile.am): Likewise.
101168         * modules/xnanosleep (Makefile.am): Likewise.
101169         * modules/xreadlink (Makefile.am): Likewise.
101170         * modules/xstrtod (Makefile.am): Likewise.
101171         * modules/xstrtol (Makefile.am): Likewise.
101172         * modules/xstrtold (Makefile.am): Likewise.
101173         * modules/yesno (Makefile.am): Likewise.
101175 2006-10-12  Jim Meyering  <jim@meyering.net>
101177         * m4/getloadavg.m4: Revert the change below.
101179         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
101180         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
101181         fail with a symlink, which is what coreutils' ./bootstrap now
101182         creates by default.
101184 2006-10-12  Bruno Haible  <bruno@clisp.org>
101186         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
101187         mingw.
101188         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
101189         MSVC and mingw explicitly.
101191 2006-10-11  Simon Josefsson  <jas@extundo.com>
101192             Bruno Haible  <bruno@clisp.org>
101194         Add support for multiple gnulib-tool invocations in the scope of a
101195         single configure.ac file.
101196         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
101197         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
101198         with the same contents as the _LIBADD variable.
101199         (func_emit_initmacro_start, func_emit_initmacro_end,
101200         func_emit_initmacro_done): New functions.
101201         (func_import, func_create_testdir): Invoke them. Allow the identifiers
101202         gl_LIBOBJS and gl_LTLIBOBJS.
101204 2006-10-11  Bruno Haible  <bruno@clisp.org>
101206         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
101207         (func_create_testdir): Don't create po/Makefile.am, don't invoke
101208         autoreconf. Instead, invoke autopoint explicitly but move back the
101209         *.m4 files from gnulib.
101211 2006-10-11  Bruno Haible  <bruno@clisp.org>
101213         * gnulib-tool (func_usage): Make module names after --create-testdir
101214         optional.
101215         (func_create_testdir): If no module was specified, use nearly all
101216         modules.
101218 2006-10-12  Jim Meyering  <jim@meyering.net>
101220         Big performance improvement for fts-based tools that use FTS_NOSTAT.
101221         Avoid spurious inode-mismatch problems on non-POSIX file systems.
101222         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
101223         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
101224         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
101225         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
101226         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
101227         (fts_set_stat_required): New function.
101228         (fts_open): Defer the calls to fts_stat, if possible or requested.
101229         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
101230         into fts_stat itself.
101231         (fts_read): Perform any required (deferred) fts_stat call.
101232         (fts_build): Likewise, for the directory we're about to open and read.
101233         In the readdir loop, carefully decide whether each entry will require
101234         an eventual call to fts_stat, using dirent.d_type info if available.
101235         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
101236         a command line argument into this function.  Update all callers.
101237         Map a return value of FTS_DOT to FTS_D for a command line argument.
101238         * modules/fts (Depends-on): Add d-type.  Alphabetize.
101239         Thanks to Miklos Szeredi for his tenacity and for the initial
101240         bug report about "find" failing on a FUSE-based file system.
101242         * lib/fts.c (fts_open): Use consistent indentation.
101244 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
101246         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
101247         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
101248         reported by Jim Meyering.  All uses of cache variables renamed
101249         to match Autoconf's.
101250         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
101251         the other one.
101253         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
101254         Fix misspelling in diagnostic.
101256 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
101258         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
101259         defined.  Problem reported by Matthew Woehlke.
101261         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
101262         Add support for Tandem NonStop R series.
101263         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
101264         Use new macro.
101266         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
101267         (has_trailing_slash): Omit size arg; all callers changed.
101268         Omit 'inline', since it doesn't help performance and we'd
101269         need to configure it.
101270         Don't count //, ///, etc. as having a trailing slash.
101271         As a side effect, this removes a C99ism reported by Matthew Woehlke.
101272         (rpl_rename_dest_slash): On failure, use rename's errno rather
101273         than (in some cases) an incorrect or junk errno.
101274         Simplify code by removing need to compute length; this does
101275         cause it to make two passes instead of one over the file name,
101276         but it's worth it.
101278         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
101279         change, since Autoconf's version may no longer be appropriate now
101280         that we are using CVS Autoconf's version.  Add support for Tandem.
101282 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
101283             Bruno Haible  <bruno@clisp.org>
101285         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
101286         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
101287         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
101288         gl_AC_TYPE_LONG_LONG.
101290         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
101291         instead of HAVE_LONG_LONG.
101292         * lib/printf-args.c (printf_fetchargs): Likewise.
101293         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
101294         * lib/vasnprintf.c (VASNPRINTF): Likewise.
101295         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
101296         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
101297         gl_AC_TYPE_LONG_LONG.
101299 2006-10-11  Bruno Haible  <bruno@clisp.org>
101301         * m4/longlong.m4: Add comments.
101302         * m4/ulonglong.m4: Likewise.
101304 2006-10-10  Bruno Haible  <bruno@clisp.org>
101306         Make it possible to #define stpcpy, strdup to aliases.
101307         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
101308         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
101310 2006-10-10  Bruno Haible  <bruno@clisp.org>
101312         Make it possible to #define gcd to an alias.
101313         * lib/gcd.c: Include config.h.
101315 2006-10-10  Bruno Haible  <bruno@clisp.org>
101317         Make it possible to #define c_isascii to an alias.
101318         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
101319         defined. Undefine the macros before defining them, to avoid gcc
101320         warnings.
101321         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
101322         define NO_C_CTYPE_MACROS early.
101324 2006-10-10  Bruno Haible  <bruno@clisp.org>
101326         Make it possible to #define set_program_name to an alias.
101327         * lib/progname.c: Don't undefine set_program_name; instead, undefine
101328         ENABLE_RELOCATABLE early.
101330 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
101332         Port to Tandem NSK OSS, which has 64-bit signed int but at most
101333         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
101334         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00062.html
101335         More generally, don't assume that 64-bit signed int is available
101336         if unsigned int is, and vice versa.
101337         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
101338         unsigned symbols, not on their signed counterparts.
101339         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
101340         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
101341         (UINT64_C, UINTMAX_C):
101342         Likewise.
101343         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
101344         unsigned counterparts.
101345         (Have_long_long, Unsigned): New macros.
101346         (Int): Renamed from INT.
101347         (strtoimax): Use the new macros.
101348         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
101349         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
101350         * modules/inttypes (inttypes.h): Substitute
101351         HAVE_UNSIGNED_LONG_LONG_INT.
101352         * modules/stdint (stdint.h): Likewise.
101353         (Files): Add m4/ulonglong.m4.
101355 2006-10-10  Bruno Haible  <bruno@clisp.org>
101357         Fix a gcc -Wshadow warning.
101358         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
101359         to 'bucket'.
101360         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
101361         gl_linked_indexof_from_to): Likewise.
101362         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
101363         Likewise.
101364         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
101365         Likewise.
101366         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
101367         Reported by Eric Blake.
101369 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
101371         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
101372         for NetBSD.  Problem reported by Bruno Haible.
101374 2006-10-09  Jim Meyering  <jim@meyering.net>
101376         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
101377         Patch from Bruno Haible.
101379 2006-10-09  Jim Meyering  <jim@meyering.net>
101381         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
101382         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
101383         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
101385 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
101387         Don't include <config.h> twice; this doesn't work in some cases,
101388         e.g., when config.h has "#define intmax_t long long int" and
101389         we include <config.h>, <inttypes.h>, <config.h> in that order.
101390         Problem reported by Matthew Woehlke in:
101391         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00073.html
101392         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
101393         * lib/fts-cycle.c: Don't include config.h.
101394         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
101395         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
101396         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
101397         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
101398         inttypes.h.
101399         * lib/xstrtoumax.c: Likewise.
101400         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
101401         __strtol and the like, so that this module is more like its siblings.
101402         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
101403         Remove; no longer needed now that we assume gnulib inttypes.h.
101405 2006-10-08  Bruno Haible  <bruno@clisp.org>
101407         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
101408         option.
101410 2006-10-07  Jim Meyering  <jim@meyering.net>
101412         * modules/inttypes (inttypes.h): Revert what seems to have been
101413         an inadvertent part of today's change: use "|", not "/" in the
101414         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
101416 2006-10-07  Bruno Haible  <bruno@clisp.org>
101418         * modules/sublist: New file.
101420 2006-10-07  Bruno Haible  <bruno@clisp.org>
101422         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
101423         * modules/argz (argz.h): Likewise.
101424         * modules/arpa_inet (arpa/inet.h): Likewise.
101425         * modules/byteswap (byteswap.h): Likewise.
101426         * modules/configmake (configmake.h): Likewise.
101427         * modules/fcntl (fcntl.h): Likewise.
101428         * modules/fnmatch (fnmatch.h): Likewise.
101429         * modules/getopt (getopt.h): Likewise.
101430         * modules/glob (glob.h): Likewise.
101431         * modules/inttypes (inttypes.h): Likewise.
101432         * modules/netinet_in (netinet/in.h): Likewise.
101433         * modules/poll (poll.h): Likewise.
101434         * modules/stdbool (stdbool.h): Likewise.
101435         * modules/stdint (stdint.h): Likewise.
101436         * modules/sys_select (sys/select.h): Likewise.
101437         * modules/sys_socket (sys/socket.h): Likewise.
101438         * modules/sys_stat (sys/stat.h): Likewise.
101439         * modules/sysexits (sysexits.h): Likewise.
101440         * modules/unistd (unistd.h): Likewise.
101441         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
101442         Add a "DO NOT EDIT" comment to the generated file.
101443         (func_import): Likewise for gnulib-comp.m4.
101445 2006-10-07  Bruno Haible  <bruno@clisp.org>
101447         * lib/gl_sublist.h: New file.
101448         * lib/gl_sublist.c: New file.
101450 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
101452         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
101453         name (relative to the original working directory) and the file
101454         name component (relative to the temporary working directory).  All
101455         callers changed.
101456         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
101457         * lib/mkdir-p.c (make_dir_parents): Likewise.
101458         * lib/mkdir-p.h (make_dir_parents): Likewise.
101460 2006-10-06  Eric Blake  <ebb9@byu.net>
101462         Define several macros for use by the clean-temp module.
101463         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
101464         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
101465         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
101467         * lib/clean-temp.h (close_stream_temp): New declaration.
101468         * lib/clean-temp.c (includes): Pull in headers according to what
101469         other modules are in use.
101470         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
101472 2006-10-06  Bruno Haible  <bruno@clisp.org>
101474         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
101475         instead of fopen, fwriteerror.
101477 2006-10-06  Bruno Haible  <bruno@clisp.org>
101479         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
101480         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
101481         int.
101482         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
101483         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
101484         Return an error indicator.
101485         Suggested by Eric Blake.
101487 2006-10-06  Bruno Haible  <bruno@clisp.org>
101489         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
101490         Reported by Eric Blake.
101492 2006-10-06  Bruno Haible  <bruno@clisp.org>
101494         * modules/closeout (Description): Mention stderr too.
101496 2006-10-06  Bruno Haible  <bruno@clisp.org>
101497         and Paul Eggert  <eggert@cs.ucla.edu>
101499         * lib/closeout.c (close_stdout): Also close stderr.
101500         * lib/closeout.h: Update comment.
101502 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
101504         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
101505         <http://lists.gnu.org/r/bug-coreutils/2006-10/msg00063.html>.
101506         * lib/dirchownmod.c: Include lchown.h.
101507         * lib/lchown.c: Don't include files that lchown.h now includes.
101508         Don't declare chown, since lchown.h now does that.
101509         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
101510         (lchown): Define to rpl_chown if lchown is declared but
101511         does not exist.  Declare using a prototype if lchown is not
101512         declared.  Add a copyright notice.
101513         * lib/mkstemp.h: Include <unistd.h>.
101514         * lib/openat.c: Include lchown.h.
101516         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
101517         we now test for that separately.
101518         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
101519         rather than O_NOFOLLOW, when testing whether it's possible to
101520         avoid a race condition reliably.
101521         * lib/savewd.c (savewd_chdir): Likewise.
101523         Remove macros that are no longer needed now that stdint.h is
101524         reliable.
101525         * lib/fsusage.c (UINTMAX_MAX): Remove.
101526         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
101527         * lib/utimecmp.c (SIZE_MAX): Remove.
101529         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
101531         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
101532         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
101533         O_NOATIME works.
101535 2006-10-05  Bruno Haible  <bruno@clisp.org>
101537         * lib/gl_list.h (gl_sortedlist_search_from_to,
101538         gl_sortedlist_indexof_from_to): New declarations.
101539         (gl_list_implementation): New fields sortedlist_search_from_to,
101540         sortedlist_indexof_from_to.
101541         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
101542         inline functions.
101543         * lib/gl_list.c (gl_sortedlist_search_from_to,
101544         gl_sortedlist_indexof_from_to): New functions.
101545         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
101546         function.
101547         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
101548         (gl_array_sortedlist_search_from_to): New function.
101549         (gl_array_list_implementation): Update.
101550         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
101551         function.
101552         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
101553         (gl_carray_sortedlist_search_from_to): New function.
101554         (gl_carray_list_implementation): Update.
101555         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
101556         gl_linked_sortedlist_indexof_from_to): New functions.
101557         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
101558         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
101559         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
101560         gl_tree_sortedlist_indexof_from_to): New functions.
101561         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
101562         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
101563         Update.
101564         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
101565         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
101566         Update.
101568 2006-10-05  Bruno Haible  <bruno@clisp.org>
101570         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
101571         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
101572         (struct gl_list_implementation): Add fields search_from_to,
101573         indexof_from_to. Remove fields search, indexof.
101574         (gl_list_search): Use the search_from_to method.
101575         (gl_list_search_from, gl_list_search_from_to): New functions.
101576         (gl_list_indexof): Use the indexof_from_to method.
101577         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
101578         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
101579         (gl_list_search_from, gl_list_search_from_to): New functions.
101580         (gl_list_indexof): Use the indexof_from_to method.
101581         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
101582         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
101583         gl_array_indexof. Add start_index, end_index arguments.
101584         (gl_array_search_from_to): Renamed from gl_array_search. Add
101585         start_index, end_index arguments.
101586         (gl_array_remove, gl_array_list_implementation): Update.
101587         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
101588         gl_carray_indexof. Add start_index, end_index arguments.
101589         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
101590         start_index, end_index arguments.
101591         (gl_carray_remove, gl_carray_list_implementation): Update.
101592         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
101593         gl_linked_search. Add start_index, end_index arguments.
101594         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
101595         start_index, end_index arguments.
101596         (gl_linked_remove): Update.
101597         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
101598         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
101599         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
101600         field to 'size_t'.
101601         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
101602         gl_tree_search. Add start_index, end_index arguments.
101603         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
101604         start_index, end_index arguments.
101605         (gl_tree_remove): Update.
101606         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
101607         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
101608         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
101609         function.
101610         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
101611         gl_tree_search. Add start_index, end_index arguments.
101612         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
101613         start_index, end_index arguments.
101614         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
101615         Update.
101616         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
101618 2006-10-05  Bruno Haible  <bruno@clisp.org>
101620         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
101622         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
101623         fwriteerror_temp): New declarations.
101624         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
101625         (descriptors): New variable.
101626         (cleanup): First, close the descriptors.
101627         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
101628         fclose_temp, fwriteerror_temp): New functions.
101630 2006-10-04  Jim Meyering  <jim@meyering.net>
101632         * lib/fts.c (fts_open): Tiny comment change.
101634 2006-10-04  Bruno Haible  <bruno@clisp.org>
101636         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
101637         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
101638         gl_LOCK_BODY.
101639         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
101640         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
101641         gl_LOCK_EARLY_BODY.
101642         (gl_LOCK): Require gl_LOCK_BODY.
101644 2006-10-04  Bruno Haible  <bruno@clisp.org>
101646         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
101647         (gl_oset_search_atleast): New declaration.
101648         (struct gl_oset_implementation): Add field 'search_atleast'.
101649         (gl_oset_search_atleast): New inline function.
101650         * lib/gl_oset.c (gl_oset_search_atleast): New function.
101651         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
101652         (gl_array_oset_implementation): Update.
101653         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
101654         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
101655         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
101657 2006-10-04  Bruno Haible  <bruno@clisp.org>
101659         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
101661 2006-10-03  Bruno Haible  <bruno@clisp.org>
101663         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
101664         from gl_avltreehash_list_implementation.
101666 2006-10-03  Bruno Haible  <bruno@clisp.org>
101668         * lib/gl_oset.c (gl_oset_add): Fix return type.
101670 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
101672         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
101674 2006-10-02  Eric Blake  <ebb9@byu.net>
101676         * modules/strnlen (Depends-on): Add extensions.
101678 2006-10-02  Eric Blake  <ebb9@byu.net>
101680         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
101681         definition in 2.60+.
101683 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
101685         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
101686         checks.
101688 2006-10-02  Bruno Haible  <bruno@clisp.org>
101690         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
101691         to the AUTOMAKE_OPTIONS.
101692         Reported by Jim Meyering.
101694 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
101696         Work around bug in Solaris 10 /proc file system:
101697         /proc/self/fd/NNN/.. isn't the parent directory of
101698         the directory whose file descriptor is NNN.  This needs to
101699         be worked around at run time, not compile time, since a
101700         program might be built on Solaris 8, where things work, and
101701         run on Solaris 10.
101702         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
101703         to use the following interface instead:
101704         (OPENAT_BUFFER_SIZE): New macro.
101705         (openat_proc_name): New function.
101706         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
101707         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
101708         Likewise.
101709         * lib/openat-proc.c: New file.
101710         * modules/openat (Files): Add lib/openat-proc.c.
101711         (Depends-on): Add same-inode, stdbool.
101712         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
101714 2006-09-29  Bruno Haible  <bruno@clisp.org>
101716         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
101717         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
101718         argument. Set stdout_closed before testing for ferror, not after.
101719         (fwriteerror, fwriteerror_no_ebadf): New functions.
101721 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101723         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
101725 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
101727         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
101728         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
101730 2006-09-28  Jim Meyering  <jim@meyering.net>
101732         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
101733         Include <unistd.h>.
101735 2006-09-28  Bruno Haible  <bruno@clisp.org>
101737         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
101738         * modules/linkedhash-list (Depends-on): Likewise.
101739         * modules/rbtreehash-list (Depends-on): Likewise.
101741 2006-09-28  Bruno Haible  <bruno@clisp.org>
101743         * lib/strndup.h: Simplify the redefinition of strndup.
101744         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
101745         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
101747 2006-09-28  Bruno Haible  <bruno@clisp.org>
101749         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
101750         * lib/gl_linkedhash_list.c: Likewise.
101751         * lib/gl_rbtreehash_list.c: Likewise.
101753 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
101755         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
101756         getaddrinfo.
101758         * lib/__fpending.h: Don't include <stdio_ext.h> unless
101759         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
101760         it causes <stdio_ext.h> to cause a compile-time error.
101761         Problem reported by Nelson H. F. Beebe.
101762         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
101763         of HAVE_DECL___PENDING.
101765         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
101766         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
101767         declaration.
101769 2006-09-27  Jim Meyering  <jim@meyering.net>
101771         This file could end up with a definition for a function
101772         named __strndup, rather than rpl_strndup on a system with
101773         incomplete weak_alias support.
101774         * lib/strndup.c (strndup): Rename from __strndup.
101775         Remove #defines that used to map __strndup to strndup.
101776         Don't use K&R prototypes.
101777         Remove LIBC-related code, since this file is not sync'd with glibc.
101778         * lib/strndup.h: Revamp, accordingly.
101779         * m4/strndup.m4: Modernize.
101781 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
101783         * modules/savewd (Depends-on): Add 'raise'.
101784         * lib/savewd.c: Include <signal.h>, for 'raise'.
101786 2006-09-26  Jim Meyering  <jim@meyering.net>
101788         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
101789         when we detect Darwin 8.7.0's acl_get_file bug.
101790         Rearrange to perform the new (below) run-test while $LIBS
101791         contains any acl-related library.  Set USE_ACL at the end.
101792         (gl_ACL_GET_FILE): New function.
101794 2006-09-26  Eric Blake  <ebb9@byu.net>
101796         * lib/verror.c: Include <config.h> unconditionally.
101798 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
101800         * modules/clock-time (Maintainer): Add self.
101801         * modules/getlogin_r (Depends-on): Add extensions.
101803 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101805         * modules/clock-time: New module.
101806         * modules/nanosleep (Depends-on): Add clock-time.
101807         * modules/gethrxtime (Depends-on): Likewise.
101808         * modules/gettime (Depends-on): Likewise.
101809         * modules/settime (Depends-on): Likewise.
101811         * modules/fts-lgpl: Depend on openat.
101812         * modules/mkancesdirs: Depend on savewd.
101813         * modules/mkdir-p: Likewise.
101815 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101817         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
101819         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
101820         `gl_have_arbitrary_file_name_length_limit' to
101821         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
101822         actually works between configure runs.
101824 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101825             Bruno Haible  <bruno@clisp.org>
101827         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
101829 2006-09-25  Jim Meyering  <jim@meyering.net>
101831         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
101832         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
101834 2006-09-25  Eric Blake  <ebb9@byu.net>
101836         * gnulib-tool (func_import, func_create_testdir): Fix typos in
101837         exec's in 2006-09-18 patch when shuffling fds.
101839 2006-09-25  Bruno Haible  <bruno@clisp.org>
101841         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
101842         Reported by Jim Meyering.
101844 2006-09-24  Jim Meyering  <jim@meyering.net>
101846         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
101847         compare a pointer against a literal "0".  That caused failures with
101848         at least HP-UX's hpcc.
101850 2006-09-22  Simon Josefsson  <jas@extundo.com>
101852         * modules/gc-sha1:
101853         * modules/gc-md4:
101854         * modules/gc-hmac-sha1:
101855         * modules/gc-hmac-md5:
101856         * modules/gc-des:
101857         * modules/gc-arcfour: Distribute more files.
101859 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101861         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
101862         (gl_linked_iterator_from_to): Initialize struct completely.
101863         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
101864         (gl_tree_iterator_from_to): Likewise
101865         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
101866         * lib/gl_array_list.c [lint] (gl_array_iterator)
101867         (gl_array_iterator_from_to): Likewise.
101868         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
101869         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
101870         (gl_carray_iterator_from_to): Likewise.
101872         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
101873         * lib/md4.c (md4_process_block): Remove unused variable.
101874         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
101875         parentheses for clarity.
101877 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101879         * modules/bison-i18n (Depends-on): Add gettext.
101881 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101883         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
101884         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
101885         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
101886         also add missing comma that caused broken test.
101887         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
101888         stdlib.h, for `abort'.
101889         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
101890         variables.
101891         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
101892         include unistd.h if present, for `rmdir'.
101893         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
101894         variables.
101895         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
101896         in the process include standard headers for prototypes.
101897         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
101898         gets declared on GNU/Linux.
101899         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
101900         unistd.h, for `rmdir'.
101901         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
101903         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
101904         always true.
101905         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
101907         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
101909 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101911         * gnulib-tool (func_version): Create output all at once.  This
101912         may help avoid triggering unnecessary SIGPIPEs, and at any
101913         rate it doesn't hurt.
101915 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101916             Bruno Haible  <bruno@clisp.org>
101918         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
101919         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
101920         * m4/signed.m4 (bh_C_SIGNED): Likewise.
101922         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
101923         (gl_FUNC_VASPRINTF): Invoke it.
101925 2006-09-22  Bruno Haible  <bruno@clisp.org>
101927         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
101928         getloadavg.c as first argument.
101930 2006-09-22  Bruno Haible  <bruno@clisp.org>
101932         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
101933         at the beginning of the gl_INIT macro.
101934         * modules/getloadavg (configure.ac): Pass $gl_source_base to
101935         gl_GETLOADAVG.
101937 2006-09-22  Bruno Haible  <bruno@clisp.org>
101939         * gnulib-tool (func_create_megatestdir): Don't include the config-h
101940         module.
101941         Suggested by Ralf Wildenhues.
101943 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
101945         Import this patch from libc:
101947         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
101949         * lib/regex_internal.c (re_string_reconstruct): Handle
101950         offset < pstr->valid_raw_len && pstr->offsets_needed case.
101951         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
101952         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
101953         re_string_context_at.
101955         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
101956         now requires it.
101957         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
101958         gl_REGEX now does it for us.
101959         (gl_REGEX): Add test taken from
101960         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
101962         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
101963         Check that large offsets work.  Modernize Autoconf usages.
101964         Prefer "yes" to mean a good thing rather than a bad.
101965         Don't put "#define mkstemp" in config.h, as this might interfere
101966         with standard system headers that "#define mkstemp mkstemp64".
101968         * modules/mkstemp (Depends-on): Add extensions, so that
101969         mkstemp is visible on some platforms.
101970         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
101971         (Include): Change to "mkstemp.h" from <stdlib.h>.
101972         (Files): Add mkstemp.h.
101974         * lib/mkstemp.h: New file, since some standard headers
101975         #define mkstemp.
101976         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
101977         Include "mkstemp.h".
101978         Make the _LIBC code resemble glibc original more,
101979         e.g., use K&R style.
101980         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
101981         (mkstemp): Remove, since mkstemp.h does this for us.
101982         * lib/stdlib--.h: Include mkstemp.h.
101984         Import this patch from libc:
101986         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
101988         * lib/tempname.c (__gen_tempname): Change attempts_min
101989         into a macro.  Use preprocessor to decide how to initialize
101990         attempts [Coverity CID 67].
101992 2006-09-20  Bruno Haible  <bruno@clisp.org>
101994         * lib/mkdtemp.c: Import from libc.
101995         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
101996                 * sysdeps/posix/tempname.c (__gen_tempname): Change
101997                 attempts_min into a macro.  Use preprocessor to decide how to
101998                 initialize attempts [Coverity CID 67].
101999         2001-11-27  Paul Eggert  <eggert@twinsun.com>
102000                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
102001                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
102003 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102005         * gnulib-tool (func_exit): New function, to allow to pass the
102006         exit status portably through the trap.  Use everywhere.
102007         (--help, --version): Signal a write error.
102008         (trap): catch SIGPIPE, for write errors.
102009         Exit at the end of the trap, with the correct exit status.
102011 2006-09-19  Karl Berry  <karl@gnu.org>
102013         * doc/gnulib.texi: note about the license texinfo files.
102015 2006-09-19  Eric Blake  <ebb9@byu.net>
102017         * gnulib-tool: Avoid space-tab.
102019 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
102021         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
102022         that prevented coreutils 6.1 from building.  Problem reported
102023         by Petter Reinholdtsen.
102025 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
102027         * gnulib-tool (avoidlist): Fix typo that broke options like
102028         --avoid=lock that are used by coreutils bootstrap.
102030 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
102032         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
102033         more systematically.
102035 2006-09-18  Jim Meyering  <jim@meyering.net>
102037         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
102039 2006-09-18  Bruno Haible  <bruno@clisp.org>
102041         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
102043 2006-09-18  Bruno Haible  <bruno@clisp.org>
102045         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
102046         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
102047         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
102048         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
102049         * m4/gettext.m4: Require autoconf >= 2.52.
102050         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
102051         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
102052         of gl_cv_header_inttypes_h.
102054 2006-09-18  Bruno Haible  <bruno@clisp.org>
102056         * lib/javaversion.c: Include configmake.h.
102058 2006-09-18  Bruno Haible  <bruno@clisp.org>
102060         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
102061         avoid that the while loops be executed in a subshell.
102063 2006-09-18  Bruno Haible  <bruno@clisp.org>
102065         * MODULES.html.sh (func_module): Break long lines.
102066         Suggested by Bruce Korb <bkorb@gnu.org>.
102068 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102070         Speed up by a factor of 1.12.
102071         * gnulib-tool (nl): New variable.
102072         (func_import): Rewrite include directive extraction to only read each
102073         directive once.
102075 2006-09-17  Bruno Haible  <bruno@clisp.org>
102077         * modules/javaversion (Makefile.am): Remove DEFS setting.
102078         (Depends-on): Add configmake, for PKGDATADIR definition.
102080 2006-09-17  Bruno Haible  <bruno@clisp.org>
102082         * gnulib-tool (func_create_testdir): Rewrite all files at once.
102084 2006-09-17  Bruno Haible  <bruno@clisp.org>
102086         * gnulib-tool (func_append): New function, stolen from libtool.m4.
102087         (func_modules_transitive_closure, func_modules_add_dummy,
102088         func_modules_to_filelist, func_import, func_create_testdir,
102089         func_create_megatestdir, ...): Use it wherever possible.
102090         Suggested by Ralf Wildenhues.
102092 2006-09-16  Karl Berry  <karl@gnu.org>
102094         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
102095         to avoid sectioning errors.
102096         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
102097         [ifinfo]: blank line after @center-ed titles.
102098         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
102099         Spell FSF address consistently with others.
102100         (These changes approved by rms.)
102102 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102104         Speed up by a factor of 1.61.
102105         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
102106         already checked module names again.
102108 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102110         Speed up by a factor of 1.13.
102111         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
102112         for new_files, and the input to func_add_or_update.
102114 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102116         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
102117         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
102119 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
102121         * modules/mkancesdirs (Depends-on): Add fcntl.
102122         * modules/savewd: New file.
102123         * MODULES.html.sh (File system functions): Add savewd.
102125         * modules/configmake (Makefile.am): Add support for the
102126         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
102128 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
102130         * m4/savewd.m4: New file.
102132 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
102134         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
102135         (dirchownmod): New arg FD.  All callers changed.
102136         Use FD rather than opening the directory ourself, as opening is
102137         now the caller's responsibility.
102138         * lib/dirchownmod.h: Likewise.
102139         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
102140         hosts that require <sys/types.h> before <sys/stat.h>.  Include
102141         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
102142         (test_dir): Remove.
102143         (mkancesdirs): Return length of prefix of FILE that has already
102144         been made, or -2 if there is a child doing the work.  Redo
102145         algorithm so that it is O(N) rather than O(N**2).  Optimize away
102146         ".", and treat ".." specially since it might stray back into
102147         already-created areas.  Use a subprocess if necessary.  New arg
102148         WD; all users changed.  MAKE_DIR function should now return 1
102149         if it creates a directory that is not readable.  Return -2 if
102150         a child process is spun off.
102151         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
102152         Adjust signature to match code.
102153         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
102154         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
102155         all users changed.
102156         * lib/savewd.c, lib/savewd.h: New files.
102158 2006-09-15  Jim Meyering  <jim@meyering.net>
102160         * modules/rename-dest-slash: New module.
102161         * MODULES.html.sh (posix_compat): Add it here.
102163         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
102165 2006-09-15  Jim Meyering  <jim@meyering.net>
102167         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
102168         file.
102170         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
102172 2006-09-15  Jim Meyering  <jim@meyering.net>
102174         * lib/rename-dest-slash.c (has_trailing_slash): Use
102175         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
102176         (rpl_rename_dest_slash): Perform the cheaper trailing slash
102177         test before testing whether SRC is a directory.
102178         Suggestions from Bruno Haible.
102180         Avoid a warning about an unused variable.
102181         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
102182         into the #ifdef block where it's used.
102184         * lib/rename-dest-slash.c: New file.
102186 2006-09-14  Bruno Haible  <bruno@clisp.org>
102188         * lib/allocsa.c: Include <config.h> unconditionally.
102189         * lib/asnprintf.c: Likewise.
102190         * lib/asprintf.c: Likewise.
102191         * lib/c-strcasecmp.c: Likewise.
102192         * lib/c-strcasestr.c: Likewise.
102193         * lib/c-strncasecmp.c: Likewise.
102194         * lib/c-strstr.c: Likewise.
102195         * lib/classpath.c: Likewise.
102196         * lib/clean-temp.c: Likewise.
102197         * lib/concatpath.c: Likewise.
102198         * lib/copy-file.c: Likewise.
102199         * lib/csharpcomp.c: Likewise.
102200         * lib/csharpexec.c: Likewise.
102201         * lib/execute.c: Likewise.
102202         * lib/fatal-signal.c: Likewise.
102203         * lib/findprog.c: Likewise.
102204         * lib/fwriteerror.c: Likewise.
102205         * lib/gl_array_list.c: Likewise.
102206         * lib/gl_array_oset.c: Likewise.
102207         * lib/gl_avltree_list.c: Likewise.
102208         * lib/gl_avltree_oset.c: Likewise.
102209         * lib/gl_avltreehash_list.c: Likewise.
102210         * lib/gl_carray_list.c: Likewise.
102211         * lib/gl_linked_list.c: Likewise.
102212         * lib/gl_linkedhash_list.c: Likewise.
102213         * lib/gl_list.c: Likewise.
102214         * lib/gl_oset.c: Likewise.
102215         * lib/gl_rbtree_list.c: Likewise.
102216         * lib/gl_rbtree_oset.c: Likewise.
102217         * lib/gl_rbtreehash_list.c: Likewise.
102218         * lib/imaxabs.c: Likewise.
102219         * lib/imaxdiv.c: Likewise.
102220         * lib/javacomp.c: Likewise.
102221         * lib/javaexec.c: Likewise.
102222         * lib/javaversion.c: Likewise.
102223         * lib/linebreak.c: Likewise.
102224         * lib/localcharset.c: Likewise.
102225         * lib/lock.c: Likewise.
102226         * lib/mbchar.c: Likewise.
102227         * lib/mbswidth.c: Likewise.
102228         * lib/mkdtemp.c: Likewise.
102229         * lib/pipe.c: Likewise.
102230         * lib/printf-args.c: Likewise.
102231         * lib/printf-parse.c: Likewise.
102232         * lib/progname.c: Likewise.
102233         * lib/progreloc.c: Likewise.
102234         * lib/readlink.c: Likewise.
102235         * lib/sh-quote.c: Likewise.
102236         * lib/stpcpy.c: Likewise.
102237         * lib/stpncpy.c: Likewise.
102238         * lib/strcasecmp.c: Likewise.
102239         * lib/strcasestr.c: Likewise.
102240         * lib/strcspn.c: Likewise.
102241         * lib/striconv.c: Likewise.
102242         * lib/strncasecmp.c: Likewise.
102243         * lib/strnlen1.c: Likewise.
102244         * lib/strstr.c: Likewise.
102245         * lib/strtok_r.c: Likewise.
102246         * lib/tls.c: Likewise.
102247         * lib/tmpdir.c: Likewise.
102248         * lib/unicodeio.c: Likewise.
102249         * lib/unsetenv.c: Likewise.
102250         * lib/vasnprintf.c: Likewise.
102251         * lib/vasprintf.c: Likewise.
102252         * lib/wait-process.c: Likewise.
102253         * lib/xallocsa.c: Likewise.
102254         * lib/xsetenv.c: Likewise.
102255         * lib/xstriconv.c: Likewise.
102257 2006-09-13  Simon Josefsson  <jas@extundo.com>
102259         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
102260         that internally, suggested by Ralf Wildenhues
102261         <Ralf.Wildenhues@gmx.de>.
102263 2006-09-13  Simon Josefsson  <jas@extundo.com>
102265         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
102266         @LIBOBJS@.
102267         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
102269 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
102271         * lib/_fpending.c: Include <config.h> unconditionally, since we no
102272         longer worry about uses that don't define HAVE_CONFIG_H.
102273         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
102274         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
102275         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
102276         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
102277         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
102278         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
102279         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
102280         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
102281         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
102282         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
102283         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
102284         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
102285         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
102286         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
102287         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
102288         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
102289         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
102290         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
102291         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
102292         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
102293         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
102294         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
102295         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
102296         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
102297         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
102298         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
102299         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
102300         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
102301         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
102302         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
102303         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
102304         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
102305         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
102306         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
102307         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
102308         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
102309         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
102310         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
102311         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
102312         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
102313         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
102314         Likewise.
102316 2006-09-13  Eric Blake  <ebb9@byu.net>
102318         * lib/getopt.c: Fix typo in last commit.
102320 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
102322         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
102323         dgettext.
102325 2006-09-12  Jim Meyering  <jim@meyering.net>
102327         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
102328         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
102329         Reported by Nelson H. F. Beebe.
102331 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
102333         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
102334         program_invocation_name and program_invocation_short_name are
102335         initialized.
102336         * lib/argp-namefrob.h: Move declarations of program_invocation_name
102337         and program_invocation_short_name to argp.h, so they are visible
102338         to user programs.
102339         * lib/argp.h: Likewise
102341 2006-09-10  Bruno Haible  <bruno@clisp.org>
102343         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
102344         m4/inttypes_h.m4, m4/uintmax_t.m4.
102346 2006-09-10  Bruno Haible  <bruno@clisp.org>
102348         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
102349         gl_AC_TYPE_UINTMAX_T.
102351 2006-09-10  Bruno Haible  <bruno@clisp.org>
102353         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
102355 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
102357         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
102358         convention.  Text proposed by Bruno Haible.
102359         (struct argp_option): Document the use of N_() wrappers.
102361         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
102362         '\v', and translate the two parts separately, instead of feeding
102363         the whole string to gettext.  This allows to exclude
102364         '\v' from the strings visible to the translator by writing doc
102365         strings as N_("..") "\v" N_("..").
102367 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
102369         * config/srclist.txt: Undo latest change; the bug was fixed.
102371 2006-09-09  Bruno Haible  <bruno@clisp.org>
102373         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
102374         assignments if building a library without libtool.
102375         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
102376         in func_emit_lib_Makefile_am.
102377         (func_import): When building a static library libfoo.a, arrange to
102378         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
102379         (func_create_testdir): Likewise.
102380         * modules/gc (configure.ac, Makefile.am): If building statically,
102381         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
102382         * modules/iconvme (configure.ac, Makefile.am): Likewise.
102383         * modules/striconv (configure.ac, Makefile.am): Likewise.
102384         Based on a suggestion by Ralf Wildenhues.
102386 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
102388         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
102389         Check for unistd.h too, since Autoconf doesn't assume POSIX.
102390         Also:
102392         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
102393         Add year_2050_test to catch glibc bug 2821
102394         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
102396         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
102397         Prefer #ifdef to #if.
102399         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
102400         Return from 'main' instead of calling 'exit'.
102402 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
102404         * lib/mktime.c (guess_time_tm): Fix bug where mktime
102405         returned the maximum time_t value rather than (time_t) -1.
102406         Problem originally reported by William Bardwell
102407         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
102409         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
102410         Moved to here ...
102411         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
102412         ... from here.
102414 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
102416         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
102417         2821 is fixed.
102419 2006-09-08  Jim Meyering  <jim@meyering.net>
102421         Don't make generated files read-only.  That would bother too many
102422         people.  However, do retain the ability to work when targets are
102423         read-only: remove the destination and temporary files before writing
102424         them (when generated via sed or echo), or by using the -f option for
102425         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
102426         * modules/alloca-opt, modules/argz, modules/arpa_inet:
102427         * modules/byteswap, modules/configmake, modules/fcntl:
102428         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
102429         * modules/localcharset, modules/netinet_in, modules/poll:
102430         * modules/stdbool, modules/stdint, modules/sys_select:
102431         * modules/sys_socket, modules/sys_stat, modules/sysexits:
102433 2006-09-08  Jim Meyering  <jim@meyering.net>
102435         Avoid new build failure on FreeBSD 6.0.
102436         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
102437         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
102438         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
102440 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102442         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
102444 2006-09-07  Jim Meyering  <jim@meyering.net>
102446         Fix global typo in last change: use chmod u-w, not chmod u-x.
102447         Spotted by Paul Eggert and Bruce Korb.
102448         * modules/alloca-opt, modules/argz, modules/arpa_inet:
102449         * modules/byteswap, modules/configmake, modules/fcntl:
102450         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
102451         * modules/localcharset, modules/netinet_in, modules/poll:
102452         * modules/stdbool, modules/stdint, modules/sys_select:
102453         * modules/sys_socket, modules/sys_stat, modules/sysexits:
102455 2006-09-06  Jim Meyering  <jim@meyering.net>
102457         Make generated files be read-only.
102458         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
102459         Ensure that each generated file is now read-only.
102460         * modules/argz: Likewise.
102461         * modules/arpa_inet: Likewise.
102462         * modules/byteswap: Likewise.
102463         * modules/configmake: Likewise.
102464         * modules/fcntl: Likewise.
102465         * modules/fnmatch: Likewise.
102466         * modules/getopt: Likewise.
102467         * modules/glob: Likewise.
102468         * modules/inttypes: Likewise.
102469         * modules/netinet_in: Likewise.
102470         * modules/poll: Likewise.
102471         * modules/stdbool: Likewise.
102472         * modules/stdint: Likewise.
102473         * modules/sys_select: Likewise.
102474         * modules/sys_socket: Likewise.
102475         * modules/sys_stat: Likewise.
102476         * modules/sysexits: Likewise.
102477         * modules/localcharset: Same as above, but continue using temporary
102478         file named "t-$@" (why different?) rather than the "$@-t" used
102479         everywhere else.
102481         * modules/sysexits (Makefile.am): Replace literal occurrences
102482         of "sysexit.h" more readable, and more consistent, "$@".
102484 2006-09-06  Bruno Haible  <bruno@clisp.org>
102486         * modules/striconv: New file.
102487         * modules/xstriconv: New file.
102488         * MODULES.html.sh (Internationalization functions): Add striconv,
102489         xstriconv.
102491 2006-09-06  Bruno Haible  <bruno@clisp.org>
102493         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
102494         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
102495         not using libtool correctly.
102497 2006-09-06  Bruno Haible  <bruno@clisp.org>
102499         * lib/striconv.h: New file.
102500         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
102501         iconvstring.c.
102502         * lib/xstriconv.h: New file.
102503         * lib/xstriconv.c: New file.
102505 2006-09-06  Bruno Haible  <bruno@clisp.org>
102507         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
102508         lib_..._LDFLAGS.
102510 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102512         * lib/argz_.h: Sync from Libtool.
102514         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
102515                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
102517         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
102519 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
102521         * modules/trim: New file.
102523 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
102525         * lib/trim.h: New file.
102526         * lib/trim.c: New file.
102528 2006-09-05  Bruno Haible  <bruno@clisp.org>
102530         * MODULES.html.sh (String handling): Add trim.
102532 2006-09-04  Karl Berry  <karl@gnu.org>
102534         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
102535         until next release.
102537 2006-09-03  Bruno Haible  <bruno@clisp.org>
102539         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
102540         correctly.
102542 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
102544         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
102545         not gl_GETLOADAVG.  Omit unneeded semicolons.
102546         Problems reported by Ralf Wildenhues in
102547         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
102548         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
102549         at the end, which is the usual gnulib style.
102551         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
102552         of doing all the work ourselves.
102553         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
102554         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
102556 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
102558         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
102559         Problem reported by Ralf Wildenhues in
102560         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
102562         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
102563         HAVE_STRUCT_STATFS_F_FSTYPENAME.
102565 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
102567         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
102568         yesterday's patch by changing test -n to test -z.
102570 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
102572         * modules/getloadavg (Files): Add m4/getloadavg.m4.
102573         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
102574         the former is now obsolescent.
102576         * modules/chdir-long (Depends-on): Add fcntl.
102578 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
102580         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
102581         obsolescent, and programs should use gnulib instead.
102582         * m4/getloadavg.m4: New file, with contents taken from Autoconf
102583         but with prefixes changed.
102585 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
102587         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
102588         or stdbool.h, because they might not exist while configuring.
102590         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
102591         Don't include unistd.h or limits.h; not needed, since chdir-long.h
102592         does that for us.
102593         (O_DIRECTORY): Remove.
102595 2006-08-31  Eric Blake  <ebb9@byu.net>
102597         * gnulib-tool: Don't let emacs change spaces to TAB.
102599 2006-08-31  Bruno Haible  <bruno@clisp.org>
102601         * gnulib-tool: When calling func_import more than once, do it in a
102602         subshell.
102603         Reported by Eric Blake <ebb9@byu.net>.
102605 2006-08-31  Bruno Haible  <bruno@clisp.org>
102607         * gnulib-tool (nl): Remove variable.
102608         (sed_transform_lib_file): Use more robust test for config-h module.
102609         (func_import): Fix typo in 2006-08-25 patch.
102611 2006-08-31  Bruno Haible  <bruno@clisp.org>
102613         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
102614         specified, augment Makefile.am variables instead of assigning them.
102616 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
102618         Work around a bug in both the Linux and SunOS 64-bit kernels:
102619         nanosleep mishandles sleeps for longer than 2**31 seconds.
102620         Problem reported by Frank v Waveren in
102621         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
102622         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
102623         Check for nanosleep bug.
102624         (LIB_NANOSLEEP): Append clock_gettime library if needed.
102626 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
102628         Work around a bug in both the Linux and SunOS 64-bit kernels:
102629         nanosleep mishandles sleeps for longer than 2**31 seconds.
102630         Problem reported by Frank v Waveren in
102631         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
102632         * lib/nanosleep.c (BILLION): New constant.
102633         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
102634         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
102635         implementation.
102637 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
102639         * modules/nanosleep (Depends-on): Add gettime.
102641 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
102642         and Simon Josefsson  <jas@extundo.com>
102643         and Oskar Liljeblad  <oskar@osk.mine.nu>
102645         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
102646         * gnulib-tool (func_import): New license type 'unmodifiable license
102647         text'.
102648         * modules/fdl: Use it.  Longer description.
102649         * module/gpl, module/lgpl: New files.
102651 2006-08-30  Jim Meyering  <jim@meyering.net>
102653         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
102654         shadowing the parameter.
102656 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102658         Sync from Libtool:
102660         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102662         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
102663         sharing with gnulib.  Report by Eric Blake.
102665 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
102667         * modules/isapipe: New file.
102668         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
102670 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
102672         * modules/configmake (Makefile.am): Add a comment, and omit
102673         the CONFIGMAKE_ prefix from generated macro names.  Suggested
102674         by Bruno Haible.
102676 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
102678         * m4/isapipe.m4: New file.
102680 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
102682         * lib/isapipe.c, lib/isapipe.h: New files.
102684 2006-08-29  Jim Meyering  <jim@meyering.net>
102686         * modules/configmake (Makefile.am): Make configmake.h depend on
102687         Makefile.  Otherwise, a stale configmake.h could hang around.
102689 2006-08-29  Eric Blake  <ebb9@byu.net>
102691         * lib/error.c (error_at_line, print_errno_message): Match libc, after
102692         resolution of upstream bug 3044.
102694 2006-08-29  Bruno Haible  <bruno@clisp.org>
102696         * modules/localcharset (Depends-on): Add configmake.
102697         (Makefile.am): Remove setting of LIBDIR through DEFS.
102699 2006-08-29  Bruno Haible  <bruno@clisp.org>
102701         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
102702         defined.
102704 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
102706         * modules/fcntl: New file.
102707         * modules/chdir-safer (Depends-on): Add fcntl.
102708         * modules/fts: Likewise.
102709         * modules/mkdir-p: Likewise.
102711         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
102712         This undoes the most recent change, since we're now addressing the
102713         problem in a different way.
102715         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
102716         into output, since the output might be called Makefile.am even
102717         if $makefile_name is something different.
102718         (func_import): Use $makefile_am rather than
102719         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
102720         empty.
102722         * modules/inttypes (Files): Add m4/inttypes-h.m4.
102724 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
102726         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
102727         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
102728         recent change to stdint.m4, since we're now addressing the problem in a
102729         different way.
102731 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
102733         * m4/fcntl_h.m4: New file.
102735 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
102737         * lib/fcntl_.h: New file.
102738         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
102739         the fcntl module.
102740         * lib/dirchownmod.c: Likewise.
102741         * lib/fts.c: Likewise.
102743         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
102744         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
102745         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
102746         just before including <inttypes.h>, to avoid circular inclusion.
102748 2006-08-28  Jim Meyering  <jim@meyering.net>
102750         * doc/visibility.texi: Actually read and correct the grammar of the
102751         sentence affected by yesterday's change.
102753 2006-08-28  Eric Blake  <ebb9@byu.net>
102755         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
102756         needs wrapper.
102758 2006-08-28  Eric Blake  <ebb9@byu.net>
102760         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
102762 2006-08-28  Eric Blake  <ebb9@byu.net>
102764         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
102766 2006-08-28  Bruno Haible  <bruno@clisp.org>
102768         * modules/c-strstr: New file, from GNU gettext.
102769         * MODULES.html.sh (String handling): Add c-strstr.
102771 2006-08-28  Bruno Haible  <bruno@clisp.org>
102773         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
102774         macros.
102775         Reported by Eric Blake.
102777 2006-08-28  Bruno Haible  <bruno@clisp.org>
102779         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
102780         (VASNPRINTF): Return a string of length > INT_MAX without failing.
102781         * lib/vasprintf.c: Include errno.h, limits.h.
102782         (EOVERFLOW): New fallback definition.
102783         (vasprintf): Test here whether the string length is > INT_MAX.
102784         * lib/vsnprintf.c: Include errno.h, limits.h.
102785         (EOVERFLOW): New fallback definition.
102786         (vsnprintf): Fix bug when generated string was too long for the buffer.
102787         Test here whether the string length is > INT_MAX.
102789 2006-08-28  Bruno Haible  <bruno@clisp.org>
102791         * lib/inttypes_.h (SCNX*): Remove definitions.
102792         Reported by Eric Blake.
102794 2006-08-28  Bruno Haible  <bruno@clisp.org>
102796         * lib/c-strstr.h: New file, from GNU gettext.
102797         * lib/c-strstr.c: New file, from GNU gettext.
102799 2006-08-28  Bruno Haible  <bruno@clisp.org>
102801         * gnulib-tool: Reorder some statements.
102803 2006-08-28  Bruno Haible  <bruno@clisp.org>
102805         * gnulib-tool: New option --makefile-name.
102806         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
102807         $makefile_name.
102808         (func_import): Write $makefile_name to the cache file, and read it from
102809         there unless explicitly specified. Use $makefile_name as file name
102810         instead of Makefile.am. Adjust the recommendations accordingly.
102812 2006-08-28  Bruno Haible  <bruno@clisp.org>
102814         * gnulib-tool (func_verify_module): Check against misapplying patch.
102816 2006-08-28  Bruno Haible  <bruno@clisp.org>
102818         * gnulib-tool (func_relativize, func_relconcat): New functions.
102819         Give an error if --local-dir is given with --update.
102820         Remove trailing slashes from $local_gnulib_dir.
102821         (func_import): Store the relativized $local_gnulib_dir in
102822         gnulib-cache.m4, and read it from there if not specified explicitly.
102824 2006-08-28  Bruno Haible  <bruno@clisp.org>
102826         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
102827         is the current directory. Respect also $local_gnulib_dir.
102829 2006-08-28  Bruno Haible  <bruno@clisp.org>
102830             Simon Josefsson  <jas@extundo.com>
102832         BeOS portability.
102833         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
102835 2006-08-27  Jim Meyering  <jim@meyering.net>
102837         * doc/visibility.texi: Remove duplicate word: "pointer".
102839 2006-08-26  Bruno Haible  <bruno@clisp.org>
102841         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
102842         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
102843         (Makefile.am): Create inttypes.h from inttypes_.h.
102844         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
102846         * modules/imaxabs: New file.
102848         * modules/imaxdiv: New file.
102850 2006-08-26  Bruno Haible  <bruno@clisp.org>
102852         * m4/inttypes.m4: New file.
102853         * m4/_inttypes_h.m4: Remove file.
102854         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
102855         PRI_MACROS_BROKEN.
102856         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
102858         * m4/imaxabs.m4: New file.
102860         * m4/imaxdiv.m4: New file.
102862 2006-08-26  Bruno Haible  <bruno@clisp.org>
102864         * lib/inttypes_.h: New file.
102865         * lib/inttypes.h: Remove file.
102866         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
102868         * lib/imaxabs.c: New file.
102870         * lib/imaxdiv.c: New file.
102872 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
102874         New config-h module, so that "make" output needn't be cluttered
102875         by -DHAVE_CONFIG_H.
102876         * MODULES.html.sh (Support for building libraries and executables):
102877         Add config-h.
102878         * modules/config-h: New file.
102879         * gnulib-tool (nl, sed_transform_lib_file): New vars.
102880         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
102881         the config-h module is used.
102883         New configmake module, so that "make" output needn't be cluttered
102884         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
102885         * MODULES.html.sh (Support for building libraries and executables):
102886         Add configmake.
102887         * modules/configmake: New file.
102889 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
102891         * m4/config-h.m4: New file.
102893 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
102895         * config/srclist.txt: Add elisp-comp.
102897 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
102899         * MODULES.html.sh (Support for building libraries and executables):
102900         Add elisp-comp.
102901         * build-aux/elisp-comp: New file.
102902         * modules/elisp-comp: New file.
102904 2006-08-24  Bruno Haible  <bruno@clisp.org>
102906         * gnulib-tool (func_create_testdir): Use non-default values of
102907         sourcebase and m4base.
102909 2006-08-24  Bruno Haible  <bruno@clisp.org>
102911         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
102912         HTML structure.
102914 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
102916         * modules/openat (Depends-on): Add lchown.
102918 2006-08-23  Bruno Haible  <bruno@clisp.org>
102920         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
102921         of gl_LOCK_EARLY instead of gl_LOCK.
102923 2006-08-23  Bruno Haible  <bruno@clisp.org>
102925         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
102926         on OSF/1 to no.
102927         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
102929 2006-08-23  Bruno Haible  <bruno@clisp.org>
102931         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
102932         as unusable.
102934         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
102935         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
102936         (gl_LOCK): New macro.
102938 2006-08-22  Simon Josefsson  <jas@extundo.com>
102940         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
102941         to md5 module.
102943 2006-08-22  Simon Josefsson  <jas@extundo.com>
102945         * MODULES.html.sh: Add "Support for maintaining and release
102946         projects".
102948         * build-aux/gnupload: New file, from coreutils.
102950 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
102952         Avoid the need for AC_LIBSOURCES in m4 macros.
102953         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
102954         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
102955         * modules/check-version (EXTRA_DIST): Add check-version.h.
102956         * modules/crc (EXTRA_DIST): Add crc.h.
102957         * modules/des (EXTRA_DIST): Add des.h.
102958         * modules/gc (EXTRA_DIST): Add gc.h.
102959         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
102960         * modules/getline (EXTRA_DIST): Add getline.h.
102961         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
102962         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
102963         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
102964         * modules/md2 (EXTRA_DIST): Add md2.h.
102965         * modules/md4 (EXTRA_DIST): Add md4.h.
102966         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
102967         * modules/read-file (EXTRA_DIST): Add read-file.h.
102968         * modules/readline (EXTRA_DIST): Add readline.h.
102969         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
102970         rijndael-api-fst.h.
102972 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
102974         * m4/rijndael.m4 (gl_ARCFOUR):
102975         * m4/arctwo.m4 (gl_ARCTWO):
102976         * m4/check-version.m4 (gl_CHECK_VERSION):
102977         * m4/crc.m4 (gl_CRC):
102978         * m4/des.m4 (gl_DES):
102979         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
102980         * m4/gc.m4 (gl_GC):
102981         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
102982         * m4/getline.m4 (gl_FUNC_GETLINE):
102983         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
102984         * m4/hmac-md5.m4 (gl_HMAC_MD5):
102985         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
102986         * m4/md2.m4 (gl_MD2):
102987         * m4/md4.m4 (gl_MD4):
102988         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
102989         * m4/read-file.m4 (gl_FUNC_READ_FILE):
102990         * m4/readline.m4 (gl_FUNC_READLINE):
102991         * m4/rijndael.m4 (gl_RIJNDAEL):
102992         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
102993         to get the necessary .h files and whatnot.
102995 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
102997         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
102998         gnulib rather than the other way around.
102999         * config/srclistvars.sh (COREUTILS): Remove.
103001 2006-08-22  Jim Meyering  <jim@meyering.net>
103003         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
103005         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
103007 2006-08-22  Eric Blake  <ebb9@byu.net>
103009         * modules/regexprops-generic: New file.
103010         * MODULES.html.sh (Support for building documentation): List it.
103012 2006-08-22  Eric Blake  <ebb9@byu.net>
103014         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
103015         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
103016         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
103017         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
103019 2006-08-22  Bruno Haible  <bruno@clisp.org>
103021         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
103022         and lib_LTLIBRARIES like the other lib_* variables.
103024 2006-08-22  Bruno Haible  <bruno@clisp.org>
103026         * build-aux/x-to-1.in: New file, from GNU gettext.
103028 2006-08-22  Bruno Haible  <bruno@clisp.org>
103030         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
103031         <utmpx.h> exists.
103033 2006-08-22  Bruno Haible  <bruno@clisp.org>
103035         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
103036         <utmpx.h> exists.
103038 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
103040         BeOS portability.
103041         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
103042         exist.
103043         Problem reported by Bruno Haible.
103045 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
103047         Avoid the need for AC_LIBSOURCES in m4 macros.
103048         * modules/acl (EXTRA_DIST): Add acl.h.
103049         * modules/argmatch (Files): Add m4/argmatch.m4.
103050         (configure.ac): Add gl_ARGMATCH.
103051         (EXTRA_DIST): Renamed from lib_SOURCES, for
103052         consistency with the other modules.  Remove argmatch.c.
103053         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
103054         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
103055         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
103056         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
103057         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
103058         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
103059         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
103060         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
103061         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
103062         * modules/closeout (EXTRA_DIST): Add closeout.h.
103063         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
103064         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
103065         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
103066         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
103067         dirname.h; remove basename.c and stripslash.c.
103068         * modules/exclude (EXTRA_DIST): Add exclude.h.
103069         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
103070         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
103071         * modules/file-type (EXTRA_DIST): Add file-type.h.
103072         * modules/filemode (EXTRA_DIST): Add filemode.h.
103073         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
103074         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
103075         * modules/fpending (EXTRA_DIST): Add __fpending.h.
103076         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
103077         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
103078         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
103079         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
103080         * modules/getdate (EXTRA_DIST): Add getdate.c.
103081         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
103082         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
103083         * modules/getpass (EXTRA_DIST): Add getpass.h.
103084         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
103085         * modules/group-member (EXTRA_DIST): Add group-member.h.
103086         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
103087         * modules/hash (EXTRA_DIST): Add hash.h.
103088         * modules/human (EXTRA_DIST): Add human.h.
103089         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
103090         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
103091         * modules/lchown (EXTRA_DIST): Add lchown.h.
103092         * modules/long-options (EXTRA_DIST): Add long-options.h.
103093         * modules/lstat (EXTRA_DIST): Add lstat.h.
103094         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
103095         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
103096         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
103097         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
103098         * modules/memxor (EXTRA_DIST): Add memxor.h.
103099         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
103100         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
103101         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
103102         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
103103         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
103104         * modules/physmem (EXTRA_DIST): Add physmem.h.
103105         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
103106         * modules/posixver (EXTRA_DIST): Add posixver.h.
103107         * modules/quote (EXTRA_DIST): Add quote.h.
103108         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
103109         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
103110         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
103111         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
103112         regex_internal.h regexec.c.
103113         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
103114         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
103115         * modules/same (EXTRA_DIST): Add same.h.
103116         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
103117         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
103118         * modules/savedir (EXTRA_DIST): Add savedir.h.
103119         * modules/sha1 (EXTRA_DIST): Add sha1.h.
103120         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
103121         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
103122         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
103123         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
103124         * modules/strdup (EXTRA_DIST): Add strdup.h.
103125         * modules/strftime (EXTRA_DIST): Add strftime.h.
103126         * modules/strndup (EXTRA_DIST): Add strndup.h.
103127         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
103128         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
103129         * modules/time_r (EXTRA_DIST): Add time_r.h.
103130         * modules/timespec (EXTRA_DIST): Add timespec.h.
103131         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
103132         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
103133         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
103134         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
103135         * modules/userspec (EXTRA_DIST): Add userspec.h.
103136         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
103137         * modules/utimens (EXTRA_DIST): Add utimens.h.
103138         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
103139         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
103140         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
103141         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
103142         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
103143         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
103144         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
103145         * modules/yesno (EXTRA_DIST): Add yesno.h.
103147 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
103149         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
103151         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
103152         * m4/dev-ino.m4, same-inode.m4: Remove.
103154         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
103155         * m4/acl.m4 (AC_FUNC_ACL):
103156         * m4/backupfile.m4 (gl_BACKUPFILE):
103157         * m4/c-strtod.m4 (gl_C99_STRTOLD):
103158         * m4/canon-host.m4 (gl_CANON_HOST):
103159         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
103160         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
103161         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
103162         * m4/cloexec.m4 (gl_CLOEXEC):
103163         * m4/close-stream.m4 (gl_CLOSE_STREAM):
103164         * m4/closeout.m4 (gl_CLOSEOUT):
103165         * m4/dirfd.m4 (gl_FUNC_DIRFD):
103166         * m4/dirname.m4 (gl_DIRNAME):
103167         * m4/exclude.m4 (gl_EXCLUDE):
103168         * m4/exitfail.m4 (gl_EXITFAIL):
103169         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
103170         * m4/file-type.m4 (gl_FILE_TYPE):
103171         * m4/filemode.m4 (gl_FILEMODE):
103172         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
103173         * m4/fpending.m4 (gl_FUNC_FPENDING):
103174         * m4/fprintftime.m4 (gl_FPRINTFTIME):
103175         * m4/fts.m4 (gl_FUNC_FTS):
103176         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
103177         * m4/getdate.m4 (gl_GETDATE):
103178         * m4/gethrxtime.m4 (gl_GETHRXTIME):
103179         * m4/getpagesize.m4 (gl_GETPAGESIZE):
103180         * m4/getpass.m4 (gl_FUNC_GETPASS):
103181         * m4/gettime.m4 (gl_GETTIME):
103182         * m4/getugroups.m4 (gl_GETUGROUPS):
103183         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
103184         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
103185         * m4/hard-locale.m4 (gl_HARD_LOCALE):
103186         * m4/hash.m4 (gl_HASH):
103187         * m4/idcache.m4 (gl_IDCACHE):
103188         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
103189         * m4/lchown.m4 (gl_FUNC_LCHOWN):
103190         * m4/long-options.m4 (gl_LONG_OPTIONS):
103191         * m4/lstat.m4 (gl_FUNC_LSTAT):
103192         * m4/md5.m4 (gl_MD5):
103193         * m4/memcasecmp.m4 (gl_MEMCASECMP):
103194         * m4/memcoll.m4 (gl_MEMCOLL):
103195         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
103196         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
103197         * m4/memxor.m4 (gl_MEMXOR):
103198         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
103199         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
103200         * m4/modechange.m4 (gl_MODECHANGE):
103201         * m4/mountlist.m4 (gl_MOUNTLIST):
103202         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
103203         * m4/openat.m4 (gl_FUNC_OPENAT):
103204         * m4/pathmax.m4 (gl_PATHMAX):
103205         * m4/physmem.m4 (gl_PHYSMEM):
103206         * m4/posixtm.m4 (gl_POSIXTM):
103207         * m4/posixver.m4 (gl_POSIXVER):
103208         * m4/quote.m4 (gl_QUOTE):
103209         * m4/quotearg.m4 (gl_QUOTEARG):
103210         * m4/readtokens.m4 (gl_READTOKENS):
103211         * m4/readutmp.m4 (gl_READUTMP):
103212         * m4/regex.m4 (gl_REGEX):
103213         * m4/safe-read.m4 (gl_SAFE_READ):
103214         * m4/safe-write.m4 (gl_SAFE_WRITE):
103215         * m4/same.m4 (gl_SAME):
103216         * m4/save-cwd.m4 (gl_SAVE_CWD):
103217         * m4/savedir.m4 (gl_SAVEDIR):
103218         * m4/settime.m4 (gl_SETTIME):
103219         * m4/sha1.m4 (gl_SHA1):
103220         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
103221         * m4/stat-macros.m4 (gl_STAT_MACROS):
103222         * m4/stat-time.m4 (gl_STAT_TIME):
103223         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
103224         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
103225         * m4/strdup.m4 (gl_FUNC_STRDUP):
103226         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
103227         * m4/strndup.m4 (gl_FUNC_STRNDUP):
103228         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
103229         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
103230         * m4/time_r.m4 (gl_TIME_R):
103231         * m4/timespec.m4 (gl_TIMESPEC):
103232         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
103233         * m4/unlinkdir.m4 (gl_UNLINKDIR):
103234         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
103235         * m4/userspec.m4 (gl_USERSPEC):
103236         * m4/utimecmp.m4 (gl_UTIMECMP):
103237         * m4/utimens.m4 (gl_UTIMENS):
103238         * m4/xalloc.m4 (gl_XALLOC):
103239         * m4/xgetcwd.m4 (gl_XGETCWD):
103240         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
103241         * m4/xreadlink.m4 (gl_XREADLINK):
103242         * m4/xstrtod.m4 (gl_XSTRTOD):
103243         * m4/yesno.m4 (gl_YESNO):
103244         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
103245         to get the necessary .h files and whatnot.
103247 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
103248             Bruno Haible  <bruno@clisp.org>
103250         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
103251         /bin/sh understanding of '!' conditional negation.
103253 2006-08-21  Jim Meyering  <jim@meyering.net>
103255         * modules/openat (Depends-on): Really alphabetize.
103257         * modules/acl (Depends-on): Add error and quote.
103259         * check-module (find_included_lib_files): Add at-func.c to the
103260         ok-to-include-more-than-once white list.
103262         * modules/openat (Depends-on): Add lstat.  Alphabetize.
103264 2006-08-21  Bruno Haible  <bruno@clisp.org>
103266         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
103267         Emit a pkgdata_DATA variable only if some snippets add contents to it.
103268         Reported by Martin Lambers <marlam@marlam.de>.
103270 2006-08-21  Bruno Haible  <bruno@clisp.org>
103272         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
103273         specify an installation location, don't emit a noinst_LIBRARIES or
103274         noinst_LTLIBRARIES assignment.
103276 2006-08-21  Bruno Haible  <bruno@clisp.org>
103278         BeOS portability.
103279         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
103280         BeOS has mbrtowc() but no <wctype.h>.
103282 2006-08-21  Bruno Haible  <bruno@clisp.org>
103284         BeOS portability.
103285         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
103286         exist.
103288 2006-08-21  Bruno Haible  <bruno@clisp.org>
103290         BeOS portability.
103291         * lib/mbchar.h: Include <wctype.h> only if it exists.
103293 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
103295         Remove files that are no longer needed by their respective modules.
103296         * m4/obstack.m4: Remove.
103297         * m4/strerror_r.m4: Remove.
103298         * m4/uint32_t.m4: Remove.
103299         * m4/uintptr_t.m4: Remove.
103300         * m4/ullong_max.m4: Remove.
103301         * m4/xstrtoimax.m4: Remove.
103302         * m4/xstrtoumax.m4: Remove.
103304         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
103305         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
103306         dependencies now capture this.
103308         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
103309         Do not use AC_LIBSOURCES, since gnulib modules now do this.
103310         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
103311         * m4/human.m4 (gl_HUMAN): Likewise.
103312         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
103313         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
103315         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
103317         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
103318         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
103319         stdint.
103320         * m4/human.m4 (gl_HUMAN): Likewise.
103321         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
103322         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
103323         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
103324         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
103325         * m4/xstrtol (gl_XSTRTOL): Likewise.
103327         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
103328         AC_TYPE_LONG_LONG_INT.
103329         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
103330         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
103331         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
103332         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
103334         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
103335         on stdbool.
103337         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
103338         (gl_PREREQ_XSTRTOUL): Remove.
103340         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
103342         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
103343         mode.
103345 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
103347         Add and change modules to make it easier for coreutils to use
103348         gnulib-tool.
103349         * modules/backupfile (Files): Remove m4/d-ino.m4.
103350         (Depends-on): Add d-ino.
103351         * modules/cycle-check (Depends-on): Add stdint.
103352         (lib_SOURCES): Add cycle-check.h.
103353         * modules/d-ino: New module.
103354         * modules/d-type: New module.
103355         * modules/error (Files): Remove m4/strerror_r.m4.
103356         * modules/filemode (Files): Add m4/st_dm_mode.m4.
103357         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
103358         m4/inttypes_h.m4, m4/uintmax_t.m4.
103359         (Depends-on): Add stdint.
103360         (lib_SOURCES): Add fsusage.h.
103361         * modules/getcwd (Files): Remove d-ino.m4.
103362         (Depends-on): Add d-ino.
103363         * modules/getndelim2 (Depends-on): Add stdint.
103364         * modules/glob (Files): Remove m4/d-type.m4.
103365         (Depends-on): Add d-type.
103366         * modules/host-os: New module.
103367         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
103368         m4/inttypes_h.m4, m4/uintmax_t.m4.
103369         * Depends-on: Add stdint.
103370         (lib_SOURCES): Add human.h.
103371         * modules/inttostr (Files): Remove m4/intmax_t.m4,
103372         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
103373         m4/uintmax_t.m4, m4/ulonglong.m4.
103374         (Depends-on): Add stdint.
103375         (EXTRA_DIST): Add inttostr.h.
103376         * modules/lchmod: New module.
103377         * modules/link-follow: New module.
103378         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
103379         (Depends-on): Add lchmod.
103380         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
103381         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
103382         (Depends-on): Add stdint.
103383         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
103384         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
103385         (Depends-on): Add stdint.
103386         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
103387         * modules/perl: New module.
103388         * modules/regex (Depends-on): Add stdint.
103389         * modules/rmdir-errno: New module.
103390         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
103391         m4/intmax_t.m4.
103392         (Depends-on): Add stdint.
103393         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
103394         m4/uintmax_t.m4.
103395         (Depends-on): Add stdint.
103396         * modules/unlink-busy: New module.
103397         * modules/utimecmp (Depends-on): Add stdint.
103398         * modules/uptime: New module.
103399         * modules/winsz-ioctl: New module.
103400         * modules/winsz-termios: New module.
103401         * modules/xnanosleep (Depends-on): Add nanosleep.
103402         * modules/ullong_max: Remove.
103403         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
103404         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
103405         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
103406         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
103407         (Depends-on): Add inttypes.
103408         (lib_SOURCES): Add xstrtol.h.
103409         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
103410         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
103411         * MODULES.html.sh: Move 'assert' into the assert section.
103412         Move 'dummy' into the linking section.
103413         Remove ullong_max.
103414         Add section for compatibility checks for POSIX:2001 functions,
103415         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
103416         winsz-ioctl, and winsz-termios into it.
103417         Add lchmod.
103418         Add top-level Misc section and put host-os, perl, and uptime
103419         into it.
103421 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
103423         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
103424         now assume the stdint module.  Do not include inttypes.h.
103425         * lib/fsusage.h: Likewise.
103426         * lib/getndelim2.c: Likewise.
103427         * lib/human.h: Likewise.
103428         * lib/inttostr.h: Likewise.
103429         * lib/obstack.c: Likewise.
103430         * lib/regex_internal.h: Likewise.
103431         * lib/tempname.c: Likewise.
103432         * lib/utimecmp.c: Likewise.
103433         * lib/xstrtol.h: Likewise.
103435         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
103437         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
103438         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
103439         * lib/xtime.h: Likewise.
103441 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
103443         * modules/openat (Files): Add lib/fchmodat.c.
103444         Fixes problem reported by Jay Youngman.
103446 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
103448         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
103449         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
103451 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
103452             Bruno Haible  <bruno@clisp.org>
103454         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
103455         and is a script that invokes bison. Tighten the code. Add comments.
103457 2006-08-18  Jim Meyering  <jim@meyering.net>
103459         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
103460         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
103461         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
103462         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
103464 2006-08-18  Bruno Haible  <bruno@clisp.org>
103466         * modules/bison-i18n: New file.
103467         * MODULES.html.sh (Internationalization functions): Add it.
103469 2006-08-18  Bruno Haible  <bruno@clisp.org>
103471         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
103472         sys/statvfs.h. When getmntinfo was found, check its declaration and
103473         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
103475 2006-08-18  Bruno Haible  <bruno@clisp.org>
103477         * m4/bison-i18n.m4: New file, from bison.
103479 2006-08-18  Bruno Haible  <bruno@clisp.org>
103481         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
103482         (ME_DUMMY): Treat "kernfs" as a dummy.
103483         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
103485 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
103487         Update from coreutils.
103489         2006-08-15  Jim Meyering  <jim@meyering.net>
103491         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
103493         2006-01-17  Jim Meyering  <jim@meyering.net>
103495         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
103497         2006-01-11  Jim Meyering  <jim@meyering.net>
103499         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
103500         Check for the lchmod function.
103502 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
103504         Update from coreutils.
103506         * lib/__fpending.h: Add copyright notice.
103507         * lib/fprintftime.h: Likewise.
103508         * lib/savedir.c: Use (C) in copyright notice.
103509         * lib/savedir.h: Likewise.
103511         2006-08-15  Jim Meyering  <jim@meyering.net>
103513         * lib/at-func.c: New file, with the logic of all emulated at-functions.
103514         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
103515         in support of the EXPECTED_ERRNO macro.
103516         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
103517         definitions.  Instead, define the appropriate symbols and include
103518         "at-func.c".
103519         * lib/mkdirat.c (mkdirat): Likewise.
103520         * lib/fchmodat.c (fchmodat): Likewise.
103521         (ENOSYS): Remove definition.
103522         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
103523         it.  Don't include "unistd--.h" -- it wasn't ever used.
103525         2006-01-17  Jim Meyering  <jim@meyering.net>
103527         Rewrite fts.c not to change the current working directory,
103528         by using openat, fstatat, fdopendir, etc..
103530         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
103531         (HAVE_OPENAT_SUPPORT): Define.
103532         [_LIBC] (fchdir): Don't undef or define; no longer used.
103533         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
103534         Now, this `function' always succeeds, and consumes its file descriptor
103535         parameter -- so callers must not close such FDs.  Update callers.
103536         (diropen_fd, opendirat, cwd_advance_fd): New functions.
103537         (diropen): Add parameter, SP.  Adjust all callers.
103538         Implement using diropen_fd, rather than open.
103539         (fts_open): Initialize new member, fts_cwd_fd.
103540         Remove fts_rft-setting code.
103541         (fts_close): Close fts_cwd_fd, if necessary.
103542         (__opendir2): Define in terms of opendir or opendirat,
103543         depending on whether the FST_NOCHDIR flag is set.
103544         (fts_build): Since fts_safe_changedir consumes its FD, and since
103545         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
103546         and close the dup'd file descriptor upon failure.
103547         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
103548         (fts_safe_changedir): Tweak semantics to reflect that this function
103549         now calls cwd_advance_fd and hence consumes its FD argument.
103550         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
103551         [struct FTS] (fts_rft): Remove now-unused member.
103552         [struct FTS] (fts_cycle.state): Improve comment.
103554         * lib/openat.c (openat_needs_fchdir): New function.
103555         * lib/openat.h (openat_needs_fchdir): Declare it.
103557 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
103559         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
103560         Problem and fix reported by Pádraig Brady in
103561         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00099.html>.
103563 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
103565         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
103567 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
103569         * lib/memcoll.c (memcoll): Optimize for the common case where the
103570         arguments are bytewise equal.
103572 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
103574         * doc/regexprops-generic.texi: Add a copyright notice.
103576 2006-08-15  Bruno Haible  <bruno@clisp.org>
103578         * modules/tmpdir (License): Change to LGPL.
103580 2006-08-15  Bruno Haible  <bruno@clisp.org>
103582         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
103583         module.
103585 2006-08-14  Simon Josefsson  <jas@extundo.com>
103587         * config/srclist.txt: Add gnupload.
103589 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
103591         Change copyright notice from LGPL 2 to GPL 2, since that's the
103592         standard form used in the gnulib repository.
103593         * tests/test-lock.c: Likewise.
103594         * tests/test-stdint.c: Likewise.
103595         * tests/test-tls.c: Likewise.
103597         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
103598         prelude-manager.  User shorter URLs for GNU projects, without '?'.
103599         Add copyright notice.
103601         * check-module: Add copyright notice.  Output a copyright
103602         notice if "--version" is specified.
103603         * modules/COPYING: New file.
103604         * tests/test-getaddrinfo.c: Add copyright notice.
103605         * tests/test-verify.c: Likewise.
103607 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
103609         Change copyright notice from LGPL 2 to GPL 2, since that's the
103610         standard form used in the gnulib repository.
103611         * lib/lock.c: LGPL -> GPL.
103612         * lib/lock.h: Likewise.
103613         * lib/strnlen1.c: Likewise.
103614         * lib/strnlen1.h: Likewise.
103615         * lib/tls.c: Likewise.
103616         * lib/tls.h: Likewise.
103617         * lib/tmpdir.c: Likewise.
103619         * lib/TODO: Remove; this belongs only in coreutils.
103621 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
103623         Add copyright notices to long-enough files that lack them, since
103624         otherwise the files aren't clearly free.  Use the same notice that
103625         getdate.texi already uses.
103626         * doc/alloca-opt.texi: Add copyright notice.
103627         * doc/alloca.texi: Likewise.
103628         * doc/ctime.texi: Likewise.
103629         * doc/functions.texi: Likewise.
103630         * doc/gcd.texi: Likewise.
103631         * doc/gnulib-tool.texi: Likewise.
103632         * doc/inet_ntoa.texi: Likewise.
103633         * doc/visibility.texi: Likewise.
103635         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
103636         * doc/quote.texi: Add copyright notice.
103638         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
103639         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
103640         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
103641         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
103642         is now obsolete, and give a pointer to the Sun list.
103643         Add copyright notice.
103645 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
103647         * config/srclistvars.sh: Add copyright notice.
103649 2006-08-14  Eric Blake  <ebb9@byu.net>
103651         Import the following change from libc:
103653         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
103655         Upstream bug 2997.
103656         * lib/misc/error.c: Add space between program name and message if file
103657         name is missing.
103659 2006-08-12  Karl Berry  <karl@gnu.org>
103661         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
103662         remove, these originate in gnulib now.
103664 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103666         * doc/Makefile (standards.info standards.html standards.dvi):
103667         Also depend on make-stds.texi.
103669 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
103671         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
103672         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
103674         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
103675         in wchar_t.  Problem reported by Eric Blake.
103677         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
103678         LEN is smaller than SIZE.  Suggested by Bruno Haible.
103679         Also, help the compiler to keep LEN in a register.
103681 2006-08-11  Eric Blake  <ebb9@byu.net>
103683         * users.txt: Sort.  Add tar.
103685 2006-08-11  Bruno Haible  <bruno@clisp.org>
103687         * users.txt: New file.
103689 2006-08-11  Bruno Haible  <bruno@clisp.org>
103691         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
103692         before <wchar.h>. Needed for OSF/1 and BSD/OS.
103694 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
103696         * modules/snprintf (Depends-on): Remove minmax.
103697         (Maintainer): Add self and Bruno.
103699 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
103701         * lib/.cppi-disable: Add snprintf.h, socket_.h.
103702         * lib/snprintf.c: Include <errno.h> and <limits.h>.
103703         (EOVERFLOW): Define if the system does not.
103704         Do not include "minmax.h"; it wasn't used.
103705         (snprintf): Don't assume size_t promotes to an unsigned type.
103706         Fix bug when generated string was too long for the buffer: the
103707         buffer's contents are supposed to be the initial prefix of the
103708         output.  Don't assume vasnprintf returns EOVERFLOW if the size
103709         exceeds INT_MAX; do the check ourselves.
103711         Import the following changes from libc:
103713         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
103715         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
103716         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
103717         set wc to the byte which couldn't be converted.
103718         (re_string_reconstruct): Don't clear valid_raw_len before calling
103719         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
103720         tip_context using re_string_context_at.
103722         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
103724         * lib/posix/regex.h: g++ still cannot handled [restrict].
103726         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
103728         * lib/posix/regex.h: Remove special handling for VMS.
103730 2006-08-10  Jim Meyering  <jim@meyering.net>
103732         * modules/same-inode: New module.
103733         * modules/dev-ino: New module.
103734         * modules/cycle-check: Depend on these modules, rather than simply
103735         including their .h files.
103736         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
103737         required via m4/cycle-check.m4.
103738         * modules/same: Depend on new same-inode module, rather than
103739         including same-inode.h.
103740         * modules/chdir-safer: New file.
103742         * modules/chown (Depends-on): Add stat-macros.
103744 2006-08-10  Jim Meyering  <jim@meyering.net>
103746         * m4/cycle-check.m4: New file.
103747         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
103748         * m4/dev-ino.m4, m4/same-inode.m4: New files.
103750 2006-08-10  Eric Blake  <ebb9@byu.net>
103752         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
103753         in from original proposal.
103755 2006-08-10  Eric Blake  <ebb9@byu.net>
103756         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
103758         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
103759         namespace.
103761 2006-08-10  Bruno Haible  <bruno@clisp.org>
103763         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
103764         as well.
103766 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
103768         Sync from coreutils.
103770         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
103772         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
103773         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
103775 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
103777         * modules/restrict: Remove; no longer needed now that we assume
103778         Autoconf 2.59 or later.
103779         * MODULES.html.sh: Remove 'restrict'.
103780         * modules/argp (Depends-on): Remove 'restrict'.
103781         * modules/base64 (Depends-on): Likewise.
103782         * modules/gc (Depends-on): Likewise.
103783         * modules/getaddrinfo (Depends-on): Likewise.
103784         * modules/glob (Depends-on): Likewise.
103785         * modules/inet_ntop (Depends-on): Likewise.
103786         * modules/inet_pton (Depends-on): Likewise.
103787         * modules/memxor (Depends-on): Likewise.
103788         * modules/regex (Depends-on): Likewise.
103789         * modules/strtok_r (Depends-on): Likewise.
103790         * modules/time_r (Depends-on): Likewise.
103792 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
103794         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
103795         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
103796         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
103797         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
103798         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
103799         * m4/memxor.m4 (gl_MEMXOR): Likewise.
103800         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
103801         gl_C_RESTRICT replaced by AC_C_RESTRICT.
103803         Merge from coreutils.
103804         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
103805         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
103806         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
103807         * m4/time_r.m4 (gl_TIME_R): Likewise.
103809 2006-08-09  Karl Berry  <karl@gnu.org>
103811         * config/srclist.txt: no more gettext-tools, per Bruno.
103813 2006-08-08  Eric Blake  <ebb9@byu.net>
103815         * modules/verror: New module.
103816         * MODULES.html.sh: Document it.
103818 2006-08-08  Eric Blake  <ebb9@byu.net>
103820         * lib/verror.h, lib/verror.c: New files.
103822 2006-08-08  Eric Blake  <ebb9@byu.net>
103824         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
103825         verror_at_line output complies with GNU Coding Standards even when
103826         file is NULL.
103828 2006-08-07  Bruno Haible  <bruno@clisp.org>
103830         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
103831         versions of AIX.
103832         Reported by Ralf Wildenhues.
103834 2006-08-07  Bruno Haible  <bruno@clisp.org>
103836         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
103837         in an AC_DEFUN. Needed so that the autoconf snippets can use
103838         AC_REQUIRE.
103840 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103842         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
103843         Initialize pkgdata_DATA.
103844         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
103845         overriding it.
103847 2006-08-06  Eric Blake  <ebb9@byu.net>
103849         * lib/error.h: Fold in some upstream changes from glibc.
103850         * lib/error.c: Likewise.
103852 2006-08-04  Bruno Haible  <bruno@clisp.org>
103854         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
103855         Make the mostlyclean-local rule depend on mostlyclean-generic.
103856         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
103858 2006-07-31  Bruno Haible  <bruno@clisp.org>
103860         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
103861         <stdlib.h>, <string.h>.
103863 2006-07-30  Bruno Haible  <bruno@clisp.org>
103865         * modules/readlink (License): Change to LGPL.
103867 2006-07-30  Bruno Haible  <bruno@clisp.org>
103869         * modules/javaversion (Makefile.am): Distribute javaversion.java and
103870         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
103871         set PKGDATADIR to point to it.
103873 2006-07-30  Bruno Haible  <bruno@clisp.org>
103875         * modules/csharpexec (configure.ac): Comment out macro invocation.
103876         * modules/javaexec (configure.ac): Likewise.
103877         * modules/javacomp-script (configure.ac): Likewise.
103879         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
103881 2006-07-30  Bruno Haible  <bruno@clisp.org>
103883         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
103884         linked-list.
103886 2006-07-30  Bruno Haible  <bruno@clisp.org>
103888         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
103890 2006-07-30  Bruno Haible  <bruno@clisp.org>
103892         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
103893         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
103894         get removed.
103896 2006-07-29  Bruno Haible  <bruno@clisp.org>
103898         Make it possible for gnulib-tool to work with locally modified or
103899         augmented gnulib repositories.
103900         * gnulib-tool (func_usage): Document --local-dir option.
103901         (local_gnulib_dir): New variable.
103902         Handle --local-dir option.
103903         (func_lookup_file): New function.
103904         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
103905         (func_get_description, func_get_filelist, func_get_description,
103906         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
103907         func_get_automake_snippet, func_get_include_directive,
103908         func_get_license, func_get_maintainer): Use func_lookup_file.
103909         (func_import, func_create_testdir): Use func_lookup_file.
103911 2006-07-29  Bruno Haible  <bruno@clisp.org>
103913         * modules/setenv (Depends-on): Add unistd.
103915 2006-07-29  Bruno Haible  <bruno@clisp.org>
103917         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
103919 2006-07-29  Bruno Haible  <bruno@clisp.org>
103921         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
103923 2006-07-29  Bruno Haible  <bruno@clisp.org>
103925         * gnulib-tool (import, update): If there is no Makefile.am, look at
103926         aclocal.m4, instead of bailing out.
103928 2006-07-29  Bruno Haible  <bruno@clisp.org>
103930         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
103931         Categorize the options by when they are useful.
103933 2006-07-29  Bruno Haible  <bruno@clisp.org>
103935         * gnulib-tool (func_usage): Document option --no-libtool.
103936         Handle option --no-libtool.
103937         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
103938         for changed semantics of $libtool variable.
103939         (func_import): Likewise. If libtool is not used, show this through
103940         an option --no-libtool.
103941         (func_create_testdir): Update.
103943 2006-07-29  Bruno Haible  <bruno@clisp.org>
103945         * gnulib-tool (func_import): Extend error message about missing
103946         --doc-base.
103948 2006-07-29  Bruno Haible  <bruno@clisp.org>
103950         * gnulib-tool (func_import): Don't create the $docbase directory if
103951         there is no file to store there.
103953 2006-07-29  Bruno Haible  <bruno@clisp.org>
103955         * gnulib-tool (autoconf_minversion): If a --dir option is given and
103956         relevant, look for configure.ac there, not in the current directory.
103957         Also use a simple search for AC_PREREQ, not "autoconf --trace".
103959 2006-07-29  Bruno Haible  <bruno@clisp.org>
103961         * gnulib-tool (SORT): New variable.
103962         (func_usage): Undocument --assume-autoconf option.
103963         Remove --assume-autoconf option handling.
103964         (autoconf_minversion): Determine from the contents of configure.ac.
103965         (func_import): Remove autoconf_minversion handling.
103966         Suggested by Eric Blake.
103968 2006-07-29  Bruno Haible  <bruno@clisp.org>
103970         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
103972 2006-07-29  Bruno Haible  <bruno@clisp.org>
103974         * config/srclist.txt (*setenv.[ch]): Remove rules.
103976 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
103978         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
103980 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
103982         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
103983         arpa/inet.h.
103985 2006-07-28  Simon Josefsson  <jas@extundo.com>
103987         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
103988         * modules/inet_pton (Depends-on): Likewise.
103990 2006-07-28  Simon Josefsson  <jas@extundo.com>
103992         * m4/netinet_in_h.m4: New file.
103994 2006-07-28  Simon Josefsson  <jas@extundo.com>
103996         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
103997         #include's.
103999 2006-07-28  Simon Josefsson  <jas@extundo.com>
104001         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
104002         #include's.
104004 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
104006         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
104007         setgid on directories only if they set these bits.
104008         * lib/modechange.h: Remove obsolete comment about masks.
104010 2006-07-28  Eric Blake  <ebb9@byu.net>
104012         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
104013         macro expansion.
104015 2006-07-28  Bruno Haible  <bruno@clisp.org>
104017         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
104019 2006-07-28  Bruno Haible  <bruno@clisp.org>
104021         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
104023 2006-07-28  Bruno Haible  <bruno@clisp.org>
104025         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
104026         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
104027         Define fallbacks.
104028         Avoids link error on FreeBSD 4.x.
104029         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
104031         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
104032         encoding.
104033         * lib/mbswidth.c (iswcntrl): Likewise.
104035 2006-07-27  Bruno Haible  <bruno@clisp.org>
104037         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
104038         test.
104040 2006-07-27  Bruno Haible  <bruno@clisp.org>
104042         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
104043         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
104044         defined.
104046 2006-07-26  Eric Blake  <ebb9@byu.net>
104048         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
104050 2006-07-26  Eric Blake  <ebb9@byu.net>
104052         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
104053         like mingw that lack mkstemp.
104054         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
104055         avoid compilation warning on mingw.
104057 2006-07-26  Bruno Haible  <bruno@clisp.org>
104059         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
104060         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
104061         INT_FAST*_MIN, INTPTR_MIN.
104063 2006-07-25  Bruno Haible  <bruno@clisp.org>
104065         * modules/version-etc (Depends-on): Add stdarg.
104067 2006-07-25  Bruno Haible  <bruno@clisp.org>
104069         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
104070         complex commands.
104072 2006-07-25  Bruno Haible  <bruno@clisp.org>
104074         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
104075         defined in <stdarg.h> or config.h.
104077 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
104079         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
104080         (gl_STDIO_SAFER): Remove.
104082 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
104084         * MODULES.html.sh (File stream based Input/Output):
104085         Add fopen-safer, tmpfile-safer; remove stdio-safer.
104086         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
104087         * modules/fopen-safer, modules/tmpfile-safer: New files.
104088         * modules/stdio-safer: Remove.
104090 2006-07-24  Bruno Haible  <bruno@clisp.org>
104092         * modules/tmpdir: New file.
104093         * MODULES.html.sh (File system functions): Add it.
104095 2006-07-24  Bruno Haible  <bruno@clisp.org>
104097         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
104098         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
104100 2006-07-24  Bruno Haible  <bruno@clisp.org>
104102         * modules/clean-temp: New file.
104104 2006-07-24  Bruno Haible  <bruno@clisp.org>
104106         * m4/tmpdir.m4: New file, from GNU gettext.
104108 2006-07-24  Bruno Haible  <bruno@clisp.org>
104110         * lib/tmpdir.h: New file, from GNU gettext.
104111         * lib/tmpdir.c: New file, from GNU gettext.
104113 2006-07-24  Bruno Haible  <bruno@clisp.org>
104115         * lib/clean-temp.h: New file, from GNU gettext.
104116         * lib/clean-temp.c: New file, from GNU gettext.
104118 2006-07-23  Eric Blake  <ebb9@byu.net>
104120         * modules/stdio-safer (Files): Add tmpfile-safer.c.
104121         (Depends-on): Add binary-io.
104123 2006-07-23  Eric Blake  <ebb9@byu.net>
104125         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
104127 2006-07-23  Eric Blake  <ebb9@byu.net>
104129         * lib/tmpfile-safer.c: New file.
104130         * lib/stdio-safer.h (fopen_safer): Add prototype.
104131         * lib/stdio--.h (tmpfile): Make safer.
104133 2006-07-23  Bruno Haible  <bruno@clisp.org>
104135         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
104136         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
104137         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
104138         gl_linked_remove_at): Use it.
104140 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
104141         and Simon Josefsson <jas@extundo.com>
104143         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
104145         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
104147 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
104149         * modules/close-stream: New file.
104150         * modules/closeout (Description): Make it clear that it exits
104151         with a diagnostic on error.
104152         (Depends-on): Add close-stream.  Remove fpending, stdbool.
104153         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
104155 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
104157         * m4/close-stream.m4: New file.
104159 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
104161         * lib/close-stream.c, lib/close-stream.h: New files.
104163 2006-07-22  Bruno Haible  <bruno@clisp.org>
104165         Merge from GNU gettext 0.15.
104167         2006-05-01  Bruno Haible  <bruno@clisp.org>
104169                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
104171         2006-07-22  Bruno Haible  <bruno@clisp.org>
104173                 * modules/javaversion: New file.
104174                 * MODULES.html.sh (Java): Add javaversion.
104176         2006-03-12  Bruno Haible  <bruno@clisp.org>
104178                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
104180         2005-12-04  Bruno Haible  <bruno@clisp.org>
104182                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
104183                 (untested).
104185         2006-06-21  Bruno Haible  <bruno@clisp.org>
104187                 Avoid warnings from recent versions of mcs.
104188                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
104189                 -o, -L, -r any more. Use options documented since mcs-1.0
104190                 instead. Similarly for -g.
104192         2005-12-04  Bruno Haible  <bruno@clisp.org>
104194                 * build-aux/csharpcomp.sh.in: Suffix for resources is
104195                 .resources, not .resource.
104197         2005-07-09  Bruno Haible  <bruno@clisp.org>
104199                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
104200                 add a .dll suffix.
104201                 Reported by Mark Junker <mjscod@gmx.de>.
104203         2006-07-22  Bruno Haible  <bruno@clisp.org>
104205                 * modules/gettext: Upgrade to gettext-0.15.
104206                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
104207                 m4/visibility.m4.
104208                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
104210 2006-07-22  Bruno Haible  <bruno@clisp.org>
104212         Merge from GNU gettext 0.15.
104214         2006-03-25  Bruno Haible  <bruno@clisp.org>
104216                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
104218         2006-07-21  Bruno Haible  <bruno@clisp.org>
104220                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
104221                 "1.1".
104223         2006-05-09  Bruno Haible  <bruno@clisp.org>
104225                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
104226                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
104227                 for the conftestver execution.
104229         2006-05-01  Bruno Haible  <bruno@clisp.org>
104231                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
104232                 optional target-version argument. Verify that the compiler
104233                 groks source of the specified source-version, or add -source
104234                 option as necessary. Verify that the compiler produces
104235                 bytecode in the specified target-version, or add -target and
104236                 -source options as necessary. Make the result of the test
104237                 available as variable CONF_JAVAC. Also log error output in
104238                 config.log.
104240         2006-03-11  Bruno Haible  <bruno@clisp.org>
104242                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
104244         2006-05-09  Bruno Haible  <bruno@clisp.org>
104246                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
104247                 CLASSPATH_SEPARATOR to a semicolon.
104249         2006-03-12  Bruno Haible  <bruno@clisp.org>
104251                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
104252                 available as variable CONF_JAVA, for subsequent autoconf
104253                 tests. Also log error output in config.log.
104255         2006-07-19  Bruno Haible  <bruno@clisp.org>
104257                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
104258                 that getline works on glibc2 systems. Needed to avoid trouble
104259                 in relocatable.c.
104260                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
104262         2005-12-04  Bruno Haible  <bruno@clisp.org>
104264                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
104265                 launcher (untested).
104267         2005-12-04  Bruno Haible  <bruno@clisp.org>
104269                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
104271         2006-07-22  Bruno Haible  <bruno@clisp.org>
104273                 * gettext.m4: Update from GNU gettext-0.15.
104274                 * nls.m4: Likewise.
104275                 * po.m4: Likewise.
104276                 * inttypes-pri.m4: Likewise.
104277                 * inttypes-h.m4: Renamed from inttypes.m4.
104278                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
104280 2006-07-22  Bruno Haible  <bruno@clisp.org>
104282         Merge from GNU gettext 0.15.
104284         2005-07-05  Bruno Haible  <bruno@clisp.org>
104286                 * printf-args.c (printf_fetchargs): Work around broken
104287                 definition of wint_t on mingw.
104289         2005-02-12  Bruno Haible  <bruno@clisp.org>
104291                 * xallocsa.h: Add extern "C" for C++.
104293         2006-05-17  Bruno Haible  <bruno@clisp.org>
104295                 Cygwin portability.
104296                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
104298         2006-04-30  Bruno Haible  <bruno@clisp.org>
104300                 * progreloc.c: Include <mach-o/dyld.h> if available.
104301                 (find_executable): Use _NSGetExecutablePath when possible.
104303         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
104305                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
104306                 function.
104308         2005-12-29  Bruno Haible  <bruno@clisp.org>
104310                 * progreloc.c (set_program_name_and_installdir): Fix
104311                 compilation error.
104313         2005-12-04  Bruno Haible  <bruno@clisp.org>
104315                 Cygwin portability.
104316                 * progreloc.c: Include <windows.h> also on Cygwin.
104317                 (find_executable): Add support for Cygwin.
104318                 (set_program_name_and_installdir): Handle also platforms with
104319                 nonempty EXEEXT.
104321         2006-07-11  Bruno Haible  <bruno@clisp.org>
104323                 * javacomp.c: Fix a comment.
104324                 Reported by Jim Meyering.
104326         2006-04-30  Bruno Haible  <bruno@clisp.org>
104328                 * javacomp.h (compile_java_class): Add source_version,
104329                 target_version arguments.
104330                 * javacomp.c: Rewritten to choose only a compiler that
104331                 respects the specified source_version and target_version.
104333         2006-06-27  Bruno Haible  <bruno@clisp.org>
104335                 Assume correct S_ISDIR macro.
104336                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
104338         2006-07-22  Bruno Haible  <bruno@clisp.org>
104340                 * javaversion.h: New file, from GNU gettext.
104341                 * javaversion.c: New file, from GNU gettext.
104342                 * javaversion.java: New file, from GNU gettext.
104343                 * javaversion.class: New file, from GNU gettext.
104345         2006-05-17  Bruno Haible  <bruno@clisp.org>
104347                 Cygwin portability.
104348                 * javaexec.c (execute_java_class): Test for jview program
104349                 also on Cygwin.
104351         2006-04-09  Bruno Haible  <bruno@clisp.org>
104353                 * fatal-signal.c: Don't include string.h.
104354                 (at_fatal_signal): Use a copying loop instead of memcpy.
104356         2005-12-04  Bruno Haible  <bruno@clisp.org>
104358                 * csharpexec.c: Add support for 'clix' launcher (untested).
104359                 (execute_csharp_using_sscli): New function.
104360                 (execute_csharp_program): Call it.
104362         2006-06-21  Bruno Haible  <bruno@clisp.org>
104364                 Avoid warnings from recent versions of mcs.
104365                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
104366                 -o, -L, -r any more. Use options documented since mcs-1.0
104367                 instead. Similarly for -g.
104369         2005-07-09  Bruno Haible  <bruno@clisp.org>
104371                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
104372                 add a .dll suffix.
104373                 Reported by Mark Junker <mjscod@gmx.de>.
104375         2006-06-17  Bruno Haible  <bruno@clisp.org>
104377                 * config.charset: Update for NetBSD 3.0.
104379         2006-05-17  Bruno Haible  <bruno@clisp.org>
104381                 Cygwin portability.
104382                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
104384         2006-05-16  Bruno Haible  <bruno@clisp.org>
104386                 * localcharset.c [CYGWIN]: Include <windows.h>.
104387                 (get_charset_aliases): For Cygwin, return the same CPxxx
104388                 aliases list as under WIN32.
104389                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
104390                 the environment variables. Fall back to GetACP().
104392         2006-04-05  Bruno Haible  <bruno@clisp.org>
104394                 * config.charset: Update Juan Manuel Guerrero's address.
104396         2005-02-12  Bruno Haible  <bruno@clisp.org>
104398                 * allocsa.h: Add extern "C" for C++.
104400         2005-02-10  Bruno Haible  <bruno@clisp.org>
104402                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
104403                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
104405         2006-07-22  Bruno Haible  <bruno@clisp.org>
104407                 * gettext.h: Update to GNU gettext-0.15.
104409 2006-07-22  Bruno Haible  <bruno@clisp.org>
104411         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
104412         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
104413         lib-prefix.m4, longdouble.m4, ssize_t.m4.
104415 2006-07-21  Eric Blake  <ebb9@byu.net>
104417         * modules/stdlib-safer: New file.
104418         * MODULES.html.sh (File stream based Input/Output): Add
104419         stdlib-safer.
104421 2006-07-21  Eric Blake  <ebb9@byu.net>
104423         * lib/stdlib-safer.h: New file from coreutils, required by
104424         stdlib--.h.
104426 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
104428         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
104430 2006-07-20  Bruno Haible  <bruno@clisp.org>
104432         * gnulib-tool: Recognize new option --assume-autoconf.
104433         (autoconf_minversion): New variable.
104434         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
104436 2006-07-20  Bruno Haible  <bruno@clisp.org>
104438         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
104440 2006-07-19  Derek R. Price  <derek@ximbiot.com>
104442         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
104443         Reindent and repaginate.
104445 2006-07-19  Derek Price  <derek@ximbiot.com>
104447         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
104448         Correct grammar.
104450 2006-07-17  Bruno Haible  <bruno@clisp.org>
104452         * modules/list: New file.
104453         * modules/array-list: New file.
104454         * modules/carray-list, modules/carray-list-tests: New files.
104455         * modules/linked-list, modules/linked-list-tests: New files.
104456         * modules/avltree-list, modules/avltree-list-tests: New files.
104457         * modules/rbtree-list, modules/rbtree-list-tests: New files.
104458         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
104459         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
104460         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
104461         * modules/oset: New file.
104462         * modules/array-oset: New file.
104463         * modules/avltree-oset, modules/avltree-oset-tests: New files.
104464         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
104465         * tests/test-carray_list.c: New file.
104466         * tests/test-linked_list.c: New file.
104467         * tests/test-avltree_list.c: New file.
104468         * tests/test-rbtree_list.c: New file.
104469         * tests/test-linkedhash_list.c: New file.
104470         * tests/test-avltreehash_list.c: New file.
104471         * tests/test-rbtreehash_list.c: New file.
104472         * tests/test-avltree_oset.c: New file.
104473         * tests/test-rbtree_oset.c: New file.
104474         * MODULES.html.sh (Container data structures): New section.
104476 2006-07-17  Bruno Haible  <bruno@clisp.org>
104478         * m4/gl_list.m4: New file.
104480 2006-07-17  Bruno Haible  <bruno@clisp.org>
104482         * lib/gl_list.h: New file.
104483         * lib/gl_list.c: New file.
104484         * lib/gl_array_list.h: New file.
104485         * lib/gl_array_list.c: New file.
104486         * lib/gl_carray_list.h: New file.
104487         * lib/gl_carray_list.c: New file.
104488         * lib/gl_linked_list.h: New file.
104489         * lib/gl_linked_list.c: New file.
104490         * lib/gl_anylinked_list1.h: New file.
104491         * lib/gl_anylinked_list2.h: New file.
104492         * lib/gl_avltree_list.h: New file.
104493         * lib/gl_avltree_list.c: New file.
104494         * lib/gl_anyavltree_list1.h: New file.
104495         * lib/gl_anyavltree_list2.h: New file.
104496         * lib/gl_rbtree_list.h: New file.
104497         * lib/gl_rbtree_list.c: New file.
104498         * lib/gl_anyrbtree_list1.h: New file.
104499         * lib/gl_anyrbtree_list2.h: New file.
104500         * lib/gl_anytree_list1.h: New file.
104501         * lib/gl_anytree_list2.h: New file.
104502         * lib/gl_linkedhash_list.h: New file.
104503         * lib/gl_linkedhash_list.c: New file.
104504         * lib/gl_anyhash_list1.h: New file.
104505         * lib/gl_anyhash_list2.h: New file.
104506         * lib/gl_avltreehash_list.h: New file.
104507         * lib/gl_avltreehash_list.c: New file.
104508         * lib/gl_rbtreehash_list.h: New file.
104509         * lib/gl_rbtreehash_list.c: New file.
104510         * lib/gl_anytreehash_list1.h: New file.
104511         * lib/gl_anytreehash_list2.h: New file.
104513         * lib/gl_oset.h: New file.
104514         * lib/gl_oset.c: New file.
104515         * lib/gl_array_oset.h: New file.
104516         * lib/gl_array_oset.c: New file.
104517         * lib/gl_avltree_oset.h: New file.
104518         * lib/gl_avltree_oset.c: New file.
104519         * lib/gl_rbtree_oset.h: New file.
104520         * lib/gl_rbtree_oset.c: New file.
104521         * lib/gl_anytree_oset.h: New file.
104523 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
104525         * m4/mkancesdirs.m4: New file.
104526         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
104527         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
104528         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
104529         it.
104531 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
104533         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
104534         * lib/mkancesdirs.h: New files.
104535         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
104536         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
104537         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
104538         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
104539         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
104540         callers changed.  Revamp internals significantly, by not
104541         attempting to create directories that are temporarily more
104542         permissive than the final results.  Do not attempt to use
104543         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
104544         This removes some race conditions, fixes some bugs, and simplifies
104545         things.  Use new dirchownmod function to do owner and mode changes.
104546         * lib/mkdir-p.h: Likewise.
104547         * lib/modechange.c (octal_to_mode): New function.
104548         (struct mode_change): New member mentioned.
104549         (make_node_op_equals): New arg mentioned.  All callers changed.
104550         (mode_compile): Keep track of which mode bits the user has explicitly
104551         mentioned.
104552         (mode_adjust): New arg DIR, so that we implement the X op correctly.
104553         New arg PMODE_BITS, to keep track of which mode bits the user
104554         mentioned; it treats S_ISUID and S_ISGID speciall.
104555         All callers changed.
104556         * lib/modechange.h: Likewise.
104558 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
104560         * MODULES.html.sh: Add mkancestors.
104561         * modules/mkancesdirs: New module.
104562         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
104563         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
104564         The chdir-safer and afs files are now orphans; I'll remove them
104565         unless someone speaks up.
104566         Add lib/dirchownmod.c, lib/dirchownmod.h.
104567         (Depends-on): Remove alloca, chown, save-cwd, dirname.
104568         Add lchown, mkancesdirs.
104569         (Maintainer): Add self.
104571 2006-07-15  Karl Berry  <karl@gnu.org>
104573         * gnulib-tool: help message wording/arrangement.
104575 2006-07-14  Simon Josefsson  <jas@extundo.com>
104577         * doc/gnulib.texi (Libtool and Windows): New section.
104579 2006-07-12  Simon Josefsson  <jas@extundo.com>
104581         * modules/gendocs (License): Fix license, approved by Karl.
104583 2006-07-12  Eric Blake  <ebb9@byu.net>
104585         * MODULES.html.sh: Add gendocs.
104587 2006-07-11  Eric Blake  <ebb9@byu.net>
104589         * modules/fdl: New module, to install doc/fdl.texi.
104590         * MODULES.html.sh: Add new section for documentation modules.
104591         * gnulib-tool: Avoid space-tab.
104592         (--doc-base): New option, to manage files from doc.
104594 2006-07-11  Eric Blake  <ebb9@byu.net>
104596         * m4/absolute-header.m4: Fix comments to match recent change.
104598 2006-07-11  Eric Blake  <ebb9@byu.net>
104600         * gnulib-tool: List --doc-base before --tests-base.
104602 2006-07-11  Derek R. Price  <derek@ximbiot.com>
104604         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
104606 2006-07-11  Bruno Haible  <bruno@clisp.org>
104608         * README: Mention where to put documentation.
104610 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104612         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
104614 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
104616         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
104617         to stdint.m4.
104619 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
104621         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
104622         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
104623         "no/such/file/stdint.h" when there is no such file, so that
104624         the resulting C code can be parsed by dodgy compilers.
104625         Problems reported by Bob Proulx.
104627 2006-07-10  Derek R. Price  <derek@ximbiot.com>
104629         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
104630         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
104631         macros into the GNU _D_EXACT_NAMLEN.
104632         * lib/savedir.c:  Likewise.
104633         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
104635 2006-07-10  Derek R. Price  <derek@ximbiot.com>
104636         and Paul Eggert  <eggert@cs.ucla.edu>
104638         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
104639         * m4/savedir.m4:
104640         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
104641         macros into the GNU _D_EXACT_NAMLEN.
104643 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
104645         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
104646         around the absolute name, to work around a problem with the HP-UX
104647         11.23 native C compiler, reported by Bob Proulx.
104649 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
104651         * doc/maintain.texi, make-stds.texi: Sync from
104652         <http://savannah.gnu.org/projects/gnustandards>.
104654 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
104656         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
104658 2006-07-09  Jim Meyering  <jim@meyering.net>
104660         * m4/glob.m4: Remove a doubled word in a comment.
104662 2006-07-09  Jim Meyering  <jim@meyering.net>
104664         * lib/argp-pv.c: Remove a doubled word in a comment.
104665         * lib/check-version.c (check_version): Likewise.
104666         * lib/javacomp.c (compile_java_class): Likewise.
104668 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
104670         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
104671         for the benefit of people using Autoconf 2.60.  If you want to
104672         support older Autoconf versions you can copy m4/onceonly_2_57.m4
104673         (or m4/onceonly.m4, if pre-2.57) manually.
104675 2006-07-08  Jim Meyering  <jim@meyering.net>
104677         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
104678         comment.
104679         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
104680         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
104681         comment.
104683 2006-07-08  Jim Meyering  <jim@meyering.net>
104685         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
104687 2006-07-07  Simon Josefsson  <jas@extundo.com>
104689         * tests/test-crc.c: Change expected crc value, the test vector
104690         were probably computed using the old broken crc.c?
104692 2006-07-06  Simon Josefsson  <jas@extundo.com>
104694         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
104695         now the canonical place for the M4 file).
104697         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
104698         from the sys_socket dependency now.
104700         * modules/inet_pton (Files): Ditto.
104702         * modules/inet_ntop (Files): Ditto.
104704 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
104706         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
104707         not gl_PREREQ_GETUSERSHELL.
104709 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104711         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
104712         with only one argument, for Autoconf 2.60.
104713         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
104714         expand to nothing, so add a shell command to avoid syntax error.
104715         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
104717 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104719         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
104721 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
104723         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
104724         no longer needed.  Check for isblank decl.
104725         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
104726         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
104727         of existence.
104729 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
104731         * lib/getloadavg.c: Use __VMS, not VMS.
104732         * lib/getopt.c: Likewise.
104733         * lib/getpagesize.h: Likewise.
104734         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
104735         and probably does not work.
104737 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
104739         * lib/.cppi-disable: Add wcwidth.
104740         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
104741         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
104742         (ISGRAPH): Remove.  All uses changed to isgraph.
104743         (FOLD) [!defined _LIBC]: Remove special case.
104744         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
104745         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
104746         HAVE_ISBLANK.
104747         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
104748         case.
104750 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
104752         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
104753         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
104754         brackets.  Other minor changes to suppress some compiler
104755         warnings.
104757 2006-07-06  Derek R. Price  <derek@ximbiot.com>
104758         and Paul Eggert  <eggert@cs.ucla.edu>
104760         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
104761         of invoking obsolescent AC_HEADER_DIRENT macro.
104762         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
104763         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
104764         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
104765         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
104766         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
104767         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
104768         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
104769         * m4/readdir.m4: Remove; no longer needed.
104771 2006-07-06  Derek R. Price  <derek@ximbiot.com>
104772         and Paul Eggert  <eggert@cs.ucla.edu>
104774         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
104775         Don't worry about this obsolete case any more.
104776         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
104777         directories.
104778         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
104779         worry about this obsolete case any more.
104780         * lib/fts.c: Likewise.
104781         * lib/getcwd.c: Likewise.
104782         * lib/glob.h: Likewise.
104783         * lib/savedir.c: Likewise.
104785 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
104787         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
104788         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
104789         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
104790         needed.
104791         All uses removed.
104792         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
104793         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
104794         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
104795         needed.
104796         * m4/getdate.m4 (gl_GETDATE): Likewise.
104797         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
104798         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
104799         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
104800         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
104801         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
104802         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
104803         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
104804         needed.
104806 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
104808         * lib/memcasecmp.c: Include <limits.h>.
104809         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
104810         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
104811         Don't assume isdigit succeeds only on '0' through '9'.
104813 2006-07-05  Eric Blake  <ebb9@byu.net>
104815         * modules/getaddrinfo (Depends-on): Add snprintf.
104817 2006-07-05  Eric Blake  <ebb9@byu.net>
104819         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
104820         to avoid 'header present but could not be compiled' on cygwin.
104822 2006-07-05  Eric Blake  <ebb9@byu.net>
104824         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
104825         missing from netdb.h.
104826         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
104828 2006-07-05  Derek R. Price  <derek@ximbiot.com>
104830         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
104831         no longer needed.
104832         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
104833         * m4/getdate.m4 (gl_GETDATE): Likewise.
104834         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
104835         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
104836         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
104837         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
104838         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
104840 2006-07-05  Derek R. Price  <derek@ximbiot.com>
104842         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
104843         All uses of is_space replaced by isspace.
104844         * lib/exit.h: Don't talk about STDC_HEADERS.
104845         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
104846         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
104847         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
104848         replaced by isprint etc.
104849         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
104850         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
104851         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
104852         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
104853         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
104854         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
104856 2006-07-05  Bruno Haible  <bruno@clisp.org>
104858         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
104859         the function exists, before testing against AIX.
104860         Reported by Martin Lambers <marlam@marlam.de>.
104862 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
104864         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
104865         From Mark D. Baushke.
104867 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
104869         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
104870         to the absolute name, not just one, to bypass Sun C 5.8's
104871         "warning: #include of /usr/include/... may be non-portable".
104873 2006-07-04  Eric Blake  <ebb9@byu.net>
104875         * modules/dirname-tests: New test module.
104876         * tests/test-dirname.c: New file, replacing dirname.c
104877         TEST_DIRNAME section that was recently deleted.
104879 2006-07-04  Bruno Haible  <bruno@clisp.org>
104881         Assume ANSI C header files and <ctype.h> functions.
104882         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
104883         (mbsnwidth): Use isprint, iscntrl instead.
104885 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
104887         Merge from coreutils.
104888         * MODULES.html.sh: Add xstrtold.
104889         * modules/xstrtold: New file.
104890         * modules/cycle-check (Files): Add lib/same-inode.h.
104891         * modules/dirname (Files): Add m4/double-slash-root.m4.
104892         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
104893         * modules/mkdir-p (Files): Add lib/same-inode.h.
104894         * modules/same (Files): Add lib/same-inode.h.
104896 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
104898         * m4/absolute-header.m4: Renamed from full-header-path.m4.
104899         This is to keep the terminology clean; POSIX talks about
104900         "absolute pathnames", not "full pathnames", but the GNU
104901         Coding Standards say to use "path" for something else;
104902         so use "absolute" to keep both sides happy.
104903         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
104904         Set gl_absolute_header, not gl_full_header_path.
104905         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
104906         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
104907         All uses changed.
104909         Merge from coreutils.
104911         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
104913         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
104914         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
104915         want to require the building of c-strtod.o.
104916         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
104917         needs -lm directly.
104918         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
104920         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
104922         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
104923         --as-needed option if available.  Problem reported by Albert Chin in
104924         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00114.html>.
104925         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
104926         cc merely issues a bunch of annoying warnings for --as-needed
104927         (this problem was reported by Bob Proulx).  Also, try linking with
104928         -lm to detect a bug in binutils 2.16 (this problem was reported
104929         by Ralf Wildenhues).
104931         2006-06-18  Jim Meyering  <jim@meyering.net>
104933         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
104934         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
104935         macro.
104936         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
104937         also check for glibc-2.4's abort-inducing bug.
104939         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
104940         Low-probability clean-up should be to use rmdir to get rid of
104941         the just-created directory, not unlink.
104943         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
104944         configure fail, and request a bug report to inform us about it.
104945         Add a comment that, barring reports to the contrary, in 2007 we'll
104946         assume ftruncate is universally available.
104948         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
104950         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
104952         2006-03-12  Jim Meyering  <jim@meyering.net>
104954         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
104955         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
104956         * m4/same.m4 (gl_SAME): Likewise.
104957         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
104959         2006-03-11  Eric Blake  <ebb9@byu.net>
104961         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
104962         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
104963         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
104964         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
104966 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
104968         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
104969         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
104970         reported by Mark D. Baushke, one in
104971         <http://lists.gnu.org/r/bug-gnulib/2006-07/msg00015.html>.
104973         Merge from coreutils.
104975         * lib/.cppi-disable: Add stdint_.h.
104976         * lib/.cvsignore: Add stdint.h.
104978         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
104980         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
104981         both double and long double versions.
104982         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
104983         * lib/xstrtold.c: New file.
104984         * lib/xstrtod.h (xstrtold): New decl.
104986         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
104988         * lib/filemode.c (setst): Remove.
104989         (strmode): Rewrite to avoid setst.  This makes the code shorter,
104990         (arguably) clearer, and the generated code is a bit smaller on my
104991         Debian GNU/Linux stable x86 host.
104993         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
104995         * lib/filemode.c: Include "filemode.h" first, to test the interface.
104996         Assume that filemode.h includes sys/types.h and sys/stat.h.
104997         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
104998         (ftypelet): Reorder to put common cases first, for efficiency.
104999         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
105000         to do 'M'.
105001         (strmode): Renamed from mode_string, and now stores 12 bytes instead
105002         of 10, for compatibility with FreeBSD.  All callers changed.
105003         (filemodestring): Now stores 12 bytes instead of 10, and sets file
105004         types that can't be deduced solely from st_mode.  First arg is now a
105005         const pointer.
105006         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
105007         (strmode): Renamed from mode_string.
105008         (filemodestring): New decl.
105009         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
105010         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
105011         needed.
105012         (S_ISPORT, S_ISWHT): New macros, if not already defined.
105014         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
105016         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
105017         fsusage.h now does that.  Include fsusage.h first, to test interface.
105018         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
105019         at most one method (the old code could have generated decls that
105020         didn't conform to C89, not that this was ever exercised).
105021         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
105023         2006-03-19  Jim Meyering  <jim@meyering.net>
105025         Work even in a chroot where d_ino values for entries in "/"
105026         don't match the stat.st_ino values for the same names.
105027         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
105028         number, iterate through all entries again, using lstat instead.
105029         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
105030         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
105032         * lib/getcwd.c (__getcwd): Clarify a comment.
105033         Use memcpy in place of a call to strcpy.
105035         2006-03-12  Jim Meyering  <jim@meyering.net>
105037         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
105038         matches that of the current directory (which we're about to chdir ".."
105039         out of), then save the dev-ino of the parent, instead.
105041         * lib/same-inode.h (SAME_INODE): New file/macro.
105042         * lib/chdir-safer.c (SAME_INODE): Remove definition.
105043         Include "same-inode.h", instead.
105044         * lib/same.c: Likewise.
105045         * lib/cycle-check.h: Include "same-inode.h".
105046         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
105047         * lib/cycle-check.c (SAME_INODE): Remove definition.
105048         * lib/root-dev-ino.h: Include "same-inode.h".
105050         2006-03-11  Eric Blake  <ebb9@byu.net>
105052         * lib/same.c (same_name): s/base_name/last_component/
105053         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
105054         * lib/filenamecat.c (file_name_concat): Likewise.
105056         2006-03-11  Eric Blake  <ebb9@byu.net>,
105057                     Paul Eggert  <eggert@cs.ucla.edu>
105059         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
105060         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
105061         drive prefix.
105062         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
105063         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
105064         (last_component): New method.
105065         * lib/dirname.c (dir_len): Determine when drive letters need a
105066         subsequent slash.  Preserve // when it is special.
105067         (dir_name): Don't append dot when drive letter is absolute.
105068         [TEST_DIRNAME]: Move into a full-blown gnulib test.
105069         * lib/basename.c (base_name): New semantics - malloc the result.
105070         Preserve // when it is special.  Preserve relative files that look
105071         like drive letters.
105072         (base_len): Preserve // when it is special.
105073         (last_component): New method, similar to old base_name semantics.
105074         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
105075         base_name.  Strip redundant slashes from ///.
105077 2006-07-03  Jim Meyering  <jim@meyering.net>
105079         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
105080         macro is used before the first cycle_check call.
105082 2006-07-03  Eric Blake  <ebb9@byu.net>
105084         * modules/dirname (Depends-on): Add xstrndup.
105086 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
105088         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
105089         test cases, so that config.log is a bit easier to follow.
105091 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
105093         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
105094         both are 64 bits, since this seems to be the tradition, and this
105095         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
105096         we ever run into a host that prefers long long to long in this
105097         case, we'll need another configure-time test.  Problem reported by
105098         Jim Meyering.
105100 2006-07-02  Eric Blake  <ebb9@byu.net>
105102         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
105104 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
105106         * modules/inttypes (Depends-on): No longer depends on stdint.
105107         * modules/stdint (Description): Say more about assumptions.
105108         Say that the fast types might differ.  Say macros are used.
105109         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
105110         (Makefile.am): Revise list of substituted symbols to match
105111         new stdint.m4.
105112         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
105113         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
105114         * tests/test-stdint.c (verify_same_types)
105115         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
105116         the code conforms to C99/C89.
105117         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
105118         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
105120 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
105122         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
105123         but fix a bug, by requiring at least 64 bits.
105124         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
105125         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
105126         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
105127         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
105129         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
105130         changes.  Make 2.59 a prerequisite.  Check and substitute for
105131         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
105132         inttypes.h.  Do not use special include files; just use the
105133         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
105134         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
105135         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
105136         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
105137         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
105138         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
105139         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
105140         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
105141         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
105142         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
105143         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
105144         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
105145         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
105146         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
105147         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
105148         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
105149         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
105150         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
105151         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
105152         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
105153         WINT_MAX.  Check for C99 conformance more strictly, by detecting
105154         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
105155         not check for things that C99 does not require, e.g., int8_t.  If
105156         a test isn't needed unless <stdint.h> isn't working, and is
105157         unlikely to be needed for any other reason, then don't do it
105158         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
105159         size_t, since we assume C89 freestanding at least.  Do not check
105160         for sig_atomic_t, wchar_t, or wint_t, since the code now does
105161         the right thing even if the types are not defined.  Instead use:
105162         (gl_STDINT_TYPE_PROPERTIES): New macro.
105163         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
105164         testing whether <sys/types.h> clashes, as Autoconf does this for
105165         us now.  All uses removed.
105166         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
105167         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
105168         (gl_CHECK_TYPE_SAME):
105169         Remove; no longer needed.
105170         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
105171         exists, since we'll return 0 anyway in that case.
105172         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
105174 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
105176         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
105177         possible collision with system files.
105178         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
105179         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
105180         WCHAR_MIN and WCHAR_MAX in this case.
105181         (<stddef.h>): Do not include; no longer needed.
105182         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
105183         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
105184         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
105185         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
105186         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
105187         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
105188         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
105189         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
105190         !defined(__c99))]: Include in this case too, since it's harmless
105191         now.
105192         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
105193         dangerous to do so.
105194         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
105195         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
105196         (_STDINT_MIN, _STDINT_MAX): New macros.
105197         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
105198         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
105199         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
105200         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
105201         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
105202         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
105203         macros, not typedefs; this simplifies things quite a bit.
105204         Use long int for all types narrower than int64_t.
105205         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
105206         Define in terms of long long int or int64_t or long int,
105207         not int64_t or int32_t.  This saves some compile-time testing.
105208         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
105209         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
105210         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
105211         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
105212         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
105213         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
105214         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
105215         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
105216         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
105217         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
105218         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
105219         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
105220         undef any previous version and define our own version, for
105221         simplicity and consistency with the new macros for types.
105222         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
105223         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
105224         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
105225         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
105226         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
105227         @WINT_T_SUFFIX@ to keep things simple here.
105228         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
105229         Simplify by assuming typical 8/16/32/64 host, since we're
105230         already doing that elsewhere anyway.
105231         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
105232         and assume long long int is 64 bits if available.  This
105233         speeds up 'configure'.
105235 2006-07-01  Eric Blake  <ebb9@byu.net>
105237         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
105238         Reported by Andreas Buening.
105240 2006-07-01  Eric Blake  <ebb9@byu.net>
105242         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
105244 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
105246         * lib/getaddrinfo.c: fixed typo
105248 2006-06-29  Jim Meyering  <jim@meyering.net>
105250         * modules/strftime (Maintainer): Add my name, since with the
105251         FPRINTFTIME changes strftime.c has forked from glibc.
105253 2006-06-29  Eric Blake  <ebb9@byu.net>
105255         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
105257 2006-06-29  Eric Blake  <ebb9@byu.net>
105259         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
105261 2006-06-29  Eric Blake  <ebb9@byu.net>
105263         * lib/stat_.h: New file.
105265 2006-06-29  Eric Blake  <ebb9@byu.net>
105267         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
105268         unused static function.
105270 2006-06-29  Eric Blake  <ebb9@byu.net>
105272         * doc/functions.texi (Function Portability): Document missing lstat
105273         on mingw.
105275 2006-06-29  Eric Blake  <ebb9@byu.net>
105277         * MODULES.html.sh: Add sys_stat.
105278         * modules/sys_stat: New module.
105279         * modules/mkstemp (Depends-on): Add sys_stat.
105281 2006-06-29  Derek R. Price  <derek@ximbiot.com>
105283         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
105285 2006-06-29  Derek R. Price  <derek@ximbiot.com>
105287         * m4/c-bs-a.m4: Removed.
105289 2006-06-29  Derek R. Price  <derek@ximbiot.com>
105291         * lib/strftime.c: Assume strftime() exists.
105293 2006-06-29  Derek Price  <derek@ximbiot.com>
105295         * modules/c-bs-a: Removed - \a is C89.
105296         * MODULES.html.sh: Remove c-bs-a.
105298 2006-06-29  Bruno Haible  <bruno@clisp.org>
105300         * modules/wcwidth (License): Change to LGPL.
105302 2006-06-28  Simon Josefsson  <jas@extundo.com>
105304         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
105305         on _WIN32.
105307         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
105308         getnameinfo.
105310 2006-06-28  Simon Josefsson  <jas@extundo.com>
105312         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
105314 2006-06-28  Simon Josefsson  <jas@extundo.com>
105316         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
105317         functions there.  It will succeed on Windows XP, but on Windows
105318         2000 and (presumably) earlier, it will fail, and use the internal
105319         re-implementation.
105320         (use_win32_p): New function.
105321         (getaddrinfo): Use strtoul on servname, to support numeric ports.
105322         Support AI_NUMERICSERV to disable getservbyname.
105323         (getnameinfo): New function, only supports
105324         NI_NUMERICHOST|NI_NUMERICSERV for now.
105326         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
105327         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
105328         getnameinfo.
105330 2006-06-28  Eric Blake  <ebb9@byu.net>
105332         * modules/wcwidth: New file.
105333         * modules/mbchar (Depends-on): Add wcwidth.
105334         * modules/mbswidth (Depends-on): Add wcwidth.
105335         * MODULES.html.sh: Add wcwidth.
105337 2006-06-28  Eric Blake  <ebb9@byu.net>
105339         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
105340         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
105342 2006-06-28  Eric Blake  <ebb9@byu.net>
105344         * lib/xvasprintf.h: Fix comments.
105346 2006-06-28  Eric Blake  <ebb9@byu.net>
105348         * lib/mbchar.h (wcwidth): Include wcwidth.h.
105349         * lib/mbswidth.c (wcwidth): Move from here...
105350         * lib/wcwidth.h: ...to this new file.
105352 2006-06-28  Derek R. Price  <derek@ximbiot.com>
105354         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
105356         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
105357         it's obsolete.
105358         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
105360 2006-06-28  Derek R. Price  <derek@ximbiot.com>
105362         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
105363         Autoconf 2.60 says this stuff was obsolete.
105365 2006-06-28  Bruno Haible  <bruno@clisp.org>
105367         * modules/wcwidth (Files): Add m4/wchar_t.m4.
105369 2006-06-28  Bruno Haible  <bruno@clisp.org>
105371         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
105372         gt_TYPE_WCHAR_T.
105374 2006-06-28  Bruno Haible  <bruno@clisp.org>
105376         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
105377         declaration for wcwidth.
105378         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
105380 2006-06-28  Bruno Haible  <bruno@clisp.org>
105382         * lib/mkdtemp.c [MINGW]: Include <io.h>.
105383         (mkdir): Define using _mkdir.
105385 2006-06-28  Bruno Haible  <bruno@clisp.org>
105387         * lib/getaddrinfo.h: Fix POSIX URL.
105388         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
105389         _WIN32.
105390         (use_win32_p): Make static.
105391         (getaddrinfo): Reject service name if it is empty or does not consist
105392         solely of decimal digits, or if its value is > 65535.
105393         (getnameinfo): Remove useless casts.
105395 2006-06-27  Simon Josefsson  <jas@extundo.com>
105397         * modules/sys_select: New file, suggested by Bruno Haible, Paul
105398         Eggert and Martin Lambers.
105400 2006-06-27  Simon Josefsson  <jas@extundo.com>
105402         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
105403         Eggert and Martin Lambers.
105405 2006-06-27  Bruno Haible  <bruno@clisp.org>
105407         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
105408         result to 0, not to empty.
105409         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
105411 2006-06-27  Bruno Haible  <bruno@clisp.org>
105413         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
105415 2006-06-26  Simon Josefsson  <jas@extundo.com>
105417         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
105418         present.
105420 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
105422         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
105423         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
105424         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00181.html>.
105426 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
105428         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
105430 2006-06-26  Bruno Haible  <bruno@clisp.org>
105432         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
105434 2006-06-26  Bruno Haible  <bruno@clisp.org>
105436         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
105438 2006-06-26  Bruno Haible  <bruno@clisp.org>
105440         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
105441         SGI C compiler in pre-C99 mode.
105442         Suggested by Mark D. Baushke and Larry Jones.
105444 2006-06-26  Bruno Haible  <bruno@clisp.org>
105446         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
105447         WCHAR_MAX.
105448         Reported by Mark D. Baushke and Larry Jones.
105450 2006-06-26  Bruno Haible  <bruno@clisp.org>
105452         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
105453         in pre-C99 mode.
105454         Suggested by Mark D. Baushke and Larry Jones.
105456 2006-06-23  Simon Josefsson  <jas@extundo.com>
105457             Bruno Haible  <bruno@clisp.org>
105459         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
105460         Emit mostlyclean-local rule.
105461         (func_emit_tests_Makefile_am): Likewise.
105462         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
105464 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
105466         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
105468 2006-06-23  Bruno Haible  <bruno@clisp.org>
105470         * tests/test-stdint.c: Update to match ISO C 99 Technical
105471         Corrigendum 1.
105473 2006-06-23  Bruno Haible  <bruno@clisp.org>
105475         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
105477 2006-06-23  Bruno Haible  <bruno@clisp.org>
105479         * lib/stdint_.h: Treat IRIX like OpenBSD.
105481 2006-06-23  Bruno Haible  <bruno@clisp.org>
105483         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
105484         ISO C 99 Technical Corrigendum 1.
105486 2006-06-22  Simon Josefsson  <jas@extundo.com>
105488         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
105489         MinGW.
105491 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
105493         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
105494         needed.  Some compiler complained about some of them.  Problem reported
105495         by Larry Jones in
105496         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00172.html>.
105498 2006-06-21  Simon Josefsson  <jas@extundo.com>
105500         * tests/test-getaddrinfo.c: New file.
105502         * modules/getaddrinfo-tests: New file.
105504         * MODULES.html.sh: Add inet_pton.
105506         * modules/inet_pton: New file.
105508 2006-06-21  Simon Josefsson  <jas@extundo.com>
105510         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
105511         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
105512         of using the (limited) gnulib implementation on Windows XP.
105514         * m4/inet_pton.m4: New file.
105516 2006-06-21  Simon Josefsson  <jas@extundo.com>
105518         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
105519         variable.
105521         * lib/socket_.h: Don't define WINVER.
105523         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
105524         slightly modified to work in gnulib.
105526 2006-06-21  Simon Josefsson  <jas@extundo.com>
105528         * doc/gnulib.texi (Windows sockets): Add.
105530 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
105532         * lib/read-file.c (fread_file): Start with buffer allocation of
105533         0 bytes rather than 1 byte; this simplifies the code.
105534         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
105535         code to free buffer and save/restore errno.
105536         (internal_read_file): Remove unused local.
105538 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
105540         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
105541         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
105542         Problem reported by Denis Excoffier in
105543         <http://lists.gnu.org/r/bug-tar/2006-06/msg00023.html>.
105545 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
105547         * modules/sys_socket, modules/socklen: Include sys/types since
105548         FreeBSD 4.x's sys/socket.h needs it.
105550 2006-06-19  Simon Josefsson  <jas@extundo.com>
105552         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
105554 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
105556         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
105558 2006-06-19  Bruno Haible  <bruno@clisp.org>
105560         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
105561         and FULL_PATH_INTTYPES_H in angle brackets.
105562         Reported by Mark D. Baushke <mdb@gnu.org>.
105564 2006-06-17  Eric Blake  <ebb9@byu.net>
105566         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
105567         errno.
105569 2006-06-17  Bruno Haible  <bruno@clisp.org>
105571         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
105572         <sys/inttypes.h>.
105574 2006-06-17  Bruno Haible  <bruno@clisp.org>
105576         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
105577         whether errno is declared. Assume <errno.h> declares errno.
105579 2006-06-17  Bruno Haible  <bruno@clisp.org>
105581         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
105583 2006-06-17  Bruno Haible  <bruno@clisp.org>
105585         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
105586         problem on Solaris 2.5.1.
105588 2006-06-16  Eric Blake  <ebb9@byu.net>
105590         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
105591         * lib/unicodeio.c [!defined errno]: Likewise.
105592         * lib/strtol.c [!defined errno]: Likewise.
105593         * lib/strtod.c [!defined errno]: Likewise.
105595 2006-06-15  Eric Blake  <ebb9@byu.net>
105597         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
105599 2006-06-15  Eric Blake  <ebb9@byu.net>
105601         * config/srclist.txt (ssize_t.m4): Lose sync.
105603 2006-06-15  Bruno Haible  <bruno@clisp.org>
105605         * modules/stdint (Files): Include m4/full-header-path.m4,
105606         m4/size_max.m4, m4/wchar_t.m4.
105607         (Makefile.am): Many more substitutions.
105608         * modules/stdint-tests: New file.
105609         * tests/test-stdint.c: New file.
105611 2006-06-15  Bruno Haible  <bruno@clisp.org>
105613         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
105614         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
105615         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
105616         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
105617         gl_CHECK_TYPE_SAME): New macros.
105619 2006-06-15  Bruno Haible  <bruno@clisp.org>
105621         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
105623 2006-06-15  Bruno Haible  <bruno@clisp.org>
105625         * lib/stdint_.h: Rewritten to be fully auto-configured.
105626         Fixes bug on HP-UX/IA64.
105628 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
105630         * lib/getdate.y (__attribute__): Don't define if already defined.
105631         Problem reported by Larry Jones.
105632         * lib/utimens.c (__attribute__): Likewise.
105634 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
105636         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
105637         reported by Andreas Schwab.
105639 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
105640             Bruno Haible  <bruno@clisp.org>
105642         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
105643         check for the declaration of strnlen and a run test that exposes the
105644         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
105645         rpl_strndup.
105647 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
105648             Bruno Haible  <bruno@clisp.org>
105650         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
105652 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
105654         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
105655         compile test, for Tru64 4.0D.
105657 2006-05-28  Karl Berry  <karl@gnu.org>
105659         * config/srclist.txt (printf-args.c): lose sync.
105661 2006-05-26  Martin Lambers  <marlam@marlam.de>
105663         * lib/getpass.c: Updates the test for the native W32 API, and adds
105664         missing includes, thus fixing compilation warnings.
105666 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
105668         * lib/exclude.c (exclude_fnmatch): New function.
105669         (excluded_file_name): Call exclude_fnmatch.
105670         * lib/exclude.h (excluded_file_name): New prototype
105672 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
105674         * lib/tempname.c (small_open, large_open): New macros.
105675         (__open, __open64) [!_LIBC]: Remove.
105676         (__gen_tempname): Use small_open and large_open instead of __open
105677         and __open64.  This fixes a portability bug on HP-UX 11.11i
105678         reported by Simon Wing-Tang in
105679         <http://lists.gnu.org/r/bug-coreutils/2006-05/msg00114.html>.
105681 2006-05-24  Bruno Haible  <bruno@clisp.org>
105683         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
105684         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
105685         Reported by Thorsten Maerz <torte@netztorte.de> via
105686         Aaron Stone <aaron@serendipity.cx>.
105688 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
105690         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
105691         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
105692         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
105693         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
105694         not really conditional on the cache.
105695         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
105697 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
105699         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
105700         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
105701         (my_usleep): Don't mishandle maximum value.
105703 2006-05-19  Jim Meyering  <jim@meyering.net>
105705         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
105707 2006-05-17  Bruno Haible  <bruno@clisp.org>
105709         Cygwin portability.
105710         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
105712 2006-05-17  Bruno Haible  <bruno@clisp.org>
105714         * lib/stdint_.h: Fix recognition of Cygwin.
105716 2006-05-15  Bruno Haible  <bruno@clisp.org>
105718         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
105719         on libtool patch by Ralf Wildenhues.
105721 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
105723         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
105724         test for C99 conformance; (bool) 0.5 is an integer constant
105725         expression, but (bool) -0.5 is not.  Problem reported by Fedor
105726         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
105728 2006-05-11  Simon Josefsson  <jas@extundo.com>
105730         * m4/xvasprintf.m4: Fix obvious typo.
105732 2006-05-11  Jim Meyering  <jim@meyering.net>
105734         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
105735         James Lemley.
105737 2006-05-10  Simon Josefsson  <jas@extundo.com>
105739         * lib/md4.c: Typo fix, update copyright years.
105740         (K1, K2): Don't use L because it turn computations into 64-bit on
105741         64-bit platforms.
105743 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
105745         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
105746         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
105747         unwanted sign propagation, e.g., on hosts with 64-bit int.
105748         There still are some problems with reeelly weird theoretical hosts
105749         (e.g., 33-bit int) but it's not worth worrying about now.
105750         * lib/sha1.c (rol): Likewise.
105751         (K1, K2, K3, K4): Remove unnecessary L suffix.
105753 2006-05-10  Bruno Haible  <bruno@clisp.org>
105755         * lib/des.c: Cast to avoid warnings.
105757 2006-05-09  Bruno Haible  <bruno@clisp.org>
105759         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
105760         (Depends-on): Depend also on xsize, stdarg.
105761         (configure.ac): Add gl_XVASPRINTF.
105763 2006-05-09  Bruno Haible  <bruno@clisp.org>
105765         * m4/xvasprintf.m4: New file.
105767 2006-05-09  Bruno Haible  <bruno@clisp.org>
105769         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
105770         (EOVERFLOW): Define fallback value.
105771         (xstrcat): New function.
105772         (xvasprintf): Recognize the special case of a string concatenation.
105774 2006-05-08  Eric Blake  <ebb9@byu.net>
105776         * gnulib-tool (func_version): Base copyright year on CVS date.
105777         (func_emit_copyright_notice): New function.
105778         (func_emit_lib_Makefile_am): Use it.
105779         (func_emit_tests_Makefile_am): Likewise.
105780         (func_import): Likewise.
105782 2006-05-08  Bruno Haible  <bruno@clisp.org>
105784         * modules/stdarg: New file.
105785         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
105787 2006-05-08  Bruno Haible  <bruno@clisp.org>
105789         * m4/stdarg.m4: New file, from GNU gettext.
105791 2006-05-08  Bruno Haible  <bruno@clisp.org>
105793         * config/srclist.txt (build-aux/config.rpath): different from latest
105794         release.
105796 2006-05-08  Bruno Haible  <bruno@clisp.org>
105798         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
105800 2006-05-05  Jim Meyering  <jim@meyering.net>
105802         * m4/warning.m4: New file, derived from bison's file by the same name.
105804 2006-05-03  Bruno Haible  <bruno@clisp.org>
105806         * lib/stdint_.h: Shorter URL.
105807         * lib/inttypes.h: Likewise.
105809 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
105811         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
105813 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
105815         * lib/verify.h: Document the internals better.  Most of this change
105816         was written by Bruno Haible.
105818 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
105820         * doc/verify.texi: New file, partly based on a proposal by
105821         Bruno Haible.
105823 2006-05-02  Bruno Haible  <bruno@clisp.org>
105825         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
105826         test from here...
105827         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
105829 2006-04-29  Bruno Haible  <bruno@clisp.org>
105831         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
105832         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
105834 2006-04-29  Bruno Haible  <bruno@clisp.org>
105836         * gnulib-tool: Make --update option actually work.
105838 2006-04-29  Bruno Haible  <bruno@clisp.org>
105840         * doc/gcd.texi: New file.
105841         * doc/gnulib.texi: Include it.
105843 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
105845         * lib/getdate.y (get_date): When adding relative date, start with the
105846         initial time, not with the result of the first mktime call.
105848 2006-04-25  Bruno Haible  <bruno@clisp.org>
105850         * gnulib-tool (func_import): Output the include directives in three
105851         blocks, sorted separately.
105852         Reported by Ben Pfaff <blp@cs.stanford.edu>.
105854 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
105856         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
105857         to define main with arguments, for C++.  Reported by Eric Blake.
105858         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
105859         Prefer 'int main ()' to 'int main (void)', for C++.
105860         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
105861         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
105862         for 'main', for C99 and C++.
105864 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
105866         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
105867         Don't assume that exit status -1 is valid.
105868         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
105869         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
105870         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
105871         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
105872         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
105873         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
105874         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
105875         functions can be used without declaring them, or that you can
105876         exit with status -1.
105877         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
105879 2006-04-24  Karl Berry  <karl@gnu.org>
105881         * config/srclist.txt (longdouble.m4): sync lost.
105883 2006-04-24  Eric Blake  <ebb9@byu.net>
105885         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
105887 2006-04-24  Bruno Haible  <bruno@clisp.org>
105889         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
105890         poll() implementation in AIX.
105891         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
105893 2006-04-24  Bruno Haible  <bruno@clisp.org>
105895         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
105896         assigned exactly once.
105898 2006-04-23  Claudio Fontana  <claudio@gnu.org>
105899             Bruno Haible  <bruno@clisp.org>
105901         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
105902         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
105903         for AM_CPPFLAGS.
105905 2006-04-23  Bruno Haible  <bruno@clisp.org>
105907         * modules/copy-file: Depend on unistd.
105908         * modules/execute: Likewise.
105909         * modules/fatal-signal: Likewise.
105910         * modules/findprog: Likewise.
105911         * modules/mkdtemp : Likewise.
105912         * modules/pipe: Likewise.
105913         * modules/wait-process: Likewise.
105915 2006-04-23  Bruno Haible  <bruno@clisp.org>
105917         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
105918         condition was already detected.
105919         Reported by Ben Pfaff <blp@cs.stanford.edu>.
105921 2006-04-23  Bruno Haible  <bruno@clisp.org>
105923         * lib/copy-file.c: Include <unistd.h> unconditionally.
105924         * lib/execute.c: Likewise.
105925         * lib/fatal-signal.c: Likewise.
105926         * lib/findprog.c: Likewise.
105927         * lib/mkdtemp.c: Likewise.
105928         * lib/pipe.h: Likewise.
105929         * lib/pipe.c: Likewise.
105930         * lib/wait-process.h: Likewise.
105932 2006-04-23  Bruno Haible  <bruno@clisp.org>
105934         * gnulib-tool (func_usage): Fix --import description. Document
105935         --update.
105936         (func_import): Create temporary file in a temporary directory, if
105937         --dry-run is specified. Silence errors from 'grep' when there are no
105938         m4 files in $m4dir.
105939         (func_create_testdir): Silence errors from 'grep' when there are no
105940         m4 files in $m4dir.
105941         Reported by Karl Berry <karl@freefriends.org>.
105943 2006-04-20  Bruno Haible  <bruno@clisp.org>
105945         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
105946         one argument, so that the code will be portable to Autoconf 2.60.
105947         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
105948         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
105949         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
105951 2006-04-19  Derek Price  <derek@ximbiot.com>
105952             Eric Blake  <ebb9@byu.net>
105954         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
105955         rather than "/full/path.h".  Update comment to match.  Shorten &
105956         generalize m4_translit call via AS_TR_CPP.
105958 2006-04-19  Derek Price  <derek@ximbiot.com>
105959             Eric Blake  <ebb9@byu.net>
105961         * lib/inttypes.h: Correct grammar in comment.
105963 2006-04-18  Derek Price  <derek@ximbiot.com>
105964             Paul Eggert  <eggert@cs.ucla.edu>
105966         * modules/inttypes: New file.
105967         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
105969 2006-04-18  Derek Price  <derek@ximbiot.com>
105970             Paul Eggert  <eggert@cs.ucla.edu>
105972         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
105973         New files.
105975 2006-04-18  Derek Price  <derek@ximbiot.com>
105976             Paul Eggert  <eggert@cs.ucla.edu>
105978         * lib/inttypes.h: New file.
105979         * lib/strtoimax.c: Assume <inttypes.h>.
105981 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
105983         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
105984         isn't mounted.  Problem reported by Kir Kolyshkin.
105986 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
105988         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
105989         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
105990         Derek R. Price.
105991         * lib/regex.h (RE_DUP_MAX): Update comment to match current
105992         implementation.
105994 2006-04-12  Eric Blake  <ebb9@byu.net>
105996         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
105997         is now done automatically by the corresponding Autoconf macro.
105999 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
106001         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
106002         time_r.h.
106004 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
106006         Merge regex changes from libc, removing some of our
106007         POSIX-conformance changes that were rejected and redoing them in a
106008         less-intrusive way.
106010         * lib/regcomp.c (re_compile_internal, init_dfa):
106011         Length arg is now size_t, not Idx.  All uses changed.
106012         (peek_token): Forward decl now says internal_function.
106013         (__re_error_msgid, __re_error_msgid_idx):
106014         Now static rather than extern with attribute_hidden.
106015         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
106016         For some reason libc prefers K&R style defns for external functions.
106017         (regerror) [!defined _LIBC]: Likewise.
106018         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
106019         (seek_collating_symbol_entry, lookup_collation_sequence_value):
106020         (build_range_exp, build_collating_symbol):
106021         Use K&R-style defn.
106022         (re_compile_fastmap): Use '\0' to memset, not 0.
106023         (utf8_sb_map): Make the calculations more obvious.
106024         (init_dfa, parse_bracket_exp, build_charclass_op):
106025         Call calloc and cast result, as glibc does.
106026         (init_word_char, fetch_token, peek_token, peek_token_bracket):
106027         (build_range_exp, build_collating_symbol):
106028         Now internal functions.
106030         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
106032         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
106033         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
106034         Don't depend on VMS; depend on __VMS instead, for POSIX
106035         namespace cleanness.
106036         (regoff_t): Define to ssize_t, not long int.
106038         Remove the REG_ macros named below.  Instead, make the old names
106039         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
106040         __USE_GNU_REGEX.
106041         (REG_BACKSLASH_ESCAPE_IN_LISTS):
106042         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
106043         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
106044         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
106045         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
106046         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
106047         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
106048         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
106049         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
106050         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
106051         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
106052         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
106053         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
106054         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
106055         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
106056         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
106057         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
106058         (REG_NREGS):
106059         Remove.  All uses replaced by the old RE_* names.
106060         (RE_BACKSLASH_ESCAPE_IN_LISTS):
106061         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
106062         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
106063         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
106064         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
106065         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
106066         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
106067         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
106068         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
106069         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
106070         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
106071         Don't bother having these macros be independent of each others'
106072         values, since they no longer exist in the POSIX name space.
106074         Rename the following member names back to their old names,
106075         unless !__USE_GNU_REGEX.  All uses changed back.
106076         (buffer): Renamed from re_buffer.
106077         (allocated): Renamed from re_allocated.
106078         (used): Renamed from re_used.
106079         (syntax): Renamed from re_syntax.
106080         (fastmap): Renamed from re_fastmap.
106081         (translate): Renamed from re_translate.
106082         (can_be_null): Renamed from re_can_be_null.
106083         (regs_allocated): Renamed from re_regs_allocated.
106084         (fastmap_accurate): Renamed from re_fastmap_accurate.
106085         (no_sub): Renamed from re_no_sub.
106086         (not_bol): Renamed from re_not_bol.
106087         (not_eol): Renamed from re_not_eol.
106088         (newline_anchor): Renamed from re_newline_anchor.
106089         (num_regs): Renamed from rm_num_regs.
106090         (start): Renamed from rm_start.
106091         (end): Renamed from rm_end.
106093         (free_state): Move up a bit.
106095         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
106096         #define to be empty.
106097         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
106098         when that is what is intended.
106099         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
106100         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
106101         (MAX): New macro.
106102         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
106103         All uses changed back to re_malloc, etc.  It's now the caller's
106104         responsibility to check for overflow; all callers changed.
106105         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
106106         (re_x2nrealloc): Remove.
106107         (free_state): Remove decl.
106109         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
106110         (re_set_registers, re_exec):
106111         Use K&R-style defn.
106113         2006-01-31  Roland McGrath  <roland@redhat.com>
106115         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
106116         Reported by Mike Frysinger <vapier@gentoo.org>.
106118         2006-01-15  Andreas Jaeger  <aj@suse.de>
106120         [BZ #1950]
106121         * lib/regex_internal.c (re_string_reconstruct): Adjust for
106122         build_wcs_upper_buffer change.
106123         (build_wcs_upper_buffer): Change return type.
106125         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
106127         * lib/regex_internal.h: Include <stdint.h> if available.
106129         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
106131         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
106133         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
106135         * lib/regcomp.c: Adjust for changed secondary hash function.
106137         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
106139         * lib/regex.h: Pretty printing.
106140         Clean up namespace a bit.
106142         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
106144         * lib/regexec.c (update_cur_sifted_state, check_arrival,
106145         check_arrival_add_next_nodes): Avoid using uninitialized variable.
106147         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
106148                     Ulrich Drepper  <drepper@redhat.com>
106150         [BZ #1302]
106151         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
106152         changed.
106153         (bitset_word_t): Renamed from bitset_word.  All uses changed.
106155         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
106157         [BZ #281]
106158         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
106159         * lib/regcomp.c: Remove unnecessary uses of
106160         unsigned RE_TRANSLATE_TYPE.
106161         * lib/regex_internal.h: Likewise.
106162         * lib/regex_internal.c: Likewise.
106163         * lib/regexec.c: Likewise.
106164         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
106166         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
106168         * lib/regexec.c (find_recover_state): Remove unnecessary
106169         initialization.
106170         (transit_state_bkref): Make DFA a const pointer.
106171         (get_subexp): Likewise.
106172         (check_arrival): Likewise.
106173         (update_cur_sifted_state): Likewise.
106174         (re_search_internal): Likewise.
106175         (prune_impossible_nodes): Likewise.
106176         (acquire_init_state_context): Likewise.
106177         (proceed_next_node): Likewise.
106178         (set_regs): Likewise.
106179         (free_fail_stack_return): Likewise.
106180         (check_arrival_expand_ecl): Mark DFA parameter as const.
106181         (check_arrival_expand_ecl_sub): Likewise.
106182         (check_subexp_limits): Likewise.
106183         (sub_epsilon_src_nodes):  Likewise.
106184         (add_epsilon_src_nodes):  Likewise.
106185         (merge_state_array): Likewise.
106186         (update_regs): Likewise.
106187         (build_trtable): Likewise.
106188         (sift_states_backward): Mark MCTX parameter as const.
106189         (build_sifted_states): Likewise.
106190         (update_cur_sifted_state): Likewise.
106191         (sift_states_mkref): Likewise.
106192         (check_arrival_expand_ecl): Mark eclosure as const.
106193         (check_dst_limits_calc_pos_1): Likewise.
106194         * lib/regex_internal.h (re_match_context_t): Make dfa a const
106195         pointer.
106197         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
106199         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
106200         (transit_state_sb): Likewise.
106201         (transit_state_mb): Likewise.
106202         (sift_states_iter_mb): Likewise.
106203         (check_arrival_add_next_nodes): Likewise.
106204         (check_node_accept_bytes): Change first parameter to pointer-to-const.
106205         [_LIBC] (re_search_2_stub): Use mempcpy.
106207         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
106208         mbrtowc for very simple UTF-8 case.
106210         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
106211         a pointer-to-const.
106212         (re_acquire_state_context): Likewise.
106213         * lib/regex_internal.h: Adjust prototypes.
106215         * lib/regex.c: Prevent using C++ compilers.
106217         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
106218         (re_acquire_state_context): Likewise.
106220 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
106222         * modules/regex (Depends-on): Add ssize_t.
106224 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
106226         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
106227         translation table.
106229 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
106231         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
106233 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
106234             Bruno Haible  <bruno@clisp.org>
106236         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
106237         <sys/types.h> and <inttypes.h>.
106239 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
106241         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
106242         `__error_t_defined', so argp.h will not typedef the former.
106244 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
106246         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
106247         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
106248         glibc names.  Even if glibc is changed to conform to POSIX, the
106249         traditional names will be available anyway, since regex depends on
106250         the extensions module.  Also, fix a longstanding typo in the
106251         implementation of Spencer ERE test #75 from grep 2.3.  Problems
106252         reported by Emanuele Giaquinta.  Also, change sense of cached
106253         variable, so that the message makes sense.
106255 2006-03-24  Simon Josefsson  <jas@extundo.com>
106257         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
106258         including some doc fixes.
106259         (base64_encode_alloc): Fix +1 bug on allocation failures.
106261 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
106263         * lib/base64.c (base64_encode): Do not read past end of array with
106264         unsanitized input on systems with CHAR_BIT > 8.
106266 2006-03-24  Eric Blake  <ebb9@byu.net>
106268         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
106270 2006-03-22  Karl Berry  <karl@gnu.org>
106272         * config/srclist.txt (*setenv.[ch]): get from coreutils.
106273         * config/srclistvars.sh (COREUTILS): new var.
106275 2006-03-17  Jim Meyering  <jim@meyering.net>
106277         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
106278         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
106280 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
106282         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
106283         no longer needs it.  Instead, check that regoff_t is as least
106284         as wide as ptrdiff_t.
106286         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
106287         so that our regex.h stays compatible with the installed regex.
106288         This is helpful for installers who configure --without-included-regex.
106289         Problem reported by Emanuele Giaquinta.
106291 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
106293         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
106294         Typedef to long int, not to off_, as POSIX will likely change
106295         in that direction.
106297 2006-03-15  Eric Blake  <ebb9@byu.net>
106299         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
106301 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
106303         * lib/argp-help.c (validate_uparams): Fix typo
106304         * lib/argp-parse.c (argp_default_options): Consistently begin help
106305         messages with a lowercase letter.
106307 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
106309         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
106310         overrun buffers and shouldn't be used (much as gets shouldn't be
106311         used).
106312         * lib/time_r.c (asctime_r, ctime_r): Likewise.
106314 2006-03-08  Simon Josefsson  <jas@extundo.com>
106316         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
106317         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
106319 2006-03-08  Simon Josefsson  <jas@extundo.com>
106321         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
106322         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
106324 2006-03-08  Simon Josefsson  <jas@extundo.com>
106326         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
106327         signal that configure disabled the device.
106329 2006-03-08  Simon Josefsson  <jas@extundo.com>
106331         * build-aux/maint.mk: Fix refresh-po, to handle no translated
106332         languages.
106334 2006-03-07  Simon Josefsson  <jas@extundo.com>
106336         * modules/getopt (Depends-on): Add unistd.
106338         * modules/unistd: New file.
106340 2006-03-07  Simon Josefsson  <jas@extundo.com>
106342         * modules/gc-random: New file.
106344 2006-03-07  Simon Josefsson  <jas@extundo.com>
106346         * m4/unistd_h.m4: New file.
106348 2006-03-07  Simon Josefsson  <jas@extundo.com>
106350         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
106351         test to be side-effect free by storing the result in the cache
106352         variable gl_cv_lib_readline, and moving the assignment of
106353         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
106354         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
106356 2006-03-07  Simon Josefsson  <jas@extundo.com>
106358         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
106359         error on missing devices (the functions will return an error).
106361         * m4/gc.m4: Move random stuff to gc-random.m4
106363 2006-03-07  Simon Josefsson  <jas@extundo.com>
106365         * lib/unistd_.h: New file.
106367 2006-03-07  Simon Josefsson  <jas@extundo.com>
106369         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
106371 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
106373         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
106374         Problem reported by Juan Manuel Guerrero.
106376 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
106378         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
106379         the unistd module.
106380         * lib/getlogin_r.c: Likewise.
106381         * lib/getlogin_r.h: Likewise.
106382         * lib/glob.c: Likewise.
106383         * lib/pagealign_alloc.c: Likewise.
106384         * lib/unistd_.h: Remove; no longer needed.
106386 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
106388         * MODULES.html.sh (Support for systems lacking POSIX:2001):
106389         Add unistd.
106390         * modules/c-stack (Depends-on): Add unistd.
106391         * modules/getlogin_r: Likewise.
106392         * modules/glob: Likewise.
106393         * modules/pagealign_alloc: Likewise.
106394         * modules/unistd (Files): Remove lib/unistd_.h.
106395         (EXTRA_DIST): Remove.
106396         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
106397         need unistd_.h.
106398         (MOSTLYCLEANFILES): Remove unistd.h-t.
106400 2006-03-03  Simon Josefsson  <jas@extundo.com>
106402         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
106404 2006-03-03  Simon Josefsson  <jas@extundo.com>
106406         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
106407         libidn and bison.
106409 2006-03-03  Simon Josefsson  <jas@extundo.com>
106411         * build-aux/maint.mk: Add indent target.
106413 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
106415         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
106416         our replacement poll.h in any case, to avoid a differing
106417         declaration from a system header.  Seen on AIX.
106419 2006-03-01  Simon Josefsson  <jas@extundo.com>
106421         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
106422         <kasal@ucw.cz>.
106424 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
106426         * modules/gettime (Depends-on): Add extensions module.
106427         * modules/nanosleep (Depends-on): Likewise.
106428         * modules/settime (Depends-on): Likewise.
106430 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
106432         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
106433         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
106434         pedantically.
106435         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
106436         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
106438         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
106439         not "==".  Reported by Ralf Wildenhues.
106441 2006-03-01  Karl Berry  <karl@gnu.org>
106443         * doc/Copyright/request-*: new files, synced from gnuorg.
106445 2006-03-01  Karl Berry  <karl@gnu.org>
106447         * config/srclist.txt (Copyright/*): new entries.
106449 2006-02-28  Simon Josefsson  <jas@extundo.com>
106451         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
106453 2006-02-27  Simon Josefsson  <jas@extundo.com>
106455         * lib/base64.h: Indent #define's.  From Jim Meyering
106456         <jim@meyering.net>.
106458 2006-02-27  Jim Meyering  <jim@meyering.net>
106460         Revert the change of 2006-02-24, so these files can continue
106461         to be sync'd from gettext.
106462         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
106463         of `config.h'.
106465 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
106467         * modules/intprops: New file.
106468         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
106469         Add intprops.
106470         * modules/getloadavg (Files): Remove lib/intprops.h.
106471         (Depends-on): Add intprops.
106472         * modules/human: Likewise.
106473         * modules/inttostr: Likewise.
106474         * modules/openat: Likewise.
106475         * modules/sig2str: Likewise.
106476         * modules/userspec: Likewise.
106477         * modules/utimecmp: Likewise.
106478         * modules/xnanosleep: Likewise.
106479         * modules/xstrtol: Likewise.
106481 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
106483         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
106484         * modules/lock-tests (TESTS): Use $(EXEEXT).
106485         * modules/tls-tests: Likewise.
106486         * modules/argp-tests: Likewise.
106487         (check_PROGRAMS): New var, replacing...
106488         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
106490 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
106492         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
106493         `config.h'.
106495 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
106497         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
106499 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
106501         Sync from coreutils.
106502         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
106503         gl_CHDIR_SAFER.
106505 2006-02-22  Jim Meyering  <jim@meyering.net>
106507         Sync from coreutils.
106508         * m4/chdir-safer.m4: New file.
106510 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
106512         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
106513         AT_FDCWD exceeds INT_MAX.
106514         * lib/openat.h (AT_FDCWD): Likewise.
106516 2006-02-17  Eric Blake  <address@hidden>
106518         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
106520 2006-02-16  Simon Josefsson  <jas@extundo.com>
106522         * modules/getaddrinfo (Depends-on): Add sys_socket.
106524 2006-02-15  Simon Josefsson  <jas@extundo.com>
106526         * build-aux/maint.mk: Add dsyntax-check rule.
106528 2006-02-15  Eric Blake  <ebb9@byu.net>
106530         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
106531         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
106532         'present but cannot compile' warnings on cygwin.
106533         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
106534         use ws2tcpip.h if sys/socket.h works.
106535         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
106536         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
106538 2006-02-14  Simon Josefsson  <jas@extundo.com>
106540         * modules/maintainer-makefile (Files): Rename.
106542         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
106543         and (the local) Makefile.cfg to maint-cfg.mk.
106545         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
106546         to the latter.
106548         * modules/maintainer-makefile: New module.
106550         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
106551         severaly stripped to make it possible to build it up from scratch
106552         with reliable tests.
106554         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
106555         fixes to permit overriding the default actions when configure and
106556         makefile are not available.
106558 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
106560         Sync from coreutils.
106561         * modules/lstat (Depends-on): Don't depend on xalloc.
106562         (License): Change from GPL to LGPL, since this is now simply a
106563         replacement for a libc function.
106565 2006-02-14  Jim Meyering  <jim@meyering.net>
106567         Sync from coreutils.
106569         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
106570         failure on deficient systems, and simplify gnulib lgpl dependencies.
106571         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
106572         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
106574         * lib/xalloc-die.c: Remove unused definition of N_.
106576 2006-02-14  Jim Meyering  <jim@meyering.net>
106578         Sync from coreutils.
106579         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
106580         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
106581         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
106582         double-quote uses of that variable, to accommodate the rare case in
106583         which getmntent is available in none of the libraries checked.  This
106584         happens at least on FreeBSD 5.0.
106586 2006-02-13  Simon Josefsson  <jas@extundo.com>
106588         * gnulib-tool (Usage): Fix --import, from
106589         karl@freefriends.org (Karl Berry).
106591 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
106593         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
106595 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
106597         * lib/argp-namefrob.h: Restore changes accidentally lost during the
106598         "autoupdate" on 2005-12-12.
106600 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
106602         * modules/closeout (Depends-on): Remove atexit.
106604 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
106606         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
106607         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
106609 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
106611         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
106612         __EXTENSIONS__ if this causes compilation to fail.  Problem
106613         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
106614         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
106616 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
106618         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
106619         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
106620         <http://lists.gnu.org/r/bug-gnulib/2006-01/msg00074.html>.
106621         All uses changed.
106623 2006-01-26  Simon Josefsson  <jas@extundo.com>
106625         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
106626         prototype is visible on mingw32.
106628         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
106629         for mingw32.
106631         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
106632         mingw32).
106634 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
106636         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
106637         attempt to open for write; this always fails, at least on POSIX
106638         hosts.  This reinstates the 2006-01-09 change, which was
106639         inadvertently removed.
106641 2006-01-26  Bruno Haible  <bruno@clisp.org>
106643         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
106644         Reported by Paul Eggert.
106646 2006-01-26  Bruno Haible  <bruno@clisp.org>
106647             Paul Eggert  <eggert@cs.ucla.edu>
106649         * lib/stdbool_.h (_Bool)
106650         [(! (defined __cplusplus || defined __BEOS__)
106651           && !defined __GNUC__
106652           && !(defined __HP_cc || defined __xlc__
106653                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
106654                || defined __sgi))]:
106655         #define to signed char in these cases too; this simplifies
106656         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
106657         etc., separately) and makes it more conservative.
106659 2006-01-25  Simon Josefsson  <jas@extundo.com>
106661         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
106662         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
106663         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
106665 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
106667         * lib/argp-namefrob.h: Bugfix. Remove stray #
106669 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
106671         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
106672         so that we test the test.
106673         Check for yet another HP-UX cc bug involving *bool |= bool.
106675 2006-01-25  Karl Berry  <karl@gnu.org>
106677         * config/srclist.txt (vasnprintf.c): sync lost.
106679 2006-01-25  Jim Meyering  <jim@meyering.net>
106681         Sync from the stable (b5) branch of coreutils:
106683         * lib/fts.c (fts_children): Don't let close() clobber errno from
106684         failed fchdir().
106686         * lib/fts.c (fts_stat): When following a symlink-to-directory,
106687         don't necessarily interpret stat-fails+lstat-succeeds as indicating
106688         a dangling symlink.  That can also happen at least for ELOOP.
106689         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
106690         FYI, this bug predates the inclusion of fts.c in coreutils.
106692         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
106693         in their own block, so pre-c99 compilers don't object.
106695         Avoid the double-free (first in fts_read, second in fts_close) that
106696         would occur when an `active' directory is made inaccessible (e.g.,
106697         via chmod a-x) during a traversal.
106698         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
106699         before returning.  Reproduce this failure by
106700         mkdir -p a/b; cd a; chmod a-x . b
106701         Reported by Stavros Passas.
106703 2006-01-25  Jim Meyering  <jim@meyering.net>
106705         * lib/fileblocks.c: Remove more useless parentheses.
106706         * lib/readutmp.h: Likewise.
106708 2006-01-25  Bruno Haible  <bruno@clisp.org>
106710         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
106711         warnings.
106712         Reported by Paul Eggert.
106714 2006-01-25  Bruno Haible  <bruno@clisp.org>
106716         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
106717         rid of a trap command. For Solaris sh.
106718         Reported by Mark D. Baushke <mdb@gnu.org>.
106720 2006-01-24  Simon Josefsson  <jas@extundo.com>
106722         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
106723         Bruno.
106725 2006-01-24  Karl Berry  <karl@gnu.org>
106727         * config/srclist.txt (argp-namefrob.h): sync lost.
106729 2006-01-24  Jim Meyering  <jim@meyering.net>
106731         * modules/openat (Files): Add lib/intprops.h.
106732         From Mark D. Baushke.
106734 2006-01-24  Jim Meyering  <jim@meyering.net>
106736         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
106737         Reported by Mark D. Baushke.
106739 2006-01-24  Jim Meyering  <jim@meyering.net>
106741         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
106743 2006-01-24  Bruno Haible  <bruno@clisp.org>
106745         * modules/strnlen (Maintainer): Change from glibc to all.
106747 2006-01-24  Bruno Haible  <bruno@clisp.org>
106749         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
106750         Patch by Paul Eggert.
106752 2006-01-24  Bruno Haible  <bruno@clisp.org>
106754         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
106755         already has it.
106756         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
106757         2005-11-26.
106759         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
106760         'signed char' to avoid problems with the built-in _Bool type.
106761         Reported by Paul Eggert on 2005-11-26.
106763 2006-01-24  Bruno Haible  <bruno@clisp.org>
106765         * gnulib-tool (func_import): Avoid constructing complicated sed
106766         expressions inside backquote.
106767         Report and solution by Mark D. Baushke <mdb@gnu.org>.
106769 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
106771         These changes imported from libc.
106772         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
106773         test and two separate function calls.
106774         * lib/strndup.c (__strndup): Add libc_hidden_def.
106776 2006-01-23  Simon Josefsson  <jas@extundo.com>
106778         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
106779         Remove the test_*_SOURCES variable: automake infers it by default.
106780         * modules/tls-tests: Likewise.
106782 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
106784         Work around porting bugs reported by Dieter in
106785         <http://lists.gnu.org/r/bug-bison/2006-01/msg00049.html>.
106786         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
106787         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
106788         Include "getopt.h" first, to check interface.
106789         (getenv): Declare only if defined HAVE_DECL_GETENV &&
106790         !HAVE_DECL_GETENV.
106791         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
106792         (__strndup): Revert to K&R-style function dfns, the glibc style.
106793         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
106794         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
106795         Include strnlen.h first, to get prototype properly.
106796         (strnlen): Renamed from __strnlen.
106797         Remove weak alias.
106799 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
106801         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
106803 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
106805         * config/srclist.txt: Adjust to reflect glibc reorganization.
106806         This affects only comments.
106808 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
106810          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
106811          Reported by Bruce Korb <bkorb@gnu.org>.
106813 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
106815         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
106816         to pacify gcc -Wswitch-default.
106818 2006-01-22  Bruno Haible  <bruno@clisp.org>
106820         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
106821         temporary buffer for sprintf, take into account the precision also
106822         for 'd', 'i', 'u', 'o', 'x', 'X'.
106824 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
106826         * modules/argp-tests: New module
106827         * tests/test-argp.c: New file
106828         * tests/test-argp-2.sh: New file
106830 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
106832         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
106833         (__argp_base_name): Removed
106834         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
106835         typo.
106836         (__argp_base_name): Provide macro definition or extern declaration
106837         depending on the configuration
106839 2006-01-20  Simon Josefsson  <jas@extundo.com>
106841         * modules/inet_ntop (Depends-on): Depend on sys_socket.
106843 2006-01-20  Simon Josefsson  <jas@extundo.com>
106845         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
106847 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
106849         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
106850         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
106851         Suggested by Bruno Haible.
106853 2006-01-20  Karl Berry  <karl@gnu.org>
106855         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
106856         until changes propagate, I guess.
106858 2006-01-19  Simon Josefsson  <jas@extundo.com>
106860         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
106862 2006-01-19  Simon Josefsson  <jas@extundo.com>
106864         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
106866 2006-01-19  Simon Josefsson  <jas@extundo.com>
106868         * gnulib-tool: Set check_PROGRAMS.
106870         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
106871         modules/des-tests, modules/gc-arcfour-tests,
106872         modules/gc-arctwo-tests, modules/gc-des-tests,
106873         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
106874         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
106875         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
106876         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
106877         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
106878         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
106879         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
106880         test_*_SOURCES.
106882 2006-01-18  Simon Josefsson  <jas@extundo.com>
106884         * modules/socklen (Depends-on): Depend on sys_socket.
106886 2006-01-18  Simon Josefsson  <jas@extundo.com>
106888         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
106889         modules/des-tests, modules/gc-arcfour-tests,
106890         modules/gc-arctwo-tests, modules/gc-des-tests,
106891         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
106892         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
106893         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
106894         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
106895         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
106896         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
106897         $(EXEEXT) to automake TESTS variable, for mingw32.
106899 2006-01-17  Simon Josefsson  <jas@extundo.com>
106901         * modules/socklen (Include): Need sys/socket.h.
106903 2006-01-17  Bruno Haible  <bruno@clisp.org>
106905         * modules/ssize_t (Include): Add <sys/types.h>.
106907 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
106909         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
106910         it's not portable and it doesn't work with cross-compiles.
106911         Problem reported by Bruno Haible.  Fix missing-$ typo in
106912         'test "gl_cv_ignore_unused_libraries" ...' that prevented
106913         -zignore from being used with Sun's C compiler.
106915 2006-01-12  Simon Josefsson  <jas@extundo.com>
106917         * lib/base64.c: Fix warning, reported by Bruno Haible
106918         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
106920 2006-01-12  Bruno Haible  <bruno@clisp.org>
106922         * modules/ldd: New file.
106923         * build-aux/ldd.sh.in: New file.
106924         * MODULES.html.sh (Support for building libraries and executables): Add
106925         ldd.
106927 2006-01-12  Bruno Haible  <bruno@clisp.org>
106929         * m4/ldd.m4: New file.
106931 2006-01-12  Bruno Haible  <bruno@clisp.org>
106933         * gnulib-tool (func_import, func_create_testdir): Don't go into an
106934         endless loop while replacing $auxdir with build-aux.
106936 2006-01-11  Simon Josefsson  <jas@extundo.com>
106938         * lib/stdint_.h (SIZE_MAX): Add missing (.
106940 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
106942         Sync from coreutils.
106943         * lib/md5.c: Fix commentary typos.
106944         (alignof, UNALIGNED_P): No need for a GCC-specific version.
106945         * lib/md5.h (__attribute__): Remove; unused.
106946         * lib/sha1.c: Fix commentary to match md5 better.
106947         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
106948         so that we don't need to worry about alignment.  All uses changed.
106949         This merges the 2005-10-28 md5 change into sha1.
106951 2006-01-11  Jim Meyering  <jim@meyering.net>
106953         Sync from coreutils.
106954         * lib/md5.c (OP): Fix spacing.
106956 2006-01-11  Bruno Haible  <bruno@clisp.org>
106958         Ensure automatic ordering between gl_LOCK and gl_ARGP.
106959         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
106960         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
106962 2006-01-11  Bruno Haible  <bruno@clisp.org>
106964         Ensure automatic ordering between gl_LOCK and gl_ARGP.
106965         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
106966         the "early" section as well.
106968 2006-01-11  Bruno Haible  <bruno@clisp.org>
106970         Avoid "ar: no archive members specified" error on MacOS X.
106971         * gnulib-tool (func_modules_add_dummy): New function.
106972         (func_import, func_create_testdir): Invoke it.
106974 2006-01-11  Bruno Haible  <bruno@clisp.org>
106976         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
106977         with $auxdir in AC_CONFIG_FILES statements.
106979 2006-01-11  Bruno Haible  <bruno@clisp.org>
106981         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
106982         Initialize also noinst_HEADERS to empty.
106984 2006-01-11  Bruno Haible  <bruno@clisp.org>
106986         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
106987         variables.
106988         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
106989         autoreconf.
106991 2006-01-11  Bruno Haible  <bruno@clisp.org>
106993         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
106994         overridable by the user.
106995         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
106997 2006-01-10  Simon Josefsson  <jas@extundo.com>
106999         * modules/sys_socket: New file.
107001 2006-01-10  Simon Josefsson  <jas@extundo.com>
107003         * m4/sys_socket_h.m4: New file.
107005 2006-01-10  Simon Josefsson  <jas@extundo.com>
107007         * lib/socket_.h: New file.
107009 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
107011         * modules/readutmp (Maintainer): Add myself.
107013 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
107015         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
107016         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
107017         People who are still concerned with buggy memcmp implementations
107018         can invoke gl_FUNC_MEMCMP themselves.
107020 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
107022         * lib/regex_internal.h (BITSET_WORD_BITS):
107023         Work around a bug in 64-bit PGC (before version 6.1-2), where the
107024         preprocessor mishandles large unsigned values as if they were signed.
107025         Problem reported by Claudio Fontana in
107026         <http://lists.gnu.org/r/bug-gnulib/2005-12/msg00061.html>.
107028 2006-01-10  Jim Meyering  <jim@meyering.net>
107030         Avoid the double-free (first in fts_read, second in fts_close) that
107031         would occur when an `active' directory is made inaccessible (e.g.,
107032         via chmod a-x) during a traversal.
107033         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
107034         before returning.  Reproduce this failure by
107035         mkdir -p a/b; cd a; chmod a-x . b
107036         Reported by Stavros Passas.
107038         Sync from coreutils.
107039         * lib/sha1.c: Tweak grammar in a comment.
107041 2006-01-10  Jim Meyering  <jim@meyering.net>
107043         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
107044         Patch by Joerg Sonnenberger.
107046 2006-01-10  Bruno Haible  <bruno@clisp.org>
107048         * modules/readutmp: Depend on module free.
107049         * modules/strtok_r: Depend on module restrict.
107051 2006-01-10  Bruno Haible  <bruno@clisp.org>
107053         * modules/gettext (configure.ac): Add an invocation of
107054         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
107056 2006-01-10  Bruno Haible  <bruno@clisp.org>
107058         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
107059         Reported by Werner Lemberg <wl@gnu.org>.
107061 2006-01-10  Bruno Haible  <bruno@clisp.org>
107063         * lib/localcharset.c: Update from GNU gettext.
107065 2006-01-10  Bruno Haible  <bruno@clisp.org>
107067         * lib/argp.h (__const): Remove macro. Use const instead.
107068         * lib/argp-fmtstream.h (__const): Likewise.
107069         * lib/glob_.h (__const): Remove macro.
107070         * lib/glob-libc.h: Use const instead of __const.
107072 2006-01-10  Bruno Haible  <bruno@clisp.org>
107074         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
107075         variable.
107076         Needed to avoid an automake error regarding the 'gettext' module.
107078 2006-01-09  Simon Josefsson  <jas@extundo.com>
107080         * modules/inet_ntop (Depends-on): Add restrict.
107082 2006-01-09  Simon Josefsson  <jas@extundo.com>
107084         * modules/gc-rijndael-tests (License): Put under LGPL.
107086         * modules/gc-des-tests (License): Likewise.
107088         * modules/gc-arcfour-tests (License): Likewise.
107090         * modules/gc-arctwo-tests (License): Likewise.
107092         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
107094         * modules/gc-hmac-sha1-tests (Files): Likewise.
107096         * modules/gc-hmac-md5-tests (License): Likewise.
107098         * modules/gc-sha1-tests (License): Likewise.
107100         * modules/gc-md5-tests (License): Likewise.
107102         * modules/gc-md4-tests (License): Likewise.
107104         * modules/gc-md2-tests (License): Likewise.
107106         * modules/gc-tests (License): Likewise.
107108         * modules/des-tests (License): Likewise.
107110         * modules/md4-tests (License): Likewise.
107112         * modules/md2-tests (License): Likewise.
107114 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
107116         Sync from coreutils:
107118         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
107119         * modules/lib-ignore: New file.
107120         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
107121         chdir-safer.m4, lchmod.m4.
107122         * modules/openat: Add mkdirat.c, openat-priv.h.
107124 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
107126         Sync from coreutils.
107127         * m4/lib-ignore.m4: New file.
107128         * m4/lchmod.m4: New file.
107130 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
107132         Sync from coreutils.
107133         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
107134         for write access: POSIX says that must fail.
107135         * lib/fts.c (diropen): Likewise.
107136         * lib/save-cwd.c (save_cwd): Likewise.
107137         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
107138         well, for minor improvements on hosts that lack O_DIRECTORY.
107139         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
107140         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
107141         Fall back on chown if open failed with EACCES.
107143         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
107144         Report an error at compile-time if only a 1-second nominal clock
107145         resolution is found.
107147         * lib/lchmod.h: New file.
107148         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
107149         (make_dir_parents): Use lchown rather than chown, and
107150         lchmod rather than chmod.
107152         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
107153         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
107154         "proc" reported by n0dalus.
107156         * lib/mountlist.c: Include <limits.h>.
107157         (dev_from_mount_options)
107158         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
107159         New function.  It no longer assumes "dev=" has the System V meaning
107160         on Linux (since it doesn't).  It also parses "dev=" more carefully.
107161         (read_file_system_list)
107162         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
107163         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
107164         dev= in that case.
107166         * lib/posixtm.h (PDS_PRE_2000): New macro.
107167         * lib/posixtm.c (year): Arg is now syntax_bits rather than
107168         allow_century.  All usages changed.  Reject dates outside the range
107169         1969-1999 if PDS_PRE_2000 is used.
107171 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
107173         Sync from coreutils.
107174         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
107175         (Time of day items): Mention the possibility of leap seconds.
107176         Problem reported by Dr. David Alan Gilbert.
107178 2006-01-09  Jim Meyering  <jim@meyering.net>
107180         Sync from coreutils.
107182         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
107184         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
107186         * lib/modechange.c (mode_compile): Reject an invalid mode string
107187         that starts with an octal digit.  From Andreas Gruenbacher.
107189         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
107190         and dup to open_safer and dup_safer, respectively.
107191         (openat_permissive): Fix typo in comment.
107193         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
107194         "gettext.h"; either no longer needed or are guaranteed by openat.h.
107195         (_): Remove; no longer needed.
107196         (openat): Renamed from rpl_openat; no need for rpl_openat
107197         since openat.h renames openat for us.
107198         Replace most of the body with a call to openat_permissive,
107199         to avoid duplicate code.
107200         Port to (probably hypothetical) environments were mode_t is
107201         wider than int.
107202         (openat_permissive): Require mode arg, so that we can check
107203         types better.  Put it just after flags.  Change cwd failure
107204         indicator from pointer-to-bool to pointer-to-errno-value.
107205         All callers changed.
107206         Invoke openat_save_fail and/or openat_restore_fail if
107207         cwd_errno is null, so that openat can call us.
107208         (openat_permissive, fdopendir, fstatat, unlinkat):
107209         Simplify errno handling to avoid some duplicate code,
107210         as it's OK to set errno on success.
107211         * lib/openat.h: Revamp code so that function macros depend on
107212         __OPENAT_PREFIX only, not also on AT_FDCWD.
107213         (openat_ro): Remove.  Caller changed to use openat_permissive.
107214         (openat_permissive): Now a macro, if not a function.
107215         (openat_restore_fail, openat_save_fail): Now always functions,
107216         since mkdirat needs them even if __OPENAT_PREFIX is defined.
107218         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
107219         and openat.c.
107220         * lib/mkdirat.c: Include openat-priv.h.
107221         Remove definitions of macros defined therein.
107222         * lib/openat.c: Likewise.
107224         * lib/mkdirat.c (mkdirat): New file and function.
107225         * lib/openat.h (mkdirat): Declare.
107227         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
107229         * lib/openat.h (openat_permissive): Declare.
107230         (openat_ro): Define.
107232         * lib/openat.c (EXPECTED_ERRNO): New macro.
107233         (openat_permissive): New function -- used in remove.c rewrite.
107234         (all functions): Set errno just before returning, only if there
107235         was an actual failure.
107236         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
107238         Emulate openat-family functions using Linux's procfs, if possible.
107239         Idea and some code based on Ulrich Drepper's glibc changes.
107241         * lib/openat.c: (BUILD_PROC_NAME): New macro.
107242         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
107243         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
107244         before falling back on save_cwd and restore_cwd.
107245         (fdopendir, fstatat, unlinkat): Likewise.
107247         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
107248         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
107250         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
107251         as second argument to va_arg.  Otherwise, some versions of gcc
107252         warn that `if this code is reached, the program will abort'.
107254 2006-01-09  Jim Meyering  <jim@meyering.net>
107256         Sync from coreutils.
107257         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
107258         Require openat-priv.h.
107260 2006-01-09  Bruno Haible  <bruno@clisp.org>
107262         * modules/strnlen (Include): Use strnlen.h.
107264 2006-01-09  Bruno Haible  <bruno@clisp.org>
107266         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
107268 2006-01-09  Bruno Haible  <bruno@clisp.org>
107270         * lib/sysexit_.h (EX_OK): New macro.
107271         Suggested by Martin Lambers <marlam@marlam.de>.
107273 2006-01-09  Bruno Haible  <bruno@clisp.org>
107275         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
107276         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
107278 2006-01-09  Bruno Haible  <bruno@clisp.org>
107280         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
107281         numbers.
107283 2006-01-09  Bruno Haible  <bruno@clisp.org>
107285         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
107286         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
107287         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
107288         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
107290 2006-01-09  Bruno Haible  <bruno@clisp.org>
107292         * build-aux/javacomp.sh.in: New file, moved from lib/.
107293         * modules/javacomp-script (Files): Update.
107294         (configure.ac): Add AC_CONFIG_FILES invocation.
107295         (EXTRA_DIST): Remove variable.
107297         * build-aux/javaexec.sh.in: New file, moved from lib/.
107298         * modules/javaexec (Files): Update.
107299         (configure.ac): Add AC_CONFIG_FILES invocation.
107300         (EXTRA_DIST): Remove javaexec.sh.in.
107302         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
107303         * modules/csharpcomp-script (Files): Update.
107304         (configure.ac): Add AC_CONFIG_FILES invocation.
107305         (EXTRA_DIST): Remove variable.
107307         * build-aux/csharpexec.sh.in: New file, moved from lib/.
107308         * modules/csharpexec (Files): Update.
107309         (configure.ac): Add AC_CONFIG_FILES invocation.
107310         (EXTRA_DIST): Remove csharpexec.sh.in.
107312 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
107314         Sync from coreutils.
107316         Add POSIX ACL support
107317         * lib/acl.h (copy_acl, set_acl): Add declarations.
107318         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
107319         systems other than Linux.
107320         (chmod_or_fchmod): New function: use fchmod when possible,
107321         and chmod otherwise.
107322         (file_has_acl): Add a POSIX ACL implementation, with a
107323         Linux-specific subcase.
107324         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
107325         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
107326         acls are unsupported.
107327         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
107328         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
107329         are unsupported.
107331 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
107333         Sync from coreutils.
107334         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
107336 2006-01-07  Bruno Haible  <bruno@clisp.org>
107338         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
107339         gl_EARLY.
107341 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
107343         * lib/strftime.c (tzname): Don't declare if it is already #defined.
107344         Problem reported for Mingw by Mark Junker.
107346 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
107348         * README: Gnulib normally doesn't generate a tarball.
107350 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
107352         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
107353         long int, not int, for nanosecond counts, so that people who are
107354         used to POSIX struct timespec won't be surprised.  Reported by Jim
107355         Meyering.
107357 2005-12-28  Bruno Haible  <bruno@clisp.org>
107359         * build-aux/config.rpath: Update from GNU gettext.
107361 2005-12-16  Jim Meyering  <jim@meyering.net>
107363         * modules/fprintftime: New module.
107364         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
107366 2005-12-16  Jim Meyering  <jim@meyering.net>
107368         * m4/fprintftime.m4: New file.
107370 2005-12-16  Jim Meyering  <jim@meyering.net>
107372         * lib/fprintftime.c, lib/fprintftime.h: New files.
107374 2005-12-15  Simon Josefsson  <jas@extundo.com>
107376         * modules/socklen (configure.ac): Fix M4 macro name, to align with
107377         new m4/socklen.m4.
107379 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
107381         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
107382         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
107384 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
107386         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
107387         * lib/argp-help.c (fill_in_uparams): Check if the constructed
107388         struct uparams is valid. Fall back to the default values if it is
107389         not.
107391 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
107393         * modules/argp (Files): Add argp-pin.c
107394         (Depends-on): dirname
107395         (lib_SOURCES): Add argp-pin.c
107397 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
107399         * m4/argp.m4:  Check if program_invocation_name and
107400         program_invocation_short_name are declared and define appropriate
107401         macros if they are not.
107403 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
107405         * lib/argp-help.c (__argp_base_name): New function
107406         (__argp_short_program_name): Rewrite using __argp_base_name
107407         * lib/argp-namefrob.h: Define program_invocation_name and
107408         program_invocation_short_name if requested
107409         (__argp_base_name): Add prototype
107410         * lib/argp-parse.c (argp_def): Use gettext wrappers
107411         (argp_default_parser): Use __argp_base_name
107412         * lib/argp-pin.c: New file. Defines program_invocation_name and
107413         program_invocation_short_name on systems that lack them.
107415 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
107417         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
107418         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
107419         porting problem reported by Georg Schwarz in
107420         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
107422 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
107424         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
107425         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
107426         porting problem reported by Georg Schwarz in
107427         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
107429 2005-12-05  Bruno Haible  <bruno@clisp.org>
107431         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
107432         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
107433         Reported by Mark Junker <mjscod@gmx.de>.
107435 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
107437         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
107438         Use implementation from Albert Chin, with some
107439         comments/corrections by Stepan Kasal and myself.
107441 2005-12-02  Bruno Haible  <bruno@clisp.org>
107443         * gnulib-tool (func_import): Accept GPLed build tool modules when
107444         --lgpl is given.
107445         * modules/csharpcomp-script: New file.
107446         * modules/csharpcomp: Depend on it.
107447         * modules/javacomp-script: New file.
107448         * modules/javacomp: Depend on it.
107449         Suggested by Simon Josefsson.
107451 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
107453         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
107454         statement, to work around an HP-UX 10.20 compiler bug reported by
107455         Peter O'Gorman.
107457 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
107459         * modules/savedir (Depends-on): Add openat.
107461 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
107463         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
107464         (uintmax_t) [defined uintmax_t]: Do not declare.
107465         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
107466         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
107467         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
107468         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
107469         sake of portability to weird hosts that C allows (though we don't
107470         know of any practical examples).
107472         * lib/savedir.h (fdsavedir): New decl.
107473         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
107474         contains most of the former guts of savedir.
107475         (savedir): Use savedirstream.
107476         Include "openat.h".
107478 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
107480         * modules/obstack (Files): Add m4/ulonglong.m4.
107481         Problem reported by Davide Angelocola.
107483 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
107485         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
107486         coreutils no longer futzes with rounding modes.
107488 2005-11-14  Jim Meyering  <jim@meyering.net>
107490         * lib/mkstemp-safer.c: Include <config.h>, required for possible
107491         replacement of mkstemp.
107493 2005-11-10  Simon Josefsson  <jas@extundo.com>
107495         * lib/readline.c: Remove EOL.
107497 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
107499         * modules/gethrxtime (Depends-on): Add gettime.
107501 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
107503         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
107504         or gettimeofday; no longer needed.
107506 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
107508         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
107509         time business.
107510         (gethrxtime) [! (HAVE_NANOUPTIME
107511         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
107512         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
107513         our own approximation.
107515 2005-11-08  Eric Blake  <ebb9@byu.net>
107517         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
107519 2005-11-08  Eric Blake  <ebb9@byu.net>
107521         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
107523 2005-11-04  Bruno Haible  <bruno@clisp.org>
107525         * gnulib-tool: Implement --update mode.
107527 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
107529         Fix porting problem reported by Theodoros V. Kalamatianos.
107530         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
107531         Don't assume that futimes failing means we must fail.
107533 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
107535         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
107536         variables to suggest the intended function of the PATH_MAX check.
107538 2005-10-30  Kean Johnston  <jkj@sco.com>
107540         Trivial changes to support SCO systems.
107541         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
107542         as PATH_MAX.
107543         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
107544         where __ptr is null when no I/O is pending.
107546 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
107548         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
107549         leave errno alone.  Problem reported by Dmitry V. Levin.
107551 2005-10-28  Simon Josefsson  <jas@extundo.com>
107553         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
107554         Test more.
107556         * tests/test-gc-md2.c, tests/test-md2.c: New files.
107558         * modules/md2, modules/md2-tests: New files.
107560 2005-10-28  Simon Josefsson  <jas@extundo.com>
107562         * m4/inet_ntop.m4: More tests.
107564         * m4/gc-md2.m4, md2.m4: New file.
107566 2005-10-28  Simon Josefsson  <jas@extundo.com>
107568         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
107569         "restrict" keywords, as per POSIX.  Protect the function
107570         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
107571         Don't use K&R prototypes.  Check the sprintf return values.
107572         Re-define EAFNOSUPPORT if not present.  Indent.
107574         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
107575         suggested by Bruno Haible <bruno@clisp.org>.
107577         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
107579         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
107581         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
107582         libgcrypt).
107584         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
107586         * lib/md2.h, lib/md2.c: New files.
107588 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
107590         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
107591         errno alone.  Problem reported by Frederic Jolliton.
107593 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
107595         * modules/verify (License): Change from GPL to LGPL.  This is a
107596         tiny module and there are apparently near-equivalents that are
107597         under the BSD license.
107599 2005-10-24  Simon Josefsson  <jas@extundo.com>
107601         * modules/sha1: Relicense to LGPL.
107603 2005-10-24  Simon Josefsson  <jas@extundo.com>
107605         * lib/md4.h: Shrink buffer size, now that we changed the type.
107607 2005-10-23  Simon Josefsson  <jas@extundo.com>
107609         * gnulib-tool (func_import): Fix --tests-base.
107611 2005-10-22  Simon Josefsson  <jas@extundo.com>
107613         * modules/arcfour (Depends-on): Need stdint.
107615 2005-10-22  Simon Josefsson  <jas@extundo.com>
107617         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
107618         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
107620 2005-10-22  Simon Josefsson  <jas@extundo.com>
107622         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
107623         suggested by Bruno Haible <bruno@clisp.org>.
107625 2005-10-22  Simon Josefsson  <jas@extundo.com>
107627         * lib/crc.h: Include stddef.h, for size_t.
107629 2005-10-22  Simon Josefsson  <jas@extundo.com>
107631         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
107632         arcfour_context struct (simplify test vector testing in GNU
107633         Shishi).
107635 2005-10-21  Simon Josefsson  <jas@extundo.com>
107637         * modules/des, modules/des-tests: New files.
107639         * modules/gc-des, modules/gc-des-tests: New files.
107641         * tests/test-des.c, tests/test-gc-des.c: New file.
107643 2005-10-21  Simon Josefsson  <jas@extundo.com>
107645         * modules/arctwo, modules/arctwo-tests: New files.
107647         * tests/test-arctwo.c: New file.
107649         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
107651         * tests/test-gc-arctwo.c: New file.
107653 2005-10-21  Simon Josefsson  <jas@extundo.com>
107655         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
107656         Bruno Haible <bruno@clisp.org>.
107658         * m4/gc-des.m4: New file.
107660 2005-10-21  Simon Josefsson  <jas@extundo.com>
107662         * m4/arctwo.m4: New file.
107664         * m4/gc-arctwo.m4: New file.
107666 2005-10-21  Simon Josefsson  <jas@extundo.com>
107668         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
107669         block.
107671 2005-10-21  Simon Josefsson  <jas@extundo.com>
107673         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
107674         <bruno@clisp.org>.
107676         * lib/hmac-sha1.c (hmac_sha1): Likewise.
107678         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
107679         Bruno Haible <bruno@clisp.org>.
107681         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
107682         <bruno@clisp.org>.
107684 2005-10-21  Simon Josefsson  <jas@extundo.com>
107686         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
107688 2005-10-21  Simon Josefsson  <jas@extundo.com>
107690         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
107692 2005-10-21  Simon Josefsson  <jas@extundo.com>
107694         * lib/des.h, lib/des.c: New files.
107696         * lib/gc-gnulib.c: Support DES.c
107698 2005-10-21  Simon Josefsson  <jas@extundo.com>
107700         * lib/arctwo.h, lib/arctwo.c: New files.
107702         * lib/gc-gnulib.c: Support ARCTWO.
107704 2005-10-21  Simon Josefsson  <jas@extundo.com>
107706         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
107707         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
107709 2005-10-21  Simon Josefsson  <jas@extundo.com>
107711         * gnulib-tool (func_import, func_create_testdir): Define automake
107712         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
107713         Makefile.am snippet),
107714         suggested by Bruno Haible <bruno@clisp.org>.
107716         * modules/gc (Makefile.am): Use it.
107718 2005-10-21  Bruno Haible  <bruno@clisp.org>
107720         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
107721         patch.
107723 2005-10-19  Simon Josefsson  <jas@extundo.com>
107725         * tests/test-gc-rijndael.c: New file.
107727         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
107729 2005-10-19  Simon Josefsson  <jas@extundo.com>
107731         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
107732         interface too.
107734 2005-10-19  Simon Josefsson  <jas@extundo.com>
107736         * tests/test-gc-arcfour.c: New file.
107738         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
107740 2005-10-19  Simon Josefsson  <jas@extundo.com>
107742         * modules/gc-md4, modules/gc-md4-tests: New file.
107744         * tests/test-gc-md4.c: New file.
107746 2005-10-19  Simon Josefsson  <jas@extundo.com>
107748         * m4/gc-md4.m4: New file.
107750 2005-10-19  Simon Josefsson  <jas@extundo.com>
107752         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
107753         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
107754         <kasal@ucw.cz>.
107756 2005-10-19  Simon Josefsson  <jas@extundo.com>
107758         * m4/gc-arcfour.m4: New file.
107760         * m4/gc-rijndael.m4: New file.
107762 2005-10-19  Simon Josefsson  <jas@extundo.com>
107764         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
107766 2005-10-19  Simon Josefsson  <jas@extundo.com>
107768         * lib/gc-gnulib.c: Support ARCFOUR.
107770 2005-10-19  Simon Josefsson  <jas@extundo.com>
107772         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
107773         support.
107775         * lib/gc.h: Add ECB enum type.
107777         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
107779 2005-10-18  Simon Josefsson  <jas@extundo.com>
107781         * tests/test-md5.c: New file.
107783         * modules/md5-tests: New file.
107785 2005-10-18  Simon Josefsson  <jas@extundo.com>
107787         * tests/test-md4.c: New file.
107789         * modules/md4, modules/md4-tests: New files.
107791 2005-10-18  Simon Josefsson  <jas@extundo.com>
107793         * m4/md4.m4: New file.
107795 2005-10-18  Simon Josefsson  <jas@extundo.com>
107797         * lib/md4.h, lib/md4.c: New files, based on md5.?.
107799 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
107801         * gnulib-tool (func_create_testdir): Omit the second check whether
107802         BUILT_SOURCES in nonempty.
107804 2005-10-17  Simon Josefsson  <jas@extundo.com>
107806         * tests/test-rijndael.c: New file.
107808 2005-10-17  Simon Josefsson  <jas@extundo.com>
107810         * modules/sha1: Depend on stdint instead of md5.
107812         * modules/md5: Depend on stdint, remove uint32_t.
107814 2005-10-17  Simon Josefsson  <jas@extundo.com>
107816         * modules/gc-sha1-tests: New file.
107818         * tests/test-gc-sha1.c: New file.
107820 2005-10-17  Simon Josefsson  <jas@extundo.com>
107822         * m4/md5.m4: Remove call to uint32_t.m4.
107824 2005-10-17  Simon Josefsson  <jas@extundo.com>
107826         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
107828         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
107829         md5.h.
107831         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
107833         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
107835 2005-10-17  Simon Josefsson  <jas@extundo.com>
107837         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
107839 2005-10-17  Simon Josefsson  <jas@extundo.com>
107841         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
107843 2005-10-17  Simon Josefsson  <jas@extundo.com>
107845         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
107847         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
107849 2005-10-17  Bruno Haible  <bruno@clisp.org>
107851         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
107852         that it can also be used in a test.
107854 2005-10-16  Bruno Haible  <bruno@clisp.org>
107856         * gnulib-tool (func_emit_tests_Makefile_am): Also define
107857         TESTS_ENVIRONMENT, so that individual tests can augment it.
107859         * gnulib-tool (func_create_testdir): Use an intermediate target for
107860         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
107861         macros, like $(ALLOCA_H), which cannot be passed through the command
107862         line.
107864 2005-10-15  Simon Josefsson  <jas@extundo.com>
107866         * modules/rijndael-tests: New file.
107868         * modules/rijndael: New file.
107870 2005-10-15  Simon Josefsson  <jas@extundo.com>
107872         * m4/rijndael.m4: New file.
107874 2005-10-15  Simon Josefsson  <jas@extundo.com>
107876         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
107878         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
107880 2005-10-14  Simon Josefsson  <jas@extundo.com>
107882         * tests/test-arcfour.c: New file.
107884         * modules/arcfour, modules/arcfour-tests: New files.
107886 2005-10-14  Simon Josefsson  <jas@extundo.com>
107888         * m4/arcfour.m4: New file.
107890 2005-10-14  Simon Josefsson  <jas@extundo.com>
107892         * lib/arcfour.h, lib/arcfour.c: New files.
107894 2005-10-14  Roland McGrath  <roland@redhat.com>
107896         Import from libc.  [BZ #1331]
107897         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
107898         macro argument.
107899         Reported by Matej Vela <vela@debian.org>.
107901 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
107903         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
107904         include <wchar.h>; no longer needed.
107906 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
107908         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
107910 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
107911         and  Ulrich Drepper  <drepper@redhat.com>
107913         Import from libc.
107914         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
107915         instead of inline stream orientation test and two separate
107916         function calls.  Pay no attention to USE_IN_LIBIO.
107918 2005-10-13  Simon Josefsson  <jas@extundo.com>
107920         * modules/gc-hmac-md5-tests: New file.
107922         * tests/test-gc-hmac-sha1.c: New file.
107924         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
107926         * modules/gc-hmac-md5-tests: New file.
107928         * tests/test-gc-md5.c: New file.
107930         * modules/gc-md5-tests: New file.
107932 2005-10-13  Simon Josefsson  <jas@extundo.com>
107934         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
107935         Move memory allocation outside of loop.
107937 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
107939         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
107940         intermediate directory is in a read-only file system.  Problem
107941         reported by Eric Blake.
107943 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
107945         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
107947 2005-10-12  Simon Josefsson  <jas@extundo.com>
107949         * tests/test-hmac-sha1.c: New file.
107951         * modules/hmac-sha1-tests: New file.
107953         * modules/hmac-sha1: New file.
107955 2005-10-12  Simon Josefsson  <jas@extundo.com>
107957         * modules/gc-sha1: New file.
107959 2005-10-12  Simon Josefsson  <jas@extundo.com>
107961         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
107963         * tests/test-gc-pbkdf2-sha1.c: New file.
107965 2005-10-12  Simon Josefsson  <jas@extundo.com>
107967         * modules/gc-md5, modules/gc-hmac-md5: New files.
107969         * modules/gc (Files): Remove md5, memxor and hmac files.
107971 2005-10-12  Simon Josefsson  <jas@extundo.com>
107973         * m4/gc-pbkdf2-sha1.m4: New file.
107975         * m4/gc-hmac-sha1.m4: New file.
107977         * m4/gc-sha1: New file.
107979         * m4/hmac-sha1.m4: New file.
107981 2005-10-12  Simon Josefsson  <jas@extundo.com>
107983         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
107985         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
107987 2005-10-12  Simon Josefsson  <jas@extundo.com>
107989         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
107990         suggested by Bruno Haible <bruno@clisp.org>.
107992 2005-10-12  Simon Josefsson  <jas@extundo.com>
107994         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
107996 2005-10-12  Simon Josefsson  <jas@extundo.com>
107998         * lib/gc-pbkdf2-sha1.c: New file.
108000         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
108002 2005-10-12  Simon Josefsson  <jas@extundo.com>
108004         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
108006         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
108008 2005-10-12  Simon Josefsson  <jas@extundo.com>
108010         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
108011         GC_USE_HMAC_MD5, respectively.
108013         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
108014         (gc_md5): Fix typo.
108016         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
108018         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
108020         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
108022 2005-10-12  Bruno Haible  <bruno@clisp.org>
108024         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
108025         Reported by Stepan Kasal <kasal@ucw.cz>.
108027 2005-10-11  Simon Josefsson  <jas@extundo.com>
108029         * tests/test-crc.c: New file.
108031         * modules/crc, modules/crc-tests: New files.
108033 2005-10-11  Simon Josefsson  <jas@extundo.com>
108035         * m4/crc.m4: New file.
108037 2005-10-11  Simon Josefsson  <jas@extundo.com>
108039         * lib/gc.h: Add gc_hash and gc_hash_buffer.
108041         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
108043         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
108045 2005-10-11  Simon Josefsson  <jas@extundo.com>
108047         * lib/crc.h, lib/crc.c: New files.
108049         * lib/gc.h (gc_hash_buffer): Add doc.
108051 2005-10-11  Bruno Haible  <bruno@clisp.org>
108053         * modules/c-strcasestr: New file.
108054         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
108056 2005-10-11  Bruno Haible  <bruno@clisp.org>
108058         * modules/c-strcase: New file.
108059         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
108061 2005-10-11  Bruno Haible  <bruno@clisp.org>
108063         * lib/strcasecmp.c: Include limits.h.
108064         (strcasecmp): Avoid integer overflow on exotic platforms.
108065         * lib/strncasecmp.c: Include limits.h.
108066         (strncasecmp): Avoid integer overflow on exotic platforms.
108067         Reported by Paul Eggert.
108069 2005-10-11  Bruno Haible  <bruno@clisp.org>
108071         * lib/c-strcasestr.h: New file, from GNU gettext.
108072         * lib/c-strcasestr.c: New file, from GNU gettext.
108074 2005-10-11  Bruno Haible  <bruno@clisp.org>
108076         * lib/c-strcase.h: New file, from GNU gettext.
108077         * lib/c-strcasecmp.c: New file, from GNU gettext.
108078         * lib/c-strncasecmp.c: New file, from GNU gettext.
108080 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
108082         * modules/mempcpy (License): GPL -> LGPL.
108083         * modules/strchrnul (License): Likewise.
108084         * modules/sysexits (License): Likewise.
108086 2005-10-08  Simon Josefsson  <jas@extundo.com>
108088         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
108090 2005-10-07  Simon Josefsson  <jas@extundo.com>
108092         * m4/memxor.m4: Remove gl_C_RESTRICT call.
108094 2005-10-06  Simon Josefsson  <jas@extundo.com>
108096         * tests/test-hmac-md5.c: New file.
108098         * modules/hmac-md5-tests: New file.
108100         * modules/hmac-md5: New file.
108102 2005-10-06  Simon Josefsson  <jas@extundo.com>
108104         * m4/hmac-md5.m4: New file.
108106         * m4/memxor.m4: Require gl_C_RESTRICT.
108108 2005-10-06  Simon Josefsson  <jas@extundo.com>
108110         * lib/memxor.c (memxor): Avoid casts and warnings.
108112 2005-10-06  Simon Josefsson  <jas@extundo.com>
108114         * lib/hmac-md5.c: New file.
108116         * lib/hmac.h: New file.
108118 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
108120         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
108121         promotes to int, not unsigned int, to catch the AIX 5.3
108122         compiler bug.
108124 2005-10-05  Simon Josefsson  <jas@extundo.com>
108126         * modules/memxor: New file.
108128         * modules/iconv (Files): Move config.rpath to havelib, it is used
108129         there.
108131         * modules/havelib (Files): Add config.rpath.
108133 2005-10-05  Simon Josefsson  <jas@extundo.com>
108135         * m4/memxor.m4: New file.
108137 2005-10-05  Simon Josefsson  <jas@extundo.com>
108139         * lib/memxor.c (memxor): Fix compiler error.
108141         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
108142         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
108144         * lib/memxor.h, lib/memxor.c: New files.
108146         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
108147         we assume all systems have it, suggested by Jim Meyering
108148         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
108149         any systems lack sys/socket.h; mingw32 is known to lack it, but we
108150         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
108151         same reasons.
108153 2005-10-05  Simon Josefsson  <jas@extundo.com>
108155         * config/srclist.txt: Add glibc bug 1423 for md5.h.
108157 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
108159         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
108160         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
108161         needed, since the source code now assumes these .h files.
108163 2005-10-05  Derek Price  <derek@ximbiot.com>
108165         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
108167 2005-10-05  Bruno Haible  <bruno@clisp.org>
108169         * modules/stdint (License): Change to LGPL.
108171 2005-10-04  Simon Josefsson  <jas@extundo.com>
108173         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
108174         D. Baushke" <mdb@gnu.org>.
108176 2005-10-04  Bruno Haible  <bruno@clisp.org>
108178         * lib/verify.h (verify_true): Provide alternative definition for C++.
108180 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
108182         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
108183         (SSIZE_MAX): New macro, if not already defined.
108184         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
108185         than 2 GiB.
108187 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
108189         Sync from coreutils.
108190         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
108191         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
108192         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
108193         ULLONG_MAX doesn't work with 2.7.2.1.
108195 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
108197         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
108198         From Ben Pfaff.
108200         * modules/exclude (Depends-on): Depend on verify.
108201         * modules/strtoimax (Depends-on): Likewise.
108202         * modules/utimecmp (Depends-on): Likewise.
108204 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
108206         * lib/exclude.c: Include verify.h.
108207         (verify): Remove.  All callers changed to use verify.h's version.
108208         * lib/strtoimax.c: Likewise.
108209         * lib/utimecmp.c: Likewis.e
108211         Sync from coreutils.
108212         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
108213         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
108214         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
108215         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
108216         bother returning ENOSYS if settimeofday or stime fails; just let
108217         them return whatever errno they want to return.
108218         * lib/utimens.c: Include unistd.h, for dup2.
108219         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
108220         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
108222 2005-10-02  Jim Meyering  <jim@meyering.net>
108224         Sync from coreutils.
108225         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
108226         from glibc-2.2.5 that fails for read-only files.
108228 2005-10-02  Jim Meyering  <jim@meyering.net>
108230         Sync from coreutils.
108231         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
108232         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
108233         `#if HAVE_CONFIG_H'.
108234         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
108235         Remove AT_FDCWD test.
108236         Do not consume the fd unless successful.
108237         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
108238         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
108239         block, so that we don't even try to compile it if settimeofday is
108240         available.  This works around a compilation failure on OSF1 V5.1,
108241         due to stime requiring a `long int*' while tv_sec is `int'.
108243 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
108245         Sync from coreutils.
108246         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
108247         against `yes', rather than just testing for nonempty.
108249 2005-10-01  Simon Josefsson  <jas@extundo.com>
108251         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
108252         and Darwin.
108254         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
108255         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
108256         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
108257         freeaddrinfo and gai_strerror are declared by the POSIX headers.
108258         Check if struct addrinfo is declared.
108260 2005-10-01  Simon Josefsson  <jas@extundo.com>
108262         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
108263         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
108264         AI_* and EAI_* definitions.  Protect function declarations.
108266 2005-10-01  Jim Meyering  <jim@meyering.net>
108268         Sync from coreutils.
108270         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
108271         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
108272         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
108273         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
108274         in the inet and nsl libraries.  Required on Solaris 5.7.
108276 2005-10-01  Jim Meyering  <jim@meyering.net>
108278         Sync from coreutils.
108279         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
108280         in the inet and nsl libraries.  Required on Solaris 5.7.
108282 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
108284         * lib/getdelim.c (getdelim): Remove unused variables.
108286 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
108288         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
108289         so that the code works even with ancient cpp.  Portability problem
108290         with GCC 2.7.2.1 reported by Thomas M.Ott.
108292 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
108294         * modules/regex (Depends-on): Add strcase.
108296         * modules/gethostname (Licence): Change from GPL to LGPL, since
108297         gethostname.c is a trivial implementation of a standard library
108298         function.
108299         * modules/poll (License): Change from GPL to LGPL, since it's
108300         derived from LGPL code.
108302 2005-09-27  Jim Meyering  <jim@meyering.net>
108304         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
108305         HAVE_CONFIG_H.
108307         * lib/intprops.h (signed_type_or_expr__): Define.
108308         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
108309         for unsigned types.
108311 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
108313         * lib/verify.h (verify_expr): Remove, replacing with:
108314         (verify_true): New macro that returns true instead of void.
108315         (verify_type__): Remove.
108316         (verify): Use verify_true rather than verify_type__.
108318 2005-09-26  Bruno Haible  <bruno@clisp.org>
108320         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
108321         is necessary.
108322         (lib_SOURCES): Remove mbchar.c.
108323         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
108324         (Files): Add m4/mbrtowc.m4.
108325         * modules/mbiter: Likewise.
108326         * modules/mbuiter: Likewise.
108328 2005-09-26  Bruno Haible  <bruno@clisp.org>
108330         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
108331         compile mbchar.c if they are not both present.
108332         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
108333         * m4/mbiter.m4 (gl_MBITER): Likewise.
108334         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
108335         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
108336         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
108338 2005-09-25  Jim Meyering  <jim@meyering.net>
108340         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
108341         also uses socklen_t.
108343 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
108345         * lib/utimens.c (ENOSYS): Define if not already defined.
108346         (futimens): Support having a null PATH if the file descriptor
108347         is nonnegative.
108349         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
108350         Remove.
108351         (__attribute): Define to empty unless GCC 3.1 or later.
108352         This works around a core dump on OpenBSD 3.4, which has GCC
108353         2.95.3, which dumps core when given __attribute__(()).  It also
108354         simplifies other tests, since we really don't want to bother with
108355         worrying about which ancient version of GCC supported what.
108356         Original problem reported by Yoann Vandoorselaere, with part of
108357         the fix suggested by Derek Price.
108359 2005-09-24  Jim Meyering  <jim@meyering.net>
108361         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
108362         so we can once again use a positive bitfield width of 1 -- now we
108363         don't have to explain why we were using a bitfield width of 2.
108365 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
108367         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
108368         and similarly for the other external symbols.  Problem reported
108369         by James Gallager.
108371         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
108372         bug reported by Jim Meyering.
108374         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
108375         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
108376         not needed, since socklen is a prerequisite module.
108378 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
108380         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
108381         Problem reported by Eric Blake.
108382         (getaddrinfo): Initialize se so that it's not garbage.
108383         Redo internal storage allocation so that it doesn't make unportable
108384         assumptions about alignment.
108385         Fix a memory leak.
108387         * lib/utimens.c (futimens): Use futimesat if available.
108388         Prefer it to futimes since it doesn't have the futimes bug.
108390         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
108391         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
108392         Instead, declare a function that returns a pointer to an array,
108393         and use verify_type__ to declare the size of the array.
108394         Problem and germ of a solution reported by Bruno Haible.
108395         (verify_type__): Use 2, not 1, for bitfield size, to avoid
108396         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
108398 2005-09-23  Jim Meyering  <jim@meyering.net>
108400         Sync from coreutils.
108401         Correct build failure (socklen_t not defined) on at least
108402         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
108403         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
108405 2005-09-23  Jim Meyering  <jim@meyering.net>
108407         * modules/getaddrinfo (Depends-on): Add socklen.
108409 2005-09-23  Bruno Haible  <bruno@clisp.org>
108411         * tests/test-verify.c: New file.
108413 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
108415         Sync from coreutils.
108417         * modules/argmatch (Depends-on): Add verify.
108418         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
108419         unistd-safer.
108420         * modules/save-cwd (Depends-on): Likewise.
108422         * modules/openat (Files): Add lib/openat-die.c.
108423         (Depends-on): Remove error, exitfail.
108424         Add dirname.
108426         * modules/verify: New file.
108427         * MODULES.html.sh (Diagnostics <assert.h>): New section,
108428         with "verify" module.
108430 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
108432         Sync from coreutils.
108434         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
108435         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
108436         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
108437         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
108438         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
108439         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
108440         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
108441         Don't bother checking for string.h, stdlib.h, unistd.h.
108442         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
108443         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
108444         module's job.
108445         * m4/jm-macros.m4 (gl_MACROS): Likewise.
108446         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
108448         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
108449         (gl_GETDATE): Use it.
108451         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
108453 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
108455         Sync from coreutils.
108457         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
108458         stat-time.h.
108459         * lib/argmatch.h: Include verify.h
108460         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
108461         (ARGMATCH_ASSERT): Remove; unused.
108462         * lib/canonicalize.c: Assume STDC_HEADERS.
108463         * lib/exclude.c: Include "strcase.h".
108464         * lib/regex_internal.h [!defined _LIBC]: Likewise.
108465         * lib/getusershell.c: Include stdio--.h rather than stdio.h
108466         and stdio-safer.h.
108467         (getusershell): Call fopen, not fopen_safer.
108468         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
108469         Do not include unistd-safer.h.
108470         (save_cwd): Don't call fd_safer; no longer needed
108471         now that we include fcntl--.h.
108473         * lib/getdate.y (relative_time): New type.
108474         (RELATIVE_TIME_0): New constant.
108475         (parser_control): Use relative_time instead of doing it ourselves.
108476         (%union): Add new relative_time rel member.
108477         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
108478         Now typeless.
108479         (relunit, relunit_snumber): Now of type rel.
108480         (zone, rel, relunit, get_date): Adjust to above changes.
108482         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
108483         Do not include unistd-safer.h.
108484         (getloadavg): Don't call fd_safer; no longer needed
108485         now that we include fcntl--.h.
108487         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
108488         (make_dir_parents): Treat ENOSYS like EEXIST.
108490         Improve quality of diagnostics on restore_cwd failure.
108491         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
108492         (make_dir_parents): Last arg is now int * (for errno), not bool *.
108493         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
108494         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
108495         each time through the loop.  Do not diagnose restore_cwd failure;
108496         that is the caller's job (and perhaps the caller does not care).
108498         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
108499         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
108500         If the file already exists but is not a directory, don't bother
108501         to try to make its parents.
108502         Close potential file descriptor leak if we can't chdir("/") (!).
108503         Don't always return true if chdir($PWD) fails; return true only
108504         if the requested action was done successfully (except for the
108505         chdir($PWD)).
108506         Don't log final directory unless we actually made it.
108507         Refactor to avoid duplicate code to fix up permissions.
108508         Don't attempt to fix up parent permissions if chdir($PWD) fails.
108510         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
108511         to make it a bit faster and (I hope) clearer.
108512         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
108513         Fix bug in formats like %2N.
108515         * lib/verify.h: New file.
108517 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
108519         Sync from coreutils.
108520         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
108522 2005-09-22  Jim Meyering  <jim@meyering.net>
108524         Sync from coreutils.
108526         * m4/lstat.m4 (gl_FUNC_LSTAT):
108527         Use AC_LIBSOURCES to require lstat.c and lstat.h.
108528         Remove obsolete comment.
108529         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
108530         * m4/xstrtod.m4: Likewise.
108532         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
108534 2005-09-22  Jim Meyering  <jim@meyering.net>
108536         Sync from coreutils.
108538         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
108540         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
108541         the .tm_year member, since otherwise gcc-4.0 would now warn about
108542         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
108544         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
108545         order to avoid an unsuppressible warning from gcc on 64-bit systems.
108547         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
108548         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
108549         when run in a time zone for which daylight savings time is in effect
108550         for the starting date.
108552         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
108553         stop us from restricting permissions of just-created absolute-named
108554         directories.
108555         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
108556         to restore initial working directory.
108557         * lib/mkdir-p.c (make_dir_parents): New parameter:
108558         different_working_dir, to tell caller if/when we change the working
108559         directory and are unable to return to the initial one.
108560         * lib/mkdir-p.h (make_dir_parents): Update prototype.
108561         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
108562         `return false'.  This fixes a bug introduced on 2004-07-30.
108564         * lib/openat.c (fdopendir): Be sure to close the supplied
108565         file descriptor before returning.  This makes our replacement
108566         implementation a little closer to Solaris's, where fdopendir
108567         ties the file descriptor to the returned DIR* pointer.
108568         * lib/openat.c (unlinkat): New function.
108569         * lib/openat.h (unlinkat): Add prototype.
108570         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
108571         (openat_restore_fail): Rename from openat_restore_die.
108572         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
108574         Provide an alternative to exiting immediately upon save_cwd or
108575         restore_cwd failure.  Now, an application can arrange e.g.,
108576         to perform a longjump in that case.
108577         * lib/openat.c: Include dirname.h.
108578         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
108579         (rpl_openat, fdopendir, fstatat): Call openat_save_die
108580         and openat_restore_die rather than calling error directly.
108581         Don't include "error.h" or "exitfail.h"; they're no longer needed.
108583         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
108584         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
108585         define.
108587         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
108588         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
108589                             int utc, int nanoseconds);
108590         Background:
108591         date should not have to allocate a megabyte of virtual memory to
108592         handle a format argument like +%1048575T.  When implemented with
108593         strftime, it must allocate such a buffer, use strftime to fill it
108594         in, print it, then free it.
108595         With fprintftime, it simply prints everything and exits.
108596         With no need for memory allocation, that's one fewer way to fail.
108597         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
108598         optional field width, not before, so we accept %9:z, not %:9z.
108599         (my_strftime): Be sure to use L_('x') for literals.
108601         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
108602         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
108603         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
108604         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
108605         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
108606         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
108607         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
108608         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
108609         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
108610         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
108611         * lib/xgethostname.c, lib/xreadlink.c:
108612         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
108614         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
108615         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
108616         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
108617         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
108618         and don't include <sys/file.h>).
108620 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
108622         Sync from coreutils.
108624         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
108625         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
108626         [!LDAV_DONE]: Avoid unused variable warning.
108628 2005-09-21  Bruno Haible  <bruno@clisp.org>
108630         * lib/unicodeio.h (unicode_to_mb): New declaration.
108632 2005-09-20  Derek Price  <derek@ximbiot.com>
108634         * lib/getaddrinfo.c: Don't include <netdb.h> included from
108635         getaddrinfo.h.
108637 2005-09-20  Bruno Haible  <bruno@clisp.org>
108639         * gnulib-tool: Remove trailing slashes from the values specified for
108640         --source-base, --m4-base, --tests-base, --aux-dir.
108641         Suggested by Simon Josefsson <jas@extundo.com>.
108643 2005-09-20  Bruno Haible  <bruno@clisp.org>
108645         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
108646         func_modules_to_filelist, func_import, func_create_testdir): Make all
108647         sorting results locale-independent, so that gnulib-cache.m4 doesn't
108648         change when gnulib-tool is invoked in a different locale.
108650 2005-09-19  Simon Josefsson  <jas@extundo.com>
108652         * m4/socklen.m4: Fix typo.
108654 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108656         Use a consistent style for including <config.h>.
108657         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
108658         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
108659         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
108660         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
108661         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
108662         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
108663         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
108664         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
108665         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
108666         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
108667         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
108668         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
108669         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
108670         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
108671         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
108672         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
108673         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
108674         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
108675         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
108676         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
108677         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
108678         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
108679         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
108680         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
108681         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
108682         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
108683         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
108684         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
108685         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
108686         lib/xstrtoumax.c, lib/yesno.c:
108687         Standardize inclusion of config.h.
108688         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
108689         lib/inttostr.h:  Removed inclusion of config.h from header files.
108690         * lib/inttostr.c:  Adjusted in-tree users.
108691         * lib/timespec.h: Remove superfluous warning to include config.h.
108692         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
108693         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
108694         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
108695         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
108696         config.h with HAVE_CONFIG_H.
108698 2005-09-19  Jim Meyering  <jim@meyering.net>
108700         * modules/pathmax (License): Change to LGPL.
108702 2005-09-19  Derek Price  <derek@ximbiot.com>
108704         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
108706 2005-09-19  Bruno Haible  <bruno@clisp.org>
108708         * gnulib-tool (import): Provide default for --tests-base.
108710 2005-09-19  Bruno Haible  <bruno@clisp.org>
108712         * doc/quote.texi: New file, extracted from gnulib.texi.
108713         * doc/ctime.texi: New file, extracted from gnulib.texi.
108714         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
108715         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
108716         * doc/gnulib.texi: Include them.
108718 2005-09-18  Bruno Haible  <bruno@clisp.org>
108720         Portability fix.
108721         * gnulib-tool (func_readlink): New function.
108722         (func_ln_if_changed): Use it.
108724 2005-09-18  Bruno Haible  <bruno@clisp.org>
108726         * gnulib-tool: Support --with-tests also with --import.
108727         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
108728         (func_import): Use variables $testsbase and $inctests. Emit a
108729         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
108730         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
108731         SUBDIRS += $testsdir.
108732         (func_create_testdir): Update.
108734 2005-09-18  Bruno Haible  <bruno@clisp.org>
108736         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
108737         instead of $dry_run.
108738         (func_cp_if_changed, func_mv_if_changed): Remove functions.
108739         (func_ln_if_changed): Don't handle dry-run here.
108740         (func_import): In dry-run mode, detect more precisely which actions
108741         would be performed, and don't use "...ing" verbs.
108743 2005-09-18  Bruno Haible  <bruno@clisp.org>
108745         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
108746         (func_import): Use join on two temporary files instead of three nested
108747         loops, in order to determine which files are new or old.
108749 2005-09-18  Bruno Haible  <bruno@clisp.org>
108751         * gnulib-tool (func_import): Comment out code that spits out the
108752         new files with --dry-run.
108754 2005-09-18  Bruno Haible  <bruno@clisp.org>
108756         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
108758 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
108760         * lib/stat-time.h: New file.
108761         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
108762         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
108763         in a different way.
108764         (timespec_cmp): New function.
108765         * lib/utimecmp.c: Include stat-time.h.
108766         (SYSCALL_RESOLUTION): Depend on whether various struct stat
108767         members exist, not on the obsolescent ST_MTIM_NSEC.
108768         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
108770 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
108772         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
108774 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
108776         * MODULES.html.sh (File system functions): Add stat-time.
108777         * modules/stat-time: New file.
108778         * modules/timespec (Files): Remove m4/st_mtim.m4; this
108779         is now done in a different way, by the stat-time module.
108780         * modules/utimecmp (Depends-on): Add stat-time.
108782 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
108784         * m4/st_mtim.m4: Remove.  Superseded by...
108785         * m4/stat-time.m4: New file.
108786         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
108787         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
108789 2005-09-15  Derek Price  <derek@ximbiot.com>
108791         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
108793 2005-09-15  Derek Price  <derek@ximbiot.com>
108795         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
108796         * lib/regex_internal.c: Ditto, using this...
108797         (__GNUC_PREREQ): ...new macro.
108798         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
108799         using...
108800         (__GNUC_PREREQ): ...this new macro.
108802         * lib/strstr.h: Include string.h. Define strstr as a macro here.
108804 2005-09-15  Derek Price  <derek@ximbiot.com>
108805             Paul Eggert  <eggert@cs.ucla.edu>
108807         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
108808         changes, consolidating in...
108809         * lib/regex_internal.h: ...this file.
108811 2005-09-13  Jim Meyering  <jim@meyering.net>
108813         * lib/canon-host.c: Filter through gnu indent and reword comments
108814         slightly.
108815         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
108817 2005-09-13  Derek Price  <derek@ximbiot.com>
108819         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
108820         failure.
108821         Reported by Jim Meyering  <jim@meyering.net>.
108823 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
108825         * lib/base64.c: Typo.
108826         (base64_encode): Put b64str in initialized data section.
108828 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
108830         Merge glibc and coreutils changes into gnulib, plus a few
108831         extra fixes.
108832         * lib/md5.c: Use #error rather than a string.
108833         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
108834         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
108835         (__attribute__): Define to empty for non recent-GCC.
108836         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
108837         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
108838         Renamed from their non-__ counterparts, with new macros replacing
108839         them if not _LIBC.  Add __THROW attribute.
108840         (rol): Remove.
108841         (struct md5_ctx): Align buffer if using GCC.
108842         * lib/sha1.h (struct sha1_ctx): Likewise.
108843         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
108844         The old name was backwards.
108845         (NOTSWAP): Remove; not used.
108846         (rol): New macro, moved here from md5.h.
108847         (sha1_process_block): Remove a FIXME that doesn't make sense.
108849 2005-09-12  Derek Price  <derek@ximbiot.com>
108851         Return usable errors from canon-host.
108852         * lib/canon-host.h: New file.
108853         * lib/canon-host.c (canon_host): Wrap...
108854         (canon_host_r): ...this new function, which now relies exclusively on
108855         getaddrinfo.
108856         (ch_strerror): New function.
108857         (last_cherror): New global.
108858         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
108859         interface.
108860         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
108861         void *.
108862         (freeaddrinfo): Free ai->ai_canonname when set.
108864 2005-09-12  Derek Price  <derek@ximbiot.com>
108866         Make canon-host require getaddrinfo.
108867         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
108868         AC_LIBSOURCE canon-host.h.  Call...
108869         (gl_PREREQ_CANON_HOST): ...this new function, which requires
108870         gl_GETADDRINFO.
108871         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
108873 2005-09-12  Derek Price  <derek@ximbiot.com>
108875         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
108876         LGPL.
108877         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
108879 2005-09-12  Derek Price  <derek@ximbiot.com>
108881         * lib/gai_strerror.c: Include config.h when available.  Include
108882         getaddrinfo.h before other headers to test interface.
108883         Reported by Larry Jones <lawrence.jones@ugs.com>.
108885 2005-09-12  Derek Price  <derek@ximbiot.com>
108886             Paul Eggert  <eggert@cs.ucla.edu>
108888         * modules/glob (Files): Add glob-libc.h.
108890 2005-09-12  Derek Price  <derek@ximbiot.com>
108891             Paul Eggert  <eggert@cs.ucla.edu>
108893         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
108894         glob_.h, glob-libc.h.
108895         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
108897 2005-09-12  Derek Price  <derek@ximbiot.com>
108898             Paul Eggert  <eggert@cs.ucla.edu>
108900         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
108901         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
108902         protecting things that should be done only in gnulib contexts.
108903         * lib/glob_.h: New file, containing only the glob things needed for
108904         gnulib.
108905         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
108906         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
108907         (glob, globfree, glob_pattern_p): Now defined simply in terms of
108908         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
108909         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
108910         and to respect the namespace rules better.
108912 2005-09-08  Simon Josefsson  <jas@extundo.com>
108914         * modules/socklen: New file.
108916 2005-09-08  Simon Josefsson  <jas@extundo.com>
108918         * m4/socklen.m4: New file.
108920 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
108922         * modules/utimens (Files): Add m4/utimbuf.m4, since
108923         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
108924         Reported by Sergey Poznyakoff.
108926 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
108928         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
108929         definitions, since that's the preferred style in glibc.
108930         Fix a minor spacing issue, and update copyright notice to match
108931         glibc's.
108933 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
108935         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
108937 2005-09-06  Simon Josefsson  <jas@extundo.com>
108939         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
108940         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
108942 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
108944         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
108945         warning.
108947 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
108949         * config/srclist.txt: Add glibc bug 1302.
108951 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
108953         Change bitset word type from unsigned int to unsigned long int,
108954         as this has better performance on typical 64-bit hosts.
108955         Port bitset code to hosts with unusual word sizes.
108956         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
108957         (build_collating_symbol):
108958         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
108959         argument is a bitset.  This is merely a style issue, but it makes
108960         it clearer that an entire array is expected.
108961         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
108962         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
108963         Port to the case where bitset_word is not the same as unsigned int.
108964         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
108965         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
108966         Likewise.
108967         * lib/regexec.c (check_dst_limits_calc_pos_1,
108968         check_subexp_matching_top):
108969         (build_trtable, group_nodes_into_DFAstates):
108970         Likewise.
108971         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
108972         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
108973         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
108974         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
108975         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
108976         * lib/regcomp.c (optimize_subexps, lower_subexp):
108977         Work even if bitset_word has holes in its bitwise representation.
108978         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
108979         * lib/regexec.c (check_dst_limits_calc_pos_1,
108980         check_subexp_matching_top):
108981         Likewise.
108982         * lib/regex_internal.c (re_string_reconstruct):
108983         Don't assume UCHAR_MAX == 255.
108984         * lib/regex_internal.h (bitset_set_all): Likewise.
108985         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
108986         All uses changed.
108987         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
108988         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
108989         All uses changed.
108990         (BITSET_WORD_MAX): New macro.
108991         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
108992         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
108993         (bitset_empty, bitset_copy):
108994         Prefer sizeof (bitset) to multiplying it out ourselves.
108995         (bitset_not_merge): Remove; unused.
108996         (bitset_contain): Return bool, not unsigned int with one bit on.
108997         All callers changed.
108998         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
108999         alignment than re_node_set; do this by defining a new internal
109000         type struct dests_alloc and using it to allocate memory.
109002 2005-09-05  Bruno Haible  <bruno@clisp.org>
109004         * gnulib-tool (func_import): Fix comparison in handling of symbolic
109005         links.
109007 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
109009         * modules/size_max (Makefile.am): Add size_max.h
109011 2005-09-04  Derek Price  <derek@ximbiot.com>
109013         * gnulib-tool (func_import): Fix reversed $symbolic logic.
109015 2005-09-03  Simon Josefsson  <jas@extundo.com>
109017         * gnulib-tool: Fix typo.
109019 2005-09-03  Simon Josefsson  <jas@extundo.com>
109021         * config/srclist.txt: Add glibc bug 1293.
109023 2005-09-03  Derek Price  <derek@ximbiot.com>
109025         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
109026         From Larry Jones <lawrence.jones@ugs.com>.
109028 2005-09-02  Simon Josefsson  <jas@extundo.com>
109030         * modules/socklen: New file.
109032 2005-09-02  Simon Josefsson  <jas@extundo.com>
109034         * modules/havelib: New module.
109036         * modules/gettext, modules/iconv, modules/lock, modules/readline:
109037         Use havelib.
109039 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
109041         Check for arithmetic overflow when calculating sizes, to prevent
109042         some buffer-overflow issues.  These patches are conservative, in the
109043         sense that when I couldn't determine whether an overflow was possible,
109044         I inserted a run-time check.
109045         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
109046         macros.
109047         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
109048         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
109049         (re_xnrealloc, re_x2nrealloc): New inline functions.
109050         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
109051         parse_bracket_exp):
109052         (build_equiv_class, build_charclass): Check for arithmetic overflow
109053         in size expression calculations.
109054         * lib/regex_internal.c (re_string_realloc_buffers):
109055         (build_wcs_upper_buffer, re_node_set_add_intersect):
109056         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
109057         (re_dfa_add_node, register_state): Likewise.
109058         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
109059         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
109060         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
109061         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
109063 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
109065         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
109066         m4/ulonglong.m4.  Problem reported by Martin Lambers.
109068 2005-09-02  Bruno Haible  <bruno@clisp.org>
109070         Support for lib vs. lib64 distinction on biarch platforms.
109071         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
109072         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
109073         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
109075 2005-09-02  Bruno Haible  <bruno@clisp.org>
109077         * gnulib-tool (import): In the other first-use case, provide defaults
109078         as well.
109080 2005-09-02  Bruno Haible  <bruno@clisp.org>
109082         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
109083         patches not yet found in the latest gettext release.
109085 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
109087         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
109088         to avoid a collision with bits/local_lim.h in glibc.
109089         All uses changed.  Problem reported by Dmitry V. Levin in
109090         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
109092         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
109093         bugs in int versus size_t comparisons.
109094         (re_string_context_at): Fix bug where the code assumed that
109095         Idx is signed.
109097         Use bool where appropriate.
109098         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
109099         All callers changed.
109100         (calc_eclosure_iter): Likewise, for ROOT arg.
109101         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
109102         (build_charclass_op): Likewise, for NON_MATCH arg.
109103         * lib/regex_internal.c (re_string_allocate, re_string_construct):
109104         (re_string_construct_common): Likewise, for ICASE arg.
109105         * lib/regexec.c (re_search_2_stub, re_search_stub):
109106         Likewise, for RET_LEN arg.
109107         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
109108         (set_regs): Likewise, for FL_BACKTRACK arg.
109109         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
109110         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
109111         (calc_eclosure_iter, parse_bracket_exp):
109112         Use bool for internal variables that are booleans.
109113         * lib/regexec.c (re_search_internal, check_matching,
109114         proceed_next_node):
109115         (set_regs, build_sifted_states, sift_states_bkref):
109116         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
109117         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
109118         (find_collation_sequence_value):
109119         Likewise.
109120         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
109121         (re_node_set_compare):
109122         Return bool, not int. All callers changed.
109123         * lib/regexec.c (check_halt_node_context, check_dst_limits):
109124         (build_trtable, check_node_accept): Likewise.
109125         * lib/regex_internal.h: Include stdbool.h.
109127         Fix bugs uncovered when converting to bool.
109128         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
109129         failure instead of charging ahead blindly.
109130         * lib/regex_internal.c (register_state): Likewise.
109131         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
109132         for freeing internal storage.
109133         (group_nodes_into_DFA_states): Use unsigned int, not int, for
109134         bitset pieces used as boolean, to avoid undefined behavior
109135         on hosts that do int overflow checking.
109137 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
109139         * config/srclist.txt: Add glibc bugs 1285-1287.
109141 2005-09-01  Jim Meyering  <jim@meyering.net>
109143         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
109144         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
109145         Require gl_STAT_MACROS, too.
109147 2005-09-01  Bruno Haible  <bruno@clisp.org>
109149         * gnulib-tool (import): In the first-use case, provide defaults.
109151 2005-09-01  Bruno Haible  <bruno@clisp.org>
109153         * gnulib-tool (func_import): Remove the .tmp files.
109155 2005-09-01  Bruno Haible  <bruno@clisp.org>
109157         * gnulib-tool (func_import): Fix handling of symbolic links.
109159 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
109161         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
109162         old glibc regex code mishandles strings longer than 2**31 bytes.
109163         This patch fixes this when the regex code is used in gnulib
109164         (i.e., outside glibc).
109166         This patch should not affect the use of the regex code inside
109167         glibc.  No doubt this problem also needs to be handled for glibc
109168         as well, but the result will be an incompatible change to the
109169         glibc ABI, and the old ABI will have to be supported too.  That
109170         can be the subject for another patch.
109172         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
109173         governing whether the rest of this patch is active.  By default,
109174         the macro is disabled and the patch has no effect.
109175         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
109176         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
109177         (struct re_pattern_buffer, re_search, re_search_2, re_match):
109178         (re_match_2, re_set_registers): Use the new types.
109179         * lib/regex_internal.h (Idx, re_hashval_t): New types.
109180         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
109181         New macros.
109182         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
109183         (re_string_context_at, bin_tree_t, re_dfastate_t):
109184         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
109185         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
109186         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
109187         (re_string_char_size_at, re_string_wchar_at):
109188         (re_string_elem_size_at):
109189         Use the new types and macros to port to 64-bit hosts.
109190         Use unsigned types for internal values, so that the code
109191         mostly works even for arrays larger than SSIZE_MAX.
109192         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
109193         (search_duplicated_node, calc_eclosure_iter, fetch_number):
109194         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
109195         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
109196         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
109197         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
109198         (calc_inveclosure, parse_dup_op, build_range_exp):
109199         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
109200         (fetch_number, create_token_tree, mark_opt_subexp):
109201         Likewise.
109202         * lib/regex_internal.c (re_string_construct_common,
109203         create_ci_newstate):
109204         (create_cd_newstate, re_string_allocate, re_string_construct):
109205         (re_string_realloc_buffers, build_wcs_upper_buffer):
109206         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
109207         (re_string_reconstruct, re_string_peek_byte_case):
109208         (re_string_fetch_byte_case, re_string_context_at):
109209         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
109210         (re_node_set_init_copy, re_node_set_add_intersect):
109211         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
109212         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
109213         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
109214         (re_acquire_state, re_acquire_state_context, register_state):
109215         Likewise.
109216         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
109217         search_cur_bkref_entry):
109218         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
109219         (re_search_internal, re_search_2_stub, re_search_stub)
109220         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
109221         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
109222         (update_cur_sifted_state, check_dst_limits):
109223         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
109224         (check_subexp_limits, sift_states_bkref, merge_state_array):
109225         (check_subexp_matching_top, get_subexp, get_subexp_sub):
109226         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
109227         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
109228         (expand_bkref_cache, check_node_accept_bytes):
109229         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
109230         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
109231         (acquire_init_state_context, check_halt_node_context):
109232         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
109233         (sift_states_backward, clean_state_log_if_needed):
109234         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
109235         (find_recover_state, transit_state_sb, transit_state_mb):
109236         (transit_state_bkref, build_trtable, match_ctx_clean):
109237         Likewise.
109238         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
109239         to work around an assumption that REG_MISSING is negative.
109241         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
109242         (seek_collating_symbol_entry) [defined _LIBC]:
109243         (lookup_collation_sequence_value) [defined _LIBC]:
109244         (build_range_exp, build_collating_symbol) [defined _LIBC]:
109245         Use prototypes rather than old-style function definitions.
109246         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
109247         (transit_state_sb) [0]:
109248         (find_collation_sequence_value) [defined _LIBC]: Likewise.
109250         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
109251         rm_eo.
109253         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
109254         (optimize_subexps, lower_subexp):
109255         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
109256         since the signed shift might overflow.  Use 1u<<31 instead.
109257         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
109258         Likewise.
109259         * lib/regexec.c (check_dst_limits_calc_pos_1,
109260         check_subexp_matching_top): Likewise.
109262         * lib/regcomp.c (optimize_subexps, lower_subexp):
109263         Use CHAR_BIT rather than 8, for clarity.
109264         * lib/regexec.c (check_dst_limits_calc_pos_1):
109265         (check_subexp_matching_top): Likewise.
109266         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
109267         have to worry about portability issues when shifting it left.
109268         Remove no-longer-needed test for table_size > 0.
109269         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
109270         in a word, as the resulting behavior is undefined.
109271         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
109272         in one case, a <= should have been an <, and in another case the
109273         whole test was missing.
109274         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
109275         the standard name CHAR_BIT.
109276         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
109277         this is not true on one's complement and signed-magnitude hosts.
109279         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
109280         next_last_offset.
109281         (struct re_dfa_t): Remove unused member states_alloc.
109282         * lib/regcomp.c (init_dfa): Don't initialize unused members.
109284 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
109286         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
109287         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
109288         and large-file glibc and in 32-bit large-file Solaris.
109290 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
109292         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
109293         lengths fit in regoff_t; this isn't true if regoff_t is the same
109294         width as size_t.
109295         * lib/regex.c (re_search_internal): 5th arg is LAST_START
109296         (= START + RANGE) instead of RANGE.  This avoids overflow
109297         problems when regoff_t is the same width as size_t.
109298         All callers changed.
109299         (re_search_2_stub): Check for overflow when adding the
109300         sizes of the two strings.
109301         (re_search_stub): Check for overflow when adding START
109302         to RANGE; if it occurs, substitute the extreme value.
109304 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
109306         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
109308 2005-08-31  Jim Meyering  <jim@meyering.net>
109310         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
109311         a pointer-to-const.
109312         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
109313         (register_state): Likewise.
109314         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
109315         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
109316         (group_nodes_into_DFAstates): Likewise.
109318 2005-08-31  Jim Meyering  <jim@meyering.net>
109320         * check-module: Add a FIXME comment.
109322 2005-08-31  Eric Blake  <ebb9@byu.net>
109324         * modules/unistd-safer (Files): Add unistd--.h.
109325         * modules/stdio-safer (Files): Add stdio--.h.
109327 2005-08-31  Derek Price  <derek@ximbiot.com>
109329         * lib/getdelim.c (getdelim): Return EOF on EOF.
109330         Reported by Larry Jones <lawrence.jones@ugs.com>.
109332 2005-08-31  Bruno Haible  <bruno@clisp.org>
109334         Avoid unnecessary diffs in the generated lib/Makefile.am.
109335         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
109336         the generated files.
109337         (func_import): Don't set cmd.
109339 2005-08-31  Bruno Haible  <bruno@clisp.org>
109341         * lib/strstr.c: Include <stddef.h>, for NULL.
109342         * lib/strcasestr.c: Likewise.
109343         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
109345 2005-08-31  Bruno Haible  <bruno@clisp.org>
109347         * gnulib-tool: New option --macro-prefix.
109348         (func_import): Use macro_prefix.
109349         (import): Handle option --macro-prefix.
109351 2005-08-31  Bruno Haible  <bruno@clisp.org>
109353         * gnulib-tool (import): Rename most ac_* variables to cached_*.
109354         Also use new variables cached_lgpl, cached_libtool.
109356 2005-08-31  Bruno Haible  <bruno@clisp.org>
109358         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
109359         always instantiating them.
109361 2005-08-31  Bruno Haible  <bruno@clisp.org>
109363         * gnulib-tool (func_import): Read the previous cached settings
109364         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
109365         earlier added by gnulib but are now dropped. Warn when a gnulib file
109366         overwrites a non-gnulib file.
109368 2005-08-31  Bruno Haible  <bruno@clisp.org>
109370         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
109371         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
109372         projects that don't keep autogenerated files in CVS. Put into
109373         actioncmd only the specified modules, not the transitive closure.
109375 2005-08-31  Bruno Haible  <bruno@clisp.org>
109377         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
109378         Create directories that shall be filled.
109379         (import): Don't look for gl_* macros in configure.ac. Recurse across
109380         all directories containing a gnulib-cache.m4 files, if meaningful.
109382 2005-08-31  Bruno Haible  <bruno@clisp.org>
109384         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
109385         (import): Set seen_libtool when we see gl_LIBTOOL.
109387 2005-08-31  Bruno Haible  <bruno@clisp.org>
109389         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
109390         declaration macro definitions from generated gnulib.m4.
109392 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
109394         * lib/iconvme.h: Add prototype for iconv_alloc.
109396 2005-08-29  Simon Josefsson  <jas@extundo.com>
109398         * lib/iconvme.c: Fix errno.
109400 2005-08-29  Bruno Haible  <bruno@clisp.org>
109402         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
109403         that it works when the directory contains spaces.
109405 2005-08-29  Bruno Haible  <bruno@clisp.org>
109407         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
109409 2005-08-29  Bruno Haible  <bruno@clisp.org>
109411         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
109412         Emit more advice.
109414 2005-08-29  Bruno Haible  <bruno@clisp.org>
109415         and Stepan Kasal  <kasal@ucw.cz>
109417         * check-module: If more parameters are given, check each of them
109418         separately; add more exceptions, as noted by Jim Meyering.
109419         (check_module): New procedure.
109420         (%exempt_header): Now contains all exceptions.
109422 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
109424         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
109426 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
109428         * lib/iconvme.c: Split iconv_string into iconv_alloc.
109430 2005-08-28  Bruno Haible  <bruno@clisp.org>
109432         * m4/gnulib-tool.m4: New file.
109434 2005-08-27  Jim Meyering  <jim@meyering.net>
109436         * modules/unistd-safer (Files): Add pipe-safer.c.
109437         * modules/fcntl-safer (Files): Add creat-safer.c.
109439 2005-08-27  Jim Meyering  <jim@meyering.net>
109441         * m4/stdlib-safer.m4: New file.  From coreutils.
109442         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
109443         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
109444         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
109445         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
109446         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
109448 2005-08-27  Jim Meyering  <jim@meyering.net>
109450         * lib/fopen-safer.c: Merge minor changes from coreutils.
109451         * lib/dup-safer.c: Likewise.
109452         * lib/fd-safer.c: Likewise.
109454         Merge from coreutils.
109455         * lib/stdio--.h: New file.
109456         * lib/stdlib--.h: New file.
109457         * lib/mkstemp-safer.c: New file.
109459         GNU tar needs these.
109460         * lib/pipe-safer.c: New file.
109461         * lib/creat-safer.c: New file.
109462         * lib/fcntl--.h (creat): Define to creat_safer.
109463         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
109464         * lib/unistd--.h (pipe): Define to pipe_safer.
109465         * lib/unistd-safer.h: Declare pipe_safer.
109467 2005-08-26  Simon Josefsson  <jas@extundo.com>
109469         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
109470         Haible <bruno@clisp.org>.
109472 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
109474         * lib/regex_internal.h: Remove all references to
109475         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
109476         or better.
109477         (bitset_not, bitset_merge, bitset_not_merge):
109478         (bitset_mask, re_string_allocate, re_string_construct):
109479         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
109480         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
109481         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
109482         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
109483         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
109484         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
109485         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
109486         (re_acquire_state_context):
109487         Remove unnecessary forward decls.
109488         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
109489         Put __attribute at function definition,
109490         now that the function decl has been removed.
109491         * lib/regex_internal.c (re_string_peek_byte_case):
109492         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
109493         Likewise.
109495 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
109497         * m4/regex.m4: Add AC_PREREQ(2.50).
109498         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
109500 2005-08-25  Simon Josefsson  <jas@extundo.com>
109502         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
109503         __fsetlocking.
109505 2005-08-25  Simon Josefsson  <jas@extundo.com>
109507         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
109508         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
109509         GLIBC specific code.
109511 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
109513         Make regex safe for g++.  This fixes one real bug (an "err"
109514         that should have been "*err").  g++ problem reported by
109515         Sam Steingold.
109516         * lib/regex_internal.h (re_calloc): New macro, consistent with
109517         re_malloc etc.  All callers of calloc changed to use re_calloc.
109518         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
109519         not int.  All callers changed.
109520         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
109521         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
109522         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
109523         (find_recover_state): Change "err" to "*err"; this fixes what
109524         appears to be a real bug.
109525         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
109526         versus int.
109528 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
109530         * modules/regex (Depends-on): Add malloc, since the code
109531         assumes that !malloc(0) means failure.
109533 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
109535         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
109537         alloca modernization/simplification for regex.
109538         * lib/regex.c: Remove portability cruft for alloca.  This no longer
109539         needs to be at the start of the file, and can be moved into
109540         regex_internal.h and simplified.
109541         * lib/regex_internal.h: Include <alloca.h>.
109542         (__libc_use_alloca) [!defined _LIBC]: New macro.
109543         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
109544         now works outside glibc.
109546 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
109548         * config/srclist.txt: Add glibc bugs 1241, 1245.
109550 2005-08-25  Jim Meyering  <jim@meyering.net>
109552         * lib/open-safer.c: Include <config.h>.
109553         Otherwise, we'd lose LARGEFILE support in any file using
109554         e.g. "fcntl--.h"
109556 2005-08-25  Bruno Haible  <bruno@clisp.org>
109558         * m4/minmax.m4: Require autoconf 2.52.
109559         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
109560         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
109561         alternatives of translit over the alphabet.
109562         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
109564 2005-08-24  Simon Josefsson  <jas@extundo.com>
109566         * tests/test-getpass.c: New file.
109568 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
109570         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
109571         for GNU regex features.
109573 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
109575         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
109576         * lib/regex.h (regerror): Likewise.
109578         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
109579         requires this.  (The code never needed it.)
109581         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
109582         All uses of recently-renamed identifiers changed to use the new,
109583         POSIX-compliant names.  The code will build and run just fine
109584         without these changes, but it's better to eat our own dog food
109585         and use the standard-conforming names.
109587         * lib/regex.h: Fix a multitude of POSIX name space violations.
109588         These changes have an effect only for programs that define
109589         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
109590         do not change anything for programs compiled in the normal way.
109591         Also, there is no effect on the ABI.
109593         (_REGEX_SOURCE): New macro.
109594         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
109595         defined and _GNU_SOURCE is not; this fixes a name space violation.
109597         Rename the following macros to obey POSIX requirements.
109598         The old names are still visible as macros if _REGEX_SOURCE is defined.
109599         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
109600         RE_BACKSLASH_ESCAPE_IN_LISTS.
109601         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
109602         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
109603         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
109604         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
109605         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
109606         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
109607         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
109608         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
109609         (REG_INTERVALS): renamed from RE_INTERVALS.
109610         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
109611         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
109612         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
109613         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
109614         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
109615         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
109616         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
109617         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
109618         RE_UNMATCHED_RIGHT_PAREN_ORD.
109619         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
109620         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
109621         (REG_DEBUG): renamed from RE_DEBUG.
109622         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
109623         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
109624         unusual, since we can't clash with the POSIX REG_ICASE.
109625         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
109626         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
109627         (REG_NO_SUB): renamed from RE_NO_SUB.
109628         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
109629         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
109630         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
109631         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
109632         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
109633         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
109634         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
109635         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
109636         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
109637         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
109638         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
109639         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
109640         RE_SYNTAX_POSIX_MINIMAL_BASIC.
109641         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
109642         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
109643         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
109644         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
109645         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
109646         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
109647         (REG_FIXED): Renamed from REGS_FIXED.
109648         (REG_NREGS): Renamed from RE_NREGS.
109650         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
109651         of other REG_* macros, since POSIX says the user is allowed to
109652         #undef these macros selectively.
109654         (reg_errcode_t): Update comment stating what other tables need
109655         to be consistent.
109657         Rename the following enum values to obey POSIX requirements.
109658         The old names are still visible as macros.
109659         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
109660         is not defined, since GNU is supposed to be a superset of POSIX as
109661         much as possible, and since we want reg_errcode_t to be a signed
109662         type for implementation consistency.
109663         (_REG_NOERROR): Renamed from REG_NOERROR.
109664         (_REG_NOMATCH): Renamed from REG_NOMATCH.
109665         (_REG_BADPAT): Renamed from REG_BADPAT.
109666         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
109667         (_REG_ECTYPE): Renamed from REG_ECTYPE.
109668         (_REG_EESCAPE): Renamed from REG_EESCAPE.
109669         (_REG_ESUBREG): Renamed from REG_ESUBREG.
109670         (_REG_EBRACK): Renamed from REG_EBRACK.
109671         (_REG_EPAREN): Renamed from REG_EPAREN.
109672         (_REG_EBRACE): Renamed from REG_EBRACE.
109673         (_REG_BADBR): Renamed from REG_BADBR.
109674         (_REG_ERANGE): Renamed from REG_ERANGE.
109675         (_REG_ESPACE): Renamed from REG_ESPACE.
109676         (_REG_BADRPT): Renamed from REG_BADRPT.
109677         (_REG_EEND): Renamed from REG_EEND.
109678         (_REG_ESIZE): Renamed from REG_ESIZE.
109679         (_REG_ERPAREN): Renamed from REG_ERPAREN.
109680         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
109681         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
109682         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
109683         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
109685         (_REG_RE_NAME, _REG_RM_NAME): New macros.
109686         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
109687         changed.  But support the old name if the new one is not defined
109688         and if _REGEX_SOURCE.
109690         Change the following member names in struct re_pattern_buffer.
109691         The old names are still supported if !_REGEX_SOURCE.
109692         The new names are always supported, regardless of _REGEX_SOURCE.
109693         (re_buffer): Renamed from buffer.
109694         (re_allocated): Renamed from allocated.
109695         (re_used): Renamed from used.
109696         (re_syntax): Renamed from syntax.
109697         (re_fastmap): Renamed from fastmap.
109698         (re_translate): Renamed from translate.
109699         (re_can_be_null): Renamed from can_be_null.
109700         (re_regs_allocated): Renamed from regs_allocated.
109701         (re_fastmap_accurate): Renamed from fastmap_accurate.
109702         (re_no_sub): Renamed from no_sub.
109703         (re_not_bol): Renamed from not_bol.
109704         (re_not_eol): Renamed from not_eol.
109705         (re_newline_anchor): Renamed from newline_anchor.
109707         Change the following member names in struct re_registers.
109708         The old names are still supported if !_REGEX_SOURCE.
109709         The new names are always supported, regardless of _REGEX_SOURCE.
109710         (rm_num_regs): Renamed from num_regs.
109711         (rm_start): Renamed from start.
109712         (rm_end): Renamed from end.
109714         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
109715         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
109716         Prepend __ to parameter names.
109718         Undo yesterday's changes.
109720 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
109722         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
109723         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
109724         lib/regex.c.
109726 2005-08-24  Jim Meyering  <jim@meyering.net>
109728         Sync from coreutils.
109729         * m4/fcntl-safer.m4: New file.
109731         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
109732         and object files for this module.
109734 2005-08-24  Jim Meyering  <jim@meyering.net>
109736         Sync from coreutils.
109737         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
109739 2005-08-24  Jim Meyering  <jim@meyering.net>
109741         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
109742         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
109744 2005-08-24  Jim Meyering  <jim@meyering.net>
109746         * modules/fcntl-safer: New module.
109747         * modules/fts (Depends-on): Add fcntl-safer.
109748         * MODULES.html.sh (File descriptor based Input/Output):
109749         Add fcntl-safer.
109751 2005-08-24  Bruno Haible  <bruno@clisp.org>
109753         Support for unit test modules.
109754         * modules/README: Mention tests modules.
109755         * modules/TEMPLATE-TESTS: New file.
109756         * gnulib-tool: New options --extract-tests-module, --with-tests and
109757         --tests-base (unused for the moment).
109758         (testsbase, inctests): New variables.
109759         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
109760         (func_verify_module): Exclude TEMPLATE-TESTS.
109761         (func_verify_nontests_module, func_verify_tests_module): New functions.
109762         (func_get_dependencies): Add implicit dependency for tests modules.
109763         (func_get_tests_module): New function.
109764         (func_modules_transitive_closure): When --with-tests was specified,
109765         include the unit tests as well, unless explicitly avoided.
109766         (func_emit_lib_Makefile_am): Ignore the tests modules here.
109767         (func_emit_tests_Makefile_am): New function.
109768         (func_create_testdir): When --with-tests was specified, emit a
109769         tests/ directory.
109770         * MODULES.html.sh (Future developments): Update.
109772 2005-08-24  Bruno Haible  <bruno@clisp.org>
109774         * modules/tls-tests: New file.
109775         * tests/test-tls.c: New file, from GNU gettext.
109777 2005-08-24  Bruno Haible  <bruno@clisp.org>
109779         * modules/lock-tests: New file.
109780         * tests/test-lock.c: New file, from GNU gettext.
109782 2005-08-24  Bruno Haible  <bruno@clisp.org>
109784         * lib/lock.h: Add multiple inclusion guard.
109785         * lib/tls.h: Add multiple inclusion guard.
109787 2005-08-24  Bruno Haible  <bruno@clisp.org>
109789         * gnulib-tool: Add support for the --aux-dir option to
109790         --create-testdir, --create-megatestdir, --test, --megatest.
109791         (func_create_testdir, func_create_megatestdir): Optionally emit a
109792         AC_CONFIG_AUX_DIR directive.
109793         (create-testdir, create-megatestdir, test, megatest): Provide a
109794         default value for $auxdir.
109796 2005-08-24  Bruno Haible  <bruno@clisp.org>
109798         * gnulib-tool (import): Use compound statement instead of subshell
109799         where possible.
109801 2005-08-24  Bruno Haible  <bruno@clisp.org>
109803         * gnulib-tool (import): Change --aux-dir default to "build-aux".
109805 2005-08-24  Bruno Haible  <bruno@clisp.org>
109807         * gnulib-tool (func_version): Update.
109809 2005-08-24  Bruno Haible  <bruno@clisp.org>
109811         * gnulib-tool (func_import, func_create_testdir,
109812         func_create_megatestdir): Quote all autoconf macro arguments.
109814 2005-08-24  Bruno Haible  <bruno@clisp.org>
109816         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
109817         option --force, because --force causes the aclocal.m4 of each
109818         subdirectory to be newer than the corresponding config.h.in.
109820 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
109822         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
109823         All contents moved to gl_REGEX.
109824         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
109825         assume that it does.
109827 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
109829         * lib/regex.h (REG_NOSYS)
109830         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
109831         Define, since POSIX requires it as of 2001.
109832         (_REG_ENOSYS)
109833         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
109834         New private symbol, used to keep the enum signed in all cases.
109835         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
109836         Youngman in
109837         <http://lists.gnu.org/r/bug-gnulib/2005-07/msg00132.html>.
109839         * lib/regex_internal.c (re_string_skip_chars, register_state):
109840         (calc_state_hash):
109841         Remove forward decls; no longer needed now that we use prototypes.
109842         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
109843         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
109844         (clean_state_log_if_needed): Likewise.
109846 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
109848         * config/srclist.txt: Add glibc bugs 1231-1233.
109850 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
109852         Fix problems reported by Sam Steingold in
109853         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00007.html>.
109854         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
109855         assumed that reg_errcode_t is a signed type, which is not
109856         necessarily true if _XOPEN_SOURCE is not defined.
109857         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
109858         since some compilers warn about it otherwise.
109860 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
109862         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
109863         (init_word_char, create_initial_state, duplicate_node_closure):
109864         (fetch_token, peek_token_bracket, build_range_exp):
109865         (build_collating_symbol): Remove forward decls; no longer needed
109866         now that we use prototypes.
109868         * lib/regcomp.c:
109869         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
109870         (re_compile_fastmap_iter, regcomp, regerror, regfree):
109871         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
109872         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
109873         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
109874         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
109875         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
109876         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
109877         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
109878         (build_range_exp, build_collating_symbol, parse_bracket_exp):
109879         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
109880         (build_charclass, build_charclass_op, fetch_number, create_tree):
109881         (create_token_tree, mark_opt_subexp, duplicate_tree):
109882         Use prototypes rather than old-style definitions.
109884         * lib/regex_internal.c:
109885         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
109886         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
109887         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
109888         (re_string_reconstruct, re_string_peek_byte_case):
109889         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
109890         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
109891         (re_node_set_init_copy, re_node_set_add_intersect):
109892         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
109893         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
109894         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
109895         (re_acquire_state, re_acquire_state_context, register_state):
109896         (create_ci_newstate, create_cd_newstate, free_state):
109897         Likewise.
109898         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
109899         re_search_2):
109900         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
109901         (re_search_internal, prune_impossible_nodes):
109902         (acquire_init_state_context, check_matching, static):
109903         (check_halt_node_context, check_halt_state_context, proceed_next_node):
109904         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
109905         (update_regs, sift_states_backward, build_sifted_states):
109906         (clean_state_log_if_needed, merge_state_array):
109907         (update_cur_sifted_state, add_epsilon_src_nodes):
109908         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
109909         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
109910         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
109911         (find_recover_state, check_subexp_matching_top, transit_state_mb):
109912         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
109913         (check_arrival, check_arrival_add_next_nodes):
109914         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
109915         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
109916         (check_node_accept_bytes, check_node_accept, extend_buffers):
109917         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
109918         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
109919         (sift_ctx_init):
109920         Likewise.
109922         * lib/regex_internal.h:
109923         (re_string_allocate, re_string_construct, re_string_reconstruct):
109924         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
109925         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
109926         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
109927         (re_string_context_at, re_string_peek_byte_case):
109928         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
109929         is defined, since we now use prototypes always.
109931         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
109932         C89 or better.  All uses removed.
109934 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
109936         * config/srclist.txt: Add glibc bugs 1220-1227.
109938 2005-08-20  Jim Meyering  <jim@meyering.net>
109940         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
109941         of unused local, dfa.
109943 2005-08-20  Bruno Haible  <bruno@clisp.org>
109945         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
109947 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
109949         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
109950         (re_node_set_insert_last, re_dfa_add_node):
109951         Rename local variables to avoid GCC shadowing warnings.
109953 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
109955         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
109956         [defined lint]: Suppress bogus uninitialized-variable warnings.
109958         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
109959         and let the caller return REG_ESPACE if out of space.  This
109960         removes an uninitialied-variable warning with GCC 4.0.1, and also
109961         avoids taking the address of a local variable.  All callers
109962         changed.
109964 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
109966         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
109967         $LIBCSRC/posix/regexec.c.
109968         Add glibc bug 1217 for regcomp.c.
109970 2005-08-19  Jim Meyering  <jim@meyering.net>
109972         * lib/regexec.c (proceed_next_node): Redo local variables to
109973         avoid GCC shadowing warnings.
109975 2005-08-18  Bruno Haible  <bruno@clisp.org>
109977         * lib/strstr.c (strstr): Fix return value in multibyte case.
109978         * lib/strcasestr.c (strcasestr): Likewise.
109980 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
109982         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
109984 2005-08-17  Jim Meyering  <jim@meyering.net>
109986         Make the %s format (seconds since the epoch) work for a negative
109987         number and when used with a zero-padded field width, e.g. %015s.
109989         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
109990         label so that it precedes the code to set `digits'.  Otherwise,
109991         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
109992         print `00-22'.  Now, it prints `-0022', as it should.
109994 2005-08-17  Bruno Haible  <bruno@clisp.org>
109996         * modules/strstr (Files): Add m4/mbrtowc.m4.
109997         (Depends-on): Add mbuiter.
109999 2005-08-17  Bruno Haible  <bruno@clisp.org>
110001         * modules/strcasestr: New file.
110002         * MODULES.html.sh (String handling, based on ANSI C 89): Add
110003         strcasestr.
110005 2005-08-17  Bruno Haible  <bruno@clisp.org>
110007         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
110009 2005-08-17  Bruno Haible  <bruno@clisp.org>
110011         * modules/mbuiter: New file.
110012         * MODULES.html.sh (Extended multibyte and wide character utilities):
110013         Add mbuiter.
110015 2005-08-17  Bruno Haible  <bruno@clisp.org>
110017         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
110018         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
110020 2005-08-17  Bruno Haible  <bruno@clisp.org>
110022         * m4/strcasestr.m4: New file.
110024 2005-08-17  Bruno Haible  <bruno@clisp.org>
110026         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
110027         * lib/strstr.c: Completely rewritten, with multibyte locale support.
110029 2005-08-17  Bruno Haible  <bruno@clisp.org>
110031         * lib/strcasestr.h: New file.
110032         * lib/strcasestr.c: New file.
110034 2005-08-17  Bruno Haible  <bruno@clisp.org>
110036         * lib/strcasecmp.c: Use mbuiter.h.
110038 2005-08-17  Bruno Haible  <bruno@clisp.org>
110040         * lib/mbuiter.h: New file.
110042 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
110044         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
110045         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
110046         and gl_GETOPT are both invoked via different paths (as happens
110047         with GNU tar CVS because it uses both argp and getopt), the former
110048         wins.
110050 2005-08-16  Bruno Haible  <bruno@clisp.org>
110052         * modules/tls: New file.
110053         * MODULES.html.sh (Multithreading): Add tls.
110055 2005-08-16  Bruno Haible  <bruno@clisp.org>
110057         * modules/strnlen1: New file.
110058         * MODULES.html.sh (String handling): Add strnlen1.
110060 2005-08-16  Bruno Haible  <bruno@clisp.org>
110062         * modules/strcase (Files): Add m4/mbrtowc.m4.
110063         (Depends-on): Add strnlen1, mbchar.
110065 2005-08-16  Bruno Haible  <bruno@clisp.org>
110067         * modules/mbiter: New file.
110068         * MODULES.html.sh (Extended multibyte and wide character utilities):
110069         Add mbiter.
110071 2005-08-16  Bruno Haible  <bruno@clisp.org>
110073         * modules/mbfile: New file.
110074         * MODULES.html.sh (Extended multibyte and wide character utilities):
110075         Add mbfile.
110077 2005-08-16  Bruno Haible  <bruno@clisp.org>
110079         * modules/mbchar: New file.
110080         * MODULES.html.sh (Extended multibyte and wide character utilities):
110081         New section.
110083 2005-08-16  Bruno Haible  <bruno@clisp.org>
110085         * m4/tls.m4: New file, from GNU gettext.
110087 2005-08-16  Bruno Haible  <bruno@clisp.org>
110089         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
110090         always.
110091         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
110093 2005-08-16  Bruno Haible  <bruno@clisp.org>
110095         * m4/mbiter.m4: New file.
110097 2005-08-16  Bruno Haible  <bruno@clisp.org>
110099         * m4/mbfile.m4: New file.
110101 2005-08-16  Bruno Haible  <bruno@clisp.org>
110103         * m4/mbchar.m4: New file.
110105 2005-08-16  Bruno Haible  <bruno@clisp.org>
110107         * lib/tls.h: New file, from GNU gettext.
110108         * lib/tls.c: New file, from GNU gettext.
110110 2005-08-16  Bruno Haible  <bruno@clisp.org>
110112         * lib/strnlen1.h: New file.
110113         * lib/strnlen1.c: New file.
110115 2005-08-16  Bruno Haible  <bruno@clisp.org>
110117         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
110118         (mbi_init): Update.
110119         (mbi_avail, mbi_advance): Let the iteration end before the terminating
110120         NUL byte, not after it.
110122 2005-08-16  Bruno Haible  <bruno@clisp.org>
110124         * lib/strcase.h (strcasecmp): Add note in comments.
110125         * lib/strncasecmp.c: Use code from strcasecmp.c.
110126         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
110127         (strcasecmp): Work correctly in multibyte locales.
110129 2005-08-16  Bruno Haible  <bruno@clisp.org>
110131         * lib/mbiter.h: New file.
110133 2005-08-16  Bruno Haible  <bruno@clisp.org>
110135         * lib/mbfile.h: New file.
110137 2005-08-16  Bruno Haible  <bruno@clisp.org>
110139         * lib/mbchar.h: New file.
110140         * lib/mbchar.c: New file.
110142 2005-08-16  Bruno Haible  <bruno@clisp.org>
110144         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
110145         the valid ones. Makes the comparison operations transitive:
110146         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
110147         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
110149 2005-08-15  Simon Josefsson  <jas@extundo.com>
110151         * modules/ssize_t (License): Change to 'unlimited'.
110153         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
110155 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
110157         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
110158         Add comments for each pending glibc patch.
110160 2005-08-15  Bruno Haible  <bruno@clisp.org>
110162         * lib/regex.h (__restrict_arr): Don't define to __restrict if
110163         __cplusplus is defined.
110165 2005-08-14  Jim Meyering  <jim@meyering.net>
110167         Sync from coreutils.
110169         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
110170         Use the hash-table-based cycle-detection code not just when
110171         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
110172         Reported by James Youngman in
110173         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00011.html>.
110174         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
110175         FTS_TIGHT_CYCLE_CHECK.
110176         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
110177         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
110178         once again.
110179         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
110180         * lib/fts.c (fd_safer): Remove decl.
110181         Include fcntl--.h rather than unistd-safer.h
110182         (fts_safe_changedir): Don't call fd_safer; no longer needed
110183         now that we include fcntl--.h.
110185 2005-08-12  Simon Josefsson  <jas@extundo.com>
110187         * modules/getndelim2: Use ssize_t module.
110188         * modules/getnline: Likewise.
110189         * modules/safe-read: Likewise.
110190         * modules/xreadlink: Likewise.
110192         * modules/ssize_t: New file.
110194 2005-08-12  Simon Josefsson  <jas@extundo.com>
110196         * m4/readline.m4: Look for termcap, curses or ncurses if required.
110198 2005-08-12  Simon Josefsson  <jas@extundo.com>
110200         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
110201         ssize_t.
110203 2005-08-12  Simon Josefsson  <jas@extundo.com>
110205         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
110206         readline, getdelim and check_version.
110207         (Support for systems lacking ISO C 99: Sizes of integer types):
110208         Add size_max.
110210 2005-08-12  Bruno Haible  <bruno@clisp.org>
110212         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
110214 2005-08-11  Simon Josefsson  <jas@extundo.com>
110216         * modules/readline: New file.
110218         * modules/strnlen (Files): Add strnlen.h.
110220 2005-08-11  Simon Josefsson  <jas@extundo.com>
110222         * m4/readline.m4: New file.
110224 2005-08-11  Simon Josefsson  <jas@extundo.com>
110226         * lib/readline.h, readline.c: New file.
110228 2005-08-11  Simon Josefsson  <jas@extundo.com>
110230         * doc/gnulib.texi (Initial import, Finishing touches): Mention
110231         gl_AVOID.
110233 2005-08-11  Bruno Haible  <bruno@clisp.org>
110235         * lib/strnlen.h (strnlen): Change parameter name to match comment.
110237 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
110239         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
110241 2005-08-10  Simon Josefsson  <jas@extundo.com>
110243         * tests/test-iconvme.c: New file.
110245 2005-08-10  Simon Josefsson  <jas@extundo.com>
110247         * m4/strnlen.m4: New file.
110249         * m4/strndup.m4: Don't check for strnlen declaration, done in
110250         strnlen.m4.
110252 2005-08-10  Simon Josefsson  <jas@extundo.com>
110254         * lib/strndup.c: Use strnlen.h.
110256         * lib/strnlen.h: New file.
110258 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
110260         * README: Typos.
110262 2005-08-02  Simon Josefsson  <jas@extundo.com>
110264         * modules/readline: New file.
110266 2005-08-02  Simon Josefsson  <jas@extundo.com>
110268         * modules/getdelim: New file.
110270         * modules/getline: Rewrite, don't use getndelim2.
110272 2005-08-02  Simon Josefsson  <jas@extundo.com>
110274         * m4/getline.m4: Separate out getdelim stuff into separate module.
110276         * m4/getdelim.m4: New file.
110278 2005-08-02  Simon Josefsson  <jas@extundo.com>
110280         * lib/getline.h, getline.c: Rewrite.
110282         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
110284 2005-07-31  Bruno Haible  <bruno@clisp.org>
110286         * lib/lock.h (gl_lock_initializer): New macro.
110287         (gl_lock_define_initialized): Use it.
110288         (gl_rwlock_initializer): New macro.
110289         (gl_rwlock_define_initialized): Use it.
110290         (gl_recursive_lock_initializer): New macro.
110291         (gl_recursive_lock_define_initialized): Use it.
110293 2005-07-30  Karl Berry  <karl@gnu.org>
110295         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
110296         Report from Ben Pfaff, regarding getopt.
110298 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
110300         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
110301         normal way.
110302         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
110303         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
110304         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
110305         (gl_GETOPT): Use the new macros.  Most of the implementation
110306         is moved to the new macros.  This is for programs like Emacs
110307         that don't want all the functionality of gl_GETOPT.
110309 2005-07-26  Bruno Haible  <bruno@clisp.org>
110311         * m4/lock.m4: Update from GNU gettext.
110313 2005-07-26  Bruno Haible  <bruno@clisp.org>
110315         * lib/lock.h: Update from GNU gettext.
110316         * lib/lock.c: Update from GNU gettext.
110318 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
110320         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
110321         obsolescent AC_TRY_RUN.  Include the default includes files, for
110322         'exit'.
110324 2005-07-24  Bruno Haible  <bruno@clisp.org>
110326         * modules/visibility: New file.
110327         * MODULES.html.sh (Misc): Add visibility.
110329 2005-07-24  Bruno Haible  <bruno@clisp.org>
110331         * m4/visibility.m4: New file.
110333 2005-07-24  Bruno Haible  <bruno@clisp.org>
110335         * doc/visibility.texi: New file.
110337 2005-07-22  Bruno Haible  <bruno@clisp.org>
110339         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
110340         $(ALLOCA_H), redundant through BUILT_SOURCES.
110341         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
110342         redundant through BUILT_SOURCES.
110343         * modules/byteswap (Makefile.am): Remove explicit dependency on
110344         $(BYTESWAP_H), redundant through BUILT_SOURCES.
110345         * modules/fnmatch (Makefile.am): Remove explicit dependency on
110346         $(FNMATCH_H), redundant through BUILT_SOURCES.
110347         * modules/getopt (Makefile.am): Remove explicit dependency on
110348         $(GETOPT_H), redundant through BUILT_SOURCES.
110349         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
110350         redundant through BUILT_SOURCES.
110351         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
110352         redundant through BUILT_SOURCES.
110353         * modules/stdbool (Makefile.am): Remove explicit dependency on
110354         $(STDBOOL_H), redundant through BUILT_SOURCES.
110355         * modules/stdint (Makefile.am): Remove explicit dependency on
110356         $(STDINT_H), redundant through BUILT_SOURCES.
110357         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
110358         Remove explicit dependency on $(SYSEXITS_H).
110359         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
110361 2005-07-18  Simon Josefsson  <jas@extundo.com>
110363         * lib/check-version.c (check_version): Accept identical versions too.
110365 2005-07-18  Bruno Haible  <bruno@clisp.org>
110367         * modules/lock: New file.
110368         * MODULES.html.sh (Multithreading): New section.
110370 2005-07-18  Bruno Haible  <bruno@clisp.org>
110372         * m4/lock.m4: New file, from GNU gettext.
110374 2005-07-18  Bruno Haible  <bruno@clisp.org>
110376         * lib/lock.h: New file, from GNU gettext.
110377         * lib/lock.c: New file, from GNU gettext.
110379 2005-07-18  Bruno Haible  <bruno@clisp.org>
110381         * lib/lock.h (gl_once_t): New type.
110382         (gl_once_define, gl_once): New macros.
110383         * lib/lock.c (fresh_once): New variable.
110384         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
110385         functions.
110387 2005-07-16  Simon Josefsson  <jas@extundo.com>
110389         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
110390         workaround, suggested by Bruno.
110392 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
110394         * modules/xalloc (Depends-on): Add xalloc-die.
110395         * modules/xvasprintf (Depends-on): Add xalloc-die.
110397 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
110399         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
110400         with a minor change.
110402 2005-07-15  Bruno Haible  <bruno@clisp.org>
110404         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
110405         When using lib/poll.c, define poll as rpl_poll.
110407 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
110409         * modules/argp (Depends-on): Remove unlocked-io.
110411 2005-07-14  Derek Price  <derek@ximbiot.com>
110413         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
110414         for glob symlink bug.
110416 2005-07-14  Bruno Haible  <bruno@clisp.org>
110418         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
110419         Instead, test for *_unlocked function declarations directly.
110421 2005-07-11  Simon Josefsson  <jas@extundo.com>
110423         * modules/size_max: New file.
110425         * modules/xsize: Depend on size_max module for size_max.m4.
110427 2005-07-11  Simon Josefsson  <jas@extundo.com>
110429         * lib/size_max.h: New file.
110431 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
110433         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
110434         copyright symbol and the year.
110435         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
110436         (version_etc_va): Use parameterized copyright notice.
110437         Reword to conform to the current GNU coding standards.
110439 2005-07-11  Karl Berry  <karl@gnu.org>
110441         * doc/gnulib.texi (Quoting): new node.
110442         (Initial import): more info, from Patrice.
110444 2005-07-11  Bruno Haible  <bruno@clisp.org>
110446         * gnulib-tool (func_usage): Document option --avoid.
110447         (Command line options): Handle --avoid.
110448         (func_acceptable): New function.
110449         (func_modules_transitive_closure): Use it.
110451 2005-07-11  Bruno Haible  <bruno@clisp.org>
110453         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
110454         Reported by Jim Meyering.
110456 2005-07-10  Bruno Haible  <bruno@clisp.org>
110458         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
110459         Needed when size_t is smaller than 'unsigned int'.
110460         Reported by Paul Eggert.
110462 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
110464         * modules/argp (Depends-on): Add unlocked-io
110466 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
110468         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
110469         block of defines.
110471 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
110473         * config/srclist.txt: Comment out regcomp.c, since we have a porting
110474         fix now.
110476 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
110477         and Paul Eggert  <eggert@cs.ucla.edu>
110479         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
110480         in wint_t, not wchar_t.  Remove now-unnecessary cast.
110482 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
110484         * modules/regex (Files): Add lib/regex_internal.c,
110485         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
110486         (Depends-on): Add extensions.
110487         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
110489 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
110491         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
110492         pathconf.
110493         * m4/same.m4 (gl_SAME): Likewise.
110494         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
110496         * m4/regex.m4: Adjust to new libc regex implementation.
110497         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
110498         all the .c and .h parts of (the new) regex.
110499         Quote the m4 stuff better.
110500         Check for RE_ICASE bug of old gnulib.
110501         Check for REG_STARTEND of recent libc.
110502         Rename local variables from jm_* to gl_*.
110503         Quote operand of "test -f".
110504         Say "recent enough" version of libc, not "version 2".
110505         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
110506         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
110507         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
110508         Remove check for btowc, isascii.
110509         Require AM_LANGINFO_CODESET.
110511 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
110513         * lib/regex.c, regex.h: Sync from libc.
110514         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
110515         * lib/regexec.c:
110516         New files, synced from libc, except that regex_internal.h
110517         currently has a small porting fix.
110519 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
110521         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
110522         regex_internal.c, regexec.c.
110523         Add regex_internal.h too, but as a comment, since the libc version
110524         is currently broken in gnulib mode.
110526 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
110528         Support programs like Emacs that use gnulib but not gettext.
110529         * MODULES.html.sh (Internationalization functions): Add gettext-h.
110530         * modules/gettext-h: New file.
110531         * modules/gettext (Files): Remove lib/gettext.h.
110532         (Depends-on): Add gettext-h.
110533         (Makefile.am): Remove lib_SOURCES.
110534         * modules/argmatch, modules/c-stack, modules/closeout:
110535         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
110536         * modules/execute, modules/file-type, modules/getaddrinfo:
110537         * modules/getopt, modules/human, modules/javacomp:
110538         * modules/javaexec, modules/mkdir-p, modules/obstack:
110539         * modules/openat, modules/pagealign_alloc, modules/pipe:
110540         * modules/quotearg, modules/regex, modules/rpmatch:
110541         * modules/unicodeio, modules/userspec, modules/version-etc:
110542         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
110543         * modules/xsetenv:
110544         Depend on gettext-h, not gettext.
110546 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
110548         * gnulib-tool (func_import): Add support for 'public domain' license.
110549         * modules/alloca, modules/atexit, modules/memmove:
110550         Now public domain, not GPL.
110551         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
110552         * modules/realloc, modules/strerror, modules/strtod:
110553         Now LGPL, not GPL.
110555 2005-07-05  Bruno Haible  <bruno@clisp.org>
110557         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
110558         autoconf CVS. Needed for mingw.
110560 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
110562         Remove the dependency of the strftime module on the tzset module.
110563         * modules/strftime (Depends-on): Remove dependency on tzset.
110565 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
110567         Remove the dependency of the strftime module on the tzset module.
110568         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
110569         gl_FUNC_TZSET_CLOBBER.
110571 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
110573         Remove the dependency of the strftime module on the tzset module.
110574         * lib/strftime.c (my_strftime)
110575         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
110576         Copy the input structure, to work around some of the bug with
110577         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
110578         Solaris releases, you should also use the tzset module, but we won't
110579         require it as a dependency any more since we don't want LGPLed code
110580         to depend on GPLed code.
110582 2005-07-02  Jim Meyering  <jim@meyering.net>
110584         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
110585         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
110586         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
110587         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
110589 2005-07-02  Jim Meyering  <jim@meyering.net>
110591         * lib/backupfile.c (backup_args): Change a `0' to NULL.
110593 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
110595         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
110596         declares only 'struct timespec;' (!).
110598 2005-07-01  Jim Meyering  <jim@meyering.net>
110600         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
110601         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
110602         * lib/save-cwd.c, tempname.c:
110603         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
110604         and don't include <sys/file.h>).
110606 2005-06-29  Jim Meyering  <jim@meyering.net>
110608         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
110609         type name.  Use the variable name instead.
110610         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
110611         Likewise.
110613 2005-06-28  Simon Josefsson  <jas@extundo.com>
110615         * modules/check-version (Files): Add check-version.m4.
110617 2005-06-28  Simon Josefsson  <jas@extundo.com>
110619         * m4/check-version.m4: New file, suggested by Jim Meyering
110620         <jim@meyering.net>.
110622 2005-06-28  Simon Josefsson  <jas@extundo.com>
110624         * lib/check-version.h, lib/check-version.c: New files.
110626 2005-06-28  Simon Josefsson  <jas@extundo.com>
110628         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
110629         collision with global variable.  Better indentation.  Don't
110630         increment buffer pointer beyond buffer end.  Based on comments
110631         from Paul Eggert <eggert@cs.ucla.edu>.
110633         * lib/base64.h: Indent.
110635 2005-06-28  Simon Josefsson  <jas@extundo.com>
110637         * doc/gnulib.texi (Library version handling): New section.
110639 2005-06-28  Jim Meyering  <jim@meyering.net>
110641         * check-module (find_included_lib_files): Hard-code another
110642         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
110643         but modules/fts-lgpl (correctly) does not list those files.
110645         * modules/canonicalize (Files): Add lib/pathmax.h.
110647 2005-06-25  Simon Josefsson  <jas@extundo.com>
110649         * modules/check-version: New file.
110651 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
110653         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
110654         initializer of struct addrinfo, as an indication that we don't
110655         care how many members the structure has.
110657 2005-06-24  Derek Price  <derek@ximbiot.com>
110658         and Bruno Haible  <bruno@clisp.org>
110660         Remove stat module & update lstat.
110661         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
110662         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
110663         * m4/stat.m4: Remove this file.
110665 2005-06-24  Derek Price  <derek@ximbiot.com>
110666         and Bruno Haible  <bruno@clisp.org>
110668         Remove stat module & update lstat.
110669         * lib/stat.c: Remove this file...
110670         (slash_aware_lstat): ...moving this content and its support...
110671         * lib/lstat.c (rpl_lstat): ...into here.
110672         * lib/lstat.h: New file.
110674 2005-06-24  Derek Price  <derek@ximbiot.com>
110675         and Bruno Haible  <bruno@clisp.org>
110677         Remove stat module & update lstat.
110678         * config/srclist.txt (libc sources): Remove stat.
110680 2005-06-24  Derek Price  <derek@ximbiot.com>
110681         and Bruno Haible  <bruno@clisp.org>
110683         Remove stat module & update lstat.
110684         * MODULES.html.sh (stat): Remove.
110685         * MODULES.html: Regenerated.
110686         * modules/lstat (Description): Correct function name.
110687         (Files): Add "lstat.h".
110688         (Depends-on): Remove stat, add xalloc, stat-macros.
110689         * modules/stat: Remove this file.
110690         (Include): Add "lstat.h", remove <sys/stat.h>.
110692 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
110694         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
110695         (ranged_convert): Don't save conversion in a temporary struct.
110696         This causes a warning with GCC 4.0.0, and anyway in the typical
110697         case it's not worth the extra 100 bytes or so of code.
110698         (ranged_convert, __mktime_internal): When calling a function via a
110699         pointer P, use P () rather than (*P) (), as we now assume C89 or
110700         better.
110702 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
110704         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
110705         "who -r" failed to give output.  Problem reported by Tim Waugh.
110707         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
110708         (xcalloc): Use it to avoid needless tests.
110709         Problem reported by Jim Meyering.
110711 2005-06-20  Derek Price  <derek@ximbiot.com>
110713         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
110714         unnecessary for Autoconfs > 2.59c.
110716 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
110718         * lib/argp.h (__option_is_short): Check upper limit of
110719         __key. Isprint() requires its argument to have the value
110720         of an unsigned char or EOF.
110722 2005-06-16  Jim Meyering  <jim@meyering.net>
110724         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
110725         when either N or S is zero.
110727 2005-06-16  Derek Price  <derek@ximbiot.com>
110729         * m4/bison.m4: Declare YACC & YFLAGS precious.
110731 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
110733         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
110734         multibyte string or pattern, fall back on unibyte matching.
110735         Problem reported by James Youngman.
110737 2005-06-08  Bruno Haible  <bruno@clisp.org>
110739         * modules/csharpcomp: New file.
110740         * MODULES.html.sh (C#): Add csharpcomp.
110742 2005-06-08  Bruno Haible  <bruno@clisp.org>
110744         * m4/csharpcomp.m4: New file, from GNU gettext.
110746 2005-06-08  Bruno Haible  <bruno@clisp.org>
110748         * lib/csharpcomp.h: New file, from GNU gettext.
110749         * lib/csharpcomp.c: New file, from GNU gettext.
110750         * lib/csharpcomp.sh.in: New file, from GNU gettext.
110752 2005-06-08  Bruno Haible  <bruno@clisp.org>
110754         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
110755         warning on mingw.
110757 2005-06-07  Derek Price  <derek@ximbiot.com>
110759         Sync from CVS.
110760         * lib/glob_.h: Indent nested #ifdef.
110762 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
110764         Sync from coreutils.
110765         Use "file name" when talking about file names, instead of "filename"
110766         or "path", as per the GNU coding standards.
110767         * lib/mkdir-p.c: Renamed from makepath.c.
110768         (make_dir_parents): Renamed from make_path.  All callers changed.
110769         * lib/mkdir-p.h: Likewise.  All includers changed.
110770         * lib/filenamecat.c: Renamed from path-concat.c.
110771         (file_name_concat): Renamed from path_concat.  All callers changed.
110772         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
110773         * lib/filenamecat.h: Likewise.  All includers changed.
110774         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
110775         in comments or local variable names.
110776         * lib/basename.c: Likewise.
110777         * lib/canonicalize.c, canonicalize.h: Likewise.
110778         * lib/dirname.c, dirname.h: Likewise.
110779         * lib/euidaccess.c: Likewise.
110780         * lib/exclude.c: Likewise
110781         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
110782         * lib/fsusage.c, fsuage.h: Likewise.
110783         * lib/fts.c, fts_.h: Likewise.
110784         * lib/getcwd.c: Likewise.
110785         * lib/getloadavg.c: Likewise.
110786         * lib/mkstemp.c: Likewise.
110787         * lib/mountlist.c, mountlist.h: Likewise.
110788         * lib/openat.c, openat.h: Likewise.
110789         * lib/readlink-stub.c: Likewise.
110790         * lib/readutmp.c, readutmp.h: Likewise.
110791         * lib/rename.c: Likewise.
110792         * lib/rmdir.c: Likewise.
110793         * lib/same.c: Likewise.
110794         * lib/savedir.c: Likewise.
110795         * lib/stripslash.c: Likewise.
110796         * lib/tempname.c: Likewise.
110797         * lib/xreadlink.c: Likewise.
110798         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
110799         All uses changed.
110800         * lib/exclude.h: Likewise.
110802         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
110803         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
110804         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
110805         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
110806         * lib/pathmax.h: Include <limits.h> unconditionally, since other
110807         files have been getting away with it for years (MORE/BSD 4.3
110808         is extinct now).
110809         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
110810         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
110812         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
110813         Define to 256, not 255, as per modern POSIX.
110815 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
110817         Sync from coreutils.
110818         Use "file name" when talking about file names, instead of "filename"
110819         or "path", as per the GNU coding standards.
110820         * MODULES.html.sh: mkdir-p renamed from makepath.
110821         filenamecat renamed from path-concat.
110822         * modules/filenamecat: Renamed from modules/path-concat.
110823         (Files): filenamecat.h and filenamecat.c renamed from
110824         path-concat.h and path-concat.c.
110825         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
110826         (Include): filenamecat.h, not path-concat.h.
110827         * modules/mkdir-p: Renamed from modules/makepath.
110828         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
110829         makepath.c.
110830         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
110831         (Include): mkdir-p.h, not makepath.h.
110833 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
110835         Sync from coreutils.
110836         * m4/mkdir-p.m4: Renamed from makepath.m4.
110837         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
110838         Rename files from makepath.c to mkdir-p.c, and from
110839         makepath.h to mkdir-p.h.
110840         * m4/filenamecat.m4: Renamed from path-concat.m4.
110841         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
110842         Rename files from path-concat.c to filenamecat.c,
110843         and from path-concat.h to filenamecat.h.
110844         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
110845         "file name" in local variables or comments.
110846         * m4/rename.m4: Likewise.
110848 2005-06-01  Bruno Haible  <bruno@clisp.org>
110850         * modules/csharpexec: New file.
110851         * MODULES.html.sh (C#): New section.
110853 2005-06-01  Bruno Haible  <bruno@clisp.org>
110855         * m4/csharp.m4: New file, from GNU gettext.
110856         * m4/csharpexec.m4: New file, from GNU gettext.
110858 2005-06-01  Bruno Haible  <bruno@clisp.org>
110860         * lib/csharpexec.h: New file, from GNU gettext.
110861         * lib/csharpexec.c: New file, from GNU gettext.
110862         * lib/csharpexec.sh.in: New file, from GNU gettext.
110864 2005-05-31  Derek Price  <derek@ximbiot.com>
110865             Paul Eggert  <eggert@cs.ucla.edu>
110867         Sync from cvs.
110868         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
110870 2005-05-31  Derek Price  <derek@ximbiot.com>
110871             Paul Eggert  <eggert@cs.ucla.edu>
110873         Sync from cvs.
110874         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
110876 2005-05-29  Derek Price  <derek@ximbiot.com>
110878         * config/srclist.txt (glob_.h, glob.c): Add these files.
110880 2005-05-29  Derek Price  <derek@ximbiot.com>
110882         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
110883         * modules/glob: New file.
110884         * modules/getlogin_r: Add link to POSIX spec in description.
110886 2005-05-29  Derek Price  <derek@ximbiot.com>
110887             Paul Eggert  <eggert@cs.ucla.edu>
110889         * m4/glob.m4: New file.
110891 2005-05-29  Derek Price  <derek@ximbiot.com>
110892             Paul Eggert  <eggert@cs.ucla.edu>
110894         * lib/glob_.h, lib/glob.c: New files.
110896 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
110898         * modules/fts (Files): Remove m4/inttypes-pri.m4.
110899         * modules/fts-lgpl (Depends-on): Remove gettext.
110901 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
110903         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
110904         and don't require gt_INTTYPES_PRI.
110906 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
110908         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
110910         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
110911         the configuration hassle isn't worth it.
110912         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
110913         (LONGEST_MODIFIER, PRIuMAX): Remove.
110915 2005-05-27  Bruno Haible  <bruno@clisp.org>
110917         * lib/getlogin_r.h: Remove second include of <stddef.h>.
110919 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
110921         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
110922         _POSIX_PTHREAD_SEMANTICS for Solaris.
110924 2005-05-25  Derek Price  <derek@ximbiot.com>
110926         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
110928 2005-05-25  Derek Price  <derek@ximbiot.com>
110929             Paul Eggert  <eggert@cs.ucla.edu>
110931         * modules/getlogin_r, m4/getlogin_r.m4: New files.
110932         * lib/getlogin_r.c, getlogin_r.h: New files.
110934 2005-05-25  Bruno Haible  <bruno@clisp.org>
110935             Derek Price  <derek@ximbiot.com>
110937         * lib/getlogin_r.h: Simplify API documentation.
110939 2005-05-23  Derek Price  <derek@ximbiot.com>
110941         * modules/minmax (Files): Add m4/minmax.m4.
110942         (configure.ac): Add gl_MINMAX.
110944 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
110946         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
110947         so that unistd-safer.h (GPL'ed code) need not be included.
110949 2005-05-22  Bruno Haible  <bruno@clisp.org>
110951         * m4/minmax.m4: New file.
110952         Based on a patch by Derek Price <derek@ximbiot.com>.
110954 2005-05-22  Bruno Haible  <bruno@clisp.org>
110956         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
110957         (INT64_MIN): Fix definition.
110958         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
110960         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
110961         NEED_SIGNED_INT_TYPES.
110963         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
110964         HAVE_SYSTEM_INTTYPES.
110966 2005-05-22  Bruno Haible  <bruno@clisp.org>
110968         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
110969         Also include <sys/param.h> if it defines MIN, MAX.
110970         Based on a patch by Derek Price <derek@ximbiot.com>.
110972 2005-05-21  Jim Meyering  <jim@meyering.net>
110974         * modules/fts (Files): Add m4/inttypes-pri.m4.
110975         (Depends-on): Add lstat and remove gettext.  Alphabetize.
110977 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
110979         New fts module.
110980         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
110981         (setup_dir, free_dir): New functions.
110982         (enter_dir, leave_dir): Define trivial
110983         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
110984         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
110985         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
110986         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
110987         Move to fts-cycle.c.
110988         (fts_open): Use setup_dir.
110989         (fts_close): Use free_dir.
110990         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
110991         This adds a label and some gotos, but the alternatives were messier.
110992         Check for memory allocation failure when entering a dir.
110993         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
110994         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
110995         (FTS): New member fts_cycle, that is a union that contains the
110996         old active_dir_ht and cycle_state.  All uses changed to mention
110997         fts_cycle.ht and fts_cycle.state.
110998         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
110999         fts.c, with the following changes:
111000         (setup_dir, free_dir): New functions.
111001         (enter_dir): Now returns bool.  Return true if successful, false
111002         if memory exhausted.  All callers changed.
111003         Do not bother partly cleaning up on
111004         memory allocation failure; that is free_dir's job.
111005         However, free ad if hash_insert fails, to avoid memory leak.
111006         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
111007         fts->fts_options to see which union member to use.
111009 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
111011         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
111012         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
111014 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
111016         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
111018 2005-05-20  Jim Meyering  <jim@meyering.net>
111020         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
111021         Now a macro, to pacify GCC.
111023 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
111025         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
111026         of -1.
111028 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
111030         * lib/chown.c (rpl_chown): Return -1 on failure.
111032 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
111034         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
111035         Don't check for stddef.h.
111036         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
111037         don't use its results.
111038         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
111039         since we include them unconditionally.  Don't require
111040         AM_STDBOOL_H, since stdbool is a prerequisite.
111041         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
111042         since we assume C89 or better.
111043         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
111044         as we don't use their results.
111045         Don't check for fchdir, memmove, memset, strrchr, as we use
111046         them unconditionally.
111047         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
111048         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
111050 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
111052         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
111053         Include <stddef.h> unconditionally, since we assume C89 now.
111054         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
111055         * lib/fts.c: Include fts_.h first, to check interface.
111056         Do not include intprops.h; no longer needed.
111057         Include cycle-check.h and hash.h, since fts_.h no longer does.
111058         Remove unnecessary casts of closedir to void.
111059         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
111060         decide whether to decrement nlinks.
111061         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
111062         (FTS): Use struct hash_table * instead of Hash_table, so that
111063         we no longer need to include hash.h here.
111065 2005-05-18  Jim Meyering  <jim@meyering.net>
111067         * modules/dirfd (License): Change to LGPL.  Most of the code
111068         is already in the public domain.
111070 2005-05-18  Jim Meyering  <jim@meyering.net>
111072         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
111073         Reported by Yoann Vandoorselaere.
111075 2005-05-17  Jim Meyering  <jim@meyering.net>
111077         * m4/fts.m4: New file, from coreutils.
111079 2005-05-17  Jim Meyering  <jim@meyering.net>
111081         * lib/fts.c, lib/fts_.h: New files, from coreutils.
111083 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
111085         Sync from coreutils.
111086         * m4/unlinkdir.m4: New file.
111088 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
111090         Sync from coreutils.
111091         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
111092         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
111093         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
111094         White space changes only.
111095         * lib/makepath.c (make_path): Port to hosts where leading "//" is
111096         special.
111097         * lib/yesno.c: Include getline.h, not ctype.h.
111098         (yesno): Don't remove leading white space; POSIX doesn't allow it.
111099         Use getline to remove arbitrary restriction on response length.
111101 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
111103         * config/srclist-update: Spell out "Street" in FSF postal
111104         mail address; this is the style the FSF seems to prefer.
111106         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
111107         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
111108         this updates FSF postal mail address.
111110         Sync from coreutils.
111111         * modules/unlinkdir: New file.
111112         * modules/yesno (Depends-on): Add getline.
111113         * MODULES.html.sh (File system functions): Add unlinkdir.
111115 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
111117         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
111118         lib/strsep.h:
111119         Change the initial comment to refer to GPL, not LGPL.
111120         gnulib-tool will change it to LGPL as needed.
111122         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
111123         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
111124         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
111125         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
111126         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
111127         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
111128         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
111129         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
111130         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
111131         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
111132         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
111133         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
111134         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
111135         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
111136         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
111137         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
111138         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
111139         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
111140         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
111141         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
111142         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
111143         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
111144         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
111145         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
111146         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
111147         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
111148         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
111149         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
111150         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
111151         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
111152         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
111153         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
111154         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
111155         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
111156         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
111157         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
111158         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
111159         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
111160         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
111161         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
111162         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
111163         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
111164         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
111165         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
111166         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
111167         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
111168         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
111169         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
111170         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
111171         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
111172         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
111173         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
111174         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
111175         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
111176         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
111177         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
111178         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
111179         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
111180         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
111181         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
111182         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
111183         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
111184         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
111185         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
111186         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
111187         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
111188         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
111189         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
111190         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
111191         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
111192         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
111193         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
111194         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
111195         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
111196         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
111197         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
111198         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
111199         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
111200         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
111201         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
111202         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
111203         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
111204         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
111205         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
111206         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
111207         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
111208         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
111209         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
111210         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
111211         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
111212         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
111213         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
111214         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
111215         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
111216         lib/yesno.c, lib/yesno.h:
111217         Update FSF postal mail address.
111219 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
111221         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
111222         tests/test-memmem.c, tests/test-stpncpy.c:
111223         Update FSF postal mail address.
111225 2005-05-13  Bruno Haible  <bruno@clisp.org>
111227         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
111228         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
111229         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
111230         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
111231         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
111232         Add support for 64-bit integers in the MSVC compiler.
111234 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
111236         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
111238 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
111240         * gnulib-tool (func_import): Sort and uniquify recommended includes.
111242 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
111244         * doc/getdate.texi (General date syntax): Don't say that date
111245         date --iso-8601=ns generates acceptable dates; it doesn't yet.
111246         Problem reported by Nic Ferrier.
111248 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
111250         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
111251         specified in ai_socktype. Fix invalid ai_protocol
111252         check. ai_protocol is usually set to 0 or depending on
111253         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
111254         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
111255         ai_socktype / ai_protocol in the returned addrinfo structure.
111257 2005-05-10  Simon Josefsson  <jas@extundo.com>
111259         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
111260         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
111262 2005-05-10  Karl Berry  <karl@gnu.org>
111264         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
111265         (from http://www.gnu.org/licenses).
111266         * doc/COPYING.LIB: also rename to COPYING.LESSER.
111267         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
111268         fdl.texi suffices.
111270 2005-05-10  Karl Berry  <karl@gnu.org>
111272         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
111273         (COPYING.DOC): remove.
111275         * config/srclist-update: new FSF address.
111277 2005-05-10  Derek Price  <derek@ximbiot.com>
111279         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
111280         possible.
111282 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
111283             Bruno Haible  <bruno@clisp.org>
111285         * modules/inet_ntop: New file.
111286         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
111287         inet_ntop.
111289 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
111290             Bruno Haible  <bruno@clisp.org>
111292         * m4/inet_ntop.m4: New file.
111294 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
111295             Bruno Haible  <bruno@clisp.org>
111297         * lib/inet_ntop.h: New file.
111298         * lib/inet_ntop.c: New file, from glibc with modifications.
111300 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
111302         * modules/time_r (License): Change to LGPL.
111303         * modules/extensions (License): Change to LGPL.  Actually,
111304         the license is more permissive than that, but currently gnulib-tool
111305         doesn't know how to handle more-permissive licenses.
111307         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
111308         Problem reported by Dave Love.
111310 2005-05-08  Jim Meyering  <jim@meyering.net>
111312         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
111313         blank.
111315 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
111317         * modules/argmatch (Depends-on): Add stdbool.
111318         * modules/backupfile (Depends-on): Likewise.
111319         * modules/chdir-long (Depends-on): Likewise.
111320         * modules/closeout (Depends-on): Likewise.
111321         * modules/cycle-check (Depends-on): Likewise.
111322         * modules/dirname (Depends-on): Likewise.
111323         * modules/fnmatch (Depends-on): Likewise.
111324         * modules/fsusage (Depends-on): Likewise.
111325         * modules/fwriteerror (Depends-on): Likewise.
111326         * modules/getcwd (Depends-on): Likewise.
111327         * modules/getloadavg (Depends-on): Likewise.
111328         * modules/hard-locale (Depends-on): Likewise.
111329         * modules/makepath (Depends-on): Likewise.
111330         * modules/mountlist (Depends-on): Likewise.
111331         * modules/nanosleep (Depends-on): Likewise.
111332         * modules/posixtm (Depends-on): Likewise.
111333         * modules/quotearg (Depends-on): Likewise.
111334         * modules/readtokens (Depends-on): Likewise.
111335         * modules/readtokens0 (Depends-on): Likewise.
111336         * modules/readutmp (Depends-on): Likewise.
111337         * modules/save-cwd (Depends-on): Likewise.
111338         * modules/strftime (Depends-on): Likewise.
111339         * modules/userspec (Depends-on): Likewise.
111340         * modules/utimecmp (Depends-on): Likewise.
111341         * modules/xgetcwd (Depends-on): Likewise.
111342         * modules/xnanosleep (Depends-on): Likewise.
111343         * modules/xstrtod (Depends-on): Likewise.
111344         * modules/yesno (Depends-on): Likewise.
111346 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
111348         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
111349         needless checks.
111351 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
111353         Merge from coreutils.  Among other things,
111354         add bulletproofing for cases where stdin, stdout, or stderr are closed.
111355         * lib/fd-safer.c: New file.
111356         * lib/fcntl-safer.h, open-safer.c: Remove.
111357         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
111358         * lib/dup-safer.c: Include unistd-safer.h first.
111359         Don't include errno.h.
111360         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
111361         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
111362         * lib/file-type.c: Rely on file-type.h change.
111363         * lib/getloadavg.c: Include unistd-safer.h.
111364         (getloadavg): Use safer open.
111365         * lib/getusershell.c: Include "stdio-safer.h".
111366         (getusershell): Use safer fopen.
111367         * lib/long-options.c (long_options): Use NULL rather than 0.
111368         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
111369         'free'.
111370         * lib/modechange.c: Likewise.
111371         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
111372         (MODE_DONE): New constant.
111373         (struct mode_change): Remove 'next' member.
111374         (make_node_op_equals): New function; like the old one of the
111375         same name, except it allocates an array.
111376         (mode_compile, mode_create_from_ref): Use it.
111377         (mode_compile): Allocate result as an array, not a linked list.
111378         Parse octal string ourself, so that we catch mistakes like "+0".
111379         (mode_adjust): Arg is an array, not a linked list.
111380         * lib/modechange.c: Include stat-macros.h, xalloc.h.
111381         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
111382         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
111383         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
111384         Remove.  This is now stat-macros.h's job.
111385         (talloc): Remove.  All callers replaced by xalloc, so that
111386         our invokers don't have to worry about reporting memory failures.
111387         (make_node_op_equals): Remove.
111388         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
111389         New constants.
111390         (struct mode_change): Moved here from modechange.h.
111391         (mode_append_entry): Remove.
111392         (mode_compile): Remove MASKED_OPS arg, since it encouraged
111393         apps to have incorrect behavior.  Use simpler algorithm for head
111394         and tail.  Don't futz with umask; that's now the job of mode_adjust.
111395         Detect more invalid usages rather than having somewhat-random behavior.
111396         Don't insert an "a=" action, as that leads to incorrect behavior.
111397         (mode_compile, mode_create_from_ref): Return NULL on error instead
111398         of an enum, since now there's only one way to have an error.  All
111399         callers changed.
111400         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
111401         at the correct time.  Simplify calculation of "+u" and its ilk.
111402         Don't mishandle "+X".
111403         (mode_free): Remove "register" and localize decls.
111404         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
111405         (struct mode_change): Move to modechange.c; callers don't
111406         need to see this stuff.
111407         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
111408         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
111409         (mode_change, mode_adjust): Reflect the new signatures noted above.
111410         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
111411         that might redefine system include files.
111412         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
111413         (my_usleep): Use NULL rather than (void *) 0.
111414         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
111415         Use siginterrupt to specify that system calls should be interrupted.
111416         (rpl_nanosleep): Move initialization of suspended closer to call of
111417         my_usleep.
111418         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
111419         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
111420         (desirable_utmp_entry): New function.
111421         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
111422         using x2nrealloc, to simplify logic.
111423         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
111424         size calculation.  Do not assume utmp file is a regular file.
111425         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
111426         (READ_UTMP_CHECK_PIDS): New constant.
111427         * lib/save-cwd.c: Include unistd-safer.h.
111428         (save_cwd): Use fd_safer.
111429         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
111430         [!_LIBC] Include "stat-macros.h" instead.
111431         * lib/unistd-safer.h (fd_safer): New decl.
111433 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
111435         * modules/getloadavg (Depends-on): Add unistd-safer.
111436         * modules/getusershell (Depends-on): Add stdio-safer.
111437         * modules/lstat (Depends-on): Remove xalloc.
111438         * modules/mkstemp (Depends-on): Add stat-macros.
111439         * modules/modechange (Depends-on): Remove xstrtol.
111440         Add stat-macros, xalloc.
111441         * modules/save-cwd (Depends-on): Add unistd-safer.
111442         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
111443         * modules/unistd-safer (Files): Add lib/fd-safer.c
111444         (Makefile.am): Remove lib_SOURCES.
111446         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
111447         Remove fcntl-safer; unistd-safer supersedes it.
111449 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
111451         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
111452         AC_HEADER_STAT.
111453         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
111454         (gl_PREREQ_CHOWN): Remove.
111455         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
111456         it.  Don't require AC_HEADER_STAT.
111457         (gl_PREREQ_LSTAT): Remove.
111458         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
111459         Don't require AC_HEADER_STAT.
111460         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
111461         (gl_PREREQ_RMDIR): Remove.
111462         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
111463         mention stat-macros.h or AC_HEADER_STAT, since we'll make
111464         the stat-macros module a prerequisite.
111465         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
111466         * m4/filemode.m4 (gl_FILEMODE): Likewise.
111467         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
111468         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
111469         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
111470         variable names.
111471         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
111472         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
111473         variable prefixes.
111474         * m4/fcntl-safer.m4: Remove.
111475         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
111476         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
111477         Invoke gl_PREREQ_FD_SAFER.
111478         (gl_PREREQ_FD_SAFER): New macro.
111479         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
111480         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
111481         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
111482         Remove duplicate call to AC_LIBOBJ(readutmp).
111483         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
111485         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
111486         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
111488 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
111490         * MODULES.html.sh (Misc): Add byteswap.
111492 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
111494         * modules/getcwd (Depends-on): Add extensions.
111495         * modules/openat (Depends-on): Likewise.
111497 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
111499         * modules/byteswap: New file.
111501 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
111503         * m4/byteswap.m4: New file.
111505 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
111507         * lib/byteswap_.h: New file.
111509 2005-04-25  Karl Berry  <karl@gnu.org>
111511         * m4/gettext.m4: Update from GNU gettext 0.14.4.
111513 2005-04-25  Albert Chin  <china@thewrittenword.com>
111515         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
111516         Toolkit C bug.
111518 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
111520         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
111521         (func_ln_if_changed): Remove forcibly for no error message
111522         in case file does not exist.
111524 2005-04-19  Simon Josefsson  <jas@extundo.com>
111526         * gnulib-tool (Options): Make --symlink mean --symbolic.
111528 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
111530         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
111532 2005-04-16  Simon Josefsson  <jas@extundo.com>
111534         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
111536 2005-04-15  Simon Josefsson  <jas@extundo.com>
111538         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
111540 2005-04-15  Simon Josefsson  <jas@extundo.com>
111542         * gnulib-tool: Rename --symlink to --symbolic.
111544 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
111546         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
111547         symbolic links to files instead of copying/moving.  Add --aux-dir,
111548         specifying directory relative --dir where auxiliary build tools
111549         are placed.
111551 2005-04-14  Bruno Haible  <bruno@clisp.org>
111553         * modules/allocsa (License): Change to LGPL.
111554         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
111556 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
111558         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
111559         that "UTC +1 second" continues to work.  Problem reported
111560         by Dmitry V. Levin.
111561         (relunit_snumber): New rule.
111562         (relunit): Use it.
111564 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
111566         * lib/getdate.y (universal_time_zone_table): New constant.
111567         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
111568         universal_time_zone_table.
111569         (lookup_zone): Prefer universal_time_zone_table to
111570         local_time_zone_table, so that "GMT" time stamps are allowed in
111571         London during the summer.  Problem reported by Ian Abbott.
111573 2005-04-12  Jim Meyering  <jim@meyering.net>
111575         * lib/human.c (humblock): Set *options even when returning due to
111576         xstrtoumax conversion failure.  Thanks to a used-uninitialized
111577         warning from gcc-4.
111579 2005-04-09  Jim Meyering  <jim@meyering.net>
111581         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
111582         -Wuninitialized: initialize tm0.tm_year.
111584 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
111586         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
111587         count, since there's no maximum.  All uses changed.
111588         Add member dsts_seen.
111589         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
111590         not being INT_MAX.
111591         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
111592         Use pc_rels_seen to decide whether a date is absolute.
111594         * lib/getdate.y (number): Don't overwrite year.
111595         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
111596         check.
111598 2005-04-02  Simon Josefsson  <jas@extundo.com>
111600         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
111601         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
111603 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
111605         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
111606         where no absolute path name can be longer than PATH_MAX.
111608 2005-03-27  Jim Meyering  <jim@meyering.net>
111610         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
111612 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
111614         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
111615         "one's complement" -> "ones' complement" in comment, as per Knuth.
111616         "value of type" -> "type or expression" in comment.
111617         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
111619 2005-03-26  Jim Meyering  <jim@meyering.net>
111621         Comment nits.
111622         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
111623         Correct typos: s/or/of/.
111625 2005-03-26  Jim Meyering  <jim@meyering.net>
111627         * modules/check-include-files: Move to ../ and rename to...
111628         * check-module: ...this.
111630 2005-03-25  Jim Meyering  <jim@meyering.net>
111632         * modules/xvasprintf (Files): Add xalloc.h.
111634 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
111636         * modules/gettext (Files): config/config.rpath ->
111637         build-aux/config.rpath
111638         * modules/iconv (Files): Likewise.
111639         Problem reported by Oskar Liljeblad.
111641 2005-03-23  Jim Meyering  <jim@meyering.net>
111643         * modules/check-include-files: New script to check for
111644         missing dependencies, multiple includes, etc.
111646         * modules/c-strtold (Depends-on): Add xalloc.
111647         * modules/c-strtod (Depends-on): Add xalloc.
111648         * modules/hash (Depends-on): Add xalloc.
111649         (Files): Remove lib/xalloc.h.
111651         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
111652         * modules/userspec (Files): Add lib/inttostr.h.
111654 2005-03-23  Jim Meyering  <jim@meyering.net>
111656         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
111658 2005-03-22  Jim Meyering  <jim@meyering.net>
111660         * modules/stat-macros: New module.
111661         * modules/canonicalize, modules/euidaccess, modules/file-type,
111662         * modules/filemode, modules/lchown, modules/makepath,
111663         * modules/rmdir, modules/stat: Depend on new stat-macros module
111664         rather than listing lib/stat-macros.h manually.
111665         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
111667 2005-03-22  Jim Meyering  <jim@meyering.net>
111669         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
111671 2005-03-22  Bruno Haible  <bruno@clisp.org>
111673         * config/srclist.txt: Replace target directory 'config' with
111674         'build-aux'.
111675         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
111676         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
111677         ../build-aux/.
111679 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
111681         * modules/chdir-long (Depends-on): Add mempcpy.
111683         * modules/acl, modules/backupfile, modules/c-strtod,
111684         modules/c-strtold, modules/canon-host, modules/canonicalize,
111685         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
111686         modules/exclude, modules/exitfail, modules/file-type,
111687         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
111688         modules/getdate, modules/getline, modules/getpagesize,
111689         modules/getpass, modules/getugroups, modules/group-member,
111690         modules/hard-locale, modules/hash, modules/human, modules/idcache,
111691         modules/inttostr, modules/long-options, modules/makepath,
111692         modules/md5, modules/memcasecmp, modules/memcoll,
111693         modules/modechange, modules/mountlist, modules/path-concat,
111694         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
111695         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
111696         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
111697         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
111698         modules/strftime, modules/strndup, modules/strverscmp,
111699         modules/timespec, modules/unlocked-io, modules/userspec,
111700         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
111701         modules/yesno:
111702         Remove lib_SOURCES line from Makefile.am section, as this is now
111703         done automatically by the corresponding Autoconf macro.
111705 2005-03-21  Jim Meyering  <jim@meyering.net>
111707         Changes imported from coreutils.
111709         * lib/cycle-check.c: Don't include xalloc.h.
111711         * lib/path-concat.c: Don't include assert.h.
111712         (path_concat): Remove assertion that would have triggered
111713         for ABASE starting with more than one slash.
111714         Reported by Andreas Schwab.
111716         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
111717         properly when ABASE is an absolute file name.
111718         Correct the description of this function.
111719         Include <assert.h>.
111720         Add an assertion and a test driver.
111721         This fixes a bug introduced on 2004-07-02.
111722         Andreas Schwab reported the resulting failure of cp --parents:
111723         http://lists.gnu.org/r/bug-coreutils/2005-01/msg00130.html
111725 2005-03-21  Jim Meyering  <jim@meyering.net>
111727         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
111728         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
111730 2005-03-21  Jim Meyering  <jim@meyering.net>
111731         and  Paul Eggert  <eggert@cs.ucla.edu>
111733         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
111734         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
111735         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
111736         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
111737         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
111738         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
111739         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
111740         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
111741         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
111742         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
111743         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
111744         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
111745         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
111746         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
111747         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
111748         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
111749         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
111750         for these modules.
111752 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
111754         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
111755         (which shouldn't happen), generate nothing instead of returning 0
111756         immediately, so that nstrftime (NULL, ...) doesn't return 0.
111758 2005-03-16  Bruno Haible  <bruno@clisp.org>
111760         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
111761         HAVE_LONGLONG_64BIT.
111763 2005-03-16  Bruno Haible  <bruno@clisp.org>
111765         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
111766         HAVE_LONGLONG_64BIT.
111768 2005-03-16  Bruno Haible  <bruno@clisp.org>
111770         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
111771         HAVE_LONGLONG_64BIT.
111773 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
111775         * lib/strftime.c (my_strftime): Prepend space to format so that we can
111776         reliably distinguish strftime failure from empty output on POSIX
111777         hosts.
111779 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
111781         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
111782         (iconv_string): Don't guess a size-zero buffer, as that might cause
111783         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
111784         result would be 'too large', where 'too large' is (heuristically)
111785         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
111786         overflow concerns.  This will prevent some unwanted malloc failures
111787         when the inputs are very large.
111789 2005-03-15  Karl Berry  <karl@gnu.org>
111791         * config/srclist.txt (config.rpath): from gettext.
111792         * config/config.rpath: update.
111794 2005-03-15  Bruno Haible  <bruno@clisp.org>
111796         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
111797         to 'negate'.
111799         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
111800         variable.
111802         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
111803         results.
111805 2005-03-14  Simon Josefsson  <jas@extundo.com>
111807         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
111808         <fx@gnu.org>.
111810 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
111812         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
111813         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
111814         intprops.h.
111815         * lib/strtol.c: Likewise.
111817 2005-03-14  Jim Meyering  <jim@meyering.net>
111819         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
111820         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
111821         to be nonzero so that we (and caller) can detect the difference
111822         between a valid zero-length expansion and an error return, even
111823         when the underlying strftime fails before writing anything into
111824         that location.
111826 2005-03-14  Bruno Haible  <bruno@clisp.org>
111828         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
111829         Update from GNU gettext 0.14.3.
111831 2005-03-10  Jim Meyering  <jim@meyering.net>
111833         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
111835 2005-03-10  Jim Meyering  <jim@meyering.net>
111837         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
111838         so that this module works on systems without fchdir.
111840 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
111842         Factor int-properties macros into a single file, except for
111843         glibc-related files.
111844         * lib/intprops.h: New file.
111845         * lib/getloadavg.c: Include it instead of limits.h.
111846         (INT_STRLEN_BOUND): Remove.
111847         * lib/human.c: Include intprops.h.
111848         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
111849         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
111850         302/1000.
111851         * lib/inttostr.h: Include intprops.h instead of limits.h.
111852         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
111853         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
111854         for consistency with intprops.h.
111855         (time_t_is_integer, twos_complement_arithmetic): Use them.
111856         * lib/sig2str.h: Include <signal.h>, intprops.h.
111857         (INT_STRLEN_BOUND): Remove.
111858         * lib/strftime.c (TYPE_SIGNED): Remove.
111859         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
111860         * lib/strtol.c: Adjust comments to match intprops.h.
111861         * lib/userspec.c: Include intprops.h.
111862         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
111863         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
111864         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
111865         instead of rolling our own expressions.
111866         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
111868         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
111869         instead of int.
111870         (my_strftime): Do not mishandle years close to INT_MAX, by doing
111871         the right thing even if adding 1900 would overflow.  Similarly
111872         for tm_mon + 1 and tm_yday + 1.
111873         Make %Y always equivalent to %C%y, and similarly for %G and %g.
111874         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
111875         (DO_SIGNED_NUMBER): New macro.
111876         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
111878 2005-03-07  Bruno Haible  <bruno@clisp.org>
111880         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
111882 2005-03-07  Bruno Haible  <bruno@clisp.org>
111884         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
111886 2005-03-04  Derek R. Price  <derek@ximbiot.com>
111888         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
111889         (func_import): Only replace files via --import when they have actually
111890         changed.
111892 2005-03-03  Derek R. Price  <derek@ximbiot.com>
111894         * m4/mmap-anon.m4: New file.
111895         * m4/pagealign_alloc.m4: New file.
111897 2005-03-03  Derek R. Price  <derek@ximbiot.com>
111898             Bruno Haible  <bruno@clisp.org>
111900         * modules/pagealign_alloc: New file.
111901         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
111903 2005-03-03  Derek R. Price  <derek@ximbiot.com>
111904             Bruno Haible  <bruno@clisp.org>
111906         * lib/pagealign_alloc.h: New file.
111907         * lib/pagealign_alloc.c: New file.
111909 2005-03-03  Bruno Haible  <bruno@clisp.org>
111911         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
111912         Use an all-permissive copyright notice, recommended by RMS.
111914 2005-03-02  Bruno Haible  <bruno@clisp.org>
111916         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
111917         of AIX, the replacement has to be done only after <string.h> is
111918         included, therefore not in config.h. stpncpy.h does the replacement,
111919         and stpncpy.c uses it.
111921 2005-03-02  Bruno Haible  <bruno@clisp.org>
111923         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
111924         stpncpy.c uses it.
111926 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
111928         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
111929         The workaround isn't strictly needed for POSIX conformance, and
111930         it's too much of a pain to configure and maintain.  We'll ask
111931         people to fix their kernels instead.
111932         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
111933         (NANOSLEEP_BUG_WORKAROUND): Remove.
111934         (xnanosleep): Remove the workaround.
111936 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
111938         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
111939         Reported by Derek Price.
111940         (Include): Add "timespec.h".
111942         * modules/xnanosleep (Depends-on): Remove gethrxtime.
111944 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
111946         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
111947         to detect nanosleep bug.
111949 2005-03-01  Bruno Haible  <bruno@clisp.org>
111951         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
111953 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
111955         * modules/gethrxtime: New file.
111956         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
111957         (Depends-on): Add gethrxtime.
111958         (configure.ac): Add gl_XNANOSLEEP.
111959         (Makefile.am): Remove lib_SOURCES line.
111961 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
111963         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
111964         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
111966 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
111968         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
111969         * lib/timespec.h (gettime): Return void, since it always
111970         succeeds now.  All uses changed.
111971         * lib/gettime.c (gettime): Likewise.
111972         [HAVE_NANOTIME]: Prefer nanotime.
111973         Assume gettimeofday succeeds, as POSIX requires.
111974         Assime time () succeeds, since other code already does.
111975         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
111976         (timespec_subtract): Remove.
111977         (NANOSLEEP_BUG_WORKAROUND): New constant.
111978         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
111979         things considerably.  Use it only on GNU/Linux hosts, since the
111980         workaround shouldn't be needed elsewhere.
111982 2005-02-24  Bruno Haible  <bruno@clisp.org>
111984         * modules/gettext (Files): Add m4/glibc2.m4.
111986 2005-02-24  Bruno Haible  <bruno@clisp.org>
111988         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
111989         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
111990         * m4/progtest.m4:
111991         Update from GNU gettext 0.14.2.
111992         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
111994 2005-02-24  Bruno Haible  <bruno@clisp.org>
111996         * lib/localcharset.c: Update from GNU gettext 0.14.2.
111997         * lib/config.charset: Update from GNU gettext 0.14.2.
111999 2005-02-24  Bruno Haible  <bruno@clisp.org>
112001         * lib/gettext.h: Update from GNU gettext 0.14.2.
112003 2005-02-23  Simon Josefsson  <jas@extundo.com>
112005         * m4/iconvme.m4: New file.
112007 2005-02-23  Jim Meyering  <jim@meyering.net>
112009         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
112010         change.
112011         Thanks to Bruno Haible for catching it.
112013 2005-02-22  Simon Josefsson  <jas@extundo.com>
112015         * modules/iconvme: New file.
112017         * MODULES.html.sh: Add iconvme.
112019 2005-02-22  Simon Josefsson  <jas@extundo.com>
112021         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
112023 2005-02-22  Simon Josefsson  <jas@extundo.com>
112025         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
112027 2005-02-22  Jim Meyering  <jim@meyering.net>
112029         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
112030         s/ifndef/ifdef/.
112032 2005-02-20  Neil Conway  <neilc@samurai.com>
112034         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
112035         returned by OSX/Darwin if the specified buffer is not large
112036         enough for the hostname.
112038 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
112040         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
112041         pass it to _help, otherwise the latter coredumps trying to
112042         dereference state.root_argp.
112044 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
112046         * modules/chdir-long (Depends-on): Add memrchr.
112047         * modules/memrchr (Files): Add lib/memrchr.h.
112048         (Include): "memrchr.h".
112050 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
112052         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
112054 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
112056         * lib/memrchr.h: New file.
112057         * lib/chdir-long.c: Include it.
112058         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
112059         Don't bother including stddef.h.
112061 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
112063         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
112064         inclusion.
112065         Include <sys/types.h>, for dev_t.
112066         (ME_DUMMY, ME_REMOTE): Move from here....
112067         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
112068         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
112069         Dmitry V. Levin.
112070         Include mountlist.h first, to test the interface.
112072 2005-01-29  Bruno Haible  <bruno@clisp.org>
112074         * lib/progname.c (program_name): Initialize.
112075         Needed when linking statically on MacOS X.
112077 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
112079         Sync from coreutils.
112080         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
112081         (Depends-on): Add c-strtod.
112082         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
112084 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
112086         Sync from coreutils.
112087         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
112089         Remove files that are specific to coreutils.
112090         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
112092 2005-01-28  Bruno Haible  <bruno@clisp.org>
112094         * modules/javacomp: New file.
112095         * MODULES.html.sh (Java): Add javacomp.
112097 2005-01-28  Bruno Haible  <bruno@clisp.org>
112099         * m4/javacomp.m4: New file, from GNU gettext.
112101 2005-01-28  Bruno Haible  <bruno@clisp.org>
112103         * lib/javacomp.sh.in: New file, from GNU gettext.
112104         * lib/javacomp.h: New file, from GNU gettext.
112105         * lib/javacomp.c: New file, from GNU gettext.
112107 2005-01-26  Simon Josefsson  <jas@extundo.com>
112109         * lib/gai_strerror.c: Use GPL in header.
112111 2005-01-26  Bruno Haible  <bruno@clisp.org>
112113         * modules/javaexec: New file.
112114         * MODULES.html.sh (Java): Add javaexec.
112116 2005-01-26  Bruno Haible  <bruno@clisp.org>
112118         * m4/javaexec.m4: New file, from GNU gettext.
112120 2005-01-26  Bruno Haible  <bruno@clisp.org>
112122         * lib/javaexec.sh.in: New file, from GNU gettext.
112123         * lib/javaexec.h: New file, from GNU gettext.
112124         * lib/javaexec.c: New file, from GNU gettext.
112126 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
112128         * modules/lchown (Depends-on): Remove lchown.h
112130 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
112132         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
112133         must be defined if the header file was not found, in order
112134         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
112136 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
112138         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
112139         initializers for struct pentry_state.
112140         (__argp_error): Check return value of __asprintf
112141         (__argp_failure): Translate error message
112143         * lib/argp-parse.c: Removed braces around the expansion of N_()
112145 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
112147         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
112148         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
112149         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
112150         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
112151         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
112152         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
112153         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
112154         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
112155         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
112156         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
112157         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
112158         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
112159         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
112160         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
112161         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
112162         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
112163         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
112164         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
112165         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
112166         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
112167         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
112168         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
112169         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
112170         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
112171         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
112172         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
112173         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
112174         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
112175         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
112176         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
112177         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
112178         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
112179         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
112180         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
112181         xstrtol.m4, xstrtoumax.m4, yesno.m4:
112182         Use an all-permissive copyright notice, recommended by RMS.
112184 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
112186         * modules/chdir-long (Depends-on): Remove mempcpy.
112188 2005-01-21  Jim Meyering  <jim@meyering.net>
112190         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
112191         same value as for Solaris 9.
112193         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
112194         component length.  This included changing the parameter to be
112195         of type `char *' rather than `char const *'.
112196         * lib/chdir-long.h (chdir_long): Update prototype.
112198         * lib/openat.c (fdopendir, fstatat): New functions.
112199         * lib/openat.h: Include headers required for use of DIR and struct
112200         stat.
112201         [AT_SYMLINK_NOFOLLOW]: Define.
112202         (fdopendir, fstatat): Add prototypes.
112204 2005-01-21  Bruno Haible  <bruno@clisp.org>
112206         * modules/classpath: New file.
112207         * MODULES.html.sh (Java): Add classpath.
112209 2005-01-21  Bruno Haible  <bruno@clisp.org>
112211         * lib/classpath.h: New file, from GNU gettext.
112212         * lib/classpath.c: New file, from GNU gettext.
112214 2005-01-20  Simon Josefsson  <jas@extundo.com>
112216         * modules/version-etc-fsf: New file.
112218 2005-01-20  Simon Josefsson  <jas@extundo.com>
112220         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
112221         * lib/version-etc.c: Remove version_etc_copyright.
112222         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
112223         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
112225 2005-01-20  Simon Josefsson  <jas@extundo.com>
112227         * lib/base64.h (isbase64): Add.
112229         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
112230         using a unsigned prototype, don't inline.
112231         (base64_decode): Use it.
112233 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
112235         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
112236         it.
112238 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
112240         * lib/save-cwd.c (save_cwd): Remove code to support the case
112241         where fchdir is missing or flaky.
112243 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
112245         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
112247 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
112249         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
112250         AC_LIBSOURCES now does this.
112251         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
112252         with new ullong_max module.
112254 2005-01-19  Bruno Haible  <bruno@clisp.org>
112256         * modules/sh-quote: New file.
112257         * MODULES.html.sh (Executing programs): Add sh-quote.
112259 2005-01-19  Bruno Haible  <bruno@clisp.org>
112261         * lib/sh-quote.h: New file, from GNU gettext.
112262         * lib/sh-quote.c: New file, from GNU gettext.
112264 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
112266         Merge from coreutils.
112267         * m4/ullong_max.m4: New file.
112268         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
112269         (gl_MACROS): Assume localeconv exists.
112271 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
112273         Merge changes from coreutils, as described below in several
112274         changelogs dated today.
112276         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
112277         (O_DIRECTORY): Remove; not needed here, since "." must be
112278         a directory.  All uses removed.
112279         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
112280         universal on Suns, and we also need to test for IRIX.
112281         Revamp code to use 'if' rather than '#if'.
112282         Avoid unnecessary comparison of cwd->desc to 0.
112284         * lib/utimens.c (futimens): Robustify the previous patch, by checking
112285         for known valid error numbers rather than observed invalid ones.
112287 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
112289         * modules/ullong_max: New file.
112291         * modules/chdir-long, modules/openat: New files.
112292         * modules/save-cwd (Depends-on): Depend on chdir-long.
112293         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
112295 2005-01-18  Jim Meyering  <jim@meyering.net>
112297         Merge from coreutils.
112298         * m4/chdir-long.m4, m4/openat.m4: New files.
112299         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
112300         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
112301         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
112302         is sane and DOES follow symlinks.  Besides, testing 20 different
112303         systems found no broken chown implementations.
112304         Prompted by a change in rsync's copy of this macro.
112305         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
112307         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
112309         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
112310         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
112311         NULL-means-set-to-current-time semantics.
112312         Remove temporary file immediately, rather than waiting
112313         for configure's at-exit trap code to do it.
112315 2005-01-18  Jim Meyering  <jim@meyering.net>
112317         * lib/version-etc.c (version_etc_copyright): Update copyright date.
112319         * lib/utimens.c (futimens): Account for the fact that futimes
112320         can also fail with errno == ENOSYS or errno == ENOENT.
112321         Patch from Dmitry V. Levin.
112323         Change the name of the robust chdir function from chdir to chdir_long.
112324         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
112325         (restore_cwd): Use chdir_long, not chdir.
112326         * lib/chdir-long.c: Renamed from chdir.c.
112327         * lib/chdir-long.h: Renamed from chdir.h.
112328         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
112329         Hurd.
112331 2005-01-18  Bruno Haible  <bruno@clisp.org>
112333         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
112334         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
112335         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
112336         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
112337         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
112338         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
112339         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
112340         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
112341         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
112342         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
112343         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
112344         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
112345         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
112346         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
112347         Use an all-permissive copyright notice, recommended by RMS.
112349 2005-01-18  Bob Proulx  <bob@proulx.com>
112351         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
112352         simplify offsetof() macro construct to avoid compile failure with
112353         native HP-UX 11.0 ANSI C compiler.
112355 2005-01-17  Bruno Haible  <bruno@clisp.org>
112357         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
112358         redundant because stpncpy.m4 takes care of it.
112360 2005-01-17  Bruno Haible  <bruno@clisp.org>
112362         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
112364 2005-01-17  Bruno Haible  <bruno@clisp.org>
112366         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
112367         used.
112369 2005-01-17  Bruno Haible  <bruno@clisp.org>
112371         * lib/fwriteerror.h (fwriteerror): Change specification to include
112372         fclose.
112373         * lib/fwriteerror.c: Include <stdbool.h>.
112374         (fwriteerror): At the end, close the file stream. Record whether
112375         stdout was already closed.
112377 2005-01-17  Bruno Haible  <bruno@clisp.org>
112379         * lib/execute.c (environ): Declare if needed.
112380         * lib/pipe.c (environ): Likewise.
112381         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
112383 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
112385         * modules/argp: Depend on vsnprintf
112387 2005-01-10  Jim Meyering  <jim@meyering.net>
112389         * modules/closeout (Depends-on): Add atexit.
112391 2005-01-06  Bruno Haible  <bruno@clisp.org>
112393         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
112395 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
112397         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
112398         definitions to be after all include files, to avoid collisions.
112399         Problem reported by Bob Proulx.
112401 2005-01-04  Jim Meyering  <jim@meyering.net>
112403         Changes imported from coreutils.
112404         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
112405         as the mkstemp template, use a temporary directory and an
112406         8.3-friendly template to avoid trouble on systems like DJGPP.
112407         Reported by Juan M. Guerrero via Stepan Kasal.
112408         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
112409         close. Remove the temporary directory right away, rather than waiting
112410         for configure's at-exit trap code to do it.
112411         Suggestion from Stepan Kasal.
112413 2005-01-01  Simon Josefsson  <jas@extundo.com>
112415         * gnulib-tool: Print #include directives when --import'ing.
112417 2004-12-28  Simon Josefsson  <jas@extundo.com>
112419         * tests/test-base64.c: Include required header files.  Remove
112420         unused variables.
112422 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
112424         * modules/error (Depends-on): Remove gettext.
112426 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
112428         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
112429         not needed.  This removes a dependency on the gettext module.
112430         [defined _LIBC]: Do not include <libintl.h>; not needed.
112432 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
112434         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
112435         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
112437 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
112439         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
112440         HAVE_DECL_STRTOLD.
112442 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
112444         * modules/getdate (Depends-on): Remove alloca-opt.
112446 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
112448         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
112450 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
112452         * lib/argp-parse.c: Include <stddef.h>.
112453         (alignof, alignto): New macros.
112454         (parser_init): Don't assume that void * is aligned sufficiently
112455         for struct option.
112457         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
112458         need to extend the stack.
112459         (YYINITDEPTH): New macro, so that the initial stack isn't overly
112460         large.
112462 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
112464         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
112466 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
112468         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
112469         (2004-10-24) change.  Apparently this was a false alarm.
112471         * modules/getdate: Depend on alloca-opt, not alloca.
112473 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
112475         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
112476         Remove now-obsolete comment about AIX.
112477         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
112478         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
112479         (YYMAXDEPTH): New macro.
112481 2004-12-18  Simon Josefsson  <jas@extundo.com>
112483         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
112485 2004-12-18  Bruno Haible  <bruno@clisp.org>
112487         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
112489 2004-12-18  Bruno Haible  <bruno@clisp.org>
112491         * lib/fatal-signal.c (fatal_signals): Make non-const.
112492         (init_fatal_signals): New function.
112493         (uninstall_handlers, install_handlers): Ignore signals that were set to
112494         SIG_IGN.
112495         (at_fatal_signal): Call init_fatal_signals.
112496         (init_fatal_signal_set): Likewise. Ignore signals that were set to
112497         SIG_IGN.
112498         Reported by Paul Eggert.
112500 2004-12-18  Bruno Haible  <bruno@clisp.org>
112502         * doc/alloca.texi: New file.
112503         * doc/alloca-opt.texi: New file.
112505 2004-12-17  Jim Meyering  <jim@meyering.net>
112507         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
112508         Otherwise, install-sh could exit with improper exit status when
112509         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
112511 2004-12-16  Simon Josefsson  <jas@extundo.com>
112513         * tests/test-base64.c: Add license.
112515 2004-12-15  Stepan Kasal  <address@hidden>
112517         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
112519 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
112521         * modules/getcwd (Files): Add m4/d-ino.m4.
112522         Suggested by Mark D. Baushke.
112524 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
112526         * lib/getdate.y (textint): New member "negative".
112527         (time_zone_hhmm): New function.
112528         Expect 14 shift-reduce conflicts, not 13.
112529         (o_colon_minutes): New rule.
112530         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
112531         (yylex): Set the "negative" member of signed numbers.
112533 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
112535         * doc/getdate.texi (Time of day items, Time zone items):
112536         Describe new formats +00:00, UTC+00:00.
112538 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
112540         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
112541         spurious "-l"s.  Problem reported by Stepan Kasal.
112543 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
112545         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
112546         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
112548 2004-12-04  Simon Josefsson  <jas@extundo.com>
112550         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
112551         Vandoorselaere <yoann@prelude-ids.org>.
112553 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
112555         Changes imported from coreutils.
112556         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
112557         exist.
112558         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
112560 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
112562         Changes imported from coreutils.
112563         * lib/hard-locale.c: Assume <locale.h> exists.
112564         Include "strdup.h".
112565         (GLIBC_VERSION): New macro.
112566         (hard_locale): Assume setlocale exists.
112567         Rewrite to avoid #ifdef.
112568         Use strdup rather than malloc + strcpy.
112569         * lib/human.c: Assume <locale.h> exists.
112570         (human_readable): Assume localeconv exists.
112572 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
112574         * modules/hard-locale (Depends-on): Add strdup.
112576 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
112578         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
112579         convert T2, not T.  (Imported from libc.)
112581 2004-11-30  Simon Josefsson  <jas@extundo.com>
112583         * modules/restrict (License): Change to LGPL.
112585 2004-11-30  Simon Josefsson  <jas@extundo.com>
112587         * m4/restrict.m4: Add copyright and copying conditions.
112589 2004-11-30  Simon Josefsson  <jas@extundo.com>
112591         * m4/base64.m4: New file.
112593 2004-11-30  Simon Josefsson  <jas@extundo.com>
112595         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
112596         base64.
112598         * tests/test-base64.c: New file.
112600         * modules/base64: New file.
112602 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
112604         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
112605         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
112607         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
112609 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
112611         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
112612         (__getcwd.c): Don't restore errno; glibc doesn't.
112613         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
112614         first, falling back to our code only if its results look suspicious.
112615         Ensure that the resulting buffer is only as large as necessary.
112617         * lib/readutmp.c: Include readutmp.h first.
112618         Include <errno.h>, since readutmp.h no longer does that.
112619         * lib/readutmp.h: Don't include <errno.h>,
112620         <sys/param.h>, <time.h>; not needed to establish interface.
112621         (errno): Remove decl.
112622         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
112623         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
112624         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
112626 2004-11-28  Simon Josefsson  <jas@extundo.com>
112628         * lib/base64.h, base64.c: New file.
112630 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
112632         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
112634 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
112636         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
112637         (Depends-on): Remove pathmax, same.  Add mempcpy.
112638         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
112639         (Makefile.am): Append getcwd.h to lib_SOURCES.
112640         (Include): Add getcwd.h.
112641         (Maintainer): Change from Jim Meyering to "all, glibc",
112642         since getdate now uses intended-for-glibc code.
112643         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
112644         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
112646 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
112648         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
112649         HP's ANSI C compiler.
112650         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
112651         Declaring int functions causes warnings on some modern systems and
112652         shouldn't be needed to compile on ancient ones.
112653         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
112654         defined.
112656         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
112657         with the following changes.
112658         (__set_errno): Parenthesize properly.
112659         Include <stdbool.h>.
112660         (MIN, MAX, MATCHING_INO): New macros.
112661         (__getcwd): Define with prototype, not K&R form.
112662         Use heuristics to allocate default buffer on stack if possible.
112663         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
112664         behavior, and to avoid the PATH_MAX limit when computing
112665         ../../../../...
112666         Use MATCHING_INO to compare inode number to file.
112667         Check for arithmetic overflow in size calculations.
112668         Fix bug in reallocation of dot array that caused getcwd to fail
112669         on directories nested deeper than 75.
112670         Be more careful about saving errno on error.
112671         Do not use realloc; use only free+malloc, as this is a bit
112672         more flexible and avoids a needless copy operation.
112673         Do not inspect st_dev and st_ino for symbolic links; POSIX
112674         doesn't specify the latter.
112675         Check for closedir errors.
112676         Avoid needless casts.
112677         Use "#ifdef weak_alias" around weak_alias, to be like other
112678         glibc code.
112679         The following changes to getcwd.c have effect only when used in
112680         gnulib; they have no effect inside glibc proper.
112681         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
112682         as alloca isn't used.
112683         (alloca, __alloca): Likewise.
112684         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
112685         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
112686         unconditionally, as gnulib assumes C89 or better.
112687         Do not include <sys/param.h>.
112688         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
112689         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
112690         better.
112691         (NULL) [!defined NULL]: Remove; we assume C89 or better.
112692         Include <dirent.h> in a way that is compatible with modern Autoconf.
112693         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
112694         New macros, if not already defined.
112695         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
112696         Use "_LIBC", not "defined _LIBC", for consistency.
112697         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
112698         a mempcpy module.
112699         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
112700         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
112701         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
112702         credit only to Jim Meyering and adjust the copyright dates.
112703         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
112704         <stdlib.h>, <unistd.h>, "pathmax.h".
112705         Instead, include "xgetcwd.h" (first) and "getcwd.h".
112706         (INITIAL_BUFFER_SIZE): Remove.
112707         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
112709 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
112711         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
112712         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
112713         Use the _ONCE methods, for efficiency.
112714         Check for fcntl.h.  In test program, include <errno.h>
112715         and <fcntl.h> if available.  Remove old K&R cruft from
112716         test program.  Check for common errors in GNU/Linux,
112717         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
112718         don't do AC_LIBOBJ, as that's getcwd.m4's job.
112719         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
112720         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
112721         name accordingly.
112722         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
112723         accommodate new getcwd.c.
112724         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
112725         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
112726         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
112727         that's all we need now.
112729 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
112731         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
112732         argp-parse.c depends on getopt internals, that means we should
112733         always use our getopt, to be on the safe side.
112734         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
112735         order not to spoil the result of an eventual previous invocation
112736         of gl_GETOPT_SUBSTITUTE.
112738 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
112740         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
112741         redefinition warnings. To avoid them, include the defines
112742         in `#if !defined __need_getopt ... #endif'. The only place
112743         where __getopt_argv_const is used is in definitions
112744         of getopt_long and getopt_long_only below, which are as well
112745         protected by `#ifndef __need_getopt'.
112746         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
112747         __need_getopt after including <stdio.h> and <unistd.h> These
112748         headers might have defined it.
112750 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
112752         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
112754 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
112756         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
112757         (futimens): New function, which uses futimes if available.
112758         (futimens, utimens): Support timespec==NULL, with same semantics
112759         as utime and utimens.
112760         * lib/utimens.h (futimens): New decl.
112762 2004-11-23  Jim Meyering  <jim@meyering.net>
112764         * lib/getopt_.h: Remove trailing blanks.
112766 2004-11-23  Jim Meyering  <jim@meyering.net>
112768         * lib/__fpending.c: Add comment.
112770 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
112772         * modules/canonicalize (Depends-on): Add xreadlink.
112773         Problem reported by James Youngman.
112775 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
112777         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
112778         New macros.
112779         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
112780         optopt): Use them instead of invoking ## directly; otherwise, the
112781         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
112783 2004-11-19  Bruno Haible  <bruno@clisp.org>
112785         * lib/strtok_r.c: Move comments from here...
112786         * lib/strtok_r.h: ... to here.
112788 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
112790         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
112791         implementations that mishandle size_t overflow.
112793 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
112795         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
112796         might fail.  Problem reported by Yoann Vandoorselaere.
112797         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
112798         implementations that mishandle size_t overflow.
112800 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
112802         * modules/canon-host (Depends-on): Add strdup.
112804 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
112806         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
112808 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
112810         * lib/canon-host.c: Include "strdup.h".
112811         (canon_host): Use getaddrinfo if available, so that IPv6 works.
112812         Use strdup instead of malloc/strcpy to duplicate strings.
112814         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
112815         (human_space_before_unit): New constant.
112816         * lib/human.c (human_readable): Support it.
112818         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
112819         (xgetcwd): Set errno correctly when failing.
112820         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
112821         the failure is actually due to a PATH_MAX problem.
112823         Further getopt changes to make it more likely that glibc will
112824         buy the changes back.
112825         * lib/getopt.c (POSIXLY_CORRECT): New constant.
112826         (getopt): Use it, so to preserve glibc semantic
112827         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
112828         when compiling for libc.
112829         * lib/getopt_.h (__getopt_argv_const): Bring it back.
112830         (getopt_long, getopt_long_only): Use it.
112832         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
112833         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
112834         (getopt): Argv is now char * const *, as per standard.
112835         (_getopt_internal_r, _getopt_internal): Argv is now char **,
112836         not char *__getopt_argv_const *.
112837         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
112838         _getopt_long_only_r): Likewise.
112839         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
112840         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
112841         _getopt_long_r, _getopt_long_only_r): Likewise.
112842         * lib/getopt_.h (__getopt_argv_const): Remove.
112843         (getopt): Argv is now char * const *, as per standard.
112845         * lib/getdate.y (tORDINAL): New token.
112846         (day, relunit): Allow it for relative times.
112847         (relative_time_table): Use tORDINAL for ordinals.
112849 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
112851         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
112852         Document that "second" isn't allowed as an ordinal number.
112854 2004-11-16  Jim Meyering  <jim@meyering.net>
112856         * modules/closeout (Depends-on): Add fpending.
112858 2004-11-15  Jim Meyering  <jim@meyering.net>
112860         * lib/closeout.c: Include "__fpending.h" once again.
112861         Include <stdbool.h>.
112862         (close_stdout): Don't fail just because stdout was closed initially,
112863         since some programs don't write to stdout in the normal course of
112864         operation (other than --version and --help), and we don't want this
112865         function to make e.g. `touch file >&-' fail.
112866         But do fail if it was closed and someone has tried to write to it.
112867         E.g., `printf foo >&-' must fail.
112869 2004-11-13  Jim Meyering  <jim@meyering.net>
112871         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
112873 2004-11-12  Simon Josefsson  <jas@extundo.com>
112875         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
112876         small doc fix is still pending.
112878 2004-11-11  Simon Josefsson  <jas@extundo.com>
112880         * modules/strtok_r: New file.
112882         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
112883         strtok_r.
112885 2004-11-11  Simon Josefsson  <jas@extundo.com>
112887         * m4/strtok_r.m4: New file.
112889         * m4/getopt.m4: Replace opterr.
112891 2004-11-11  Simon Josefsson  <jas@extundo.com>
112893         * lib/strtok_r.h, strtok_r.c: New file.
112895 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
112897         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
112898         of replacing opterr, getopt, etc.  This should handle the
112899         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
112901 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
112903         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
112904         we can stop lying to compilers about the constness of argv when we
112905         are compiled outside glibc.
112906         (getopt, getopt_long, getopt_long_only): Use it.
112907         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
112908         _getopt_internal, getopt): Likewise.
112909         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
112910         _getopt_long_only_r): Likewise.
112911         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
112912         _getopt_long_r, _getopt_long_only_r): Likewise.
112914         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
112915         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
112916         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
112917         the other external symbols.
112918         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
112919         declaration, since the above renaming now works around collisions.
112921 2004-11-11  Jim Meyering  <jim@meyering.net>
112923         * lib/linebreak.c: Remove trailing blanks.
112924         * lib/alloca_.h: Likewise.
112925         * lib/acosl.c: Likewise.
112926         * lib/euidaccess.c: Likewise.
112927         * lib/allocsa.h: Likewise.
112929 2004-11-10  Simon Josefsson  <jas@extundo.com>
112931         * m4/getaddrinfo.m4: New file.
112933 2004-11-10  Simon Josefsson  <jas@extundo.com>
112935         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
112937 2004-11-10  Simon Josefsson  <jas@extundo.com>
112939         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
112940         getaddrinfo.
112942         * modules/getaddrinfo: New file.
112944 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
112946         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
112948 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
112950         * lib/mktime.c (SHR): New macro, which is a portable
112951         substitute for >> that should work even on Crays.
112952         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
112953         Problem reported by Mark D. Baushke in
112954         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00071.html>.
112955         * lib/getdate.y (SHR): Likewise.
112956         (tm_diff): Use it.
112957         * lib/strftime.c (SHR): Likewise.
112958         (tm_diff): Use it.
112959         * lib/quotearg.c (struct quoting_options): Use unsigned int for
112960         quote_these_too, so that right shifts are well defined.  All uses
112961         changed.
112963 2004-11-10  Jim Meyering  <jim@meyering.net>
112965         Ensure that no close failure goes unreported.
112966         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
112967         return early when it seems there's nothing to flush.
112968         Don't include __fpending.h.
112970 2004-11-10  Jim Meyering  <jim@meyering.net>
112972         * modules/closeout (Depends-on): Remove fpending.
112974 2004-11-10  Jim Meyering  <jim@meyering.net>
112976         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
112978 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
112980         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
112981         gl_FUNC_STRFTIME.
112982         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
112983         and AC_REQUIRE when possible, to avoid duplicate checks.
112984         Check for <wchar.h>.
112986 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
112988         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
112990 2004-11-09  Bruno Haible  <bruno@clisp.org>
112992         * m4/sockpfaf.m4: New file.
112994 2004-11-05  Bruno Haible  <bruno@clisp.org>
112996         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
112997         Reported by Mark D. Baushke <mdb@cvshome.org>.
112999 2004-11-04  Bruno Haible  <bruno@clisp.org>
113001         2004-09-11  Bruno Haible  <bruno@clisp.org>
113002                 * allocsa.valgrind: New file.
113003         2004-02-06  Bruno Haible  <bruno@clisp.org>
113004                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
113005                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
113006                 Reported by Christopher Seip <chris.seip@hp.com>.
113008 2004-11-04  Bruno Haible  <bruno@clisp.org>
113010         * modules/allocsa (Files): Add lib/allocsa.valgrind.
113011         (Makefile.am): Distribute it.
113013 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
113015         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
113016         with errno == ERANGE if the buffer is too small.
113017         Problem reported by Mark D. Baushke.
113019 2004-11-03  Albert Chin  <china@thewrittenword.com>
113020             Paul Eggert  <eggert@cs.ucla.edu>
113022         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
113023         equivalent, substitute $ac_type for equivalent type rather than
113024         blindly using uint32_t *always* which won't work if uint32_t is not
113025         available.  Define _UINT32_T to work around typedef of uint32_t if
113026         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
113027         2.5.1.
113029 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
113031         * m4/jm-macros.m4: Sync from coreutils.
113032         (gl_MACROS): Check for mbrlen, for pathchk.
113033         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
113035 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
113037         * lib/xreadlink.c (MAXSIZE): New macro.
113038         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
113039         size does not exceed MAXSIZE.  Avoid cast.
113040         As suggested by Mark D. Baushke in
113041         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00009.html>,
113042         if readlink fails with buffer size just under MAXSIZE, try again
113043         with MAXSIZE.
113045 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
113047         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
113049 2004-11-02  Derek R. Price  <derek@ximbiot.com>
113050         and  Paul Eggert  <eggert@cs.ucla.edu>
113052         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
113053         (get_date): Overparenthesize to avoid GCC warning.
113055 2004-11-02  Bruno Haible  <bruno@clisp.org>
113057         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
113058         returns void.
113060 2004-11-02  Bruno Haible  <bruno@clisp.org>
113062         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
113063         function returns void.
113065 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
113067         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
113068         fflush_unlocked, flockfile, funlockfile, funlockfile,
113069         fputs_unlocked, putc_unlocked.
113071 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
113073         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
113074         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
113075         already declared.
113077 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
113079         * modules/getdate (Files): Add doc/getdate.texi.
113080         (Depends-on): Add setenv, xalloc.
113082 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
113084         * lib/getdate.y: Add support for TZ="foo" within a date string.
113085         Fix some bugs near time_t boundaries.  Reject dates with
113086         out-of-range components, e.g., "Sept 31".
113087         Include <stdlib.h>, "setenv.h", "xalloc.h".
113088         (ISDIGIT_LOCALE): Remove; unused.
113089         Note that the TZ and time functions used here are not reentrant.
113090         (mktime_ok, get_tz): New functions.
113091         (TZBUFSIZE): New constant.
113092         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
113093         This requires that we sometimes generate our own TZ="XXX..." setting.
113095 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
113097         * doc/getdate.texi: New file, from coreutils with modifications for
113098         the new TZ parsing.
113100 2004-10-27  Derek R. Price  <derek@ximbiot.com>
113102         * lib/mktime.c (not_equal_tm): Remove redundant check.
113104 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
113106         * modules/regex (lib_SOURCES): Add regex.c.
113107         Reported by James Youngman in
113108         <http://lists.gnu.org/r/bug-gnulib/2004-10/msg00199.html>.
113110 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
113112         * lib/getdate.y: Use Bison 1.875 features, and some minor
113113         code cleanups.  This change does not affect semantics.
113114         Don't include <stdlib.h>; no longer needed.
113115         Don't include unlocked-io.h; only the "#if TEST" code uses
113116         stdio, and performance isn't crucial there.
113117         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
113118         Bison 1.875 features as described below.
113119         All uses of "PC." replaced by "pc->".
113120         (YYSTYPE): Add a forward declaration.
113121         (yylex, yyerror): Use full prototypes in forward decls.
113122         Use "%pure-parser" rather than obsolescent "%pure_parser".
113123         Use %parse-param and %lex-param instead of obsolescent
113124         YYPARSE_PARAM and YYLEX_PARAM.
113125         (meridian_table, month_and_day_table, time_units_table,
113126         relative_time_table, time_zone_table, military_table,
113127         lookup_zone, lookup_word, get_date):
113128         Use NULL instead of 0 where appropriate.
113129         (to_hour): Avoid abort (), to avoid a dependency on
113130         stdlib.h.
113131         (yyerror, yylex): Now accepts parser_control * arg.
113132         (main) [TEST]: Use '\0' rather than 0 for char.
113134 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
113136         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
113138 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
113140         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
113141         It's now the caller's responsibility to handle the case where
113142         !HAVE_GETPAGESIZE && !defined getpagesize.
113144         * lib/mktime.c (leapyear): Arg is long int, not int.
113146 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
113148         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
113150 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
113152         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
113153         missing.  Problem reported by James Youngman.
113155 2004-10-16  Simon Josefsson  <jas@extundo.com>
113157         * gnulib-tool: Fix comments.  Fix parse problem.
113158         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
113160 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
113162         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
113163         implementation of getopt_long.  Problem reported by Alexander Taler in:
113164         http://lists.gnu.org/r/bug-gnulib/2004-10/msg00103.html
113166 2004-10-15  Bruno Haible  <bruno@clisp.org>
113168         * gnulib-tool: Untabify. Initialize supplied_libname.
113169         (func_usage): More homogenous output.
113170         (func_modules_transitive_closure, func_modules_to_filelist,
113171         func_emit_lib_Makefile_am): New functions.
113172         (func_import): New function, extracted from big case statement. Use
113173         func_get_license, func_modules_transitive_closure,
113174         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
113175         opt_lgpl. Don't use test -a, as it's not portable.
113176         (func_create_testdir): Use func_modules_transitive_closure,
113177         func_modules_to_filelist, func_emit_lib_Makefile_am.
113179 2004-10-15  Bruno Haible  <bruno@clisp.org>
113181         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
113183 2004-10-15  Bruno Haible  <bruno@clisp.org>
113185         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
113186         the portions belonging to each module.
113187         Suggested by Derek Robert Price <derek@ximbiot.com>.
113189 2004-10-12  Simon Josefsson  <jas@extundo.com>
113191         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
113192         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
113193         to real functions.
113195 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
113197         * modules/vsnprintf: New file.
113199 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
113201         * m4/vsnprintf.m4: New file.
113203 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
113205         * lib/vsnprintf.h: New file.
113206         * lib/vsnprintf.c: New file.
113208 2004-10-11  Bruno Haible  <bruno@clisp.org>
113210         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
113211         vsnprintf.
113213 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
113215         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
113217 2004-10-07  Bruno Haible  <bruno@clisp.org>
113219         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
113220         fits into the provided buffer.
113222 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
113224         * lib/diacrit.c, diacrit.h: Add GPL notice.
113226         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
113227         notice.
113228         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
113229         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
113230         This avoids a potential constant-folding bug.
113232 2004-10-05  Bruno Haible  <bruno@clisp.org>
113234         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
113235         for the declaration of strsep.
113237 2004-10-05  Bruno Haible  <bruno@clisp.org>
113239         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
113241 2004-10-04  Simon Josefsson  <jas@extundo.com>
113243         * modules/memmem: New file.
113244         * tests/test-memmem.c: New file.
113245         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
113247 2004-10-04  Simon Josefsson  <jas@extundo.com>
113249         * m4/memmem.m4: New file.
113251 2004-10-04  Simon Josefsson  <jas@extundo.com>
113253         * lib/memmem.h: New file.
113254         * lib/memmem.c: New file, taken from glibc.
113256 2004-10-04  Simon Josefsson  <jas@extundo.com>
113258         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
113259         '#ifdef USE_UNLOCKED_IO'.
113261 2004-10-04  Simon Josefsson  <jas@extundo.com>
113263         * config/srclist.txt: Add memmem from glibc.
113265 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
113267         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
113269         * modules/argmatch, modules/argp, modules/closeout, modules/error,
113270         modules/exclude, modules/getdate, modules/getline,
113271         modules/getndelim2, modules/getpass, modules/getpass-gnu,
113272         modules/getusershell, modules/linebuffer, modules/md5,
113273         modules/mountlist, modules/posixtm, modules/readtokens,
113274         modules/readutmp, modules/regex, modules/sha1,
113275         modules/version-etc, modules/yesno:
113276         Remove dependency on unlocked-io.
113278 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
113280         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
113282         * m4/unlocked-io.m4: Add copyright notice.
113283         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
113285 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
113287         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
113288         * lib/xmalloc.c (xmemdup): Likewise.
113289         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
113290         XFREE): Remove these long-obsolescent macros.
113291         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
113292         * lib/xstrdup.c: Remove.
113294         * lib/regex.c (re_comp): Cast gettext return value to char *,
113295         Problem reported by Martin Neitzel via Mark D. Baushke.
113297 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
113299         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
113300         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
113301         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
113302         regex.c, sha1.c, version-etc.c, yesno.c:
113303         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
113304         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
113305         the includer's responsibility.
113307         Sync from coreutils.
113309         * lib/modechange.c (mode_compile): Don't decrement a pointer that
113310         points to the start of a string, as the C Standard says the
113311         resulting behavior is undefined.
113313         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
113314         simple -> simple_backups, numbered_existing ->
113315         numbered_existing_backups, numbered -> numbered_backups
113316         to avoid shadowing problems.  All uses changed.
113317         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
113318         * lib/backupfile.c (check_extension, numbered_backup):
113319         Rename locals to avoid shadowing 'basename'.
113320         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
113321         once.
113323         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
113324         * lib/.cvsignore: Add getopt.h.
113326 2004-10-04  Bruno Haible  <bruno@clisp.org>
113328         * modules/README: New file.
113329         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
113330         not a module.
113332 2004-10-02  Jim Meyering  <jim@meyering.net>
113334         * lib/dirfd.h, getpagesize.h: Add copyright notice.
113336 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
113338         * modules/strsep: New file.
113340 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
113342         * m4/strsep.m4: New file.
113344 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
113346         * lib/strsep.h: New file.
113347         * lib/strsep.c: New file.
113349 2004-10-01  Simon Josefsson  <jas@extundo.com>
113351         * lib/snprintf.c (snprintf): Handle size==0.
113353 2004-10-01  Simon Josefsson  <jas@extundo.com>
113354             Bruno Haible  <bruno@clisp.org>
113356         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
113357         (snprintf): Declare 'args'.
113359 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
113361         * lib/snprintf.c: Remove comments as to why each header is needed.
113363 2004-10-01  Bruno Haible  <bruno@clisp.org>
113365         * MODULES.html.sh: Add strsep.
113367 2004-09-30  Simon Josefsson  <jas@extundo.com>
113369         * modules/snprintf: New file.
113371 2004-09-30  Simon Josefsson  <jas@extundo.com>
113373         * m4/snprintf.m4: New file.
113375 2004-09-30  Simon Josefsson  <jas@extundo.com>
113377         * lib/snprintf.h, lib/snprintf.c: New files.
113379 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
113381         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
113382         (hol_entry_help): Never translate an empty string.
113383         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
113384         * lib/argp.h (OPTION_NO_TRANS): New option.
113386 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
113388         * modules/argp (Maintainer): Replace Simon Josefsson
113389         by Sergey Poznyakoff.
113391 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
113393         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
113394         changes merged back into glibc.
113396 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
113398         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
113400 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
113402         * lib/xvasprintf.c: Include xalloc.h.
113403         (xvasprintf): Use xalloc_die, not xmalloc_die.
113405 2004-09-29  Bruno Haible  <bruno@clisp.org>
113407         * modules/alloca-opt: New file, derived from modules/alloca.
113408         * modules/allocsa: Depend on alloca-opt instead of alloca.
113409         * modules/setenv: Likewise.
113410         * modules/vasnprintf: Likewise.
113411         * MODULES.html.sh: Add alloca-opt.
113413 2004-09-28  Simon Josefsson  <jas@extundo.com>
113415         * gnulib-tool: New parameter --lgpl, to asseert that modules are
113416         LGPL, and to replace license template from GPL to LGPL.
113418 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
113420         * modules/dummy: Change license to LGPL.
113422 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
113424         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
113426 2004-09-24  Simon Josefsson  <jas@extundo.com>
113428         * modules/minmax (License): Change from GPL to LGPL.
113430 2004-09-23  Simon Josefsson  <jas@extundo.com>
113432         * gnulib-tool (--import): Typo.
113434 2004-09-23  Simon Josefsson  <jas@extundo.com>
113436         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
113438 2004-09-22  Bruno Haible  <bruno@clisp.org>
113440         * modules/*: Add 'License' field.
113441         * gnulib-tool: Accept --extract-license option.
113442         (func_get_license): New function.
113444 2004-09-21  Bruno Haible  <bruno@clisp.org>
113446         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
113447         Reported by Simon Josefsson.
113449 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
113451         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
113452         gl_AC_TYPE_LONG_LONG.
113454 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
113456         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
113458 2004-09-18  Simon Josefsson  <jas@extundo.com>
113459         and  Paul Eggert  <eggert@cs.ucla.edu>
113461         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
113462         calls with autoreconf.  Define GL_LIB.
113464 2004-09-14  Karl Berry  <karl@gnu.org>
113466         * config/srclist.txt: unsync setenv.c, sigh.
113468 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
113470         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
113471         Problem reported by Bruno Haible in:
113472         http://lists.gnu.org/r/bug-tar/2004-09/msg00023.html
113474 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
113476         * config/srclist.txt: Comment out argp-pvh.c.
113478 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
113480         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
113481         in case some system header has #define'd it.  Problem reported by
113482         Soeren D. Schulze in
113483         <http://lists.gnu.org/r/bug-gnulib/2004-09/msg00017.html>.
113485 2004-09-09  Karl Berry  <karl@gnu.org>
113487         * regex.[ch]: delete from the root.  These were supposed to be
113488                 synced with emacs cvs, but this has not happened for about
113489                 a year, and anyway nothing else uses emacs regex.[ch].
113490                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
113491                 lib/regex[.ch] is untouched.
113493 2004-09-09  Bruno Haible  <bruno@clisp.org>
113495         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
113497 2004-09-09  Bruno Haible  <bruno@clisp.org>
113499         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
113500         modifications.
113501         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
113503 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
113505         * modules/xvasprintf: New file.
113506         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
113508 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
113510         * lib/xvasprintf.h: New file.
113511         * lib/xvasprintf.c: New file.
113512         * lib/xasprintf.c: New file.
113514 2004-09-08  Bruno Haible  <bruno@clisp.org>
113516         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
113518 2004-09-08  Bruno Haible  <bruno@clisp.org>
113520         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
113521         length is > INT_MAX.
113522         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
113523         more.
113525 2004-09-08  Bruno Haible  <bruno@clisp.org>
113527         * lib/stdint_.h: New file, taken from GNU clisp.
113529 2004-09-08  Bruno Haible  <bruno@clisp.org>
113530             Oskar Liljeblad  <oskar@osk.mine.nu>
113532         * modules/stdint: New file.
113533         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
113535 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
113537         Import from coreutils.
113538         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
113539         strings on unbounded length.  alloca's performance benefits aren't
113540         that important here.
113541         (V_STRDUP): Remove.
113542         (parse_with_separator): New function, with most of the internals
113543         of the old parse_user_spec.  Allow user to omit both user and group,
113544         for compatibility with FreeBSD.
113545         Clone only the user name, not the entire spec.
113546         Do not set *uid, *gid unless entirely successful.
113547         Avoid memory leak in some failing cases.
113548         Fix regression for USER.GROUP reported by Dmitry V. Levin in
113549         <http://lists.gnu.org/r/bug-coreutils/2004-08/msg00102.html>
113550         (parse_user_spec): Rewrite to use parse_with_separator.
113552 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
113554         * modules/userspec: Don't depend on alloca.
113556 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
113558         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
113560 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
113562         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
113563         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
113564         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
113566 2004-08-16  Simon Josefsson  <jas@extundo.com>
113568         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
113569         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
113570         Add --dry-run for --import.
113571         Let user provided command line parameters override configure.ac
113572         settings.
113574 2004-08-12  Simon Josefsson  <jas@extundo.com>
113576         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
113577         as discussed with Paul Eggert in threads rooted at
113578         <http://lists.gnu.org/r/bug-gnulib/2004-06/msg00039.html>
113579         and
113580         <http://lists.gnu.org/r/bug-gnulib/2004-07/msg00001.html>.
113581         Before, the test was empty, and relied on ELIDE_CODE in source
113582         code.)
113583         (gl_PREREQ_GETOPT): New macro.
113584         (gl_GETOPT): Use them.
113586 2004-08-12  Simon Josefsson  <jas@extundo.com>
113588         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
113589         * lib/getopt_.h: Renamed from getopt.h.
113591 2004-08-12  Simon Josefsson  <jas@extundo.com>
113593         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
113594         Change default library name from libfoo to libgnu.
113595         Now, if you have a configure.ac that says:
113596                 gl_SOURCE_BASE(gl)
113597                 gl_M4_BASE(gl/m4)
113598                 gl_MODULES(error getopt etcetera)
113599                 gl_INIT
113600         you can import all you need by running:
113601                 ../gnulib/gnulib-tool --import
113603         * modules/getopt (Files): Rename getopt.h to getopt_.h.
113604         (Makefile.am): Rewrite, use logic from argz.
113605         (Include): Use <getopt.h> instead of "getopt.h".
113607 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
113609         * modules/argp (Files): Add m4/unlocked-io.m4.
113610         (Depends-on): Add extensions.
113612 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
113614         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
113615         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
113616         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
113617         Check for program_invocation_name, program_invocation_short_name,
113618         flockfile, funlockfile, features.h, _getopt_long_only_r.
113620 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
113622         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
113623         its complicated substitute.
113624         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
113625         and program_invocation_name.
113626         (__argp_basename) [!_LIBC]: Remove; the only use was
113627         replaced by its body.
113628         (__argp_short_program_name): Change condition from
113629         !defined __argp_short_program_name to
113630         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
113631         to match argp-namefrob.h.
113632         (__argp_failure): Don't assume strerror_r returns char *.
113633         * lib/argp-parse.c (N_): Define unconditionally.
113634         (argp_default_options): Fill out initializers with 0 to avoid
113635         gcc warnings.
113637 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
113639         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
113640         getopt1.c.
113642 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
113644         Merge from coreutils.
113646         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
113648         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
113649         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
113651 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
113653         Merge from coreutils.
113655         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
113656         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
113657         for Reliant Unix 5.43.
113659         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
113660         (union fooround): Use uintmax_t, not long int.
113661         The rest is a merge from libc:
113662         [defined _LIBC]: Include <shlib-compat.h>.
113663         (_obstack) [defined _LIBC]: Remove after 2.3.4.
113665         * lib/settime.c (settime): Recode to avoid warning with
113666         Sun Forte C 6U2.
113668         * lib/strverscmp.c: Convert to UTF-8.
113670 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
113672         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
113673         m4/uintmax_t.m4.
113675 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
113677         * modules/xalloc-die: New file.
113678         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
113680         * modules/md5 (Files): Add m4/uint32_t.m4.
113681         * modules/sha1: Renamed from modules/sha.
113682         (Files):
113683         Rename lib/sha.h to lib/sha1.h.
113684         Rename lib/sha.c to lib/sha1.c.
113685         Rename m4/sha.m4 to m4/sha1.m4.
113686         (lib_SOURCES): Likewise.
113687         (configure.ac): Rename gl_SHA to gl_SHA1.
113688         (Include): sha.h -> sha1.h.
113690 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
113692         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
113693         * m4/sha1.m4: Renamed from sha.m4.
113694         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
113696 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
113698         * lib/obstack.h (obstack_empty_p):
113699         Don't assume that chunk->contents is suitably aligned.
113700         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
113701         Likewise. Problem reported by Benno in
113702         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
113704         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
113705         readable.  This could be improved further but it'd take some work.
113707 2004-08-08  Simon Josefsson  <jas@extundo.com>
113709         * modules/xgethostname (Depends-on): Remove exit and error (not
113710         used).
113712         * modules/getpass-gnu: Add getpass.h.
113713         (Depends-on): Add stdbool.
113714         * modules/getpass: Add getpass.h.
113716 2004-08-08  Simon Josefsson  <jas@extundo.com>
113718         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
113719         Check getpass declaration.
113721 2004-08-08  Simon Josefsson  <jas@extundo.com>
113723         * lib/xgethostname.c: Don't include error.h (not used).
113725         * lib/getpass.h: Add.
113726         * lib/getpass.c: Include getpass.h first.
113728 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
113730         * lib/xalloc-die.c: New file.
113731         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
113732         All uses removed.
113733         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
113734         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
113735         xalloc-die.c.
113736         (_, N_, xalloc_die): Move to xalloc-die.c.
113737         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
113738         so that we needn't mess with xalloc_msg_memory_exhausted.
113740         * lib/sha1.h: Renamed from sha.h.
113741         (SHA1_H): Renamed from _SHA_H.
113742         (sha1_ctx): Renamed from sha_ctx.
113743         (sha1_init_ctx): Renamed from sha_init_ctx.
113744         (sha1_process_block): Renamed from sha_process_block.
113745         (sha1_process_bytes): Renamed from sha_process_bytes.
113746         (sha1_finish_ctx): Renamed from sha_finish_ctx.
113747         (sha1_read_ctx): Renamed from sha_read_ctx.
113748         (sha1_stream): Renamed from sha_stream.
113749         (sha1_buffer): Renamed from sha_buffer.
113750         * lib/sha1.c: Likewise; renamed from sha.c.
113751         Do not include <sys/types.h>.
113752         Include <stddef.h> rather than <stdlib.h>.
113754 2004-08-08  Bruno Haible  <bruno@clisp.org>
113756         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
113757         FILESYSTEM_PREFIX_LEN.
113758         * lib/progreloc.c: Likewise.
113759         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
113761 2004-08-06  Simon Josefsson  <jas@extundo.com>
113763         * modules/progname (Depends-on): Don't depend on stdbool.
113765 2004-08-06  Simon Josefsson  <jas@extundo.com>
113767         * modules/getsubopt: New file.
113768         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
113769         getsubopt.
113771 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
113773         More merge from coreutils.
113775         * m4/utimens.m4, m4/utimecmp.m4: New files.
113776         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
113777         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
113778         prereq.m4, sha.m4: Import changes from coreutils.
113780 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
113782         More merge from coreutils.
113783         * modules/raise, modules/readtokens0, modules/utimens:
113784         * modules/utimecmp, module/xnanosleep: New files.
113785         * modules/strftime: Add lib/strftime.h.
113786         Change include from <time.h> to "strftime.h".
113787         * modules/yesno: Add lib/yesno.h.
113788         * modules/backupfile: Remove lib/addext.c.
113789         * modules/euidaccess: Add stat-macros.h.
113790         * modules/canonicalize, modules/euidaccess,
113791         modules/filemode, modules/lchown, modules/makepath,
113792         modules/rmdir, modules/stat: Likewise.
113794 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
113796         Merge from tar.
113797         * lib/argp-help.c (make_hol, hol_append): Don't assume that
113798         SIZE_MAX is a valid preprocessor constant.
113799         (__argp_basename): Change from "#ifndef _LIBC"
113800         to "#ifndef __argp_short_program_name", so that
113801         we don't compile these functions for tar.
113803         More merges from coreutils.
113804         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
113805         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
113806         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
113807         * lib/addext.c: Remove; no longer needed.
113808         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
113809         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
113810         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
113811         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
113812         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
113813         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
113814         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
113815         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
113816         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
113817         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
113818         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
113819         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
113820         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
113821         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
113822         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
113823         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
113824         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
113825         Import changes from coreutils.
113827 2004-08-05  Simon Josefsson  <jas@extundo.com>
113829         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
113831 2004-08-05  Simon Josefsson  <jas@extundo.com>
113833         * m4/getsubopt.m4: New file.
113835 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
113837         Merge from coreutils.
113839         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
113840         * m4/getcwd-path-max.m4: New files.
113842         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
113843         FILESYSTEM_PREFIX_LEN ->
113844         FILE_SYSTEM_PREFIX_LEN.
113845         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
113846         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
113847         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
113848         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
113850         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
113851         prerequisite modules now handle the DOS stuff.
113852         Don't check for unistd.h.
113854 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
113856         Merge from coreutils.
113858         * lib/.gdb-history: Remove; this doesn't belong here.
113860         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
113861         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
113862         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
113863         * lib/getcwd.c: New files.
113865         * lib/dirname.h: Include <stdbool.h>.
113866         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
113867         for consistency with POSIX terminology.  All uses changed.
113868         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
113869         (strip_trailing_slashes): Use bool for booleans.
113870         * lib/stripslash.c (strip_trailing_slashes): Likewise.
113872         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
113873         sometimes returns a positive errno value even when it succeeds.
113874         (print_errno_message) [!LIBC]: Fall back on strerror if
113875         __strerror_r fails.
113877         * lib/path-concat.c (mempcpy): Don't define if a system header defines
113878         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
113879         (longest_relative_suffix): New function.
113880         (path_concat): Use it.  Assume first argument is not NULL.
113881         Port to DOS.  Omit redundant separators.
113882         Report an error instead of returning NULL.
113883         Use mempcpy instead of memcpy.
113884         (xpath_concat): Remove: not declared or used.
113886         * lib/same.h: Include <stdbool.h>
113887         (same_name): Return bool, not int.
113888         * lib/same.c (same_name): Likewise.
113889         (errno): Don't declare; we assume C89 or better now.
113891         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
113892         if not already defined.
113894         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
113895         * lib/dup-safer.c (errno): Likewise.
113897 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
113899         Merge from coreutils.
113900         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
113901         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
113902         * modules/path-concat: Don't depend on strdup.
113904 2004-08-03  Simon Josefsson  <jas@extundo.com>
113906         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
113907         * lib/progname.h: Don't include stdbool.h.
113909 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
113911         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
113912         * MODULES.html.sh (func_all_modules): Remove fatal.
113914 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
113916         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
113918 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
113920         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
113921         working.
113923 2004-08-02  Simon Josefsson  <jas@extundo.com>
113925         * lib/getsubopt.h: New file, with comments from Bruno Haible.
113926         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
113927         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
113929 2004-08-01  Simon Josefsson  <jas@extundo.com>
113931         * lib/xgetdomainname.c: Include stdlib.h, for free().
113933 2004-07-19  Bruno Haible  <bruno@clisp.org>
113935         * MODULES.html.sh (func_all_modules): Add dummy.
113937 2004-07-16  Simon Josefsson  <jas@extundo.com>
113939         * modules/dummy: New file.
113941 2004-07-16  Simon Josefsson  <jas@extundo.com>
113943         * lib/dummy.c: New file.
113945 2004-07-16  Bruno Haible  <bruno@clisp.org>
113947         * lib/backupfile.h: Add extern "C" for C++.
113948         * lib/closeout.h: Likewise.
113949         * lib/copy-file.h: Likewise.
113950         * lib/findprog.h: Likewise.
113951         * lib/full-write.h: Likewise.
113952         * lib/pathname.h: Likewise.
113953         * lib/progname.h: Likewise.
113954         * lib/stpcpy.h: Likewise.
113955         * lib/stpncpy.h: Likewise.
113956         * lib/strcase.h: Likewise.
113957         * lib/strstr.h: Likewise.
113958         * lib/xalloc.h: Likewise.
113960         * lib/mbswidth.h: Add extern "C" for C++.
113961         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
113963 2004-07-13  Robert Millan  <robertmh@gnu.org>
113965         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
113967 2004-07-09  Simon Josefsson  <jas@extundo.com>
113969         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
113970         failed without this.)
113972 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
113974         * modules/chown (Files): Add lib/fchown-stub.c, since
113975         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
113977 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
113979         * lib/fchown-stub.c: New file.
113981 2004-06-24  Jim Meyering  <jim@meyering.net>
113983         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
113985 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
113987         * modules/argz: Omit "#include".
113989         * MODULES.html.sh (func_all_modules): Add calloc, to match
113990         2004-06-01 addition of calloc module.
113992 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
113994         * m4/argz.m4: New file, which is autoupdated from libtool.
113996 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
113998         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
113999         libtool.
114001 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
114003         * config/srclist-update: Don't insist on "USA." before the
114004         close-comment, as libtool omits the period and puts the */ on a
114005         separate line.
114006         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
114007         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
114009 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
114011         * modules/argz: New file.
114012         * MODULES.html.sh (func_all_modules): Add argz.
114014 2004-06-12  Jim Meyering  <jim@meyering.net>
114015         and  Paul Eggert  <eggert@cs.ucla.edu>
114017         * modules/hash (Files): Add lib/xalloc.h.
114018         * modules/pipe (Depends-on): Add wait-process.
114019         * modules/stat (Depends-on): Add xalloc.
114020         * modules/userspec (Files): Add lib/userspec.h.
114021         * modules/xstrto
114023         Upgrade from gettext-0.13.
114024         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
114025         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
114026         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
114028 2004-06-10  Jim Meyering  <jim@meyering.net>
114030         * lib/calloc.c: New file.
114032 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
114034         * lib/getdate.y (yylex): Allow space between sign and number.
114035         Problem reported by Dan Jacobson.
114037 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
114039         Merge from coreutils CVS.
114041         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
114042         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
114043         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
114044         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
114045         xstrtol.m4: Fix copyright date and/or serial number.
114047         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
114048         See if we need an fchown replacement.
114049         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
114050         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
114051         and use the replacement function if we detect either defect.
114053         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
114054         gl_UTIMECMP.
114056 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
114057         and  Jim Meyering  <jim@meyering.net>
114059         Merge from coreutils CVS.
114061         * lib/stat-macros.h: New file, with contents from file-type.h
114062         and coreutils' system.h.
114063         * lib/file-type.c: Include "stat-macros.h".
114064         * lib/file-type.h (file_type): Move all macro definitions to new file,
114065         stat-macros.h.
114067         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
114068         Wrap old code with this conditional.
114069         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
114070         function that does not dereference symlinks.
114071         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
114073         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
114074         dependency problems.
114075         (xreadlink): Accept new arg SIZE, for efficiency.
114076         All decls and uses changed.
114077         * lib/xreadlink.h: Include <stddef.h>, for size_t.
114079         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
114080         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
114082         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
114083         sysexits.h.
114085 2004-06-01  Jim Meyering  <jim@meyering.net>
114087         * m4/calloc.m4: New file.
114089 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
114091         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
114092         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
114093         Also, fix a typo in a diagnostic.
114095 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
114097         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
114098         or AC_FUNC_REALLOC.
114100 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
114102         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
114103         macros to be defined.
114104         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
114105         the allocator returns NULL because the requested size is zero.
114107 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
114109         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
114110         var.  Add comment explaining why libc still defines it.  This
114111         merges the following patch from glibc:
114112         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
114114 2004-05-20  Andreas Schwab  <schwab@suse.de>
114116         * m4/free.m4: Replace free if it not known to work, not the other
114117         way round.
114119 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
114121         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
114122         present in glibc since revision 1.1 of this file.
114123         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
114124         obstack_alignment_mask, obstack_alloc, obstack_base,
114125         obstack_blank, obstack_blank_fast, obstack_chunk_size,
114126         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
114127         obstack_grow0, obstack_init, obstack_int_grow,
114128         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
114129         obstack_next_free, obstack_object_size, obstack_ptr_grow,
114130         obstack_ptr_grow_fast, obstack_room): Remove declarations of
114131         nonexistent functions.
114133 2004-05-18  Karl Berry  <karl@gnu.org>
114135         * config/srclist.txt: break link for vasnprintf.c.
114137 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
114139         Port obstack to the AS/400, where pointers are 16 bytes wide and
114140         you cannot cast an integer to a valid pointer.  This patch is
114141         currently waiting to be integrated into glibc; see
114142         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
114144         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
114145         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
114146         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
114147         (struct obstack): temp member is now a union of a pointer and
114148         an integer, instead of an integer.  All integer uses changed.
114149         This does not affect the physical layout of struct obstack,
114150         except on hosts (like the AS/400) where the size or alignment of
114151         void * is greater than that of ptrdiff_t.
114152         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
114153         __STDC__)]: Store temporary in pointer member of union, not
114154         integer member.
114155         * lib/obstack.c: Include <stddef.h>, for offsetof.
114156         (struct fooalign): Remove; it doesn't need a name.
114157         (union fooround): Change double to long double, and add void *.
114158         (DEFAULT_ALIGNMENT): Use offsetof to compute.
114159         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
114160         not a macro.  Hence the values are always int; so remove all
114161         casts-to-int in uses.
114163 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
114165         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
114166         we can get this patch merged into glibc.
114168 2004-05-17  Derek R. Price  <derek@ximbiot.com>
114169             Paul Eggert  <eggert@cs.ucla.edu>
114171         * m4/argp: Depend on alloca.
114173 2004-05-17  Derek R. Price  <derek@ximbiot.com>
114174             Paul Eggert  <eggert@cs.ucla.edu>
114176         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
114177         freecoding.
114179 2004-05-17  Bruno Haible  <bruno@clisp.org>
114181         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
114182         precision that consists of a '.' followed by an empty digit string.
114183         Patch by Tor Lillqvist <tml@iki.fi>.
114185 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
114187         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
114188         for backward compatibility with older code.  We need our own
114189         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
114190         it under some other name, and our alloca.h will define it.
114192 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
114193             Derek Price  <derek@ximbiot.com>
114195         * lib/alloca.c: Include <alloca.h>, to get our interface.
114196         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
114197         include <alloca.h> first.  Use C89 prototype for alloca; this
114198         requires including <stddef.h> for size_t.  Use extern "C" if C++.
114199         Use #elif for simplicity, since we can assume C89 now.
114200         Don't try to source the system alloca.h since it will not be found
114201         and to prevent recursively including its replacement.
114202         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
114203         * lib/regex.c: Likewise.
114205 2004-05-16  Derek Price  <derek@ximbiot.com>
114206             Paul Eggert  <eggert@cs.ucla.edu>
114208         getline cleanup.  This changes the getndelim2 API: both order of
114209         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
114210         no delimiter).
114212         * lib/getline.c: Don't include stddef.h or stdio.h, since our
114213         interface does that.
114214         (getline): Always use getdelim, so that we don't have two
114215         copies of this code.
114216         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
114217         if available.
114218         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
114219         (GETNDELIM2_MAXIMUM): New macro.
114220         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
114221         instead of the old practice of delim2==0.  All callers changed.
114222         Return -1 on overflow, instead of returning junk.
114223         Do not set *linesize unless allocation succeeds.
114224         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
114225         that we include sys/types.h.
114226         * lib/getnline.h: Likewise.
114227         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
114228         (getndelim2): Reorder arguments.
114229         * lib/getnline.c (getnline, getndelim):
114230         Don't discard the NMAX argument.
114231         (getnline): Invoke getndelim, to avoid code duplication.
114232         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
114233         of (size_t) -1 by callers of the getnline family.
114235 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
114237         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
114238         Check for gettimeofday.
114239         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
114240         Check for settimeofday, stime.
114242 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
114244         * lib/nanosleep.c (suspended): Change its type from int to
114245         sig_atomic_t volatile.
114246         (first_call): Make it private to rpl_nanosleep, and have it
114247         be zero initially as that's a bit faster.
114248         (my_usleep): Round up fractional times instead of truncating them,
114249         as this is the usual meaning for 'sleep'.
114251         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
114252         doesn't work.
114253         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
114254         (ENOSYS): Define if not defined.
114255         (settime): Fall back on stime if it exists and settimeofday fails.
114256         But don't bother with fallbacks if a method fails with errno == EPERM.
114258 2004-05-11  Jim Meyering  <jim@meyering.net>
114260         Prior to this change, the save_cwd caller required read access to the
114261         current directory on most systems (ones with the fchdir function).
114263         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
114264         fails, try write-only, and finally, resort to using xgetcwd.
114266 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
114268         * lib/obstack.c, obstack.h: Import changes from libc.
114270 2004-04-28  Bruno Haible  <bruno@clisp.org>
114272         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
114273         also implicitly appends .exe to executables.
114274         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
114275         accepts Windows pathnames.
114276         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
114277         Treat Cygwin like Windows, since it now accepts Windows pathnames.
114278         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
114279         Treat Cygwin like Windows, since it now accepts Windows pathnames.
114280         Reported by Derek Robert Price <derek@ximbiot.com>.
114282 2004-04-21  Karl Berry  <karl@gnu.org>
114284         * config/srclist.txt (localcharset.c): break sync.
114286 2004-04-20  Paul Eggert  <eggert@twinsun.com>
114288         * m4/host-os.m4: Add a copyright notice.
114290 2004-04-20  Jim Meyering  <jim@meyering.net>
114292         Change UTILS_ to gl_ in AC_DEFINE'd names.
114293         Change utils_- and jm_-prefixed variables, too.
114294         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
114295         UTILS_FUNC_MKDIR_TRAILING_SLASH.
114296         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
114298         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
114299         Don't emit trailing blanks.
114300         Also rename jm_-prefixed variables to have gl_ prefix.
114302         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
114303         Also rename jm_-prefixed variables to have gl_ prefix.
114305         * m4/jm-macros.m4: Reflect the renamings.
114306         * m4/prereq.m4: Likewise.
114308 2004-04-20  Jim Meyering  <jim@meyering.net>
114310         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
114311         memory.
114313 2004-04-20  Jim Meyering  <jim@meyering.net>
114314             Bruno Haible  <bruno@clisp.org>
114316         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
114317         memory when realloc fails.
114319 2004-04-19  Jim Meyering  <jim@meyering.net>
114321         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
114322         now that readutmp.c may call `free (0)'.
114324 2004-04-19  Bruno Haible  <bruno@clisp.org>
114326         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
114327         * m4/inttypes_h.m4: Likewise.
114328         * m4/stdint_h.m4: Likewise.
114329         * m4/intmax_t.m4: Likewise.
114330         * m4/uintmax_t.m4: Likewise.
114332 2004-04-18  Jim Meyering  <jim@meyering.net>
114334         * m4/prereq.m4: Don't forbid jm_ prefix.
114336         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
114337         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
114338         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
114339         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
114340         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
114341         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
114342         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
114343         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
114344         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
114345         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
114346         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
114347         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
114348         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
114349         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
114350         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
114351         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
114352         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
114353         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
114354         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
114356 2004-04-18  Jim Meyering  <jim@meyering.net>
114358         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
114359         failure, don't leak memory and do call END_UTMP_ENT.
114361 2004-04-16  Jim Meyering  <jim@meyering.net>
114363         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
114364         coreutils' stat program.
114365         (gl_PREREQ): Don't require jm_PREREQ_STAT.
114367 2004-04-11  Paul Eggert  <eggert@twinsun.com>
114369         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
114370         C89.
114371         (CHAR_BIT): Remove, since we assume C89.
114372         Include <stdint.h> if available, as per current Autoconf CVS advice.
114374 2004-03-31  Jim Meyering  <jim@meyering.net>
114376         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
114377         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
114378         * m4/xalloc.m4: Likewise.
114380 2004-03-30  Paul Eggert  <eggert@twinsun.com>
114382         Merge from coreutils.
114384         * m4/inttostr.m4: New file.
114385         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
114386         Require AM_STDBOOL_H and gl_TIMESPEC instead.
114387         Require gl_CLOCK_TIME.
114388         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
114390 2004-03-30  Paul Eggert  <eggert@twinsun.com>
114392         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
114393         not bool, to be more consistent with Unix conventions.
114394         Suggested by Bruno Haible.
114396         Merge from coreutils.
114398         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
114399         * lib/umaxtostr.c: New files.
114401         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
114402         the usual <time.h> dance.
114403         (get_date): Change signature to support fractional time stamps.
114404         All callers changed.
114405         * lib/getdate.y: Include "getdate.h" first, as we can now
114406         assume C89 and don't need to worry about 'const'.
114407         Similarly, include "unlocked-io.h" near start, not in middle.
114408         Include <limits.h>.
114409         (textint.value): Use long int rather than int.
114410         (textint.digits): Use size_t rather than int.
114411         (BILLION, LOG10_BILLION): New constants.
114412         (parser_control): New member rel_ns.  Members day_ordinal,
114413         time_zone, month, day, hour, minutes, rel_year, rel_month,
114414         rel_day, rel_hour, rel_minutes, rel_seconds
114415         are now long int, not int.  Member seconds is now struct timespec,
114416         not int.  New member timespec_seen.  Members dates_seen, days_seen,
114417         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
114418         not int.
114419         (%union.intval): Now long int, not int.
114420         New member timespec.
114421         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
114422         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
114423         (spec): Now is a timespec or an item list.
114424         (timespec, items): New nonterminals.
114425         (time, rel, relunit, number, get_date):
114426         Add support for fractional seconds.
114427         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
114428         (gmtime, localtime, mktime): Remove decls; not needed with C89.
114429         (to_hour): First arg is now long int, not int.
114430         (to_year): Returns long int, not int.
114431         Don't treat year -70 like 70.
114432         (tm_diff): Returns long int, not int.
114433         (lookup_word): Use bool instead of int when appropriate.
114434         (yylex): Use size_t for count, not int.
114435         Detect overflow when parsing large integer constants.
114436         Add support for fractions.
114437         (get_date): Make pointers 'const' if possible.
114438         Use more-portable code to detect integer overflow.
114439         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
114440         Don't use ctime; it's not reliable if the year has >4 digits.
114442         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
114443         This is for compatibility with BSD.
114445         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
114446         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
114447         From coreutils' system.h.
114449         * lib/userspec.c: Don't include "posixver.h".
114450         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
114451         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
114452         compatible extension.  Simplify code by removing a boolean int
114453         that was always nonzero if a string was nonnull.
114455 2004-03-30  Jim Meyering  <jim@meyering.net>
114457         Merge from coreutils.
114459         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
114460         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
114461         on some systems one must include <grp.h> before it.
114462         Reported by Christian Krackowizer.
114464 2004-03-30  Jim Meyering  <jim@meyering.net>
114466         Merge from coreutils.
114468         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
114470         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
114471         an empty input stream.
114473         * lib/readtokens.c: Include <stdbool.h>.
114474         (readtoken): Use `size_t' rather than int/long.
114475         All callers adjusted.
114476         Use `bool' rather than `int' where appropriate.
114477         Use memset rather than an explicit loop.
114478         Use x2nrealloc rather than xrealloc.
114479         Allow the use of `\0' as a delimiter.
114480         (readtokens): Likewise.
114481         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
114483 2004-03-30  Jim Meyering  <jim@meyering.net>
114485         * m4/realloc.m4: Remove file, since now it does no more than
114486         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
114487         the `configure.ac' section of module/realloc.
114488         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
114490 2004-03-30  Bruno Haible  <bruno@clisp.org>
114492         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
114493         nonnull.
114495 2004-03-29  Paul Eggert  <eggert@twinsun.com>
114497         Merge changes to getloadavg.c from coreutils and Emacs.
114499         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
114500         Define to an expression, not to the empty string.
114501         Include cloexec.h and xalloc.h.
114502         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
114503         Use set_cloexec_flag rather than rolling our own.
114504         * lib/cloexec.c, lib/cloexec.h: New files.
114506 2004-03-29  Paul Eggert  <eggert@twinsun.com>
114508         * m4/cloexec.m4: New file.
114510 2004-03-18  Paul Eggert  <eggert@twinsun.com>
114512         * lib/getopt.h: Sync with libc CVS.
114514 2004-03-18  Paul Eggert  <eggert@twinsun.com>
114515             Bruno Haible  <bruno@clisp.org>
114517         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
114518         mbswidth.
114520 2004-03-18  Paul Eggert  <eggert@twinsun.com>
114521             Bruno Haible  <bruno@clisp.org>
114523         * lib/mbswidth.h: Include <wchar.h> only if
114524         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
114525         <wchar.h>.
114526         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
114528 2004-03-09  Paul Eggert  <eggert@twinsun.com>
114530         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
114531         Sync with libc CVS.
114532         * lib/getopt_int.h: New file, also synced from libc.
114534 2004-03-09  Paul Eggert  <eggert@twinsun.com>
114536         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
114537         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
114538         Bring back getopt.c, getopt.h, getopt1.c.
114540 2004-03-07  Paul Eggert  <eggert@twinsun.com>
114542         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
114543         All uses changed.  Check for sa_sigaction member; this fixes
114544         a bug first reported by Jason Andrade in
114545         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
114547 2004-03-07  Paul Eggert  <eggert@twinsun.com>
114549         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
114550         '#if' expressions.  Unlike the code it replaces, it does not
114551         depend on (defined _SC_PAGESIZE).  However, it does depend on
114552         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
114553         first reported by Jason Andrade in
114554         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
114556 2004-02-25  Simon Josefsson  <jas@extundo.com>
114558         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
114560 2004-02-25  Simon Josefsson  <jas@extundo.com>
114562         * lib/strdup.h: New file.
114563         * lib/strdup.c: Include it.
114564         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
114565         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
114567 2004-02-23  Karl Berry  <karl@gnu.org>
114569         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
114570         (from fencepost.gnu.org:/gd/gnuorg).
114572 2004-02-23  Karl Berry  <karl@gnu.org>
114574         * config/srclistvars.sh (GNUORG) [karl]: redefine.
114575         * config/srclist.txt: add maintain/standards documents.
114577 2004-02-18  Bruno Haible  <bruno@clisp.org>
114579         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
114580         Reported by Derek Robert Price <derek@ximbiot.com>.
114582 2004-02-16  Karl Berry  <karl@gnu.org>
114584         * config/mkinstalldirs, install-sh: update from automake.
114586 2004-02-06  Karl Berry  <karl@gnu.org>
114588         * m4/po.m4: update from gettext 0.14.1.
114590 2004-02-06  Karl Berry  <karl@gnu.org>
114592         * lib/config.charset: update from gettext 0.14.1.
114594 2004-02-05  Paul Eggert  <eggert@twinsun.com>
114596         Add comments and code, prompted by suggestions from Bruno Haible
114597         for sh-quote.
114598         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
114599         describing the enum quoting_style values.
114600         * lib/quotearg.c (quotearg_alloc): New function.
114601         (quotearg_buffer_restyled): Treat lone { and } as special.
114602         Treat = as special.  Work around bug with older shells
114603         that "see" a '\' that is really the 2nd byte of a multibyte char.
114604         Quote empty string with shell_quoting_style.
114606 2004-02-03  Bruno Haible  <bruno@clisp.org>
114608         * m4/pipe.m4: New file, from GNU gettext.
114610 2004-02-03  Bruno Haible  <bruno@clisp.org>
114612         * lib/pipe.h: New file, from GNU gettext.
114613         * lib/pipe.c: New file, from GNU gettext.
114615 2004-01-27  Bruno Haible  <bruno@clisp.org>
114617         * m4/execute.m4: New file, from GNU gettext.
114619 2004-01-27  Bruno Haible  <bruno@clisp.org>
114621         * lib/execute.h: New file, from GNU gettext.
114622         * lib/execute.c: New file, from GNU gettext.
114623         * lib/w32spawn.h: New file, from GNU gettext.
114625 2004-01-24  Paul Eggert  <eggert@twinsun.com>
114627         Merge from diffutils.
114629         * lib/file-type.c (file_type): Add typed memory objects.
114630         * lib/file-type.h (S_TYPEISTMO): New macro.
114632         * lib/c-stack.h (c_stack_action): Remove argv argument.
114633         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
114634         (die): Don't calculate message unless segv_action returns.
114635         (get_stack_location, min_address_from_argv, max_address_from_argv,
114636         volatile stack_base, volatile_stack_size): Remove.
114637         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
114638         that every segmentation violation is a stack overflow.  (Ouch!)
114639         See Debian bug 136249 (still outstanding) for more info about why
114640         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
114642 2004-01-24  Paul Eggert  <eggert@twinsun.com>
114644         Exit-status fix from coreutils.
114646         Use exit_failure consistently in place of EXIT_FAILURE,
114647         so that program exit statuses are consistent on failure.
114649         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
114650         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
114651         * lib/argmatch.h: Comment fix to match the above.
114652         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
114653         Now a macro referring to exit_failure, instead of a separate
114654         variable.  Include "exitfail.h" to get it.
114655         * lib/xstrtol.h: Include "exitfail.h".
114656         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
114658         * lib/long-options.c (parse_long_options): Use prototype
114659         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
114660         for clarity.
114662 2004-01-21  Jim Meyering  <jim@meyering.net>
114664         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
114665         so as not to conflict with a different-sized __mktime_internal
114666         function in GNU libc.
114667         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
114668         Problem building statically-linked `ls' reported by Michael Brunnbauer.
114670 2004-01-20  Karl Berry  <karl@gnu.org>
114672         * config/config.guess: update from config.
114674         * config/srclistvars.sh: GNUWWWLICENSES for karl.
114676 2004-01-20  Bruno Haible  <bruno@clisp.org>
114678         Safer stack allocation.
114679         * lib/setenv.c: Include allocsa.h.
114680         (alloca): Remove fallback definition.
114681         (freea): Remove macro.
114682         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
114683         instead of freea.
114685 2004-01-20  Bruno Haible  <bruno@clisp.org>
114687         * m4/eealloc.m4: New file, from GNU gettext.
114689 2004-01-20  Bruno Haible  <bruno@clisp.org>
114691         * m4/allocsa.m4: New file, from GNU gettext.
114693 2004-01-20  Bruno Haible  <bruno@clisp.org>
114695         * lib/xallocsa.h: New file, from GNU gettext.
114696         * lib/xallocsa.c: New file, from GNU gettext.
114698 2004-01-20  Bruno Haible  <bruno@clisp.org>
114700         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
114702 2004-01-20  Bruno Haible  <bruno@clisp.org>
114704         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
114705         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
114706         specially.
114708 2004-01-20  Bruno Haible  <bruno@clisp.org>
114710         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
114711         patch.
114713 2004-01-20  Bruno Haible  <bruno@clisp.org>
114715         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
114717 2004-01-20  Bruno Haible  <bruno@clisp.org>
114719         * lib/eealloc.h: New file.
114721 2004-01-20  Bruno Haible  <bruno@clisp.org>
114723         * lib/binary-io.h: Avoid warnings on Cygwin.
114725 2004-01-20  Bruno Haible  <bruno@clisp.org>
114727         * lib/allocsa.h: New file, from GNU gettext.
114728         * lib/allocsa.c: New file, from GNU gettext.
114730 2004-01-18  Karl Berry  <karl@gnu.org>
114732         * doc/gpl.texi, doc/lgpl.texi: new files.
114734 2004-01-18  Karl Berry  <karl@gnu.org>
114736         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
114737         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
114739 2004-01-15  Paul Eggert  <eggert@twinsun.com>
114741         Merge from coreutils.
114743         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
114744         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
114745         (gl_DEFAULT_POSIX2_VERSION): Move
114746         the documentation from 'configure' into 'config.hin',
114747         so that 'configure --help' isn't burdened by it and
114748         we don't have to worry about its formatting there.
114749         Reword the documentation so that it's more succinct
114750         and can be run together into a single paragraph.
114751         * m4/same.m4 (gl_SAME): Check for pathconf.
114753 2004-01-15  Paul Eggert  <eggert@twinsun.com>
114755         Merge from coreutils.
114757         * lib/posixver.c: Include posixver.h.
114759         * lib/same.c: Include <stdbool.h>, <limits.h>.
114760         (_POSIX_NAME_MAX): Define if not defined.
114761         (MIN): New macro.
114762         (same_name): If file names are silently truncated, report
114763         that the file names are the same if they are the same after
114764         the silent truncation.
114766         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
114767         conversion function.
114768         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
114769         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
114770         longer needed.
114772 2004-01-15  Jim Meyering  <jim@meyering.net>
114774         Merge from coreutils.
114776         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
114777         if no library is required.
114778         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
114779         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
114780         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
114781         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
114782         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
114783         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
114784         value, $ac_cv_search_crypt, if it's "none required".
114785         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
114786         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
114787         not gl_FUNC_GETLOADAVG.
114788         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
114789         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
114791 2004-01-15  Jim Meyering  <jim@meyering.net>
114793         Merge from coreutils.
114795         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
114796         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
114797         http://mail.gnu.org/r/bug-coreutils/2003-11/msg00144.html
114799         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
114800         optional configure-time default.
114802         * lib/version-etc.c (version_etc_copyright): Update copyright date.
114804         * lib/xreadlink.c (xreadlink): Correct outdated comment.
114806 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
114808         Merge from coreutils.
114810         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
114811         value, $ac_cv_search_nanosleep, if it's "none required".
114813 2004-01-14  Paul Eggert  <eggert@twinsun.com>
114815         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
114816         with like-named macro in fnmatch.c.
114817         (EXT): Use an internal constant instead.
114819         Merge fnmatch patches from glibc.
114820         * lib/fnmatch.c (mbsinit): Remove define.
114821         Add libc_hidden_ver (__fnmatch, fnmatch).
114822         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
114823         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
114825 2004-01-14  Karl Berry  <karl@gnu.org>
114827         * config/install-sh: update from automake.
114829 2004-01-13  Karl Berry  <karl@gnu.org>
114831         * config/install-sh: update from automake.
114833 2004-01-09  Karl Berry  <karl@gnu.org>
114835         * config/install-sh: update from automake.
114837 2004-01-05  Karl Berry  <karl@gnu.org>
114839         * config/config.{sub,guess}: update from config.
114841 2003-12-31  Karl Berry  <karl@gnu.org>
114843         * config/depcomp: update from automake.
114845 2003-12-14  Karl Berry  <karl@gnu.org>
114847         * lib/config.charset: update from gettext-runtime.
114849 2003-12-03  Paul Eggert  <eggert@twinsun.com>
114851         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
114852         Bug reported by Alfred M. Szmidt.
114854 2003-12-03  Bruno Haible  <bruno@clisp.org>
114856         * m4/gettext.m4: Upgrade from gettext-0.13.
114857         * m4/po.m4: Upgrade from gettext-0.13.
114858         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
114859         * m4/intmax.m4: New file, from gettext-0.13.
114860         * m4/printf-posix.m4: New file, from gettext-0.13.
114862 2003-11-29  Karl Berry  <karl@gnu.org>
114864         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
114866 2003-11-25  Paul Eggert  <eggert@twinsun.com>
114867             Bruno Haible  <bruno@clisp.org>
114869         * lib/printf-parse.h: Don't include sys/types.h.
114870         (ARG_NONE): New macro.
114871         (char_directive): Change type of *arg_index fields to size_t.
114872         * lib/printf-parse.c: Don't include sys/types.h.
114873         (SSIZE_MAX): Remove macro.
114874         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
114875         Remove unnecessary overflow check.
114876         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
114877         fields.
114879 2003-11-25  Bruno Haible  <bruno@clisp.org>
114881         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
114883 2003-11-25  Bruno Haible  <bruno@clisp.org>
114885         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
114886         gt_TYPE_SSIZE_T.
114888 2003-11-24  Paul Eggert  <eggert@twinsun.com>
114890         * modules/alloca: Remove dependency on xalloc.
114892 2003-11-24  Paul Eggert  <eggert@twinsun.com>
114894         * lib/alloca.c: Remove dependency on xalloc module.
114895         (xalloc_die): Remove.
114896         (memory_full) [!defined emacs]: New macro.
114897         [!defined emacs]: Don't include xalloc.h.
114898         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
114899         address arithmetic overflows.  Change datatypes a bit to avoid
114900         unnecessary casts.
114902 2003-11-22  Jim Meyering  <jim@meyering.net>
114904         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
114905         s/size/size_t/.
114907 2003-11-21  Karl Berry  <karl@gnu.org>
114909         * config/config.{sub,guess}: update from config.
114911 2003-11-18  Karl Berry  <karl@gnu.org>
114913         * config/config.{sub,guess}: update from config.
114915         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
114917 2003-11-17  Paul Eggert  <eggert@twinsun.com>
114919         * README: Mention that S+T cannot overflow if S is the size of
114920         an existing object and T is sufficiently small.
114922 2003-11-17  Jim Meyering  <jim@meyering.net>
114924         On systems without utime and without a utimes function capable of
114925         dealing with a NULL struct utimbuf* argument, this utime replacement
114926         could -- in unusual circumstances -- leak a file descriptor.
114927         * lib/utime.c: Include <unistd.h> and <errno.h>.
114928         (utime_null): Be sure to close `fd' and to preserve errno.
114929         Reported by Geoff Collyer via Arnold Robbins.
114931 2003-11-17  Bruno Haible  <bruno@clisp.org>
114933         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
114934         (Depends-on): Add xsize.
114936 2003-11-17  Bruno Haible  <bruno@clisp.org>
114938         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
114940 2003-11-17  Bruno Haible  <bruno@clisp.org>
114942         * lib/vasnprintf.c (alloca): Remove fallback definition.
114943         (freea): Remove definition.
114944         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
114945         Reported by Paul Eggert.
114947 2003-11-16  Paul Eggert  <eggert@twinsun.com>
114948             Bruno Haible  <bruno@clisp.org>
114950         Protect against address arithmetic overflow.
114951         * lib/printf-args.h: Include stddef.h.
114952         (arguments): Change type of field 'count' to size_t.
114953         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
114954         'unsigned int' where appropriate.
114955         * lib/printf-parse.h: Include sys/types.h.
114956         (char_directive): Change type of *arg_index fields to ssize_t.
114957         (char_directives): Change type of fields 'count', max_*_length to
114958         size_t.
114959         * lib/printf-parse.c: Include sys/types.h and xsize.h.
114960         (SSIZE_MAX): Define fallback value.
114961         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
114962         instead of 'int' where appropriate. Check a_allocated, d_allocated
114963         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
114964         * lib/vasnprintf.c: Include xsize.h.
114965         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
114966         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
114967         overflow. Avoid wraparound when converting a width or precision from
114968         decimal to binary.
114970 2003-11-16  Bruno Haible  <bruno@clisp.org>
114972         Update from GNU gettext.
114973         * lib/printf-parse.c: Generalize to it can be compiled for wide
114974         strings.
114975         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
114976         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
114977         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
114978         SNPRINTF): New macros.
114979         Don't include <alloca.h> if the file is used inside libintl.
114980         (local_wcslen): New function, for Solaris 2.5.1.
114981         (VASNPRINTF): Use it instead of wcslen.
114983 2003-11-16  Bruno Haible  <bruno@clisp.org>
114985         * lib/xsize.h (xmax): New function.
114986         (xsum, xsum3, xsum4): Declare as "pure" functions.
114988 2003-11-12  Paul Eggert  <eggert@twinsun.com>
114990         * modules/xalloc (Files): Undo latest change, since xalloc.h
114991         no longer needs SIZE_MAX or PTRDIFF_MAX.
114993 2003-11-12  Paul Eggert  <eggert@twinsun.com>
114995         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
114996         gl_PTRDIFF_MAX.
114998 2003-11-12  Paul Eggert  <eggert@twinsun.com>
115000         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
115001         "return", to pacify some unknown compiler.  Problem reported
115002         by Joerg Schilling.
115004 2003-11-12  Paul Eggert  <eggert@twinsun.com>
115006         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
115007         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
115008         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
115009         heuristic is just as accurate as far as we know, and it removes a
115010         dependency on size_max.m4 and ptrdiff_max.m4.
115012 2003-11-11  Bruno Haible  <bruno@clisp.org>
115014         * modules/xsize (Files): Add m4/size_max.m4.
115015         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
115017 2003-11-11  Bruno Haible  <bruno@clisp.org>
115019         * m4/size_max.m4: New file.
115020         * m4/ptrdiff_max.m4: New file.
115021         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
115022         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
115023         (gl_XALLOC): Invoke it.
115025 2003-11-11  Bruno Haible  <bruno@clisp.org>
115027         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
115028         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
115029         defined.
115031 2003-11-10  Paul Eggert  <eggert@twinsun.com>
115033         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
115034         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
115035         rejected some allocations of exactly SIZE_MAX - 2 bytes.
115036         From Bruno Haible.
115037         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
115038         not (size_t) -1, since it's defined here.
115040 2003-11-09  Karl Berry  <karl@gnu.org>
115042         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
115044 2003-11-06  Paul Eggert  <eggert@twinsun.com>
115046         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
115047         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
115048         Reject sizes of exactly SIZE_MAX bytes.
115049         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
115050         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
115052 2003-11-05  Bruno Haible  <bruno@clisp.org>
115054         * lib/xsize.h: Include limits.h, to avoid a possible collision with
115055         SIZE_MAX defined in <limits.h> on Solaris.
115057 2003-11-04  Jim Meyering  <jim@meyering.net>
115059         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
115060         variable names, rather than @VAR@.
115061         * modules/poll: Likewise.
115063 2003-11-04  Bruno Haible  <bruno@clisp.org>
115065         * modules/xsize: New file.
115066         * modules/linebreak: Depend on xsize.
115067         * MODULES.html.sh (func_all_modules): Add xsize.
115069 2003-11-04  Bruno Haible  <bruno@clisp.org>
115071         * m4/xsize.m4: New file.
115073 2003-11-04  Bruno Haible  <bruno@clisp.org>
115075         * lib/xsize.h: New file.
115076         * lib/linebreak.c: Include xsize.h.
115077         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
115078         argument for overflow.
115079         Suggested by Paul Eggert.
115081 2003-11-03  Karl Berry  <karl@gnu.org>
115083         * config/config.{guess,sub}: update from config.
115085 2003-11-03  Jim Meyering  <jim@meyering.net>
115087         * modules/userspec (lib_SOURCES): Add userspec.h.
115088         (Include): Add "userspec.h".
115089         Improve description.
115091 2003-11-03  Jim Meyering  <jim@meyering.net>
115093         * lib/userspec.c: Include "userspec.h".
115094         * lib/userspec.h: New file.
115096 2003-11-03  Bruno Haible  <bruno@clisp.org>
115098         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
115100 2003-11-03  Bruno Haible  <bruno@clisp.org>
115102         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
115103         available, to avoid (extremely rare) race condition.
115104         Suggested by Paul Eggert.
115106 2003-11-02  Karl Berry  <karl@gnu.org>
115108         * config/srclist.txt (vasprintf.c): sync broken, sigh.
115110 2003-10-31  Paul Eggert  <eggert@twinsun.com>
115112         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
115113         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
115114         (read_filesystem_list): Set and use me_type_malloced.
115115         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
115116         whatever the type happens to be), for brevity and consistency.
115117         Check for size calculation overflow on Alphas running OSF/1.
115119 2003-10-31  Jim Meyering  <jim@meyering.net>
115121         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
115123         * lib/linebuffer.c: Include <string.h> for declaration of memset.
115125 2003-10-30  Paul Eggert  <eggert@twinsun.com>
115126             Bruno Haible  <bruno@clisp.org>
115128         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
115129         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
115131 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
115133         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
115134         netbsd*-gnu*.  Suggested by Robert Millan.
115136 2003-10-29  Paul Eggert  <eggert@twinsun.com>
115138         * modules/group-member: Depend on stdbool.
115140 2003-10-29  Paul Eggert  <eggert@twinsun.com>
115142         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
115144 2003-10-29  Paul Eggert  <eggert@twinsun.com>
115146         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
115147         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
115148         after the 'gnu' in these cases.  This fixes some bugs in the
115149         previous change, and is based on suggestions by Robert Millan.
115151 2003-10-29  Paul Eggert  <eggert@twinsun.com>
115153         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
115154         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
115155         no longer needed.
115156         * lib/quotearg.c (quotearg_n_options): Use it.
115157         * lib/group-member.c: Include <stdbool.h>.
115158         (free_group_info): Arg is now const *; don't free arg.
115159         (get_group_info): Now returns bool and accepts struct group_info *,
115160         rather than returning a malloc'ed struct group_info *.
115161         All uses changed.  Check for overflow in internal size calculation.
115163         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
115164         rather than xmalloc/xrealloc.
115165         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
115166         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
115167         conformance bug: the old code used a pointer after freeing the
115168         storage that it addressed.
115169         * lib/hash.c (hash_initialize): Simplify the code by using
115170         xalloc_oversized rather than doing it by hand.
115171         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
115172         the buffer preserved.  Use free and xmalloc instead.
115173         * lib/quotearg.c (quotearg_n_options): Likewise.
115174         Use a simpler test for size overflow.  Don't use xalloc_oversized
115175         because unsigned int might be wider than size_t (!); this suggests
115176         that we should switch from unsigned int to size_t for slot numbers.
115178 2003-10-28  Paul Eggert  <eggert@twinsun.com>
115180         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
115181         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
115182         NetBSD kernels.  Requested by Richard Stallman.
115184 2003-10-27  Paul Eggert  <eggert@twinsun.com>
115186         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
115187         to allocate the returned structure.  Do not allocate a subarray,
115188         as x2nrealloc will do that.
115189         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
115190         instead of xnrealloc.
115191         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
115193 2003-10-27  Bruno Haible  <bruno@clisp.org>
115195         * lib/stdbool_.h: Better support for BeOS.
115197 2003-10-26  Paul Eggert  <eggert@twinsun.com>
115199         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
115200         now uses inline.
115202 2003-10-26  Paul Eggert  <eggert@twinsun.com>
115204         * lib/xalloc.h (xalloc_oversized): New static inline function, for
115205         callers that want to do their own size-overflow checking.  Include
115206         <stdbool.h>, since xalloc_oversized returns bool.
115207         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
115208         to use xalloc_oversized.
115210         Add two functions x2realloc, x2nrealloc, for programs that grow
115211         arrays dynamically by doubling their sizes.
115212         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
115213         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
115214         New functions.
115216         Port to C99 semantics for 'inline' of external functions.
115217         Bug reported by Bruno Haible.
115218         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
115219         with the old contents of xnmalloc.
115220         (xnmalloc, xmalloc): Use it.
115221         (xnrealloc_inline): New static inline function,
115222         with the old contents of xnrealloc.
115223         (xnrealloc, xrealloc): Use it.
115225         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
115226         that.
115228 2003-10-26  Karl Berry  <karl@gnu.org>
115230         * config/srclist.txt (COPYING.DOC): no longer available from
115231         /gd/gnuorg; don't know where the ultimate source is.
115233 2003-10-25  Paul Eggert  <eggert@twinsun.com>
115235         Fix several address-calculation bugs in the hash modules,
115236         plus some minor code cleanup.
115238         * lib/hash.h: Include <stdbool.h>, for bool.
115239         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
115240         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
115241         hash_get_n_entries, hash_get_max_bucket_length,
115242         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
115243         hash_rehash): Use size_t rather than unsigned.
115244         * lib/hash.c (struct hash_table, hash_get_n_buckets,
115245         hash_get_n_buckets_used, hash_get_n_entries,
115246         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
115247         hash_get_entries, hash_do_for_each, hash_string, is_prime,
115248         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
115249         Likewise.
115250         (SIZE_MAX): Define if not defined.
115251         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
115252         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
115253         hash_print):
115254         Use const * when possible.
115255         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
115256         (check_tuning): Fix bug: if tuning parameters were very close to
115257         0 or 1, rounding errors could have caused subscript violations.
115258         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
115259         (hash_initialize): Add 'fail:' label
115260         to free table and return NULL, and use it to simplify code.
115261         Use calloc rather than clearing the storage ourself.
115262         (hash_initialize, hash_rehash): Check for arithmetic overflow in
115263         buffer size calculations.
115264         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
115265         Include <stddef.h>, for size_t.
115266         * lib/hash-pjw.c (hash_pjw): Likewise.
115267         Switch to method described by Bruno Haible.
115268         Include <limits.h>, for CHAR_BIT.
115269         (SIZE_BITS): New macro.
115271 2003-10-23  Paul Eggert  <eggert@twinsun.com>
115273         * m4/getline.m4 (AM_FUNC_GETLINE):
115274         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
115275         hosts.  Problem reported by Derek Robert Price in
115276         <http://mail.gnu.org/r/bug-gnulib/2003-10/msg00092.html>.
115277         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
115278         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
115280 2003-10-21  Paul Eggert  <eggert@twinsun.com>
115282         * lib/getndelim2.c (getndelim2): When size calculation overflows,
115283         ceiling the allocation at NMAX bytes rather than silently
115284         discarding input bytes before NMAX is reached.  This makes
115285         a difference only if NMAX exceeds SIZE_MAX / 2.
115287         * lib/obstack.c: Merge from glibc.
115288         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
115289         Add libc_hidden_def (_obstack_newchunk).
115290         (_obstack_free) [! defined _LIBC]: Remove.
115291         [defined _LIBC]: Make a strong alias from obstack_free, rather than
115292         a clone of the function body.
115293         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
115294         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
115296         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
115297         glibc.
115298         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
115299         arg to memcpy.
115301         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
115302         (obstack_ptr_grow_fast, obstack_int_grow_fast):
115303         Don't use lvalue casts, as GCC plans to remove support for them
115304         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
115305         was also present in the non-GCC version, indicating that this
115306         code had always been buggy and had never been widely used.
115307         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
115308         Use the fast variant of each macro, rather than copying the
115309         definiens of the fast variant; that way, we'll be more likely to
115310         catch future bugs in the fast variants.
115312 2003-10-20  Bruno Haible  <bruno@clisp.org>
115314         * modules/wait-process: New file.
115315         * MODULES.html.sh (func_all_modules): Add wait-process.
115317 2003-10-20  Bruno Haible  <bruno@clisp.org>
115319         * m4/wait-process.m4: New file.
115321 2003-10-20  Bruno Haible  <bruno@clisp.org>
115323         * lib/wait-process.h: New file, from GNU gettext.
115324         * lib/wait-process.c: New file, from GNU gettext.
115326 2003-10-19  Jim Meyering  <jim@meyering.net>
115328         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
115329         HPUX 10.20.
115331 2003-10-18  Karl Berry  <karl@gnu.org>
115333         * config/config.guess: update from config.
115335 2003-10-16  Paul Eggert  <eggert@twinsun.com>
115337         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
115338         (getgroups): First arg is int, not size_t.
115339         Don't let 'free' mangle errno.
115341 2003-10-16  Paul Eggert  <eggert@twinsun.com>
115343         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
115345 2003-10-16  Karl Berry  <karl@gnu.org>
115347         * config/config.{guess,sub}: update from config.
115349 2003-10-16  Jim Meyering  <jim@meyering.net>
115351         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
115352         memcpy.
115354 2003-10-15  Paul Eggert  <eggert@twinsun.com>
115356         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
115357         (SIZE_MAX): Remove.
115358         (new_exclude, add_exclude_file): Initial size no longer needs to
115359         be a power of 2.
115360         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
115361         our own address arithmetic overflow checking.
115363         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
115364         (fnmatch): Do not alloca more than 2000 wide characters;
115365         instead, use malloc for large buffers.
115366         Check for address arithmetic overflow, and return -1
115367         with errno set to ENOMEM in that case.
115368         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
115369         (NEW_PATTERN): Do not alloca more than 8000 bytes;
115370         instead, return -1.  Check for address arithmetic overflow.
115372 2003-10-14  Paul Eggert  <eggert@twinsun.com>
115374         Handle invalid suffixes and overflow independently, so that
115375         callers can treat them independently as needed.  Fix some bugs in
115376         suffix handling, e.g., "100k@" was not diagnosed as an invalid
115377         suffix for a human-readable blocksize.  The major caller-visible
115378         change is the addition of a new
115379         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
115380         that both overflow and suffix chars were found.
115382         * lib/human.c (humblock): Don't check separately for invalid suffix
115383         char; that is xstrtoumax's job (now that its bug is fixed).
115384         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
115385         INTMAX_MAX]: New macros.
115386         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
115387         TYPE_MAXIMUM): New macros.
115388         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
115389         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
115390         if overflow occurs, as it's what __strtol does and it's more useful
115391         in practice.
115392         (__xstrtol): If __strtol reports some error other than ERANGE,
115393         reflect it to the caller as LONGINT_INVALID.  If it reports
115394         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
115395         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
115396         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
115397         value.
115398         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
115399         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
115400         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
115401         [defined UINTMAX_MAX]: New macros.
115403 2003-10-14  Bruno Haible  <bruno@clisp.org>
115405         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
115407 2003-10-14  Bruno Haible  <bruno@clisp.org>
115409         * m4/sig_atomic_t: New file, from GNU gettext.
115410         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
115412 2003-10-14  Bruno Haible  <bruno@clisp.org>
115414         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
115415         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
115416         Also use volatile where needed.
115418 2003-10-12  Paul Eggert  <eggert@twinsun.com>
115420         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
115421         Change maintainer from Bruno Haible to 'all'.
115423 2003-10-12  Paul Eggert  <eggert@twinsun.com>
115425         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
115427 2003-10-12  Paul Eggert  <eggert@twinsun.com>
115429         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
115430         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
115431         and define in terms of the other primitives.
115432         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
115433         (SIZE_MAX): Define if not already defined.
115434         (array_size_overflow): New function.
115435         (xalloc_die): Abort instead of exiting if 'error' returns.
115436         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
115437         (xmalloc, xrealloc): Use them.
115438         (xcalloc): Check for address arithmetic overflow.
115439         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
115440         a bit faster than strcpy.
115442 2003-10-10  Simon Josefsson  <jas@extundo.com>
115444         * modules/argp (Depends-on): Add restrict and strcase.
115446 2003-10-10  Simon Josefsson  <jas@extundo.com>
115448         * m4/argp.m4: Add AC_C_INLINE.
115450 2003-10-08  Paul Eggert  <eggert@twinsun.com>
115452         Merge getpass from libc, plus a few fixes.
115454         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
115455         Include <stdbool.h>.
115456         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
115457         __fsetlocking to empty.
115458         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
115459         do include <bits/libc-lock.h>.
115460         Do not include <fcntl.h>; not needed.
115461         [_LIBC]: Include <wchar.h>.
115462         (NOTCANCEL_MODE): New macro.
115463         (flockfile, funlockfile) [_LIBC]: New macros.
115464         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
115465         [!_LIBC]: New macros.
115466         (call_fclose): New function.
115467         (getpass): Use it.  Save tty stream separately; this simplifies the
115468         code and makes it more reliable if stdin happens to equal stdout.
115469         Invoke __fsetlocking on tty.
115470         Handle thread cancellation if needed.
115471         Namespace cleanup (use __tcgetattr, __getline).
115472         Use bool for Booleans.
115473         [USE_IN_LIBIO]: Handle wide streams.
115474         [!_LIBC]: Unconditionally do the fseek, since we don't know what
115475         stream might go where.
115477         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
115478         doesn't have to include <stdio.h> before us.
115479         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
115480         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
115481         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
115482         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
115483         if not declared, so that we can use getpass.c code from libc without
115484         rewriting it.
115485         (flockfile, ftrylockfile, funlockfile): New macros.
115487 2003-10-08  Paul Eggert  <eggert@twinsun.com>
115489         * modules/getpass: Depend on stdbool.
115491 2003-10-08  Paul Eggert  <eggert@twinsun.com>
115493         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
115495 2003-10-07  Karl Berry  <karl@gnu.org>
115497         * config/config.{guess,sub}: update from config.
115499 2003-10-06  Jim Meyering  <jim@meyering.net>
115500             Bruno Haible  <bruno@clisp.org>
115502         This lets translators provide better translations for the
115503         "Written by ..." part of --version output.
115504         * lib/version-etc.h: Include stdarg.h.
115505         (version_etc_copyright): Declare as readonly.
115506         (version_etc): Make this function variadic with a NULL-terminated list
115507         of author name strings.
115508         (version_etc_va): New declaration.
115509         * lib/version-etc.c: Include stdarg.h, stdlib.h.
115510         (version_etc_copyright): Declare as readonly.
115511         (version_etc_va): New function. Provide a different translatable string
115512         for each possible number of authors < 10. Abbreviate when there are 10
115513         authors or more.
115514         (version_etc): Make this function variadic. Call version_etc_va.
115515         Suggestion from Gary V. Vaughan.
115517         * lib/long-options.h (parse_long_options): Change prototype: the
115518         authors string is moved to the end and becomes variadic.
115519         * lib/long-options.c: Include stdarg.h.
115520         (parse_long_options): Make this function variadic, too.
115521         Call version_etc_va, not version_etc.
115523 2003-10-06  Bruno Haible  <bruno@clisp.org>
115525         * modules/version-etc-2: Remove file.
115526         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
115528 2003-10-06  Bruno Haible  <bruno@clisp.org>
115530         * modules/fatal-signal: New file.
115531         * MODULES.html.sh (func_all_modules): Add fatal-signal.
115533 2003-10-06  Bruno Haible  <bruno@clisp.org>
115535         * m4/fatal-signal.m4: New file.
115536         * m4/signalblocking.m4: New file, from GNU gettext.
115538 2003-10-06  Bruno Haible  <bruno@clisp.org>
115540         * lib/version-etc-2.h: Remove file.
115541         * lib/version-etc-2.c: Remove file.
115543 2003-10-06  Bruno Haible  <bruno@clisp.org>
115545         * lib/fatal-signal.h: New file, from GNU gettext.
115546         * lib/fatal-signal.c: New file, from GNU gettext.
115548 2003-10-05  Paul Eggert  <eggert@twinsun.com>
115550         * README: Rework advice for preventing empty .o files.
115551         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
115552         not <sys/types.h>.
115554 2003-10-04  Karl Berry  <karl@gnu.org>
115556         * lib/argp*: update from libc.
115558 2003-10-04  Karl Berry  <karl@gnu.org>
115560         * config/config.{guess,sub}: update from config.
115562 2003-10-02  Bruno Haible  <bruno@clisp.org>
115564         * modules/lchown (Include): Add lchown.h.
115565         * modules/time_r (Include): Use "..." syntax.
115566         * modules/xgetdomainname (Include): Add xgetdomainname.h.
115568 2003-10-01  Simon Josefsson  <jas@extundo.com>
115570         * MODULES.html.sh (func_all_modules): Move gethostname from section
115571         'based on' to section 'lacking' POSIX:2001.
115573 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
115575         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
115576         to output mode on the same stream.
115578 2003-09-29  Paul Eggert  <eggert@twinsun.com>
115580         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
115581         Fix arg typo in previous patch.
115583 2003-09-28  Jim Meyering  <jim@meyering.net>
115585         * lib/error.c: Correct cpp indentation.
115587 2003-09-27  Paul Eggert  <eggert@twinsun.com>
115589         * modules/free: New file.
115591 2003-09-27  Paul Eggert  <eggert@twinsun.com>
115593         * m4/free.m4: New file.
115595 2003-09-27  Paul Eggert  <eggert@twinsun.com>
115597         * lib/minmax.h (MIN, MAX)
115598         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
115599         Omit the special code that used __typeof__, since we worry that
115600         it could be more trouble than it's worth.  See:
115601         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00090.html
115602         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00095.html
115604         * lib/free.c: New file.
115606 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
115608         Trivial fixes to Makefile.am parts of module listings.
115609         * modules/strstr: Append strstr.h to lib_SOURCES.
115610         * modules/strcase: Likewise, for strcase.h.
115612 2003-09-27  Karl Berry  <karl@gnu.org>
115614         * config/mkinstalldirs: update from automake.
115616 2003-09-26  Paul Eggert  <eggert@twinsun.com>
115618         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
115619         (error_tail): Do not loop, reallocating temporary buffer, since
115620         the output cannot contain more wide characters than the input
115621         contains bytes, the size must be big enough already.  This avoids
115622         one potential size overflow calculation.  Check for size overflow
115623         when calculating temporary buffer size.  Free temporary buffer
115624         when done, if it was allocated with malloc; this plugs a memory
115625         leak.  Remove casts from void * to pointers, that are no longer
115626         needed now that we're assuming C89 or better.
115628         Merge error changes from glibc.
115630         * lib/error.c, error.h: Update copyright notice header to match glibc.
115631         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
115632         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
115633         Disable cancellation while printing error.
115634         * lib/error.h: Prepend __ to parameter names.
115636 2003-09-26  Jim Meyering  <jim@meyering.net>
115638         * lib/error.c (error_tail): Move some declarations
115639         into inner scope where the local variables are used.
115641 2003-09-26  Bruno Haible  <bruno@clisp.org>
115643         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
115644         stpncpy().
115645         Don't define stpncpy through config.h; it's now done through stpncpy.h.
115647 2003-09-26  Bruno Haible  <bruno@clisp.org>
115649         * lib/stpncpy.h (gnu_stpncpy): New declaration.
115650         (stpncpy): Define as alias for gnu_stpncpy.
115651         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
115653 2003-09-25  Simon Josefsson  <jas@extundo.com>
115655         * lib/xgetdomainname.h: New file.
115656         * lib/xgetdomainname.c: New file.
115658 2003-09-25  Simon Josefsson  <jas@extundo.com>
115659             Bruno Haible  <bruno@clisp.org>
115661         * modules/getdomainname: New file.
115662         * modules/xgetdomainname: New file.
115663         * MODULES.html.sh (func_all_modules): Add getdomainname,
115664         xgetdomainname.
115666 2003-09-25  Simon Josefsson  <jas@extundo.com>
115667             Bruno Haible  <bruno@clisp.org>
115669         * m4/getdomainname.m4: New file.
115671 2003-09-25  Simon Josefsson  <jas@extundo.com>
115672             Bruno Haible  <bruno@clisp.org>
115674         * lib/getdomainname.h: New file.
115675         * lib/getdomainname.c: New file.
115677 2003-09-25  Karl Berry  <karl@gnu.org>
115679         * lib/argp-fmtstream.c, argp-help.c: update from libc.
115681 2003-09-25  Karl Berry  <karl@gnu.org>
115683         * config/install-sh: update from automake.
115685 2003-09-25  Bruno Haible  <bruno@clisp.org>
115687         * modules/version-etc-2: New file, from modules/version-etc with
115688         modifications.
115689         * MODULES.html.sh (func_all_modules): Add version-etc-2.
115691 2003-09-25  Bruno Haible  <bruno@clisp.org>
115693         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
115694         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
115696 2003-09-24  Simon Josefsson  <jas@extundo.com>
115698         * modules/xgethostname: Add xgethostname.h.
115700 2003-09-24  Paul Eggert  <eggert@twinsun.com>
115702         * lib/linebuffer.c (freebuffer): Don't free the argument, just
115703         the buffer associated with the argument.  Bug reported by
115704         Simon Josefsson.
115706 2003-09-24  Paul Eggert  <eggert@twinsun.com>
115708         * README: Document assumptions that 'int' is at least 32 bits
115709         wide, that integer arithmetic is 2's complement without overflow,
115710         that there are no holes in integer values, that adding sizes of
115711         two nonoverlapping objects can't overflow, and that all-bits-zero
115712         yields scalar zero.  Fix spelling and capitalization typos.
115714 2003-09-19  Karl Berry  <karl@gnu.org>
115716         * lib/argp.h: update from libc.
115718 2003-09-17  Paul Eggert  <eggert@twinsun.com>
115720         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
115721         to avoid spurious warnings like "AC_RUN_IFELSE was called before
115722         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
115724 2003-09-17  Paul Eggert  <eggert@twinsun.com>
115726         * gnulib-tool: Use "test -h", not "test -L", for portability
115727         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
115728         (tags_regexp): Remove, since \| doesn't conform to POSIX.
115729         (sed_extract_prog): Issue s commands one-by-one, rather than
115730         using \| in one s command.
115732 2003-09-16  Paul Eggert  <eggert@twinsun.com>
115734         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
115735         input error, instead of returning NULL the next time we are called
115736         (and therefore losing track of errno).
115738 2003-09-16  Bruno Haible  <bruno@clisp.org>
115740         * gnulib-tool (func_create_testdir): Warn about duplicated
115741         dependencies.
115743 2003-09-15  Paul Eggert  <eggert@twinsun.com>
115745         * modules/argmatch, modules/fatal, modules/obstack,
115746         modules/xalloc, modules/xgethostname: Sort dependencies by
115747         importance, not alphabetically.
115749 2003-09-15  Paul Eggert  <eggert@twinsun.com>
115751         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
115752         fails, so that the caller gets the proper errno.
115754         * lib/readutmp.c (read_utmp): Likewise.
115755         Check for fstat error.  Close stream and free storage
115756         when failing.
115758 2003-09-14  Karl Berry  <karl@gnu.org>
115760         * config/srclist.txt (strdup.c): disable for c89 changes.
115762 2003-09-14  Jim Meyering  <jim@meyering.net>
115764         * lib/getloadavg.c: Correct cpp indentation.
115765         * lib/strdup.c: Likewise.
115766         * lib/vasnprintf.c: Likewise.
115768 2003-09-14  Bruno Haible  <bruno@clisp.org>
115770         * modules/fwriteerror: New file.
115771         * MODULES.html.sh (func_all_modules): Add fwriteerror.
115773 2003-09-14  Bruno Haible  <bruno@clisp.org>
115775         * lib/fwriteerror.h: New file.
115776         * lib/fwriteerror.c: New file.
115778 2003-09-12  Paul Eggert  <eggert@twinsun.com>
115780         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
115781         modules/xgethostname, modules/xalloc: Depend on exit.
115783 2003-09-12  Paul Eggert  <eggert@twinsun.com>
115785         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
115787         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
115788         and AC_MINIX, too, so that their extensions are available.
115790         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
115791         This macro has been superseded by gl_BACKUPFILE.
115793         More patches to assume C89 or better.
115795         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
115797         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
115798         unconditionally.
115799         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
115800         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
115801         Include <string.h>, <stdlib.h> unconditionally.
115802         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
115803         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
115804         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
115805         headers or for string.h.
115806         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
115807         or strtoul.
115809         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
115810         headers.
115811         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
115812         * m4/userspec.m4 (gl_USERSPEC): Likewise.
115813         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
115814         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
115815         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
115816         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
115817         memcpy, memset.
115818         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
115819         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
115820         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
115821         strtol.
115822         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
115823         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
115824         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
115825         strtoul.
115827 2003-09-12  Paul Eggert  <eggert@twinsun.com>
115829         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
115830         * lib/obstack.c [!defined _LIBC]: Likewise.
115831         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
115832         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
115833         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
115835         More changes to assume C89 or better.
115837         * lib/error.c (error_tail): Assume vprintf.
115839         * lib/argmatch.c (getenv): Remove decl.
115840         * lib/progreloc.c (get_full_program_name): Define via prototype.
115841         * lib/setenv.c (clearenv): Likewise.
115842         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
115843         needed.
115844         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
115845         (malloc, memcpy): Remove decls.
115846         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
115847         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
115848         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
115849         (memcpy): Remove macro.
115850         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
115851         (__P): Remove.  All uses removed.
115852         (PTR): Remove.  All uses changed to void *.
115853         (CHAR_BIT, NULL): Remove.
115854         (spaces, zeros, memset_space, memset_zero)
115855         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
115856         Remove.
115857         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
115858         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
115859         Define with prototype.
115860         Remove now-unnecessary prototype decl.
115861         (extra_args_spec): Assume ANSI C.  All uses changed.
115862         (extra_args_spec_iso): Remove.
115863         (my_strftime, emacs_strftimeu): Define via prototype.
115864         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
115865         unconditionally.
115866         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
115867         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
115868         (strtoul, strtol): Remove decls.
115869         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
115870         LONG_MAX): Remove.
115871         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
115872         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
115873         (LOCALE_PARAM_PROTO): New macro.
115874         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
115875         (INTERNAL (strtol), strtol): Define with a prototype.
115876         (PARAMS): Remove.  All uses removed.
115877         * lib/tempname.c: Include <string.h> unconditionally.
115878         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
115879         * lib/xgethostname.c (main): Define with a prototype.
115880         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
115881         Include <stdlib.h> unconditionally.
115882         (calloc, malloc, realloc, free): Remove decls.
115883         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
115884         Include <stdlib.h> unconditionally.  Sort include file names.
115885         (strtod): Remove.
115886         (xstrtod): Define with a prototype.
115887         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
115888         (strtol, strtoul): Remove decls.
115890 2003-09-11  Paul Eggert  <eggert@twinsun.com>
115892         More patches to assume C89 or better.
115893         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
115894         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
115895         string.h, memchr, STDC_HEADERS.
115897 2003-09-11  Paul Eggert  <eggert@twinsun.com>
115899         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
115900         Include <stdlib.h>, <string.h> unconditionally.
115901         Remove now-unnecessary cast to char *.
115902         * lib/strnlen.c: Include <string.h> unconditionally.
115903         * lib/yesno.c (yesno): Define with a prototype.
115905 2003-09-11  Bruno Haible  <bruno@clisp.org>
115907         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
115909 2003-09-10  Jim Meyering  <jim@meyering.net>
115911         * lib/error.c: Correct indentation of cpp directives.
115913 2003-09-10  Bruno Haible  <bruno@clisp.org>
115915         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
115916         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
115917         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
115918         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
115919         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
115920         <stdlib.h> and <string.h> checks.
115921         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
115922         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
115924 2003-09-10  Bruno Haible  <bruno@clisp.org>
115926         * lib/strcspn.c: Include <string.h> unconditionally.
115927         * lib/strpbrk.c: Include <string.h> unconditionally.
115928         * lib/strstr.c: Include <string.h> unconditionally.
115929         * lib/unicodeio.c: Include <string.h> unconditionally.
115930         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
115931         * lib/unsetenv.c: Likewise.
115932         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
115933         * lib/yesno.c: Include <stdlib.h> unconditionally.
115934         (rpmatch): Add prototype.
115936 2003-09-09  Paul Eggert  <eggert@twinsun.com>
115938         More patches to assume C89 or better.
115939         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
115940         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
115941         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
115942         or for string.h.
115943         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
115944         stdlib.h.
115945         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
115946         C headers.
115947         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
115948         string.h.
115949         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
115950         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
115951         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
115952         or for string.h.
115953         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
115954         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
115955         C headers.
115956         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
115957         memcpy.
115958         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
115959         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
115960         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
115961         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
115962         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
115963         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
115964         string.h, free.
115965         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
115966         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
115967         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
115968         C headers, or for string.h.
115969         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
115970         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
115971         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
115972         headers, memory.h, stdlib.h, string.h, strings.h.
115973         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
115974         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
115975         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
115976         strchr.
115977         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
115978         headers, memory.h, string.h.
115979         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
115980         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
115981         free.
115982         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
115983         headers.
115984         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
115985         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
115986         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
115987         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
115988         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
115990 2003-09-09  Paul Eggert  <eggert@twinsun.com>
115992         More K&R removal.
115994         * lib/acosl.c (main): Use a prototype.
115995         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
115996         tanl.c: Likewise.
115998         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
116000         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
116001         (getopt, etopt_long, getopt_long_only, _getopt_internal)
116002         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
116003         with a prototype.
116004         * lib/getopt.c (const): Remove macro.
116005         Include <string.h> unconditionally.
116006         (my_index): Remove; all uses changed to strchr.
116007         (strlen): Remove decl.
116008         (exchange): Remove forward decl; no longer needed.
116009         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
116010         Define with prototype.
116011         * lib/getopt1.c (const): Remove macro.
116012         (getopt_long, getopt_long_only, main): Define with prototype.
116014         * lib/getugroups.c: Include <string.h> unconditionally.
116016         * lib/getusershell.c: Include <stdlib.h> unconditionally.
116017         (getusershell, setusershell, endusershell, readname, main):
116018         Define with prototypes.
116020         * lib/group-member.c: Include group-member.h first.
116021         Include <stdlib.h> unconditionally.
116023         * lib/hard-locale.c: Include hard-locale.h first.
116024         Include <stdlib.h>, <string.h> unconditionally.
116026         * lib/hash.c (free, malloc): Remove decls.
116027         Include <stdlib.h> unconditionally.
116029         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
116030         (getenv): Do not declare.
116032         * lib/idcache.c: Include <string.h> unconditionally.
116034         * lib/long-options.c: Include long-options.h first, to test interface.
116035         Include <stdlib.h> unconditionally.
116037         * lib/makepath.c: Include makepath.h first, to test interface.
116038         Include <stdlib.h> and <string.h> unconditionally.
116040         * lib/linebuffer.c: Include <stdlib.h>.
116041         (free): Remove decl.
116043         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
116044         stddef.h. rpl_malloc returns void *, not char *.
116045         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
116046         prototype.
116048         * lib/md5.h: Include <limits.h> unconditionally.
116049         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
116050         (__P): Remove; all uses removed.
116051         * lib/md5.c: Include "md5.h" first.
116052         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
116053         md5_buffer, md5_process_bytes, md5_process_block):
116054         Define with prototypes.
116055         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
116056         * lib/sha.c: Include "sha.h" first.
116057         Include <stdlib.h>, <string.h> unconditionally.
116059         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
116060         * lib/memcmp.c (__ptr_t): Likewise.
116061         * lib/memrchr.c (__ptr_t): Likewise.
116062         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
116063         Include <string.h> unconditionally.
116064         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
116065         * lib/memchr.c: Include <stdlib.h> unconditionally.
116066         * lib/memchr.c (LONG_MAX): Remove.
116067         * lib/memrchr.c (LONG_MAX): Likewise.
116068         * lib/memchr.c (__memchr): Define via a prototype.
116069         * lib/memrchr.c (__memrchr): Likewise.
116070         * lib/memcmp.c (__P): Remove, and remove all uses.
116071         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
116072         Remove forward decls; no longer needed.
116073         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
116074         Use types required by C89 in prototype.
116076         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
116077         * lib/savedir.c: Likewise.
116078         * lib/mkdir.c (free): Remove decl.
116079         * lib/rmdir.c (rmdir): Define with a prototype.
116080         * lib/savedir.c: Include savedir.h first, to test interface.
116082         * lib/mktime.c (STDC_HEADERS): Remove.
116083         Include <stdlib.h>, <string.h> unconditionally.
116085         * lib/modechange.c: Include <stdlib.h> unconditionally.
116086         (malloc): Remove decl.
116088         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
116089         (free): Remove decl.
116091         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
116092         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
116093         (This type really should be intptr_t, but that's a C99ism.)
116094         (_obstack_memcpy): Remove: all uses changed to memcpy.
116095         Include <string.h> unconditionally.
116096         (struct obstack): Assume __STDC__ for types of members
116097         chunkfun, freefun, extra_arg.
116098         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
116099         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
116100         obstack_begin, obstack_specify_allocation,
116101         obstack_specify_allocation_with_arg, obstack_chunkfun,
116102         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
116103         Remove unprototyped decls and the macros that use them.
116104         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
116105         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
116106         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
116107         (defined __STDC__ && __STDC__)]:
116108         Remove nonprototyped code.
116109         Include <stdlib.h> unconditionally.
116110         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
116111         _obstack_allocated_p, _obstack_free, obstack_free,
116112         _obstack_memory_used, print_and_abort):
116113         Define using prototypes.
116114         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
116115         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
116116         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
116117         obstack_next_free, obstack_object_size, obstack_room) [0]:
116118         Remove unused, unprototyped code.
116120         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
116122         * lib/physmem.c (physmem_total, physmem_available, main): Define
116123         with prototypes.
116125         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
116126         (main): Define with a prototype.
116128         * lib/posixver.c (getenv): Remove decl.
116130         * lib/putenv.c (malloc): Returns void *, not char *.
116131         Include <string.h> unconditionally.
116132         (strchr, memcpy, NULL): Do not define.
116134         * lib/readtokens.c: Include readtokens.h first, to test interface.
116135         Include <stdlib.h>, <string.h> unconditionally.
116136         (init_tokenbuffer): Define with a prototype.
116138         * lib/regex.c (PARAMS): Remove.  All uses removed.
116139         All uses of _RE_ARGS removed, too.
116140         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
116141         unconditionally.
116142         (bzero): Assume memset exists.
116143         (memcmp, memcpy, NULL): Remove.
116144         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
116145         char, or assignments to local vars of type signed char.
116146         (init_syntax_once, PREFIX(extract_number_and_incr),
116147         PREFIX(print_partial_compiled_pattern),
116148         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
116149         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
116150         PREFIX(regex_grow_registers), PREFIX(regex_compile),
116151         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
116152         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
116153         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
116154         wcs_compile_range, byte_compile_range, truncate_wchar,
116155         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
116156         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
116157         count_mbs_length, wcs_re_match_2_internal,
116158         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
116159         PREFIX(alt_match_null_string_p),
116160         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
116161         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
116162         regfree, PREFIX(extract_number)): Define with prototype.  Remove
116163         now-unnecessary declaration, if any.
116164         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
116165         regcomp, regexec):
116166         Remove now-unnecessary casts among pointer types.
116167         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
116169         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
116170         (free): Remove decl.
116172         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
116174         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
116175         (free): Remove decl.
116177         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
116178         * lib/xgetcwd.c: Likewise.
116180         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
116181         (free): Remove decl.
116183         * lib/strchrnul.c (strchrnul): Define with a prototype.
116184         Fix bug: c_in was not converted to char before searching.
116186         The following changes are not K&R related:
116188         * lib/group-member.h: Include <sys/types.h>, so that this file is
116189         self-contained.
116190         * lib/makepath.h: Likewise.
116192         * lib/getusershell.c (readname, default_index, line_size, readname):
116193         Use size_t, not int, for sizes.
116194         (readname): If the size overflows, report an error instead of
116195         looping forever.
116197 2003-09-09  Paul Eggert  <eggert@twinsun.com>
116199         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
116200         libc.
116202 2003-09-09  Paul Eggert  <eggert@twinsun.com>
116204         * README: New section: portability guidelines.
116206 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
116208         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
116209         C89 spec.
116211 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
116213         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
116215 2003-09-08  Paul Eggert  <eggert@twinsun.com>
116217         Assume C89 or better; remove K&R cruft.
116218         A few of these changes were first proposed by Derek Robert Price
116219         in <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00105.html>.
116221         * lib/addext.c: Include <string.h> unconditionally.
116222         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
116223         Don't declare getenv or malloc.
116225         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
116226         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
116227         (NULL): Remove.
116228         (find_stack_direction, alloca): Use prototypes.
116230         * lib/atexit.c (atexit): Define using a prototype.
116232         * lib/basename.c, dirname.c, stripslash.c:
116233         Include <string.h> unconditionally.
116235         * lib/bcopy.c: Include <stddef.h>.
116236         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
116238         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
116240         * lib/error.h (error, error_at_line, error_print_progname)
116241         [! (defined (__STDC__) && __STDC__)]: Remove decls.
116242         * lib/error.c: Include error.h first, to check interface.
116243         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
116244         (VA_START): Remove; all uses changeed to va_start.
116245         (exit, strerror): Remove decls.
116246         (error_print_progname): Prototype uncondionally.
116247         Don't include <errno.h>; no longer needed.
116248         (private_strerror): Remove.
116249         (error_tail): Always define.
116250         (error, error_at_line): Assume C89 or better; always use prototypes.
116251         * lib/fatal.c: Include "fatal.h" first, to test interface.
116252         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
116253         (VA_START): Remove; all uses changed to va_start.
116254         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
116255         this case.
116256         (exit): Remove decl.
116257         (fatal): Prototype unconditionally.  Assume va_start works.
116258         Abort at end, to pacify gcc.
116260         * lib/euidaccess.c (main): Define with a prototype.
116262         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
116264         * lib/exitfail.c: Include <stdlib.h> unconditionally.
116266         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
116267         prototypes.
116268         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
116269         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
116270         (getenv): Remove decl.
116271         (fnmatch): Define using a prototype.
116272         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
116273         (FCT): Define using a prototype.
116275         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
116277         * lib/gethostname.c: Include <stddef.h>.
116278         (gethostname): Define with prototype.  Length is size_t, not int.
116280 2003-09-08  Paul Eggert  <eggert@twinsun.com>
116282         Assume C89 or better; remove K&R cruft.
116283         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
116284         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
116285         string.h, getenv, malloc.
116286         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
116287         headers.
116288         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
116289         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
116290         do not check for strerror.
116291         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
116292         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
116293         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
116294         do not check for doprnt or vprintf.
116295         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
116296         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
116298 2003-09-08  Paul Eggert  <eggert@twinsun.com>
116300         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
116301         getversion.c should have been removed then, but was accidentally
116302         preserved.
116304         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
116305         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
116307 2003-09-08  Karl Berry  <karl@gnu.org>
116309         * config/config.sub, config.guess, srclistvars.sh: update from savannah
116310                 config, forget about prep.
116312         * config/depcomp, missing: update from automake.
116314 2003-09-07  Paul Eggert  <eggert@twinsun.com>
116316         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
116317         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
116319 2003-09-07  Paul Eggert  <eggert@twinsun.com>
116321         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
116322         copy_tm_result.  Bug reported by Simon Josefsson in
116323         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
116325 2003-09-06  Paul Eggert  <eggert@twinsun.com>
116327         * m4/time_r.m4: New file.
116328         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
116329         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
116330         is. Check for timegm declaration.
116331         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
116332         Do not check for gmtime_r.
116333         Replace mktime if __mktime_internal does not exist and if mktime
116334         hasn't been replaced already.
116336 2003-09-06  Paul Eggert  <eggert@twinsun.com>
116338         * lib/time_r.c, lib/time_r.h: New files.
116340         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
116341         __localtime_r.
116342         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
116343         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
116345         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
116346         __gmtime_r.
116347         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
116348         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
116349         Include <time_r.h>.
116351         * lib/timegm.c: Switch to glibc implementation, with the following
116352         changes:
116353         [defined HAVE_CONFIG_H]: Include <config.h>.
116354         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
116355         (__mktime_internal) [!defined _LIBC]: New decl.
116356         (__gmtime_r) [!defined _LIBC]: New macro and function.
116357         (timegm): Use a prototype, since gnulib assumes C89.
116358         Do not bother declaring tmp to be const, as it's not really usefu.
116359         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
116360         (timegm): Declare only if HAVE_DECL_TIMEGM.
116362 2003-09-06  Paul Eggert  <eggert@twinsun.com>
116364         * MODULES.html.sh (func_all_modules): Add time_r.
116365         * modules/time_r: New file.
116366         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
116367         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
116369 2003-09-03  Paul Eggert  <eggert@twinsun.com>
116371         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
116372         Bug reported by Lute Kamstra in
116373         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00003.html>.
116375         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
116376         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
116377         course with correspondingly smaller numbers for tomorrow and
116378         yesterday.  From Tadayoshi Funaba.  Originally installed into
116379         sh-utils on 1999-08-07, but the patch got lost (I guess during the
116380         coreutils merge?).
116382 2003-08-31  Simon Josefsson  <jas@extundo.com>
116384         * modules/timegm: New file.
116385         * MODULES.html.sh (func_all_modules): Add timegm.
116387 2003-08-31  Simon Josefsson  <jas@extundo.com>
116389         * m4/timegm.m4: New file.
116391 2003-08-31  Simon Josefsson  <jas@extundo.com>
116393         * lib/timegm.h: New file.
116394         * lib/timegm.c: New file.  Based on
116395         wget-1.8.2/src/http.c:mktime_from_utc.
116397 2003-08-31  Karl Berry  <karl@gnu.org>
116399         * lib/argp.h: update from libc.
116401 2003-08-28  Bruno Haible  <bruno@clisp.org>
116403         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
116404         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
116405         followed by '#define fnmatch fnmatch_posix' gives an error.
116407 2003-08-28  Bruno Haible  <bruno@clisp.org>
116409         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
116410         warning on QNX, which defines O_BINARY to 000000.
116412 2003-08-27  Jim Meyering  <jim@meyering.net>
116414         * m4/mkstemp.m4: Require that the system mkstemp be able to create
116415         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
116416         would fail after 32.  Reported by Danny Levinson.  Details here:
116417         http://mail.gnu.org/r/bug-coreutils/2003-08/msg00124.html
116419 2003-08-24  Bruno Haible  <bruno@clisp.org>
116421         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
116422         MSVC7 <stdio.h> is included later.
116424 2003-08-22  Simon Josefsson  <jas@extundo.com>
116426         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
116428 2003-08-20  Karl Berry  <karl@gnu.org>
116430         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
116432 2003-08-20  Bruno Haible  <bruno@clisp.org>
116434         * modules/progname: New file.
116435         * MODULES.html.sh (func_all_modules): Add progname.
116437 2003-08-20  Bruno Haible  <bruno@clisp.org>
116439         * lib/progname.h: New file, from GNU gettext.
116440         * lib/progname.c: New file, from GNU gettext.
116441         * lib/progreloc.c: New file, from GNU gettext.
116443 2003-08-19  Jim Meyering  <jim@meyering.net>
116445         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
116446         http://mail.gnu.org/r/bug-gnulib/2003-08/msg00155.html
116448 2003-08-19  Bruno Haible  <bruno@clisp.org>
116450         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
116451         more.
116453 2003-08-19  Bruno Haible  <bruno@clisp.org>
116455         * lib/xstrdup.c: Assume <string.h> exists.
116457 2003-08-18  Paul Eggert  <eggert@twinsun.com>
116459         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
116460         in makefile rules.
116462 2003-08-18  Jim Meyering  <jim@meyering.net>
116464         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
116465         * m4/lib-ld.m4: Likewise.
116467 2003-08-18  Jim Meyering  <jim@meyering.net>
116469         * lib/setenv.h: Indent nested cpp directive.
116470         * lib/vasnprintf.c: Remove trailing blanks.
116472 2003-08-17  Simon Josefsson  <jas@extundo.com>
116474         * modules/xstrndup: New file.
116475         * MODULES.html.sh (func_all_modules): Add xstrndup.
116477 2003-08-17  Simon Josefsson  <jas@extundo.com>
116479         * modules/argp: Fix autoconf macro name. Add more dependencies.
116481 2003-08-17  Simon Josefsson  <jas@extundo.com>
116483         * m4/xstrndup.m4: New file.
116485 2003-08-17  Simon Josefsson  <jas@extundo.com>
116487         * m4/argp.m4: New file.
116489 2003-08-17  Simon Josefsson  <jas@extundo.com>
116490             Bruno Haible  <bruno@clisp.org>
116492         * lib/xstrndup.h: New file.
116493         * lib/xstrndup.c: New file.
116495 2003-08-17  Bruno Haible  <bruno@clisp.org>
116497         * modules/strndup (Files, Include): Add lib/strndup.h.
116499 2003-08-17  Bruno Haible  <bruno@clisp.org>
116501         * modules/euidaccess (Files): Add lib/euidaccess.h.
116503 2003-08-17  Bruno Haible  <bruno@clisp.org>
116505         * lib/strndup.h: New file.
116507 2003-08-17  Bruno Haible  <bruno@clisp.org>
116509         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
116510         like AC_GNU_SOURCE.
116511         * modules/extensions (configure.ac): Comment out the invocation of
116512         gl_USE_SYSTEM_EXTENSIONS.
116514 2003-08-16  Paul Eggert  <eggert@twinsun.com>
116516         Merges from coreutils, etc.
116517         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
116518         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
116519         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
116520         fixing a typo.
116521         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
116522         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
116524 2003-08-16  Paul Eggert  <eggert@twinsun.com>
116526         Document merge from coreutils.
116527         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
116528         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
116529         * modules/utime: Add m4/utimes-null.m4.
116531 2003-08-16  Paul Eggert  <eggert@twinsun.com>
116533         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
116534         space, undoing this 2003-08-12 change:
116535         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
116537 2003-08-16  Paul Eggert  <eggert@twinsun.com>
116539         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
116540         strtoul.c from libc, undoing this 2003-08-12 change:
116541         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
116543 2003-08-16  Jim Meyering  <jim@meyering.net>
116545         Merges from coreutils.
116546         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
116547         prefix.  Adjust cache variables similarly.  Create 500 rather than
116548         just 300 files, to exercise bug on Darwin6.5, too.
116549         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
116550         $missing_dir.
116551         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
116552         AM_SYS_POSIX_TERMIOS.
116553         Reported by mkc@mathdogs.com.
116554         Also change use of $am_cv_sys_posix_termios
116555         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
116556         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
116557         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
116558         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
116559         in /proc/mounts until it finds one with matching device number.  This
116560         is unnecessary when the FILE argument *is* a mount point.  No stat call
116561         is necessary in that case.  So, disable the statvfs-testing code on
116562         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
116563         as RedHat bug# 84846.
116564         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
116565         to 1MB, so as not to render systems with no stack size limit (e.g.,
116566         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
116567         Include <unistd.h>.  On some systems,
116568         it is required for the definition of _SC_PAGESIZE.
116570 2003-08-16  Jim Meyering  <jim@meyering.net>
116572         Merge from coreutils.
116573         * lib/xstrtoimax.c: #else #if -> #elif.
116574         * lib/xstrtoumax.c: Likewise.
116576 2003-08-16  Jim Meyering  <jim@meyering.net>
116578         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
116579         * m4/utimes.m4: Removed.
116580         * m4/utimes-null.m4: Renamed from utimes.m4.
116582         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
116583         to 1MB, so as not to render systems with no stack size limit (e.g.,
116584         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
116585         Include <unistd.h>.  On some systems,
116586         it is required for the definition of _SC_PAGESIZE.
116588 2003-08-16  Jim Meyering  <jim@meyering.net>
116589         and Paul Eggert  <eggert@cs.ucla.edu>
116591         Merges from coreutils, etc.
116593         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
116594         using the latest version from cvs.  This avoids problems with #line
116595         directives using a vendor (Sun) compiler.
116596         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
116597         Don't set GETGROUPS_LIB here; now it's
116598         done via getgroups.m4's wrapper function.
116599         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
116600         rather than just in sh-util/configure.in, so that the
116601         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
116602         same.
116603         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
116604         AC_FUNC_GETLOADAVG where to find getloadavg.c.
116605         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
116606         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
116607         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
116608         Remove code that is now done by the newly-required macros.
116609         Append $(EXEEXT) to DF_PROG.
116610         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
116611         Do not invoke or require the following here,
116612         since prereq.m4 or some gnulib .m4 now does this for us:
116613         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
116614         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
116615         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
116616         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
116617         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
116618         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
116619         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
116620         AC_FUNC_OBSTACK.
116621         Do not replace the following functions, as this is now the job
116622         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
116623         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
116624         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
116625         atexit getpass, strdup, getpagesize.
116626         Replace 'raise'.
116627         Do not check for the following functions, as this is now the job
116628         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
116629         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
116630         setregid.
116631         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
116632         Check for sys/sysctl.h.
116633         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
116634         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
116635         of checking for ssize_t ourselves.
116637         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
116638         Require every macro that gnulib/modules/* suggests for us.
116639         (jm_PREREQ_ADDEXT): New macro.
116640         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
116641         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
116643         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
116644         (gl_PHYSMEM): Use it.
116645         Also check for `table' function.
116646         Check for new headers and functions.
116647         Add check for sys/sysmp.h.
116648         With suggestions from Kaveh Ghazi.
116649         Ignore headers that are present but cannot be compiled.  This
116650         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
116651         C 5.4.
116653 2003-08-15  Paul Eggert  <eggert@twinsun.com>
116655         Document merge from coreutils.
116656         * modules/userspec: Depend on posixver.
116657         * modules/strftime: Depend on tzset.
116659 2003-08-15  Paul Eggert  <eggert@twinsun.com>
116661         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
116662         rather than tab, after '#' in shell-script copyright notices.
116663         Suggested by Bruno Haible.
116665 2003-08-15  Paul Eggert  <eggert@twinsun.com>
116667         * config/srclist-update: Use three spaces, rather than tab, after '#'
116668         in shell-script copyright notices.  Suggested by Bruno Haible.
116669         Remove unnecessary parenthesization in regular expression.
116671 2003-08-15  Jim Meyering  <jim@meyering.net>
116673         Merge from coreutils.
116674         * lib/xgethostname.c: Include <stdlib.h>.
116675         (xghostname): Don't exit for anything other than memory-related
116676         failure; just return NULL.
116677         * lib/userspec.c: Include "posixver.h".
116678         (parse_user_spec): Accept `.' as a separator only
116679         in pre-POSIX-200112 mode.
116680         * lib/strtoimax.c: Use #elif rather than #else #if.
116681         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
116682         Remove function, now that we can rely on a working tzset function.
116683         [!_LIBC]: Ensure that the required autoconf test has been run.
116684         [!defined _NL_CURRENT && HAVE_STRFTIME]:
116685         Use underlying_strftime for %r.
116686         * lib/sha.c: Merge in some clean-up and optimization changes from
116687         glibc.
116688         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
116689         Ensure that it is a multiple of 64.
116690         Rearrange loop exit tests so as to avoid performing an
116691         additional fread after encountering an error or EOF.
116692         * lib/realloc.c: Update copyright date.
116694 2003-08-15  Jim Meyering  <jim@meyering.net>
116695         and Paul Eggert  <eggert@twinsun.com>
116697         Merge from coreutils.
116698         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
116699         member but strut utmpx does not.  Needed for AIX 4.3.3.
116700         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
116702 2003-08-15  Jim Meyering  <jim@meyering.net>
116703         and Paul Eggert  <eggert@cs.ucla.edu>
116705         Merges from coreutils, etc.
116706         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
116707         Require gl_FUNC_TZSET_CLOBBER.
116708         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
116709         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
116710         members.
116712 2003-08-14  Paul Eggert  <eggert@twinsun.com>
116714         Help the merge from coreutils.
116715         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
116716         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
116717         * m4/tzset.m4: Use it too.
116719 2003-08-14  Paul Eggert  <eggert@twinsun.com>
116721         * modules/tzset: New file.
116723 2003-08-14  Jim Meyering  <jim@meyering.net>
116725         Merges from coreutils.
116726         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
116727         variable names, rather than @FNMATCH_H@.
116728         * modules/alloca: Likewise for $(ALLOCA_H).
116730         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
116731         the three copies of the literal target, `fnmatch.h'.
116732         * modules/alloca (alloca.h): Likewise.
116734 2003-08-14  Jim Meyering  <jim@meyering.net>
116736         Merge from coreutils.
116737         * m4/tzset.m4: New file.
116738         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
116739         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
116740         otherwise, AIX 5.1 systems would end up using the latter.
116741         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
116742         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
116743         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
116744         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
116746 2003-08-14  Jim Meyering  <jim@meyering.net>
116748         Merge from coreutils.
116749         * lib/obstack.h: Whitespace changes.
116750         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
116751         and xcalloc return values.
116752         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
116753         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
116754         hang on OSF/1 5.1 for DIR on both local and remote file systems.
116755         Reported by (and fix confirmed by) Nelson H. F. Beebe.
116756         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
116757         error from mntctl.
116758         Use mntctl's return value to drive the entry-processing loop, since
116759         we can't rely on the value of the vmt_length member in the last
116760         entry.  On some systems doing so could result in exhausting
116761         virtual memory.  Based in part on a patch from Mike Jetzer.
116763 2003-08-14  Jim Meyering  <jim@meyering.net>
116764         and Paul Eggert  <eggert@twinsun.com>
116766         Merges from coreutils, plus other fixes.
116767         * lib/physmem.c: Merge in portability changes from gcc/libiberty
116768         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
116769         for credits and details.  Thanks to Kaveh Ghazi for helping
116770         to keep these files in sync.
116771         (ARRAY_SIZE): Define it.
116772         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
116773         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
116774         (memcasecmp): Don't assume size_t fits in unsigned int.
116775         Remove casts and duplicate code.
116776         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
116777         (memcpy): Remove definition.
116778         Merge in some clean-up and optimization changes from glibc.
116779         [BLOCKSIZE]: Move definition to top of file.
116780         Ensure that it is a multiple of 64.
116781         Rearrange loop exit tests so as to avoid performing an
116782         additional fread after encountering an error or EOF.
116783         * lib/md5.h (md5_uintptr): Define.
116784         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
116785         return to the initial working directory.  Preserve errno
116786         for caller.
116787         * lib/idcache.c: Include "xalloc.h".
116788         (xmalloc, xrealloc): Remove decls.
116789         (getuser): Remove casts no longer required in C89.
116790         * lib/human.c: Include stdio.h, for sprintf.
116791         * lib/group-member.c: Include "xalloc.h".
116792         (xmalloc, xrealloc): Remove decls.
116793         (get_group_info): Remove casts no longer required in C89.
116794         * lib/getusershell.c (readname): Remove casts no longer required in
116795         C89.
116796         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
116797         * lib/getline.c: Whitespace fix, from coreutils.
116799 2003-08-13  Paul Eggert  <eggert@twinsun.com>
116801         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
116802         Check for isascii.
116804         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
116805         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
116806         Undo previous (whitespace-only) change.
116808 2003-08-13  Paul Eggert  <eggert@twinsun.com>
116810         * lib/exclude.c: Include <ctype.h>
116811         (IN_CTYPE_DOMAIN): New macro.
116812         (is_space): New fn.
116813         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
116814         and empty lines.
116816         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
116817         Undo previous (whitespace-only) change.
116819 2003-08-13  Paul Eggert  <eggert@twinsun.com>
116821         * config/srclist-update: Change update back to the old behavior,
116822         leaving whitespace alone.  Use one 'sed' command rather than a
116823         pipeline.
116824         (fixlicense): Now a variable, not a function.
116825         (remove_trailing_blanks): Remove.
116826         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
116827         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
116828         Undo previous (whitespace-only) change.
116830 2003-08-12  Paul Eggert  <eggert@twinsun.com>
116832         Merge from coreutils.
116833         * modules/euidaccess: Add lib_SOURCES, include for new
116834         file euidaccess.h
116836 2003-08-12  Paul Eggert  <eggert@twinsun.com>
116838         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
116839         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
116840         Normalize leading white space and remove trailing white space.
116842         Merge from coreutils
116843         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
116845         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
116846         0.12.1.  These files are now being upgraded automatically by
116847         ../config/srclist-update.
116849 2003-08-12  Paul Eggert  <eggert@twinsun.com>
116851         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
116852         Normalize leading white space and remove trailing white space.
116853         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
116854         notice, as per ../config/srclist-update.
116856         Merge from coreutils.
116857         * lib/euidaccess.h: New file.
116858         * lib/euidaccess.c: Include it.
116859         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
116860         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
116861         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
116863 2003-08-12  Paul Eggert  <eggert@twinsun.com>
116865         * config/srclist-update: Add copyright notice.
116866         (remove_id_lines, remove_trailing_blanks): New constants.
116867         (fixfile): Use them to normalize spacing a bit in copied files.
116868         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
116869         Normalize leading white space and remove trailing white space.
116871         * config/texinfo.tex: Sync with texinfo.
116873         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
116874         strtoul.c from libc, to merge coreutils whitespace changes.
116876         * config/srclist.txt: Get the following m4 files from gettext:
116877         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
116878         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
116879         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
116880         wint_t.m4.
116882 2003-08-12  Karl Berry  <karl@gnu.org>
116884         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
116885         been made.
116887 2003-08-11  Paul Eggert  <eggert@twinsun.com>
116889         * modules/gnu-source, m4/gnu-source.m4:
116890         Remove; we're assuming Autoconf 2.54 or later now.
116891         Suggested by Bruno Haible.
116892         * MODULES.html.sh (func_all_modules): Remove gnu-source.
116894 2003-08-11  Bruno Haible  <bruno@clisp.org>
116896         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
116898 2003-08-11  Bruno Haible  <bruno@clisp.org>
116900         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
116901         (vasnprintf): Use it instead of wcslen.
116903 2003-08-11  Bruno Haible  <bruno@clisp.org>
116905         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
116906         value to ensure that _Bool promotes to int. Use #define for _Bool when
116907         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
116909 2003-08-10  Karl Berry  <karl@gnu.org>
116911         * lib/regex.h: update from libc (whitespace fix).
116913 2003-08-09  Paul Eggert  <eggert@twinsun.com>
116915         Merge some files from coreutils.  These changes were
116916         originally made by Jim Meyering.
116917         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
116918         many older Unixes require this.
116919         * lib/alloca.c (alloca): Remove cast to argument of free;
116920         no longer needed in C89.
116921         * lib/alloca_.h, regex.h: Fix white space to match
116922         what GNU indent does.
116924 2003-08-09  Paul Eggert  <eggert@twinsun.com>
116926         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
116927         apparently Emacs's Unicode mode got confused before my 2003-08-05
116928         checkin.
116930 2003-08-08  Paul Eggert  <eggert@twinsun.com>
116932         * m4/extensions.m4: New file.
116933         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
116934         Require gl_USE_SYSTEM_EXTENSIONS.
116935         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
116936         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
116938 2003-08-08  Paul Eggert  <eggert@twinsun.com>
116940         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
116941         * modules/extensions, modules/gnu-source: New files.
116942         * modules/timespec, modules/unlocked-io: Depend on extensions.
116944 2003-08-07  Paul Eggert  <eggert@twinsun.com>
116946         * modules/restrict: New file.
116947         * MODULES.html.sh (func_all_modules): Add restrict.
116948         * modules/regex: Depend on restrict.
116950 2003-08-07  Paul Eggert  <eggert@twinsun.com>
116952         * m4/restrict.m4: New file.
116953         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
116955 2003-08-07  Bruno Haible  <bruno@clisp.org>
116957         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
116958         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
116960 2003-08-07  Bruno Haible  <bruno@clisp.org>
116962         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
116963         makes the module 'getndelim2' compatible with the module 'getline'.
116965 2003-08-05  Paul Eggert  <eggert@twinsun.com>
116967         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
116968         byte with "\201" to avoid glitches when editing that source file
116969         with multi-gnome-terminal.
116971 2003-08-05  Paul Eggert  <eggert@twinsun.com>
116973         * lib/bumpalloc.h: Remove.
116975 2003-08-05  Paul Eggert  <eggert@twinsun.com>
116977         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
116978         * modules/bumpalloc: Remove.
116980 2003-08-04  Paul Eggert  <eggert@twinsun.com>
116982         * lib/getloadavg.c: Change copyright notice and spacing to conform to
116983         GNU coding style.
116985         Merge from coreutils.
116986         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
116987         1. From glibc.
116988         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
116989         from Karl Berry, implemented by Jim Meyering.
116990         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
116991         from Dmitry V. Levin.
116992         Remove anachronistic cast of xrealloc.
116993         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
116994         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
116995         type. Otherwise, it wouldn't compile with at least /bin/cc on
116996         ymp-cray-unicos9.0.2.X.
116997         Combine two mostly-identical uses of alloca into one.
116998         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
117000 2003-08-04  Dave Love  <d.love@dl.ac.uk>
117002         [From Emacs.]
117004         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
117005         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
117006         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
117007         obsolete NLIST_NAME_UNION.
117008         [__GNU__]: Undef BSD and FSCALE.
117009         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
117011 2003-08-03  Paul Eggert  <eggert@twinsun.com>
117013         * lib/stdbool_.h (_Bool): Make it signed char, instead of
117014         an enum type, so that it's guaranteed to promote to int.  See:
117015         <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00124.html>
117017 2003-08-03  Karl Berry  <karl@gnu.org>
117019         * config/depcomp: update from automake.
117021 2003-07-31  Paul Eggert  <eggert@twinsun.com>
117023         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
117024         (strerror): Don't assume that a printable int fits in 14 bytes.
117026 2003-07-31  Bruno Haible  <bruno@clisp.org>
117028         * modules/getpass-gnu: New file.
117029         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
117031 2003-07-31  Bruno Haible  <bruno@clisp.org>
117033         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
117035 2003-07-24  Karl Berry  <karl@gnu.org>
117037         * config/missing: update from automake.
117039 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
117040             Bruno Haible  <bruno@clisp.org>
117042         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
117043         * lib/getline.c (getline, getdelim): Likewise.
117044         Remove _GNU_SOURCE define; now it's defined in config.h through
117045         m4/getline.m4.
117047 2003-07-23  Karl Berry  <karl@gnu.org>
117049         * config/config.sub: update from prep.
117051 2003-07-22  Paul Eggert  <eggert@twinsun.com>
117053         * modules/xalloc (Depends-on): Add exitfail.
117054         * modules/xmemcoll: Likewise.
117056 2003-07-22  Paul Eggert  <eggert@twinsun.com>
117058         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
117059         over-parenthesization in macros.
117061         Sync with coreutils.
117063         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
117064         required by C99.
117066         Use `exit_failure' for xalloc and xmemcoll instead of their own
117067         private exit-failure variables.
117068         * lib/xalloc.h (xalloc_exit_failure): Remove.
117069         * lib/xmalloc.c: Likewise.  Include exitfail.h.
117070         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
117071         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
117072         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
117073         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
117075 2003-07-20  Jim Meyering  <jim@meyering.net>
117077         * modules/closeout (Depends-on): Add exitfail.
117078         Suggestion from Bruno Haible.
117080 2003-07-19  Karl Berry  <karl@gnu.org>
117082         * config/config.sub: update from prep.
117084 2003-07-18  Paul Eggert  <eggert@twinsun.com>
117086         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
117087         Remove.
117088         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
117089         to test that it can stand by itself.  Include "exitfail.h".
117090         Clients should set exit_failure instead.
117091         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
117093 2003-07-18  Bruno Haible  <bruno@clisp.org>
117095         * modules/getndelim2: New file.
117096         * modules/getline: Share files with module getndelim2.
117097         * modules/getnline: Depend on getndelim2 instead of sharing files with
117098         it. Add getnline.c to lib_SOURCES.
117099         * MODULES.html.sh (func_all_modules): Add getndelim2.
117101 2003-07-18  Bruno Haible  <bruno@clisp.org>
117103         * m4/getndelim2.m4: New file.
117104         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
117105         invoke gl_PREREQ_GETNDELIM2.
117106         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
117107         gl_PREREQ_GETNDELIM2.
117108         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
117109         gl_GETNDELIM2.
117111 2003-07-18  Bruno Haible  <bruno@clisp.org>
117113         * lib/getndelim2.h: New file.
117114         * lib/getndelim2.c: Make into a module of its own. Include config.h,
117115         getndelim2.h.
117116         (getndelim2): Make non-static. Change return type to ssize_t.
117117         * lib/getline.h: Change argument names.
117118         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
117119         * lib/getnline.c: Include getndelim2.h.
117121 2003-07-18  Andreas Schwab  <schwab@suse.de>
117123         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
117125 2003-07-17  Karl Berry  <karl@gnu.org>
117127         * config/config.sub: update from prep.
117129 2003-07-17  Bruno Haible  <bruno@clisp.org>
117131         * modules/getnline: New file.
117132         * modules/getline: Add lib/getndelim2.c to source file list.
117133         * MODULES.html.sh (func_all_modules): Add getnline.
117135 2003-07-17  Bruno Haible  <bruno@clisp.org>
117137         * m4/getnline.m4: New file.
117139 2003-07-17  Bruno Haible  <bruno@clisp.org>
117141         * m4/Makefile.am.in: Remove file.
117142         * m4/Makefile.am: Remove file.
117143         * m4/Makefile.in: Remove file.
117145 2003-07-17  Bruno Haible  <bruno@clisp.org>
117147         * lib/getnline.h: New file.
117148         * lib/getnline.c: New file.
117149         * lib/getndelim2.c: New file, extracted from getline.c.
117150         (getndelim2): Renamed from getdelim2, with added nmax argument.
117151         * lib/getline.c: Include getndelim2.c.
117152         (getdelim2): Moved out to getndelim2.c.
117153         (getline, getdelim): Update.
117155 2003-07-17  Bruno Haible  <bruno@clisp.org>
117157         * lib/Makefile.am: Remove file.
117158         * lib/Makefile.in: Remove file.
117160 2003-07-17  Bruno Haible  <bruno@clisp.org>
117162         * configure.in: Remove file.
117163         * Makefile.in: Remove file.
117165 2003-07-17  Bruno Haible  <bruno@clisp.org>
117167         * MODULES.html.sh: Put the </BODY> right before </HTML>.
117169 2003-07-16  Karl Berry  <karl@gnu.org>
117171         * config/srclist-update: was running fixlicense twice, which caused
117172                 texinfo.tex to be nullified for some reason.  Simplify,
117173                 $gplsrc is no longer needed as far as I can see?
117175 2003-07-16  Jim Meyering  <jim@meyering.net>
117177         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
117179 2003-07-15  Paul Eggert  <eggert@twinsun.com>
117181         * config/srclist.txt: Get the following files from gettext-runtime/intl
117182         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
117183         ref-del.sin.  From Bruno Haible.
117184         * config/srclist-update (fixfile): Change grep pattern again, since the
117185         previous fix didn't work (there was another trailing $).  Use
117186         '[$]' to escape the $s.
117188 2003-07-15  Karl Berry  <karl@gnu.org>
117190         * lib/vasnprintf.c: update from gettext.
117192 2003-07-15  Karl Berry  <karl@gnu.org>
117194         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
117195         gets expanded when surrounded by '$'.
117197 2003-07-15  Jim Meyering  <jim@meyering.net>
117199         * modules/save-cwd: Don't depend on error.  From Derek Price.
117201 2003-07-15  Jim Meyering  <jim@meyering.net>
117203         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
117205 2003-07-14  Simon Josefsson  <jas@extundo.com>
117207         * modules/mempcpy: New file.
117208         * MODULES.html.sh (func_all_modules): Add mempcpy.
117210 2003-07-14  Simon Josefsson  <jas@extundo.com>
117212         * m4/mempcpy.m4: New file.
117214 2003-07-14  Simon Josefsson  <jas@extundo.com>
117216         * lib/mempcpy.h: New file.
117217         * lib/mempcpy.c: New file.
117219 2003-07-14  Paul Eggert  <eggert@twinsun.com>
117221         * modules/getdate, modules/posixtm: Depend on mktime.
117223 2003-07-14  Paul Eggert  <eggert@twinsun.com>
117225         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
117226         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
117227         unicodeio.c, unicodeio.h, unlocked-io.h:
117228         Switch from LGPL to GPL.
117230 2003-07-14  Paul Eggert  <eggert@twinsun.com>
117232         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
117233         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
117234         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
117235         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
117236         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
117237         updated automatically by ../config/srclist-update.  This changes
117238         their license from LPGL to GPL.
117240 2003-07-14  Paul Eggert  <eggert@twinsun.com>
117242         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
117243         assumed to refer to the root of the most recent stable gettext version.
117244         * config/srclistvars.sh: Add defaults for eggert.
117245         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
117246         Match "This program" as well as "The program".  This is needed
117247         for gettext.
117249 2003-07-14  Jim Meyering  <jim@meyering.net>
117251         Don't emit diagnostics.  Let callers do that.
117252         * lib/save-cwd.c: Don't include "error.h".
117253         (save_cwd): Don't call error.  Ensure that errno is valid
117254         when returning nonzero.
117256         * lib/save-cwd.h (restore_cwd): Update prototype.
117257         * lib/save-cwd.c (restore_cwd): Remove two parameters.
117258         Simplify.  Don't call error upon failure.  Let callers do that.
117259         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
117260         when auditing is enabled.  But don't bother updating the #if.
117262 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
117264         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
117265         it breaks C++ compilation.
117266         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
117268 2003-07-10  Simon Josefsson  <jas@extundo.com>
117270         * modules/strchrnul (Makefile.am): Add strchrnul.h.
117272 2003-07-10  Jim Meyering  <jim@meyering.net>
117274         * m4/clock_time.m4: Remove trailing blank.
117275         * m4/intmax_t.m4: Likewise.
117277 2003-07-10  Jim Meyering  <jim@meyering.net>
117279         * lib/vasnprintf.c: Remove trailing blanks.
117280         Make cpp indentation consistent.
117282 2003-07-09  Paul Eggert  <eggert@twinsun.com>
117284         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
117285         posixver.c, strftime.c, strnlen.c, strverscmp.c:
117286         Switch from LGPL to GPL.
117288 2003-07-09  Paul Eggert  <eggert@twinsun.com>
117290         * config/srclist.txt: Sort sublists.  Add
117291         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
117292         that differ from gnulib for one reason or another; we'd like this list
117293         to be smaller but for now let's document what we have.
117295 2003-07-08  Paul Eggert  <eggert@twinsun.com>
117297         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
117298         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
117299         and sweeter "eval x=$x".
117300         * config/srclist.txt: Get lib/argp* from glibc.
117302 2003-07-07  Paul Eggert  <eggert@twinsun.com>
117304         * lib/mktime.c: Fix some boundary cases and remove need for floating
117305         point.
117307         Issue a compile-time diagnostic if time_t is floating point, or if
117308         two's complement arithmetic is not in effect, or if arithmetic
117309         right shift does not propagate the sign.  These assumptions were
117310         all in the original code but they weren't checked.
117312         (TIME_T_MIDPOINT, verify): New macros.
117313         (__isleap): Remove; it has integer overflow problems.
117314         (leapyear): New function, without those problems.
117315         (ydhms_tm_diff): Remove; splitting into two parts.
117316         (ydhms_diff): New function, containing the arithmetic part of
117317         the old ydhms_tm_diff function.  Issue a compile-time
117318         diagnostic if we are not using C99 integer division.
117319         Avoid casts when possible.
117320         (guess_time_tm): New function, containing the checking part of
117321         the old ydhms_tm_diff function.  Return the new value, rather than
117322         the difference between it and the old.  Accept a new argument T
117323         so that *T specifies the old value.  Check for overflow in the result.
117325         (__mktime_internal): Use a time_t offset, not a long int offset.
117326         This undoes the 2003-06-04 change, which is no longer needed now
117327         that we have better overflow checking.
117328         (localtime_offset): Likewise.
117330         (__mktime_internal): Avoid harmful overflow on hosts where time_t
117331         and long are 64-bit but int is only 32-bit.
117332         (ydhms_diff): Use long int to store year1 and yday1.
117333         Issue a compile-time diagnostic if long int is not wide enough.
117335         (__mktime_internal): Use long int to store adjusted year and yday.
117336         Use plain C rather than preprocessor commands, if that doesn't
117337         affect efficiency.
117338         Check for overflow (and try to repair) after each probe
117339         rather than checking only at the very end.  This avoids some bugs
117340         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
117341         does not equal GMT offset at maximum time).
117342         Use integer to check for overflow rather than floating point; this
117343         is more portable to non-IEEE hosts, and is a tad faster.
117344         When we detect that we are oscillating between two values,
117345         don't check whether tm_isdst has the requested value, since
117346         we already know the answer.  When tm_isdst has the wrong value,
117347         use a different heuristic to find the right one, based on the
117348         extreme values actually observed in practice in tz2003a,
117349         rather than the (overly optimistic) "previous 3 calendar quarters".
117351         (not_equal_tm, print_tm, check_result): Use "const T" rather than
117352         "T const" to accommodate glibc style.
117353         (check_result): Use less-confusing report format.  "long" -> "long int.
117354         (main): Likewise.
117355         Don't loop if the iteration overflows time_t.
117356         Allow a negative step in the iteration.
117358 2003-07-06  Karl Berry  <karl@gnu.org>
117360         * config/depcomp: update from automake.
117361         * config/config.sub: update from prep.
117363 2003-07-03  Karl Berry  <karl@gnu.org>
117365         * config/config.guess: update from prep.
117367 2003-07-01  Paul Eggert  <eggert@twinsun.com>
117369         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
117370         xreadlink.c now includes it unconditionally.
117372 2003-07-01  Paul Eggert  <eggert@twinsun.com>
117374         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
117375         having it depend on HAVE_SYS_TYPES_H.
117377 2003-07-01  Bruno Haible  <bruno@clisp.org>
117379         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
117380         <sys/types.h> should be sufficient.
117381         Reported by Paul Eggert.
117383 2003-06-26  Karl Berry  <karl@gnu.org>
117385         * config/depcomp: update from automake.
117387 2003-06-26  Bruno Haible  <bruno@clisp.org>
117389         * modules/human: Depend on module stdbool.
117391 2003-06-25  Bruno Haible  <bruno@clisp.org>
117393         * modules/readlink: New file.
117394         * modules/xreadlink: Depend on it.
117395         * MODULES.html.sh (func_all_modules): Add readlink.
117397 2003-06-25  Bruno Haible  <bruno@clisp.org>
117399         * m4/readlink.m4: New file.
117401 2003-06-25  Bruno Haible  <bruno@clisp.org>
117403         * lib/readlink.c: New file.
117405 2003-06-22  Karl Berry  <karl@gnu.org>
117407         * config/srclist.txt: update mkinstalldirs from automake.
117408         * config/mkinstalldirs: update.
117410 2003-06-22  Bruno Haible  <bruno@clisp.org>
117412         Portability to mingw32.
117413         * m4/ssize_t.m4: New file, from GNU gettext.
117414         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
117415         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
117417 2003-06-22  Bruno Haible  <bruno@clisp.org>
117419         * modules/safe-read: Add m4/ssize_t.m4.
117420         * modules/xreadlink: Add m4/ssize_t.m4.
117422 2003-06-20  Bruno Haible  <bruno@clisp.org>
117424         Assume C89, so PARAMS isn't needed.
117425         * lib/unicodeio.h (PARAMS): Remove.
117426         * lib/unicodeio.c: Don't use PARAMS.
117428 2003-06-18  Karl Berry  <karl@gnu.org>
117430         * config/config.{guess,sub}: update from prep.
117432 2003-06-18  Jim Meyering  <jim@meyering.net>
117434         Merge changes from coreutils.
117435         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
117436         Remove explicit declarations of xmalloc and realloc.
117437         Include xalloc.h.
117438         (read_utmp): Remove anachronistic cast of xmalloc.
117440 2003-06-17  Paul Eggert  <eggert@twinsun.com>
117442         Assume C89, so PARAMS isn't needed.
117443         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
117444         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
117445         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
117446         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
117447         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
117448         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
117449         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
117450         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
117451         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
117452         lib/xstrtod.h, lib/xstrtol.h: Likewise.
117453         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
117454         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
117455         no longer needed. Anyway, config.h should always be included before any
117456         other file.
117458 2003-06-11  Simon Josefsson  <jas@extundo.com>
117460         * modules/sysexits: New file.
117461         * MODULES.html.sh (func_all_modules): Add sysexits.
117463 2003-06-11  Simon Josefsson  <jas@extundo.com>
117465         * lib/sysexit_.h: New file.
117467 2003-06-11  Derek Price  <derek@ximbiot.com>
117469         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
117470         necessary.
117472 2003-06-11  Bruno Haible  <bruno@clisp.org>
117474         * m4/sysexits.m4: New file.
117476 2003-06-10  Simon Josefsson  <jas@extundo.com>
117478         * lib/argp.h: New file, from glibc.
117479         * lib/argp-ba.c: New file, from glibc.
117480         * lib/argp-eexst.c: New file, from glibc.
117481         * lib/argp-fmtstream.c: New file, from glibc.
117482         * lib/argp-fmtstream.h: New file, from glibc.
117483         * lib/argp-fs-xinl.c: New file, from glibc.
117484         * lib/argp-help.c: New file, from glibc.
117485         * lib/argp-namefrob.h: New file, from glibc.
117486         * lib/argp-parse.c: New file, from glibc.
117487         * lib/argp-pv.c: New file, from glibc.
117488         * lib/argp-pvh.c: New file, from glibc.
117489         * lib/argp-xinl.c: New file, from glibc.
117491 2003-06-10  Simon Josefsson  <jas@extundo.com>
117493         * modules/strchrnul: New file.
117495 2003-06-10  Simon Josefsson  <jas@extundo.com>
117497         * modules/argp: New file.
117499 2003-06-10  Simon Josefsson  <jas@extundo.com>
117501         * m4/strchrnul.m4: New file.
117503 2003-06-10  Simon Josefsson  <jas@extundo.com>
117505         * lib/strchrnul.h: New file.
117506         * lib/strchrnul.c: New file.
117508 2003-06-10  Bruno Haible  <bruno@clisp.org>
117510         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
117512 2003-06-07  Karl Berry  <karl@gnu.org>
117514         * config/config.{guess,sub}: update from prep.
117516 2003-06-07  Jim Meyering  <jim@meyering.net>
117518         * modules/strtod: Use $(...) notation, not @...@ for
117519         AC_REPLACE'd variables.
117520         * modules/localcharset: Likewise.
117522 2003-06-07  Jim Meyering  <jim@meyering.net>
117524         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
117525         in place of my name in the copyright comment.
117526         Remove definition and uses of __P.
117528         From coreutils.
117529         * lib/stat.c: Don't declare xmalloc explicitly.
117530         Instead, include "xalloc.h".
117531         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
117532         xrealloc, and xcalloc return values.
117533         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
117534         Improve comment.
117535         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
117537 2003-06-07  Bruno Haible  <bruno@clisp.org>
117539         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
117540         avoid AC_CONFIG_LINKS.
117541         * modules/fnmatch (Makefile.am): Use explicit creation rule for
117542         fnmatch.h, to avoid AC_CONFIG_LINKS.
117543         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
117545 2003-06-07  Bruno Haible  <bruno@clisp.org>
117547         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
117548         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
117549         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
117550         directory.
117551         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
117552         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
117553         directory.
117555 2003-06-06  Jim Meyering  <jim@meyering.net>
117557         Merge from coreutils.
117558         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
117559         Consolidate declarations and initializations of *_base* locals.
117561         Merge from coreutils.
117562         This avoids a core dump on systems without GNU putenv,
117563         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
117564         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
117565         (unsetenv): New static function, from GNU libc.
117566         (rpl_putenv): Use it.
117568         * lib/modechange.c: Remove trailing blanks.
117570         Merge from coreutils.
117571         * lib/fsusage.c: Remove declaration of statfs.
117572         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
117574         * lib/posixtm.c: Include <stdbool.h> unconditionally.
117576 2003-06-06  Jim Meyering  <jim@meyering.net>
117578         * lib/stdbool_.h: Renamed from stdbool.h.in.
117580 2003-06-06  Jim Meyering  <jim@meyering.net>
117581             Bruno Haible  <bruno@clisp.org>
117583         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
117584         Adjust Makefile.am snippet not to redirect directly to target.
117585         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
117587 2003-06-05  Paul Eggert  <eggert@twinsun.com>
117589         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
117590         mismatch, look in future quarters as well as past.  This fixes a
117591         bug when processing fall-backwards gaps immediately after a long
117592         period of daylight-saving time.
117594         * lib/mktime.c: Assume freestanding C89 or better.
117595         (HAVE_LIMITS_H): Remove.  Assume it's 1.
117596         (__P): Remove; not used.
117597         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
117598         (mktime, not_equal_tm, print_tm, check_result,
117599         main): Use prototypes.  Use const * where appropriate.
117600         (main): Fix typo in testing code that uncovered by above changes.
117601         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
117603 2003-06-04  Paul Eggert  <eggert@twinsun.com>
117605         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
117606         locale.h, localeconv.  This merges changes from coreutils.
117608         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
117609         It can be removed after the next Autoconf is released.
117610         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
117611         needed.
117613 2003-06-04  Paul Eggert  <eggert@twinsun.com>
117615         * lib/mktime.c: Fix Debian bug 177940
117616         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
117617         (localtime_offset): Now long int, not time_t, because we want it
117618         to be guaranteed to be signed.  All uses changed.
117619         (__mktime_internal): If overflow would occur when adding offset,
117620         don't add it.
117622         Merge 'human' changes from coreutils.  Rewrite to support
117623         locale-specific notations like thousands separators.
117624         * lib/human.c: Simplify authorship notice.
117625         Include human.h immediately after config.h.
117626         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
117627         <limits.h>: Do not include, since human.h does.
117628         (SIZE_MAX, UINTMAX_MAX): New macros.
117629         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
117630         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
117631         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
117632         (power_letter): Renamed from suffixes.
117633         (generate_suffix_backwards): Remove.
117634         (adjust_value): Now takes int style (because of human.h changes)
117635         and long double value (for greater precision on some platforms).
117636         (group_number): New function.
117637         (human_readable): Use it.  Use integer options, not enum.
117638         Put the options before the sizes in the arg list.
117639         Support all the new options.
117640         The old human_readable function has been removed;
117641         use inttostr.h instead.
117642         (human_readable, default_block_size, humblock):
117643         Use uintmax_t, not int, for block sizes.
117644         (human_readable_inexact, block_size_types): Remove.
117645         (block_size_opts): New constant.
117646         (human_options): Renamed from human_block_size, with new signature
117647         that allows block sizes up to UINTMAX_MAX.  All callers changed.
117648         * lib/human.h: Add copyright and authorship notice.
117649         Include <limits.h> and <stdbool.h> unconditionally.
117650         (PARAMS): Remove.  All uses removed.
117651         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
117652         (enum human_inexact_style): Remove tag; now a nameless enum.
117653         (human_floor, human_ceiling, human_round_to_even): Now have
117654         values 2, 0, 1 rather than -1, 1, 0.
117655         (human_group_digits, human_suppress_point_zero, human_autoscale,
117656         human_base_1024, human_SI, human_B): New constants.
117657         (human_readable_inexact, human_block_size): Remove.
117658         (human_readable): Size args are now uintmax_t, not int.
117659         (human_options): New decl.
117661         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
117662         unnecessary now that we assume C89 or better.  This change
117663         imported from coreutils.
117665         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
117666         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
117667         in the 2003-05-30 sync from glibc.
117669         .h files should stand alone, but we shouldn't include <sys/types.h>
117670         if we can get away with just <stddef.h>.
117672         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
117673         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
117674         rather than <sys/types.h>, as we merely need size_t.
117675         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
117676         to get size_t.
117677         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
117678         Include <stdio.h>, to get FILE.
117679         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
117680         memcasecmp.h has included <stddef.h> and all we need is size_t.
117681         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
117682         our interface, instead of including <sys/types.h>
117684 2003-06-04  Paul Eggert  <eggert@twinsun.com>
117686         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
117687         now, as glibc mktime is buggy on non-glibc systems.
117689 2003-06-03  Karl Berry  <karl@gnu.org>
117691         * config/config.sub: update from prep.
117693 2003-06-02  Paul Eggert  <eggert@twinsun.com>
117695         [from coreutils]
117696         Fix some minor time-related bugs with POSIX time arguments.
117697         Some valid time stamps were being rejected (notably -1, and
117698         time stamps before 1900 on 64-bit hosts).  And some invalid
117699         time stamps were being accepted, e.g. September 31.
117701         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
117702         that we can return (time_t) -1 successfully.
117703         * lib/posixtm.c: Likewise.
117704         [HAVE_STDBOOL_H]: Include <stdbool.h>.
117705         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
117706         (t): Remove static var.
117707         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
117708         of static var.  All uses changed.
117709         (year): Do not reject years before 1900; they can occur with
117710         64-bit time_t.
117711         (posix_time_parse): Do not check for out-of-range components;
117712         that is now the caller's responsibility, since our checks were
117713         only approximations.
117714         (posixtime): Use mktime to check for out-of-range components,
117715         since it knows them exactly.
117716         If mktime returns (time_t) -1, check whether an error actually occurred
117717         by invoking localtime on -1.
117718         (main) [TEST_POSIXTIME]: Check for input data errors, and report
117719         posixtime failures better.
117720         Improve the test data (in comments only).
117722 2003-06-02  Karl Berry  <karl@gnu.org>
117724         * config/mkinstalldirs (version): new variable.
117725         (--version): new option.
117726         (usage): improve message.
117728 2003-05-30  Karl Berry  <karl@gnu.org>
117730         * lib/mktime.c: update from libc.
117732 2003-05-30  Bruno Haible  <bruno@clisp.org>
117734         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
117735         * config/config.rpath: Upgrade to gettext-0.12.1.
117737 2003-05-30  Bruno Haible  <bruno@clisp.org>
117739         * m4/gettext.m4: Upgrade to gettext-0.12.1.
117740         * m4/nls.m4: New file, from gettext-0.12.1.
117741         * m4/po.m4: New file, from gettext-0.12.1.
117742         * m4/progtest.m4: Upgrade to gettext-0.12.1.
117744 2003-05-30  Bruno Haible  <bruno@clisp.org>
117746         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
117747         * lib/localcharset.h: Likewise.
117748         * lib/localcharset.c: Likewise.
117750 2003-05-29  Karl Berry  <karl@gnu.org>
117752         * config/config.rpath: update from gettext.
117754 2003-05-28  Paul Eggert  <eggert@twinsun.com>
117756         Assume the headers required for C89 freestanding compilers.
117757         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
117758         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
117759         * m4/human.m4 (gl_HUMAN): Likewise.
117760         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
117761         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
117762         * m4/userspec.m4 (gl_USERSPEC): Likewise.
117763         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
117764         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
117765         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
117767 2003-05-28  Paul Eggert  <eggert@twinsun.com>
117769         Assume the headers required for C89 freestanding compilers.
117770         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
117771         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
117772         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
117773         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
117774         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
117775         define, since <limits.h> is guaranteed to do that.
117776         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
117777         * lib/exclude.c: Include <stdbool.h> unconditionally.
117778         * lib/tempname.c: Include <stddef.h> unconditionally.
117779         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
117780         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
117781         <stddef.h> does that.
117782         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
117783         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
117784         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
117785         needed.
117786         * lib/xstrtol.c: Likewise.
117787         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
117788         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
117790         * lib/addext.c (addext): Use assignment rather than cast, to avoid
117791         warnings on some platforms.
117793         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
117794         arbitrarily.
117796 2003-05-26  Jim Meyering  <jim@meyering.net>
117798         Merge in a change from coreutils:
117799         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
117800         that is guaranteed to be `no'.  Use `no_such_member' to indicate
117801         that condition, rather than `-1' which is slightly misleading.
117802         Change the name of the cache variable to have the gl_ prefix.
117803         Prompted by a patch from Richard Dawe for DJGPP.
117805 2003-05-24  Karl Berry  <karl@gnu.org>
117807         * config/config.guess: update from prep.
117809 2003-05-22  Karl Berry  <karl@gnu.org>
117811         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
117813 2003-05-20  Karl Berry  <karl@gnu.org>
117815         * config/config.guess: update from prep.
117817 2003-05-18  Karl Berry  <karl@gnu.org>
117819         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
117820         might actually be set by the user.
117822         * config/depcomp, install-sh, mdate-sh: update from automake.
117824 2003-05-17  Bruno Haible  <bruno@clisp.org>
117826         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
117827         invalid expansion for AC_EGREP_CPP.
117828         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
117829         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
117830         Suggested by Akim Demaille <akim@epita.fr> in
117831         http://mail.gnu.org/r/bug-autoconf/2003-05/threads.html
117833 2003-05-12  Jim Meyering  <jim@meyering.net>
117835         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
117836         the space-padded-by-default conversion specifiers, %e, %k, %l.
117838 2003-05-12  Bruno Haible  <bruno@clisp.org>
117840         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
117841         the string is longer than 4 KB.
117843 2003-05-11  Karl Berry  <karl@gnu.org>
117845         * config/config.{guess,sub}: update from prep.
117847 2003-05-09  Bruno Haible  <bruno@clisp.org>
117849         * modules/error: Add m4/strerror_r.m4 to file list.
117851 2003-05-03  Bruno Haible  <bruno@clisp.org>
117853         Upgrade to Unicode-4.0.
117854         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
117855         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
117856         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
117857         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
117858         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
117859         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
117860         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
117861         Change width of U+E0100..U+E01EF from 1 to 0.
117863 2003-04-25  Jim Meyering  <jim@meyering.net>
117865         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
117866         of type size_t, not int.
117868 2003-04-25  Bruno Haible  <bruno@clisp.org>
117870         * lib/copy-file.c: Include <stddef.h>, for size_t.
117872 2003-04-21  Paul Eggert  <eggert@twinsun.com>
117874         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
117875         code which expansion is under static control.  Patch imported from
117876         Akim Demaille's patch to Bison; see
117877         <http://mail.gnu.org/r/bison-patches/2003-03/msg00057.html>.
117879 2003-04-14  Bruno Haible  <bruno@clisp.org>
117881         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
117883 2003-04-11  Jim Meyering  <jim@meyering.net>
117885         Merge changes from Coreutils.
117887         2003-03-22  Jim Meyering  <jim@meyering.net>
117889         * lib/strftime.c (widen): Cast alloca return value to proper type.
117891         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
117893         From GNU libc.
117894         * lib/strftime.c (my_strftime): Handle very large width
117895         specifications for numeric values correctly.  Improve checks for
117896         overflow.
117898         2003-01-19  Jim Meyering  <jim@meyering.net>
117900         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
117901         definitions.
117902         (nl_get_alt_digit) [! defined my_strftime]: Define.
117903         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
117904         _nl_get_alt_digit and _nl_get_walt_digit.
117906         * lib/strftime.c (my_strftime): Merge in locale-related changes from
117907         libc. These changes have no effect outside of _LIBC.
117909 2003-04-10  Bruno Haible  <bruno@clisp.org>
117911         * modules/findprog: New file.
117912         * MODULES.html.sh (func_all_modules): Add it.
117914 2003-04-10  Bruno Haible  <bruno@clisp.org>
117916         * m4/findprog.m4: New file.
117917         * m4/eaccess.m4: New file.
117919 2003-04-10  Bruno Haible  <bruno@clisp.org>
117921         * lib/findprog.h: New file, from GNU gettext.
117922         * lib/findprog.c: New file, from GNU gettext.
117924 2003-04-05  Jim Meyering  <jim@meyering.net>
117926         Merge changes from Coreutils.
117928         * lib/exclude.h (PARAMS): Remove definition and uses.
117929         * lib/exclude.c: Remove uses of `PARAMS'.
117931         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
117932         Add test-cases for DOS filenames. Declare program_name.
117933         (main): Set up program_name.  Patch by Rich Dawe.
117935         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
117936         error from mntctl.
117937         Use mntctl's return value to drive the entry-processing loop, since
117938         we can't rely on the value of the vmt_length member in the last
117939         entry.  On some systems doing so could result in exhausting
117940         virtual memory.  Based in part on a patch from Mike Jetzer.
117942 2003-04-04  Bruno Haible  <bruno@clisp.org>
117944         * modules/linebreak: New file.
117945         * MODULES.html.sh (func_all_modules): Add it.
117947 2003-04-04  Bruno Haible  <bruno@clisp.org>
117949         * m4/linebreak.m4: New file.
117951 2003-04-04  Bruno Haible  <bruno@clisp.org>
117953         * lib/linebreak.h: New file, from GNU gettext.
117954         * lib/linebreak.c: New file, from GNU gettext with slight
117955         modifications.
117956         * lib/lbrkprop.h: New file, from GNU gettext.
117958 2003-04-03  Bruno Haible  <bruno@clisp.org>
117960         * modules/utf8-ucs4: New file.
117961         * modules/utf16-ucs4: New file.
117962         * modules/ucs4-utf8: New file.
117963         * modules/ucs4-utf16: New file.
117964         * MODULES.html.sh (func_all_modules): Add them.
117966 2003-04-03  Bruno Haible  <bruno@clisp.org>
117968         * m4/utf-ucs4.m4: New file.
117969         * m4/ucs4-utf.m4: New file.
117971 2003-04-03  Bruno Haible  <bruno@clisp.org>
117973         * lib/utf8-ucs4.h: New file, from GNU gettext.
117974         * lib/utf16-ucs4.h: New file, from GNU gettext.
117975         * lib/ucs4-utf8.h: New file, from GNU gettext.
117976         * lib/ucs4-utf16.h: New file, from GNU gettext.
117978 2003-04-02  Bruno Haible  <bruno@clisp.org>
117980         * modules/binary-io: New file.
117981         * MODULES.html.sh (func_all_modules): Add it.
117983 2003-04-02  Bruno Haible  <bruno@clisp.org>
117985         * lib/binary-io.h: New file, from GNU gettext.
117987 2003-04-01  Bruno Haible  <bruno@clisp.org>
117989         * modules/pathname: New file.
117990         * MODULES.html.sh (func_all_modules): Add it.
117992 2003-04-01  Bruno Haible  <bruno@clisp.org>
117994         * lib/pathname.h: New file, from GNU gettext.
117995         * lib/concatpath.c: New file, from GNU gettext.
117997 2003-03-30  Bruno Haible  <bruno@clisp.org>
117999         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
118001 2003-03-30  Bruno Haible  <bruno@clisp.org>
118003         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
118004         function chown() doesn't exist.
118006 2003-03-28  Bruno Haible  <bruno@clisp.org>
118008         * modules/copy-file: New file.
118009         * MODULES.html.sh (func_all_modules): Add it.
118011 2003-03-28  Bruno Haible  <bruno@clisp.org>
118013         * m4/copy-file.m4: New file.
118015 2003-03-28  Bruno Haible  <bruno@clisp.org>
118017         * lib/copy-file.h: New file, from GNU gettext.
118018         * lib/copy-file.c: New file, from GNU gettext.
118020 2003-03-18  Jim Meyering  <jim@meyering.net>
118022         * lib/quote.c (quote_n): Fix typo in comment.
118024 2003-03-18  Bruno Haible  <bruno@clisp.org>
118026         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
118027         checking.
118028         * m4/onceonly_2_57.m4: Likewise.
118030 2003-03-17  Bruno Haible  <bruno@clisp.org>
118032         * m4/onceonly.m4: Require autoconf 2.54 or newer.
118033         (m4_quote): Remove macro.
118034         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
118036 2003-03-14  Jim Meyering  <jim@meyering.net>
118038         Merge changes from Coreutils.
118039         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
118040         to be const, in order to avoid warnings.
118041         (obstack_room): Likewise.
118042         (obstack_empty_p): Likewise.
118044 2003-03-14  Bruno Haible  <bruno@clisp.org>
118046         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
118047         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
118049 2003-03-13  Paul Eggert  <eggert@twinsun.com>
118051         Merge changes from Bison.
118052         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
118053         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
118054         when compiling Bison 1.875's `bitset bset = obstack_alloc
118055         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
118056         * lib/hash.c: Include <stdbool.h> unconditionally.
118058 2003-03-13  Paul Eggert  <eggert@twinsun.com>
118060         * m4/onceonly.m4 (m4_quote): New macro.
118061         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
118062         Quote AC_FOREACH variable-expansions properly.
118064 2003-03-13  Paul Eggert  <eggert@twinsun.com>
118066         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
118068 2003-03-09  Paul Eggert  <eggert@twinsun.com>
118070         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
118071         Reported by Bruce Becker; see:
118072         http://mail.gnu.org/r/bug-bison/2003-03/msg00017.html
118074 2003-03-03  Paul Eggert  <eggert@twinsun.com>
118075             Bruno Haible  <bruno@clisp.org>
118077         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
118078         Reported by John Hughes, see
118079         http://mail.gnu.org/r/bug-bison/2003-02/msg00030.html
118081 2003-02-20  Bruno Haible  <bruno@clisp.org>
118083         * MODULES.html.sh (func_all_modules): Add poll.
118085 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
118087         * modules/poll: New file.
118089 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
118091         * lib/poll_.h: New file.
118092         * lib/poll.c: New file.
118094 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
118096         * m4/poll.m4: New file.
118098 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
118100         * modules/mathl: New file.
118102 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
118104         * lib/mathl.h: New file.
118105         * lib/acosl.c: New file.
118106         * lib/asinl.c: New file.
118107         * lib/atanl.c: New file.
118108         * lib/ceill.c: New file.
118109         * lib/cosl.c: New file.
118110         * lib/expl.c: New file.
118111         * lib/floorl.c: New file.
118112         * lib/frexpl.c: New file.
118113         * lib/ldexpl.c: New file.
118114         * lib/logl.c: New file.
118115         * lib/sincosl.c: New file.
118116         * lib/sinl.c: New file.
118117         * lib/sqrtl.c: New file.
118118         * lib/tanl.c: New file.
118119         * lib/trigl.c: New file.
118120         * lib/trigl.h: New file.
118122 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
118124         * m4/mathl.m4: New file.
118126 2003-02-18  Bruno Haible  <bruno@clisp.org>
118128         * MODULES.html.sh (func_all_modules): Add mathl.
118130 2003-02-17  Bruno Haible  <bruno@clisp.org>
118132         * modules/mkdtemp: New module.
118133         * MODULES.html.sh (func_all_modules): Add it.
118135 2003-02-17  Bruno Haible  <bruno@clisp.org>
118137         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
118139 2003-02-17  Bruno Haible  <bruno@clisp.org>
118141         * lib/mkdtemp.h: New file, from GNU gettext.
118142         * lib/mkdtemp.c: New file, from GNU gettext.
118144 2003-02-02  Jim Meyering  <jim@meyering.net>
118146         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
118147         e.g. glibc-2.2.93.
118149 2003-01-31  Bruno Haible  <bruno@clisp.org>
118151         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
118152         'rpl_rename'.
118153         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
118154         'rpl_strnlen'.
118155         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
118156         'rpl_strtod'.
118157         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
118158         'rpl_utime'.
118160 2003-01-31  Bruno Haible  <bruno@clisp.org>
118162         * lib/rename.c: #undef rename before defining rpl_rename.
118163         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
118165 2003-01-30  Bruno Haible  <bruno@clisp.org>
118167         * modules/vasnprintf, modules/vasprintf: New modules.
118168         * MODULES.html.sh (func_all_modules): Add them.
118170 2003-01-30  Bruno Haible  <bruno@clisp.org>
118172         * m4/signed.m4: New file, from GNU gettext.
118173         * m4/longdouble.m4: New file, from GNU gettext.
118174         * m4/wchar_t.m4: New file, from GNU gettext.
118175         * m4/wint_t.m4: New file, from GNU gettext.
118176         * m4/vasnprintf.m4: New file.
118177         * m4/vasprintf.m4: New file.
118179 2003-01-30  Bruno Haible  <bruno@clisp.org>
118181         * lib/printf-args.h: New file, from GNU gettext.
118182         * lib/printf-args.c: New file, from GNU gettext.
118183         * lib/printf-parse.h: New file, from GNU gettext.
118184         * lib/printf-parse.c: New file, from GNU gettext.
118185         * lib/vasnprintf.h: New file, from GNU gettext.
118186         * lib/vasnprintf.c: New file, from GNU gettext.
118187         * lib/asnprintf.c: New file, from GNU gettext.
118188         * lib/vasprintf.h: New file, from GNU gettext with modifications.
118189         * lib/vasprintf.c: New file, from GNU gettext.
118190         * lib/asprintf.c: New file, from GNU gettext.
118192 2003-01-29  Bruno Haible  <bruno@clisp.org>
118194         * modules/stpncpy: New module.
118195         * MODULES.html.sh (func_all_modules): Add it.
118197 2003-01-29  Bruno Haible  <bruno@clisp.org>
118199         * m4/stpncpy.m4: New file.
118201 2003-01-29  Bruno Haible  <bruno@clisp.org>
118203         * lib/stpncpy.h: New file, from GNU gettext with modifications.
118204         * lib/stpncpy.c: New file, from GNU gettext with modifications.
118206 2003-01-28  Bruno Haible  <bruno@clisp.org>
118208         * modules/c-ctype: New module.
118209         * MODULES.html.sh (func_all_modules): Add it.
118211 2003-01-28  Bruno Haible  <bruno@clisp.org>
118213         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
118214         Paul Eggert.
118215         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
118216         Paul Eggert.
118218 2003-01-27  Bruno Haible  <bruno@clisp.org>
118220         * modules/xsetenv: New module.
118221         * MODULES.html.sh (func_all_modules): Add it.
118223 2003-01-27  Bruno Haible  <bruno@clisp.org>
118225         * lib/xsetenv.h: New file, from GNU gettext.
118226         * lib/xsetenv.c: New file, from GNU gettext.
118228 2003-01-23  Jim Meyering  <jim@meyering.net>
118230         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
118231         from working on systems without dirfd (at least Irix and OSF1/Tru64).
118233 2003-01-23  Bruno Haible  <bruno@clisp.org>
118235         * modules/minmax: New module.
118236         * MODULES.html.sh (func_all_modules): Add it.
118238 2003-01-23  Bruno Haible  <bruno@clisp.org>
118240         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
118241         Eggert.
118243 2003-01-22  Bruno Haible  <bruno@clisp.org>
118245         * modules/exit: New module.
118246         * MODULES.html.sh (func_all_modules): Add it.
118248 2003-01-22  Bruno Haible  <bruno@clisp.org>
118250         * lib/exit.h: New file, from GNU gettext.
118252 2003-01-19  Bruno Haible  <bruno@clisp.org>
118254         * gnulib-tool: Recognize option --extract-maintainer.
118255         (func_get_maintainer): New function.
118256         * modules/*: Add Maintainer entry.
118258 2003-01-16  Jim Meyering  <jim@meyering.net>
118260         * m4/regex.m4: The `regex' struct is both input and output.
118261         Initialize it before each use.  Patch by Tim Waugh.
118263 2003-01-16  Bruno Haible  <bruno@clisp.org>
118265         * MODULES.html.sh: Add a table of contents. Add the module name as
118266         leftmost column. Add hyperlinks.
118268 2003-01-15  Bruno Haible  <bruno@clisp.org>
118270         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
118272 2003-01-15  Bruno Haible  <bruno@clisp.org>
118274         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
118275         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
118276         suffix.
118278 2003-01-15  Bruno Haible  <bruno@clisp.org>
118280         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
118282 2003-01-15  Bruno Haible  <bruno@clisp.org>
118284         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
118285         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
118287 2003-01-14  Jim Meyering  <jim@meyering.net>
118289         * lib/same.c (same_name): Tweak a comment.
118291 2003-01-14  Bruno Haible  <bruno@clisp.org>
118293         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
118294         when a string comparison is sufficient.
118296 2003-01-14  Bruno Haible  <bruno@clisp.org>
118298         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
118299         'unsigned int'.
118301 2003-01-14  Bruno Haible  <bruno@clisp.org>
118303         * lib/hash-pjw.c: Add comment about low quality of this function.
118305 2003-01-13  Bruno Haible  <bruno@clisp.org>
118307         * modules/stpcpy: Distribute lib/stpcpy.h.
118308         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
118310 2003-01-13  Bruno Haible  <bruno@clisp.org>
118312         * modules/*: Add a description.
118313         * modules/strpbrk: Fix Makefile.am snippet.
118314         * modules/strtoimax: Fix dependencies.
118315         * modules/strtoumax: Likewise.
118317 2003-01-13  Bruno Haible  <bruno@clisp.org>
118319         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
118320         * modules/alloca (Makefile.am): All object files depend on alloca.h.
118321         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
118323 2003-01-13  Bruno Haible  <bruno@clisp.org>
118325         * gnulib-tool (func_create_testdir): Store config/* files in the main
118326         directory.
118327         * config.rpath: Move to ...
118328         * config/config.rpath: ... here.
118329         * modules/gettext: Contains config/config.rpath, not config.rpath.
118330         * modules/iconv: Likewise.
118332 2003-01-12  Paul Eggert  <eggert@twinsun.com>
118334         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
118335         to avoid collisions with libcurses and libreadline.
118337         * m4/getstr.m4: Remove.
118338         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
118340 2003-01-12  Paul Eggert  <eggert@twinsun.com>
118342         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
118343         to avoid collisions with libcurses and libreadline.
118345         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
118346         * lib/getstr.h, getstr.c: Remove.
118347         * lib/getline.c: Include "getline.h", to check interface.
118348         Move body of old getstr.c here: this defines MIN_CHUNK and
118349         declares getdelim2, which is renamed from getstr.
118350         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
118352         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
118353         All uses changed.
118354         * lib/linebuffer.h: Likewise.
118355         (readline): Remove backward-compatibility macro.
118357 2003-01-12  Paul Eggert  <eggert@twinsun.com>
118359         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
118360         to avoid collisions with libcurses and libreadline.
118361         * getstr: Remove.
118362         * MODULES.html.sh: Remove getstr.
118363         * modules/getline: Depend on unlocked-io, not getstr.
118365 2003-01-12  Jim Meyering  <jim@meyering.net>
118367         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
118369 2003-01-10  Bruno Haible  <bruno@clisp.org>
118371         * modules/alloca: Change Makefile.am requirements. Simplify Include
118372         requirements. Add lib/alloca_.h to file list.
118374 2003-01-10  Bruno Haible  <bruno@clisp.org>
118376         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
118378 2003-01-10  Bruno Haible  <bruno@clisp.org>
118380         * lib/alloca_.h: New file.
118381         * lib/getdate.y: Unconditionally include alloca.h.
118382         * lib/makepath.c: Likewise.
118383         * lib/setenv.c: Likewise.
118384         * lib/userspec.c: Likewise.
118386 2003-01-09  Karl Berry  <karl@gnu.org>
118388         * MODULES.html.sh: include `dirname $0` in PATH, to find
118389         gnulib-tool.
118391 2003-01-09  Bruno Haible  <bruno@clisp.org>
118393         * modules/stdbool: Change configure.ac, Makefile.am requirements.
118394         Simplify Include requirements. Add lib/stdbool.h.in to file list.
118396 2003-01-09  Bruno Haible  <bruno@clisp.org>
118398         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
118400 2003-01-09  Bruno Haible  <bruno@clisp.org>
118402         * lib/stdbool.h.in: New file.
118404 2003-01-09  Bruno Haible  <bruno@clisp.org>
118406         * gnulib-tool (func_all_modules): Ignore files ending in ~.
118407         * MODULES.html.sh: Likewise.
118409 2003-01-08  Jim Meyering  <jim@meyering.net>
118411         * lib/full-write.c: Undefine and define-away `const' after inclusion
118412         of errno.h, not before.  Suggestion from Bruno Haible.
118414 2003-01-08  Bruno Haible  <bruno@clisp.org>
118416         * modules/full-read: Depend on full-write.
118418 2003-01-08  Bruno Haible  <bruno@clisp.org>
118420         * lib/safe-read.c: Include specification header first, to ensure its
118421         selfcontainedness.
118422         * lib/full-write.c: Likewise.
118424 2003-01-07  Jim Meyering  <jim@meyering.net>
118426         * lib/full-write.c: Rework so that it may serve to define full_read,
118427         too.
118428         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
118430 2003-01-07  Bruno Haible  <bruno@clisp.org>
118432         * lib/strtoimax.c: Include <stdint.h> as an alternative to
118433         <inttypes.h>.
118434         * lib/xstrtol.h: Likewise.
118435         * lib/xstrtoimax.c: Likewise.
118436         * lib/xstrtoumax.c: Likewise.
118437         * lib/human.h: Likewise.
118439         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
118440         on systems that have <inttypes.h> but not <stdint.h>.
118442 2003-01-07  Bruno Haible  <bruno@clisp.org>
118444         * MODULES.html.sh: Add copyright notice.
118445         (missed_files): Omit CVS directory entries.
118446         (func_module): Make it work with sed-3.02.
118447         * MODULES.txt: Remove file.
118449 2003-01-06  Jim Meyering  <jim@meyering.net>
118451         * lib/version-etc.c: Update year in translatable copyright string.
118453 2003-01-03  Karl Berry  <karl@gnu.org>
118455         * config/config.{guess,sub}: update from prep.
118457 2003-01-02  Karl Berry  <karl@gnu.org>
118459         * doc/COPYING.DOC: belatedly updated to 1.2.
118461 2003-01-01  Karl Berry  <karl@gnu.org>
118463         * gnulib-tool (func_verify_module): report module name $module in
118464         error message, not $1.
118465         * gnulib-tool (create-testdir): don't complain if destdir couldn't
118466         be created, only if it doesn't exist.
118467         * gnulib-tool (last_checkin_date): don't expand the $Date here.
118469 2002-12-31  Paul Eggert  <eggert@twinsun.com>
118471         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
118473 2002-12-31  Paul Eggert  <eggert@twinsun.com>
118475         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
118476         memcmp if strcoll doesn't work.
118478 2002-12-31  Bruno Haible  <bruno@clisp.org>
118480         * lib/utime.c (utime_null): No need to call ftruncate if the file was
118481         nonempty.
118483 2002-12-31  Bruno Haible  <bruno@clisp.org>
118485         * lib/memcoll.c (STRCOLL): New macro.
118486         (memcoll): Use it.
118488 2002-12-31  Bruno Haible  <bruno@clisp.org>
118490         * lib/localcharset.h: New file.
118491         * lib/localcharset.c: Include it.
118492         * lib/unicodeio.c: Likewise.
118494 2002-12-31  Bruno Haible  <bruno@clisp.org>
118496         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
118497         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
118499 2002-12-31  Bruno Haible  <bruno@clisp.org>
118501         * lib/getline.h: Include <stddef.h>, for size_t.
118503         * lib/unicodeio.h: Include <stddef.h>, for size_t.
118504         * lib/unicodeio.c: Don't include <stddef.h>.
118506 2002-12-31  Bruno Haible  <bruno@clisp.org>
118508         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
118509         HAVE_TM_ZONE.
118511 2002-12-24  Karl Berry  <karl@gnu.org>
118513         * config/config.guess: update from prep.
118515 2002-12-24  Bruno Haible  <bruno@clisp.org>
118517         General infrasructure.
118518         * m4/README: Rewritten.
118519         * m4/onceonly.m4: New file.
118520         * m4/onceonly_2_57.m4: New file.
118522         Module atexit.
118523         * m4/atexit.m4: New file.
118525         Module strtod.
118526         * m4/strtod.m4: New file.
118528         Module strtol.
118529         * m4/strtol.m4: New file.
118531         Module strtoul.
118532         * m4/strtoul.m4: New file.
118534         Module memchr.
118535         * m4/memchr.m4: New file.
118537         Module memcmp.
118538         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
118539         (jm_FUNC_MEMCMP): Invoke it.
118541         Module memcpy.
118542         * m4/memcpy.m4: New file.
118544         Module memmove.
118545         * m4/memmove.m4: New file.
118547         Module memset.
118548         * m4/memset.m4: New file.
118550         Module strcspn.
118551         * m4/strcspn.m4: New file.
118553         Module strpbrk.
118554         * m4/strpbrk.m4: New file.
118556         Module strstr.
118557         * m4/strstr.m4: New file.
118559         Module strerror.
118560         * m4/strerror.m4: New file.
118562         Module mktime.
118563         * m4/mktime.m4: Renamed from jm-mktime.m4.
118564         (gl_PREREQ_MKTIME): New macro.
118565         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
118567         Module malloc.
118568         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
118569         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
118570         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
118572         Module realloc.
118573         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
118574         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
118575         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
118577         Module strftime.
118578         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
118579         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
118580         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
118581         gl_TM_GMTOFF.
118582         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
118584         Module xalloc.
118585         * m4/xalloc.m4: New file.
118587         Module alloca.
118588         * m4/alloca.m4: New file.
118590         Module putenv.
118591         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
118592         (jm_FUNC_PUTENV): Invoke it.
118594         Module setenv.
118595         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
118596         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
118597         when invoked twice.
118598         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
118599         gt_FUNC_SETENV.
118601         Module memrchr.
118602         * m4/memrchr.m4: New file.
118604         Module stpcpy.
118605         * m4/stpcpy.m4: New file.
118607         Module strcase.
118608         * m4/strcase.m4: New file.
118610         Module strdup.
118611         * m4/strdup.m4: New file.
118613         Module strnlen.
118614         * m4/strnlen.m4: New file.
118616         Module strndup.
118617         * m4/strndup.m4: New file.
118619         Module xstrtod.
118620         * m4/xstrtod.m4: New file.
118622         Module xstrtol.
118623         * m4/xstrtol.m4: New file.
118625         Module getdate.
118626         * m4/getdate.m4: New file.
118628         Module unlocked-io.
118629         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
118630         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
118631         * m4/jm-glibc-io.m4n: Remove file.
118633         Module long-options.
118634         * m4/long-options.m4: New file.
118636         Module md5.
118637         * m4/md5.m4: New file.
118639         Module sha.
118640         * m4/sha.m4: New file.
118642         Module getstr.
118643         * m4/getstr.m4: New file.
118645         Module getline.
118646         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
118647         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
118648         <sys/types.h>, for size_t. Use the function name gnu_getline, not
118649         simply getline. Infoke gl_PREREQ_GETLINE.
118651         Module obstack.
118652         * m4/obstack.m4: New file.
118654         Module hash.
118655         * m4/hash.m4: New file.
118657         Module readtokens.
118658         * m4/readtokens.m4: New file.
118660         Module strverscmp.
118661         * m4/strverscmp.m4: New file.
118663         Module stdbool.
118664         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
118665         OSF/1.
118667         Module strtoll.
118668         * m4/strtoll.m4: New file.
118670         Module strtoull.
118671         * m4/strtoull.m4: New file.
118673         Module strtoimax.
118674         * m4/strtoimax.m4: New file.
118676         Module strtoumax.
118677         * m4/strtoumax.m4: New file.
118679         Module xstrtoimax.
118680         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
118681         jm_AC_PREREQ_XSTRTOIMAX.
118682         Moved the strtol prerequisites to strtol.m4.
118683         Moved the strtoll prerequisites to strtoll.m4.
118684         Moved the strtoimax prerequisites to strtoimax.m4.
118686         Module xstrtoumax.
118687         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
118688         jm_AC_PREREQ_XSTRTOUMAX.
118689         Moved the strtoul prerequisites to strtoul.m4.
118690         Moved the strtoull prerequisites to strtoull.m4.
118691         Moved the strtoumax prerequisites to strtoumax.m4.
118693         Module chown.
118694         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
118695         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
118697         Module dup2.
118698         * m4/dup2.m4: New file.
118700         Module ftruncate.
118701         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
118702         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
118704         Module getgroups.
118705         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
118706         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
118708         Module gettimeofday.
118709         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
118710         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
118711         gl_PREREQ_GETTIMEOFDAY.
118713         Module mkdir.
118714         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
118715         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
118717         Module mkstemp.
118718         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
118719         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
118720         jm_AC_TYPE_UINTMAX_T.
118721         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
118723         Module stat.
118724         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
118725         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
118727         Module lstat.
118728         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
118729         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
118731         Module timespec.
118732         * m4/timespec.m4 (gl_TIMESPEC): New macro.
118733         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
118734         * m4/st_mtim.m4: Indentation.
118736         Module nanosleep.
118737         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
118738         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
118739         gl_PREREQ_NANOSLEEP.
118741         Module regex.
118742         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
118743         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
118744         (gl_REGEX): New macro.
118746         Module rename.
118747         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
118748         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
118750         Module rmdir.
118751         * m4/rmdir.m4: New file.
118753         Module utime.
118754         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
118755         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
118756         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
118758         Module dirname.
118759         * m4/dirname.m4: New file.
118761         Module getopt.
118762         * m4/getopt.m4: New file.
118764         Module unistd-safer.
118765         * m4/unistd-safer.m4: New file.
118767         Module fnmatch.
118768         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
118769         declaration.
118770         (gl_PREREQ_FNMATCH_EXTRA): New macro.
118771         (gl_FUNC_FNMATCH_POSIX): New macro.
118772         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
118773         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
118774         simply fnmatch.
118776         Module exclude.
118777         * m4/exclude.m4: New file.
118779         Module human.
118780         * m4/human.m4: New file.
118782         Module acl.
118783         * m4/acl.m4: Nop.
118785         Module backupfile.
118786         * m4/backupfile.m4: New file.
118787         * m4/d-ino.m4: Indentation.
118789         Module fsusage.
118790         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
118791         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
118792         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
118794         Module dirfd.
118795         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
118796         requirements.
118798         Module euidaccess.
118799         * m4/euidaccess.m4: New file.
118801         Module file-type.
118802         * m4/file-type.m4: New file.
118804         Module fileblocks.
118805         * m4/fileblocks.m4: New file.
118807         Module filemode.
118808         * m4/filemode.m4: New file.
118810         Module isdir.
118811         * m4/isdir.m4: New file.
118813         Module lchown.
118814         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
118815         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
118817         Module makepath.
118818         * m4/makepath.m4: New file.
118820         Module modechange.
118821         * m4/modechange.m4: New file.
118823         Module mountlist.
118824         * m4/mountlist.m4: New file.
118825         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
118826         Indentation.
118828         Module path-concat.
118829         * m4/path-concat.m4: New file.
118831         Module pathmax.
118832         * m4/pathmax.m4: New file.
118834         Module same.
118835         * m4/same.m4: New file.
118837         Module save-cwd.
118838         * m4/save-cwd.m4: New file.
118840         Module savedir.
118841         * m4/savedir.m4: New file.
118843         Module xgetcwd.
118844         * m4/xgetcwd.m4: New file.
118845         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
118847         Module xreadlink.
118848         * m4/xreadlink.m4: New file.
118850         Module safe-read.
118851         * m4/safe-read.m4: New file.
118853         Module safe-write.
118854         * m4/safe-write.m4: New file.
118856         Module closeout.
118857         * m4/closeout.m4: New file.
118859         Module stdio-safer.
118860         * m4/stdio-safer.m4: New file.
118862         Module getpass.
118863         * m4/getpass.m4: New file.
118865         Module getugroups.
118866         * m4/getugroups.m4: New file.
118868         Module group-member.
118869         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
118870         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
118872         Module idcache.
118873         * m4/idcache.m4: New file.
118875         Module userspec.
118876         * m4/userspec.m4: New file.
118878         Module gettime.
118879         * m4/clock_time.m4: New file.
118880         * m4/gettime.m4: New file.
118882         Module settime.
118883         * m4/settime.m4: New file.
118885         Module posixtm.
118886         * m4/posixtm.m4: New file.
118888         Module gethostname.
118889         * m4/gethostname.m4: New file.
118891         Module canon-host.
118892         * m4/canon-host.m4: New file.
118894         Module gettext.
118895         * m4/codeset.m4: New file, from gettext-0.11.5.
118896         * m4/gettext.m4: New file, from gettext-0.11.5.
118897         * m4/glibc21.m4: New file, from gettext-0.11.5.
118898         * m4/iconv.m4: New file, from gettext-0.11.5.
118899         * m4/intdiv0.m4: New file, from gettext-0.11.5.
118900         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
118901         * m4/inttypes.m4: New file, from gettext-0.11.5.
118902         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
118903         * m4/isc-posix.m4: New file, from gettext-0.11.5.
118904         * m4/lcmessage.m4: New file, from gettext-0.11.5.
118905         * m4/lib-ld.m4: New file, from gettext-0.11.5.
118906         * m4/lib-link.m4: New file, from gettext-0.11.5.
118907         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
118908         * m4/progtest.m4: New file, from gettext-0.11.5.
118909         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
118910         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
118911         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
118913         Module localcharset.
118914         * m4/localcharset.m4: New file.
118916         Module hard-locale.
118917         * m4/hard-locale.m4: New file.
118919         Module mbswidth.
118920         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
118921         onceonly macros.
118922         * m4/mbrtowc.m4: Add comment.
118924         Module memcasecmp.
118925         * m4/memcasecmp.m4: New file.
118927         Module memcoll.
118928         * m4/memcoll.m4: New file.
118930         Module unicodeio.
118931         * m4/unicodeio.m4: New file.
118933         Module rpmatch.
118934         * m4/rpmatch.m4: New file.
118936         Module yesno.
118937         * m4/yesno.m4: New file.
118939         Module exitfail.
118940         * m4/exitfail.m4: New file.
118942         Module c-stack.
118943         * m4/c-stack.m4 (gl_C_STACK): New macro.
118944         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
118946         Module error.
118947         * m4/error.m4 (gl_ERROR): New macro.
118948         (jm_PREREQ_ERROR): Use onceonly macros.
118950         Module fatal.
118951         * m4/fatal.m4: New file.
118953         Module getloadavg.
118954         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
118955         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
118957         Module getpagesize.
118958         * m4/getpagesize.m4: New file.
118960         Module getusershell.
118961         * m4/getusershell.m4: New file.
118963         Module physmem.
118964         * m4/physmem.m4: New file.
118966         Module posixver.
118967         * m4/posixver.m4: New file.
118969         Module quotearg.
118970         * m4/quotearg.m4: New file.
118972         Module quote.
118973         * m4/quote.m4: New file.
118975         Module readutmp.
118976         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
118978         Module sig2str.
118979         * m4/sig2str.m4: New file.
118981         Other.
118982         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
118983         ulonglong.m4.
118984         * m4/intmax_t.m4: New file.
118985         * m4/d-type.m4: Indentation.
118986         * m4/jm-macros.m4: Update.
118987         * m4/prereq.m4 (jm_PREREQ): Update.
118988         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
118989         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
118990         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
118991         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
118992         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
118993         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
118994         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
118995         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
118996         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
118997         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
118998         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
118999         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
119000         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
119001         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
119002         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
119003         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
119004         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
119005         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
119006         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
119008 2002-12-24  Bruno Haible  <bruno@clisp.org>
119010         * MODULES.txt: Update according to m4/ changes.
119012         Module gettext.
119013         * config.rpath: New file, from gettext-0.11.5.
119015         * modules/*: New module descriptions.
119016         * gnulib-tool: New file.
119017         * MODULES.html.sh: New file.
119019 2002-12-21  Karl Berry  <karl@gnu.org>
119021         * doc/fdl.texi: update to version 1.2.
119023 2002-12-19  Karl Berry  <karl@gnu.org>
119025         * config/config.guess: update from prep.
119027 2002-12-18  Bruno Haible  <bruno@clisp.org>
119029         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
119030         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
119032 2002-12-17  Bruno Haible  <bruno@clisp.org>
119034         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
119035         stdlib.h, string.h.
119037 2002-12-17  Bruno Haible  <bruno@clisp.org>
119039         * lib/canon-host.c (strdup): Remove unused declaration.
119041         * lib/fsusage.c: Include full_read.h.
119042         (get_fs_usage): Use full_read instead of safe_read.
119044         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
119046 2002-12-12  Karl Berry  <karl@gnu.org>
119048         * config/config.guess: update from prep.
119050 2002-12-11  Bruno Haible  <bruno@clisp.org>
119052         * m4/setenv.m4: New file, from gettext-0.11.5.
119054 2002-12-11  Bruno Haible  <bruno@clisp.org>
119056         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
119057         not unsetenv().
119058         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
119059         modifications:
119061         2002-12-11  Bruno Haible  <bruno@clisp.org>
119063                 * setenv.c (alloca): Fall back to malloc.
119064                 (freea): New macro.
119065                 (setenv): Use freea() to free memory allocated with alloca().
119067         2002-11-13  Bruno Haible  <bruno@clisp.org>
119069                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
119070                 function declarations.
119071                 * unsetenv.c (unsetenv): Likewise.
119073         2002-03-04  Bruno Haible  <bruno@clisp.org>
119075                 Portability to AIX 4.3.3.
119076                 * unsetenv.c: New file, extracted from setenv.c.
119077                 * setenv.c: Move the unsetenv() function to unsetenv.c.
119079         2001-12-20  Bruno Haible  <bruno@clisp.org>
119081                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
119082                 use malloc instead. For SunOS 4.
119084         2001-12-11  Bruno Haible  <bruno@clisp.org>
119086                 * setenv.c: Declare alloca.
119087                 (compar_fn_t): New typedef.
119088                 (KNOWN_VALUE, STORE_VALUE): Use it.
119090         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
119091         setenv.h.
119093 2002-12-10  Paul Eggert  <eggert@twinsun.com>
119095         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
119096         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
119097         Choose values that are less likely to collide with system fnmatch
119098         options.
119099         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
119100         defined (e.g., a pure POSIX system).
119101         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
119102         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
119104 2002-12-06  Paul Eggert  <eggert@twinsun.com>
119106         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
119107         a pain in practice to deal with generated m4 files.  This change
119108         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
119110         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
119111         and jm-glibc-io.m4, as they are no longer a special case.
119112         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
119113         kludge and the auto-generation stuff.  Check only whether the
119114         functions are declared, not whether they exist, since older hosts
119115         that don't declare the functions can't use the optimization anyway.
119117 2002-12-06  Jim Meyering  <jim@meyering.net>
119119         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
119121         Merge in changes from libc's misc/error.c, in preparation
119122         for the merge of gnulib's changes back into libc.
119124         * lib/error.c (_): Define only if not already defined.
119125         Move definition to follow all #include directives.
119126         Include unlocked-io.h only if !_LIBC.
119127         [_LIBC]: Include <libio/libioP.h>.
119128         [USE_IN_LIBIO]: Include <libio/iolibio.h>
119129         (fflush): Tweak definition to use INTUSE.
119130         (putc): Define.
119132 2002-12-05  Paul Eggert  <eggert@twinsun.com>
119134         * lib/alloca.c [defined emacs]: Include "lisp.h".
119135         (xalloc_die) [defined emacs]: New macro.
119136         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
119137         [! defined emacs]: Include <xalloc.h>.
119138         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
119139         (pointer): Typedef to POINTER_TYPE *.
119140         (malloc): Remove decl; we now always use xmalloc.
119141         (alloca): Use old-style definition, since Emacs needs this.
119142         Check for arithmetic overflow when computing combined size.
119144 2002-12-04  Paul Eggert  <eggert@twinsun.com>
119146         Do not generate unlocked-io.h automatically, since it's easier to
119147         maintain it by hand.
119149         * lib/unlocked-io.h: New file, from GNU diffutils,
119150         but with proper copyright notice and attribution.
119151         * lib/gen-uio: Remove.
119152         * lib/Makefile.am: Add copyright notice.
119153         (libfetish_a_SOURCES): Add unlocked-io.h.
119154         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
119155         (DISTCLEANFILES, io_functions): Remove macros.
119156         (EXTRA_DIST): Remove gen_uio.
119157         (unlocked-io.h): Remove rule.
119159 2002-12-04  Jim Meyering  <jim@meyering.net>
119161         Reflect the fact that stat.c and lstat.c are no longer generated.
119162         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
119163         (DISTCLEANFILES): Likewise.
119164         (EXTRA_DIST): Likewise.
119165         (all_local): Don't depend on stat.c or lstat.c.
119166         (stat.c, lstat.c): Remove rules.
119167         (EXTRA_DIST): Remove xstat.in.
119169         * lib/xstat.in: Remove file.  Contents moved into stat.c.
119170         * lib/stat.c: New file.  Contents mostly from xstat.in.
119171         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
119172         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
119174         * lib/safe-read.c: Rework so that it may serve to define safe_write,
119175         too.
119176         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
119178 2002-12-03  Jim Meyering  <jim@meyering.net>
119180         * lib/safe-read.c, safe-write.c: Change variable names and comments,
119181         but not semantics, to minimize the differences between these two files.
119182         (safe_read): Change comment to mention SAFE_READ_ERROR.
119184         * lib/safe-read.c (IS_EINTR): Define.
119185         (safe_read): Use IS_EINTR in place of in-function cpp directives.
119187 2002-12-02  Jim Meyering  <jim@meyering.net>
119189         * lib/safe-read.c (EINTR): Define.
119190         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
119191         (INT_MAX): Provide fallback.
119192         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
119194         * lib/safe-read.h (SAFE_READ_ERROR): Define.
119196 2002-12-02  Bruno Haible  <bruno@clisp.org>
119198         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
119199         Define, taken from safe-read.c.
119200         (INT_MAX): Provide fallback.
119201         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
119202         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
119204         * lib/safe-read.c (EINTR): Remove definition.
119205         (safe_read): Don't use EINTR if it is absent.
119207 2002-12-01  Jim Meyering  <jim@meyering.net>
119209         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
119210         zero.
119211         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
119213 2002-11-27  Paul Eggert  <eggert@twinsun.com>
119215         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
119216         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
119217         with `if (! (value < limit)) abort ();', for readability.
119219 2002-11-26  Karl Berry  <karl@gnu.org>
119221         * lib/strdup.c: copy from libc again, with jim's ok.
119222         * lib/.cppi-disable: re-add strdup.c
119224 2002-11-25  Karl Berry  <karl@gnu.org>
119226         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
119227         instead of "strtol.c".
119229 2002-11-25  Karl Berry  <karl@gnu.org>
119231         * config/install-sh: update from automake for variable quoting, $0 in
119232         error msgs, etc.
119234         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
119235         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
119236         entry.
119238 2002-11-25  Jim Meyering  <jim@meyering.net>
119240         * lib/mktime.c: Sync from libc, now that it has the latest fix.
119242 2002-11-24  Karl Berry  <karl@gnu.org>
119244         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
119245         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
119247 2002-11-24  Jim Meyering  <jim@meyering.net>
119249         Update from coreutils:
119251         * lib/mktime.c: Merge in changes from libc.
119253         Avoid a link-time failure on some Linux systems.
119254         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
119255         (otherwise).
119256         (__mon_yday): Declare with the STATIC attribute.
119257         (__mktime_internal): Likewise.
119258         Based on a report from Greg Schafer.
119260 2002-11-23  Jim Meyering  <jim@meyering.net>
119262         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
119263         Use `unsigned', not `int', as type of index.
119265         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
119267         * lib/fsusage.c: Remove unneeded parentheses around operands of
119268         `defined'.
119270 2002-11-22  Paul Eggert  <eggert@twinsun.com>
119272         * lib/quotearg.h: Allow multiple inclusion by surrounding with
119273         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
119274         so that we can be included first.
119275         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
119276         * lib/quotearg.c: Include quotearg.h immediately after config.h.
119277         No need to include stddef.h or sys/types.h any more.
119278         Surround local include files with "", not "<>".
119279         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
119280         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
119281         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
119282         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
119283         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
119284         (ISPRINT): Remove; no longer needed now that we assume C89.
119286         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
119287         Preserve errno.
119289         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
119290         quotearg_char): Use SIZE_MAX rather than
119291         (size_t) -1 when we are talking about "infinity".
119293         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
119295 2002-11-22  Paul Eggert  <eggert@twinsun.com>
119297         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
119298         hint that one should use `if (! x) abort ();' rather than `assert
119299         (x);', and anyway it's one less thing to worry about configuring.
119300         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
119301         hash_rehash, hash_insert): Use abort rather than assert.
119303 2002-11-22  Bruno Haible  <bruno@clisp.org>
119305         * lib/safe-read.h: Assume C89. Add comments.
119306         (safe_read): Change return type to size_t.
119307         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
119308         byte counts > SSIZE_MAX correctly.
119309         * lib/safe-write.h: New file.
119310         * lib/safe-write.c: New file.
119311         * lib/full-read.h: New file.
119312         * lib/full-read.c: New file.
119313         * lib/full-write.h: Assume C89. Add comments.
119314         * lib/full-write.c: Include safe-write.h.
119315         (full_write): Rewritten to use safe_write.
119316         Suggested by Jim Meyering and Paul Eggert.
119318 2002-11-21  Jim Meyering  <jim@meyering.net>
119320         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
119322         Merge in changes from the coreutils.
119324         2002-09-25  Paul Eggert  <eggert@twinsun.com>
119325         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
119326         <stdint.h>.
119327         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
119328         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
119329         int.  Work more efficiently if X is the same width as uintmax_t.
119330         Do not compare X to -1, to avoid bogus compiler warning.
119331         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
119332         Don't assume that f_frsize and f_bsize are the same type.
119334         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
119335         warning on FreeBSD.
119337         * lib/makepath.c (make_path): Restore umask *before* creating the final
119338         component.
119339         (make_path): Minor reformatting.
119341         * lib/xmalloc.c: Adjust to work with new autoconf macros,
119342         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
119343         HAVE_MALLOC/HAVE_REALLOC.
119345         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
119346         dummy ones.  At least on GNU/Linux systems, `auto' means something
119347         else.
119348         From Michael Stone.
119350 2002-11-21  Bruno Haible  <bruno@clisp.org>
119352         Remove case insensitive option matching.
119353         * lib/argmatch.h (argcasematch): Remove declaration.
119354         (ARGCASEMATCH): Remove macro.
119355         (__xargmatch_internal): Remove case_sensitive argument.
119356         (XARGMATCH): Update.
119357         (XARGCASEMATCH): Remove macro.
119358         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
119359         case_sensitive argument.
119360         (argcasematch): Remove function.
119361         (__xargmatch_internal): Remove case_sensitive argument.
119362         (main): Use XARGMATCH instead of XARGCASEMATCH.
119364         * lib/xmalloc.c: Change compile-time error message. Add comment about
119365         required autoconf version.
119367 2002-11-20  Paul Eggert  <eggert@twinsun.com>
119369         Merge argmatch cleanups from Bison.  Assume C89.
119371         * lib/argmatch.c: Include config.h here, not in argmatch.h.
119372         Include stdlib.h, for EXIT_FAILURE.
119373         Always include <string.h>, since we assume C89.
119374         (EXIT_FAILURE): Remove pre-C89 bug workaround.
119375         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
119376         Include <stddef.h> instead, since it's all we need for size_t.
119377         (PARAMS): Remove.  All uses removed.
119378         (ARRAY_CARDINALITY): Do not bother to #undef.
119379         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
119380         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
119381         Remove unnecessary parentheses.
119382         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
119383         Insert necessary parentheses.
119384         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
119385         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
119387 2002-11-19  Bruno Haible  <bruno@clisp.org>
119389         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
119390         * lib/mbswidth.h: Include <stddef.h>, for size_t.
119392         * lib/mbswidth.h (PARAMS): Remove macro.
119393         (mbswidth, mbsnwidth): Use ANSI C function declarations.
119394         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
119396         * lib/gcd.h (PARAMS): Remove macro.
119397         (gcd): Use ANSI C function declarations.
119398         * lib/gcd.c (gcd): Likewise.
119400 2002-11-15  Bruno Haible  <bruno@clisp.org>
119402         * lib/strcspn.c: Include <stddef.h>.
119403         (strcspn): Use ANSI C function declaration. Change return type to
119404         size_t. Use NULL.
119405         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
119406         (strpbrk): Use NULL.
119407         * lib/strpbrk.h (PARAMS): Remove macro.
119408         (strpbrk): Use ANSI C function declaration.
119409         * lib/strstr.c: Don't include <sys/types.h>.
119410         * lib/strstr.h (PARAMS): Remove macro.
119411         (strstr): Use ANSI C function declarations.
119413 2002-11-14  Karl Berry  <karl@gnu.org>
119415         * config/mkinstalldirs: `do' on separate line, instead of
119416         `for var; do'.
119418 2002-11-06  Bruno Haible  <bruno@clisp.org>
119420         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
119421         * lib/gcd.c (gcd): Likewise.
119423 2002-11-05  Bruno Haible  <bruno@clisp.org>
119425         * lib/gcd.h: New file, from gettext-0.11.5.
119426         * lib/gcd.c: New file, from gettext-0.11.5.
119428 2002-11-05  Bruno Haible  <bruno@clisp.org>
119430         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
119431         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
119432         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
119433         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
119435         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
119436         <libintl.h>.
119437         * lib/makepath.c: Include gettext.h instead of <locale.h> and
119438         <libintl.h>.
119440         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
119441         * lib/human.c: Include gettext.h instead of <libintl.h>.
119442         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
119443         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
119444         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
119445         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
119446         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
119447         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
119448         (textdomain): Remove definition.
119449         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
119451         * lib/long-options.c: Remove include of <libintl.h> and definition of
119452         _.
119453         * lib/same.c: Remove include of <libintl.h> and definition of _.
119455 2002-11-04  Owen Taylor  <otaylor@redhat.com>
119457         * lib/config.charset: A few additions for Solaris.
119459 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
119461         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
119462         * lib/localcharset.c (locale_charset): Declare as extern "C".
119464 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
119466         * lib/config.charset: msdos in uk_UA uses CP1125.
119468 2002-11-04  Bruno Haible  <bruno@clisp.org>
119470         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
119471         * lib/strcase.h: New file, from GNU gettext-0.11.5.
119472         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
119473         * lib/strstr.h: New file, from GNU gettext-0.11.5.
119474         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
119476 2002-11-04  Bruno Haible  <bruno@clisp.org>
119478         * lib/localcharset.c (locale_charset): Don't return an empty string.
119480 2002-11-04  Bruno Haible  <bruno@clisp.org>
119482         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
119483         aliases.
119485 2002-11-04  Bruno Haible  <bruno@clisp.org>
119487         * lib/config.charset: Update for newest glibc. Add canonical names
119488         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
119490 2002-11-04  Bruno Haible  <bruno@clisp.org>
119492         * lib/config.charset: Add support for NetBSD.
119494 2002-11-04  Bruno Haible  <bruno@clisp.org>
119496         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
119498 2002-11-01  Bruno Haible  <bruno@clisp.org>
119500         * configure.in: Add AC_CONFIG_AUX_DIR call.
119501         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
119502         test/Makefile.
119503         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
119505 2002-09-28  Karl Berry  <karl@gnu.org>
119507         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
119508         installed automake until the next release, since changes have been
119509         made.
119511 2002-09-25  Karl Berry  <karl@gnu.org>
119513         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
119514         * lib/getopt*: copy from libc/posix.
119515         * lib/gettext.h: copy from gettext.
119516         * lib/.cppi-disable: add strdup.c, gettext.h.
119518 2002-09-25  Karl Berry  <karl@gnu.org>
119520         * config/srclist.txt: enable gettext.h check.
119521         * config/config.{guess,sub}: update from prep.
119522         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
119523                 from automake 1.6.3.
119524         See srclist*.
119526 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
119528         * regex.c (PATFETCH): Remove the translating fetch.
119529         (PATFETCH_RAW): Rename to PATFETCH.
119530         (set_image_of_range): New fun.
119531         (SET_RANGE_TABLE_WORK_AREA): Use it.
119532         (regex_compile): Don't translate the pattern chars so eagerly.
119533         Only do it when inserting an `exactn' bytecode or when handling
119534         a char-range.
119535         (mutually_exclusive_p): Avoid empty statement.
119537 2002-07-06  Jim Meyering  <meyering@lucent.com>
119539         * m4/README: Don't mention Makefile.am.in.
119540         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
119542 2002-07-01  Jim Meyering  <meyering@lucent.com>
119544         * lib/c-stack.c: Include sys/time.h.
119545         From Volker Borchert.
119547 2002-06-26  Paul Eggert  <eggert@twinsun.com>
119549         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
119551 2002-06-26  Paul Eggert  <eggert@twinsun.com>
119553         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
119554         New macro.  Use it uniformly instead of
119555         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
119556         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
119557         reported by Vin Shelton.
119559 2002-06-22  Paul Eggert  <eggert@twinsun.com>
119561         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
119562         Do not assume SA_SIGINFO behavior.
119563         Bug reported by Jim Meyering on NetBSD 1.5.2.
119565 2002-06-22  Jim Meyering  <meyering@lucent.com>
119567         * m4/c-stack.m4: New file, from diffutils-2.8.2.
119568         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
119570         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
119571         now that configure.ac uses AC_GNU_SOURCE.
119572         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
119573         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
119575         Update to latest tools.  Suggestions from Paul Eggert.
119576         * m4/stdbool.m4: New file, from diffutils-2.8.2.
119577         * m4/gnu-source.m4: Update from diffutils-2.8.2.
119578         * m4/fnmatch.m4: Likewise.
119579         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
119580         to AC_HEADER_STDBOOL
119582 2002-06-22  Jim Meyering  <meyering@lucent.com>
119584         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
119585         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
119587 2002-06-22  Jim Meyering  <meyering@lucent.com>
119589         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
119591         * lib/exitfail.c, exitfail.h: Likewise.
119592         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
119594         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
119595         of fnmatch.h.
119596         (EXTRA_DIST): Add fnmatch_loop.c.
119597         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
119599         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
119600         * lib/fnmatch.c: Update from diffutils-2.8.2.
119601         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
119602         * lib/fnmatch.h: Remove file.
119604 2002-06-21  Jim Meyering  <meyering@lucent.com>
119606         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
119607         * m4/mbrtowc.m4: Likewise.
119609         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
119610         * m4/mbswidth.m4: Reflect name change:
119611         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
119612         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
119614         * m4/lib-link.m4: Update from gettext-0.11.2.
119615         * m4/gettext.m4: Likewise.
119617         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
119618         From Alfred M. Szmidt.
119620 2002-06-18  Paul Eggert  <eggert@twinsun.com>
119622         * lib/file-type.h: Report an error if neither S_ISREG nor
119623         S_IFREG is defined, instead of using a test specific to glibc
119624         2.2.  This should be safe, since POSIX requires S_ISREG and
119625         Unix Version 7 had S_IFREG.  We don't need to check for
119626         <sys/types.h> since we don't use any symbols that it defines.
119628 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
119630         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
119631         $@-t, so that each temporary file name is unique and valid in the first
119632         8 characters, for operation under DOS.
119634 2002-06-15  Paul Eggert  <eggert@twinsun.com>
119636         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
119638 2002-06-15  Jim Meyering  <meyering@lucent.com>
119640         Work even with DJGPP 2.03, which lacks support for symlinks.
119641         From Richard Dawe.
119642         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
119643         is defined.
119644         * lib/lchown.c (S_ISLNK): Likewise.
119646 2002-06-15  Jim Meyering  <meyering@lucent.com>
119648         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
119649         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
119650         have been included before this file.
119652 2002-06-14  Jim Meyering  <meyering@lucent.com>
119654         * lib/file-type.h: Use the version from diffutils-2.8.2.
119655         * lib/file-type.c: Likewise.
119657 2002-06-07  Jim Meyering  <meyering@lucent.com>
119659         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
119660         They're needed at least for NetBSD 1.5.2.
119661         ($statxfs_includes): Include those same headers.
119662         ($statxfs_includes): Include sys/vfs.h if available.
119663         ($statxfs_includes): Likewise for sys/statvfs.h.
119664         Check for the following members in both structs statfs and statvfs:
119665         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
119667 2002-06-01  Jim Meyering  <meyering@lucent.com>
119669         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
119670         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
119672 2002-05-28  Jim Meyering  <meyering@lucent.com>
119674         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
119675         Reported by Volker Borchert.
119677 2002-05-27  Jim Meyering  <meyering@lucent.com>
119679         Fix a problem seen only on nonconforming systems whereby ls.c's
119680         use of localtime, and then of gettimeofday would cause trouble:
119681         the localtime call used to initialize rpl_gettimeofday's save
119682         mechanism would clobber ls's current local time information so
119683         that in any long listing the first file would always be listed
119684         with date 1970-01-01.  Analysis by Volker Borchert.
119686         * lib/gettimeofday.c (localtime): Undefine.
119687         (rpl_localtime): New function.
119689 2002-05-27  Jim Meyering  <meyering@lucent.com>
119691         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
119692         localtime.
119694         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
119695         use the replacement function; it wouldn't resolve at link time.
119696         Reported by Volker Borchert.
119698 2002-05-22  Jim Meyering  <meyering@lucent.com>
119700         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
119701         file-type.h.
119702         * lib/file-type.h: New file.
119703         * lib/file-type.c (file_type): New file/function.  Extracted from
119704         diffutils.
119706 2002-04-30  Jim Meyering  <meyering@lucent.com>
119708         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
119710 2002-04-29  Paul Eggert  <eggert@twinsun.com>
119712         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
119714 2002-04-29  Paul Eggert  <eggert@twinsun.com>
119716         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
119717         Do not check for alloca.h (no longer used) or stdbool.h (was never
119718         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
119720 2002-04-29  Paul Eggert  <eggert@twinsun.com>
119722         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
119724 2002-04-29  Jim Meyering  <meyering@lucent.com>
119726         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
119727         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
119728         Use AC_FUNC_STRNLEN here instead.
119730         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
119731         With autoconf-2.53a, it's part of AC_PROG_CC.
119733 2002-04-28  Paul Eggert  <eggert@twinsun.com>
119735         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
119736         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
119738 2002-04-28  Paul Eggert  <eggert@twinsun.com>
119740         * lib/sig2str.h, lib/sig2str.c: New files.
119741         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
119743 2002-04-28  Paul Eggert  <eggert@twinsun.com>
119745         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
119746         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
119747         of 127, since 64 is the largest conceivable number for ancient
119748         nonstandard hosts.
119749         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
119751 2002-04-28  Jim Meyering  <meyering@lucent.com>
119753         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
119755 2002-04-24  Jim Meyering  <meyering@lucent.com>
119757         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
119758         (jm_PREREQ): Use it.
119760         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
119761         mach/mach.h fcntl.h.
119762         Check for this function: setlocale.
119764 2002-04-24  Jim Meyering  <meyering@lucent.com>
119766         * lib/gettext.h: New file, from Gettext.
119767         * lib/Makefile.am (INCLUDES): Remove -I../intl.
119768         (libfetish_a_SOURCES): Add gettext.h.
119770 2002-04-16  Jim Meyering  <meyering@lucent.com>
119772         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
119773         ut_pid, ut_id, ut_exit.
119775 2002-04-16  Jim Meyering  <meyering@lucent.com>
119777         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
119778         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
119779         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
119781 2002-04-12  Jim Meyering  <meyering@lucent.com>
119783         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
119784         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
119785         existence of the getmntinfo function.  Needed for Darwin 5.3.
119787         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
119788         This is necessary at least on Darwin 5.3.
119790         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
119791         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
119792         strnlen.o in the library, and that makes some versions of ranlib
119793         object.
119795 2002-04-12  Jim Meyering  <meyering@lucent.com>
119797         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
119799 2002-04-09  Jim Meyering  <meyering@lucent.com>
119801         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
119802         to be more precise.  Rather than saying we're checking whether the
119803         function `works', say what we're testing.
119804         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
119805         Reported by Bruno Haible.
119807 2002-03-10  Jim Meyering  <meyering@lucent.com>
119809         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
119810         Suggestion from Santiago Vila.
119812 2002-03-08  Jim Meyering  <meyering@lucent.com>
119814         * lib/rename.c: Mention that this wrapper is needed also on
119815         mips-dec-ultrix4.4 systems.
119817 2002-03-02  Jim Meyering  <meyering@lucent.com>
119819         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
119820         not HAVE_CLOCK_SETTIME.
119822 2002-02-27  Paul Eggert  <eggert@twinsun.com>
119824         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
119825         Check for clock_settime.
119827 2002-02-27  Paul Eggert  <eggert@twinsun.com>
119829         * lib/nanosleep.h: Rename to....
119830         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
119832         * lib/gettime.c: New file.
119833         * lib/settime.c: New file.
119834         * lib/stime.c: Remove.
119836         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
119837         timespec.h.  Remove nanosleep.h.
119839 2002-02-25  Paul Eggert  <eggert@twinsun.com>
119841         * m4/acl.m4: New file.
119842         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
119843         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
119845 2002-02-25  Paul Eggert  <eggert@twinsun.com>
119847         * lib/acl.c, lib/acl.h: New files.
119848         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
119850 2002-02-24  Jim Meyering  <meyering@lucent.com>
119852         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
119853         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
119854         cause trouble.  Reported by Nelson Beebe.
119856 2002-02-23  Paul Eggert  <eggert@twinsun.com>
119858         * lib/path-concat.c (xpath_concat): Reorder code to pacify
119859         compilers that don't know that xalloc_die never returns.
119861 2002-02-20  Jim Meyering  <meyering@lucent.com>
119863         * lib/getdate.c: Regenerate using bison-1.33.
119865 2002-02-17  Jim Meyering  <meyering@lucent.com>
119867         * config/config.guess (main): Don't use `head -1'; it's no longer
119868         portable. Use `sed 1q' instead.
119870 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
119872         * m4/codeset.m4: Upgrade to gettext-0.11.
119873         * m4/gettext.m4: Upgrade to gettext-0.11.
119874         * m4/glibc21.m4: Upgrade to gettext-0.11.
119875         * m4/iconv.m4: Upgrade to gettext-0.11.
119876         * m4/isc-posix.m4: Upgrade to gettext-0.11.
119877         * m4/lcmessage.m4: Upgrade to gettext-0.11.
119878         * m4/lib-ld.m4: New file, from gettext-0.11.
119879         * m4/lib-link.m4: New file, from gettext-0.11.
119880         * m4/lib-prefix.m4: New file, from gettext-0.11.
119881         * m4/progtest.m4: Upgrade to gettext-0.11.
119883 2002-02-15  Paul Eggert  <eggert@twinsun.com>
119885         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
119886         (jm_PREREQ): Use it.
119888 2002-02-15  Paul Eggert  <eggert@twinsun.com>
119890         * lib/posixver.c, lib/posixver.h: New files.
119891         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
119893 2002-02-02  Paul Eggert  <eggert@twinsun.com>
119894             Bruno Haible  <bruno@clisp.org>
119896         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
119897         (fwrite_success_callback): New declaration.
119898         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
119899         print_unicode_char. Call failure callback instead of error.
119900         (fwrite_success_callback): New function.
119901         (exit_failure_callback): New function.
119902         (fallback_failure_callback): New function.
119903         (print_unicode_char): Call unicode_to_mb.
119905 2002-01-26  Jim Meyering  <meyering@lucent.com>
119907         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
119908         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
119910 2002-01-26  Jim Meyering  <meyering@lucent.com>
119912         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
119914 2002-01-22  Paul Eggert  <eggert@twinsun.com>
119916         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
119918 2002-01-22  Jim Meyering  <meyering@lucent.com>
119920         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
119921         Otherwise, some versions of automake would omit the rule that makes
119922         Makefile from Makefile.in.
119924 2002-01-21  Paul Eggert  <eggert@twinsun.com>
119926         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
119927         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
119928         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
119929         (memcoll): Set errno to zero if there is no error.
119931         * lib/quotearg.c (quotearg_buffer_restyled):
119932         Fix bug with quoting buffers containing NUL when backslashing escapes.
119933         This bug was exposed by the other changes in this patch.
119934         (quotearg_n_options): New arg ARGSIZE.
119935         All callers changed.
119936         (quoting_options_from_style): New function.
119937         (quotearg_n_style): Use it.
119938         (quotearg_n_style_mem): New function.
119940         * lib/quotearg.h (quotearg_n_style_mem): New function.
119942 2002-01-19  Jim Meyering  <meyering@lucent.com>
119944         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
119945         Remove useless quotes: DF_PROG="df".
119946         * m4/strnlen.m4: New file.
119948 2002-01-16  Paul Eggert  <eggert@twinsun.com>
119950         * lib/backupfile.c (ISDIGIT): Comment fix.
119951         * lib/getdate.y (ISDIGIT): Likewise.
119952         * lib/posixtm.c (ISDIGIT, year): Likewise.
119953         * lib/strverscmp.c (ISDIGIT): Likewise.
119954         * lib/userspec.c (ISDIGIT): Likewise.
119956 2002-01-16  Jim Meyering  <meyering@lucent.com>
119958         * lib/getdate.y: Add three semicolons, each just before a closing
119959         brace. Bison (as of version 1.31) no longer papers over that mistake.
119961 2002-01-05  Jim Meyering  <meyering@lucent.com>
119963         * lib/version-etc.c (version_etc_copyright): Update copyright year.
119965 2001-12-19  Paul Eggert  <eggert@twinsun.com>
119967         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
119968         not silently exit merely because the output buffer happens to
119969         have nothing pending.
119971 2001-12-18  Paul Eggert  <eggert@twinsun.com>
119973         See the big note in ../ChangeLog.
119974         * lib/human.c (suffixes): Prefer K to k for 1024.
119975         (generate_suffix_backwards): New function.
119976         (human_readable_inexact): Use it.
119977         * lib/xstrtol.c (__xstrtol): If there is no number but there
119978         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
119979         Accept 'K' as well as 'k'.
119981 2001-12-15  Jim Meyering  <meyering@lucent.com>
119983         * lib/regex.h (__restrict_arr): Update from libc.
119985         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
119986         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
119987         (STREQ): Define.
119989 2001-12-14  Jim Meyering  <meyering@lucent.com>
119991         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
119992         Suggestion from Bruno Haible.
119994 2001-12-10  Jim Meyering  <meyering@lucent.com>
119996         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
119997         xrealloc, Instead, include "xalloc.h".
119998         (initbuffer): Don't cast xmalloc return value to char*.
119999         (readline): Reword comment.
120000         Don't cast xrealloc return value to char*
120001         Return NULL, not 0.
120003 2001-12-09  Jim Meyering  <meyering@lucent.com>
120005         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
120006         about `signed and unsigned type in conditional expression'.
120007         * lib/posixtm.c (posix_time_parse): Likewise.
120009         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
120011         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
120012         to avoid a pedantic warning.
120014         * lib/getstr.c: Don't include assert.h.
120015         (getstr): Remove warning-evoking assertions.
120016         Return -1 if offset parameter is out of bounds.
120017         Change the type of a local from int to size_t.
120019         * lib/strftime.c (my_strftime_localtime_r): Include this function
120020         definition in the `#if ! HAVE_TM_GMTOFF' block.
120022         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
120023         Include xalloc.h instead.
120025 2001-12-02  Jim Meyering  <meyering@lucent.com>
120027         * lib/tempname.c: Don't declare getenv, thus reverting the change of
120028         2001-11-18.  It's no longer necessary, now that stdlib.h is always
120029         included.
120031         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
120032         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
120034 2001-11-30  Akim Demaille  <akim@epita.fr>
120036         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
120037         before being defined.
120039 2001-11-27  Paul Eggert  <eggert@twinsun.com>
120041         * lib/quotearg.h (quotearg_n, quotearg_n_style):
120042         First arg is int, not unsigned.
120043         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
120044         (SIZE_MAX, UINT_MAX): New macros.
120045         (quotearg_n_options): Abort if N is negative.
120046         Avoid overflow check on hosts where size_t is 64 bits and int
120047         is 32 bits, as overflow is impossible there.
120048         Fix off-by-one typo that caused unnecessary reallocation.
120050 2001-11-27  Jim Meyering  <meyering@lucent.com>
120052         * lib/tempname.c: Merge with version from libc.
120053         * lib/regex.c: Likewise.
120055         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
120056         systems for which STDC_HEADERS is 0, it was not included, resulting in
120057         a warning about an integer-to-pointer conversion problem with getenv.
120058         Reported by Volker Borchert.
120060 2001-11-26  Jim Meyering  <meyering@lucent.com>
120062         * lib/gtod.h: Remove file.
120063         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
120064         * lib/gettimeofday.c: Don't include gtod.h.
120065         (GTOD_init): Remove function.
120066         (rpl_gettimeofday): Do its job here instead, rather than aborting.
120067         Suggestion from Volker Borchert.
120069 2001-11-23  Jim Meyering  <meyering@lucent.com>
120071         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
120072         it.
120073         * lib/hash.c (struct hash_table): Define it here instead.
120075 2001-11-22  Jim Meyering  <meyering@lucent.com>
120077         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
120079 2001-11-20  Jim Meyering  <meyering@lucent.com>
120081         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
120082         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
120084 2001-11-19  Jim Meyering  <meyering@lucent.com>
120086         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
120087         directory.  Use "conftestXXXXXX" as the template.
120088         Suggestion from Paul Eggert.
120090         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
120091         immediately, so the test doesn't mistakenly hit the max-open-files
120092         limit.
120094 2001-11-18  Paul Eggert  <eggert@twinsun.com>
120096         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
120097         (TEMPORARIES): New macro.
120098         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
120099         removes an artificial limitation (e.g. HP-UX 10.20, where
120100         TMP_MAX is 17576).
120102 2001-11-18  Jim Meyering  <meyering@lucent.com>
120104         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
120106 2001-11-18  Jim Meyering  <meyering@lucent.com>
120108         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
120109         on SunOS 4.
120111         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
120112         files will be created before anything else.
120114 2001-11-17  Paul Eggert  <eggert@twinsun.com>
120116         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
120117         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
120119 2001-11-17  Jim Meyering  <meyering@lucent.com>
120121         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
120122         Prompted by a report from Bob Proulx.
120124         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
120125         Instead, require UTILS_FUNC_MKSTEMP.
120127 2001-11-17  Jim Meyering  <meyering@lucent.com>
120129         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
120130         Now, that's done as part of AC_FUNC_STRTOD.
120132 2001-11-17  Jim Meyering  <meyering@lucent.com>
120134         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
120135         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
120136         rather than group writable.  Patch by Juan F. Codagnone.
120138         * lib/readtokens.c: Remove explicit declarations of xmalloc and
120139         xrealloc, Instead, include "xalloc.h".
120141         * lib/mountlist.c: Include unlocked-io.h after all system headers.
120142         Remove explicit declarations of xmalloc, xrealloc,
120143         and xstrdup.  Instead, include "xalloc.h".
120145         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
120146         unlocked-io.h.
120147         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
120148         Likewise.
120149         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
120151         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
120152         Reported by Padraig Brady.
120154         * lib/mkstemp.c: #undef mkstemp.
120155         Include config.h.
120156         (rpl_mkstemp): Rename from mkstemp.
120157         Protoize.
120159 2001-11-16  Jim Meyering  <meyering@lucent.com>
120161         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
120162         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
120163         determine the amount of total physical memory, use pstat_getstatic.
120164         HPUX-11 doesn't define _SC_PHYS_PAGES.
120165         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
120166         If sysconf couldn't be used to determine the amount of available
120167         physical memory, use both pstat_getstatic and pstat_getdynamic.
120168         Based on a patch from Bob Proulx.
120170 2001-11-10  Jim Meyering  <meyering@lucent.com>
120172         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
120173         (jm_PREREQ): Use it.
120175 2001-11-09  Jim Meyering  <meyering@lucent.com>
120177         * m4/jm-macros.m4: Require autoconf-2.52f.
120178         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
120179         Use these AC_-prefixed names, not the AM_-prefixed ones.
120181         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
120183 2001-11-05  Jim Meyering  <meyering@lucent.com>
120185         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
120187 2001-11-04  Jim Meyering  <meyering@lucent.com>
120189         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
120190         $DEFS.
120192 2001-11-03  Jim Meyering  <meyering@lucent.com>
120194         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
120195         of AC_DEFUN.
120197         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
120198         know the name of the variable in the macro definition.
120200 2001-11-03  Jim Meyering  <meyering@lucent.com>
120202         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
120203         in argmatch_to_argument call.
120205         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
120206         argument.
120208         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
120209         e.g., a fault due to an attempt to free a NULL pointer.
120211 2001-11-01  Jim Meyering  <meyering@lucent.com>
120213         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
120214         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
120216 2001-11-01  Jim Meyering  <meyering@lucent.com>
120218         * lib/dirfd.c, lib/dirfd.h: New files.
120219         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
120221         * lib/hash.c (hash_print) [TESTING]: Clean up.
120223 2001-10-22  Paul Eggert  <eggert@twinsun.com>
120225         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
120226         to avoid a warning if -Wall.
120228 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
120230         * README: New file
120231         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
120232         (per RMS's instructions, this is now the canonical source)
120233         * lgpl/, gpl/: New directories.
120235 2001-10-21  Paul Eggert  <eggert@twinsun.com>
120237         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
120239 2001-10-21  Jim Meyering  <meyering@lucent.com>
120241         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
120242         this code would end up calling gettext even in packages built
120243         with --disable-nls.
120244         * lib/getopt.c (_): Likewise.
120245         * lib/regex.c (_): Likewise.
120247 2001-10-20  Paul Eggert  <eggert@twinsun.com>
120249         * m4/error.m4 (jm_PREREQ_ERROR):
120250         Do not invoke AC_CHECK_FUNCS with strerror_r, as
120251         AC_FUNC_STRERROR_R does that.
120252         Check for strerror declaration.
120254         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
120255         are supposed to have them these days.
120256         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
120257         Merge changes from latest Autoconf CVS.
120258         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
120259         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
120260         POSIX decided to standardize on the int flavor of strerror_r.
120262 2001-10-20  Paul Eggert  <eggert@twinsun.com>
120264         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
120265         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
120266         Use strerror_r that is only a macro, even if it is not a function.
120267         (strerror): Check for HAVE_DECL_STRERROR before declaring.
120268         (private_strerror): Use prototypes, not old-style function definition.
120269         (print_errno_message): New function.
120270         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
120271         char*-flavored one.
120272         (error_tail, error, error_at_line): Use it.
120274 2001-10-11  Jim Meyering  <meyering@lucent.com>
120276         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
120277         and quote_n (1, ... to avoid clobbering a buffer.
120279 2001-10-05  Jim Meyering  <meyering@lucent.com>
120281         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
120282         hash-pjw.h.
120283         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
120284         * lib/hash-pjw.h: New file.
120286 2001-09-30  Jim Meyering  <meyering@lucent.com>
120288         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
120289         `struct fsstat' has the `f_fstypename' member.
120290         Use that to define FS_TYPE, which is now used to make
120291         the getfsstat link test tighter.
120293 2001-09-30  Jim Meyering  <meyering@lucent.com>
120295         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
120296         Include <sys/ucred.h>, for Apple Darwin.
120297         Include sys/mount.h and sys/fs_types.h only if available.
120298         (FS_TYPE): Define.
120299         (read_filesystem_list): Use FS_TYPE.
120301 2001-09-29  Paul Eggert  <eggert@twinsun.com>
120303         * lib/exclude.c (excluded_filename): 0 -> false, since it's
120304         a boolean context.
120306 2001-09-29  Jim Meyering  <meyering@lucent.com>
120308         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
120309         [one-argument getmntent function]): Include stdio.h before mntent.h.
120310         SunOS 4.1.x needs it for the declaration of `FILE'.
120311         Patch by Volker Borchert.
120313         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
120314         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
120315         sys/fs_types.h, and make the link-test for getfsstat guard #include
120316         directives with appropriate #if HAVE_*_H tests so that we can
120317         detect getfsstat on Apple Darwin1.3.7 systems.
120318         Reported by Nelson Beebe.
120319         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
120321 2001-09-28  Paul Eggert  <eggert@twinsun.com>
120323         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
120324         #defines strtoimax.  Also treat the other strto* functions
120325         like strtoimax.
120327         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
120328         Check for strtoul and strtoumax,
120329         as those declarations are made even in the signed case.
120330         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
120331         Likewise, for strtol and strtoimax.
120333 2001-09-28  Paul Eggert  <eggert@twinsun.com>
120335         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
120336         #defines strtoimax.  Also treat the other strto* functions
120337         like strtoimax.
120339         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
120340         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
120341         (strtoimax, strtoumax): Do not declare if already defined as a macro.
120343 2001-09-26  Jim Meyering  <meyering@lucent.com>
120345         Most macros in unlocked-io.h had the wrong number of arguments.
120346         * lib/gen-uio: New script.
120347         (USE_UNLOCKED_IO): Define to 1 if not already defined.
120348         * lib/unlocked-io.hin: Remove file.
120349         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
120350         rather than trying to embed it here.
120351         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
120352         Reported by Padraig Brady.
120354 2001-09-25  Volker Borchert  <bt@teknon.de>
120356         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
120357         `result'.
120359 2001-09-24  Jim Meyering  <meyering@lucent.com>
120361         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
120363 2001-09-23  Jim Meyering  <meyering@lucent.com>
120365         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
120366         instead of the mere test for existence of mntent.h.  The latter
120367         would get a false-positive on AIX 3.4 systems.
120368         In the outer getmntent if-block, don't die if neither of the getmntent
120369         tests succeeds.  Instead, just fall through and continue with the
120370         remaining tests.
120372 2001-09-23  Jim Meyering  <meyering@lucent.com>
120374         * lib/mountlist.c: Remove useless parentheses in #if directives.
120375         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
120376         the deprecated MOUNTED symbol is no longer defined in mntent.h.
120378 2001-09-22  Jim Meyering  <meyering@lucent.com>
120380         * m4/gettext.m4: New file.  From gettext.
120381         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
120382         * m4/progtest.m4: Likewise
120383         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
120384         * m4/glibc21.m4: Likewise.
120386         * m4/libintl.m4: Remove.  No longer used.
120388 2001-09-22  Jim Meyering  <meyering@lucent.com>
120390         * lib/localcharset.c: Update from latest gettext.
120391         * lib/config.charset: Likewise.
120393 2001-09-20  Jim Meyering  <meyering@lucent.com>
120395         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
120396         strtoimax.
120397         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
120398         strtoumax.
120400 2001-09-20  Jim Meyering  <meyering@lucent.com>
120402         * lib/xstrtol.c (strtoimax): Guard declaration with
120403         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
120404         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
120405         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
120406         (strtoumax): Likewise, for completeness (it wasn't necessary).
120408 2001-09-17  Paul Eggert  <eggert@twinsun.com>
120410         * lib/strtoimax.c (HAVE_LONG_LONG):
120411         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
120412         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
120413         to work around bug in IBM C compiler.
120415 2001-09-17  Jim Meyering  <meyering@lucent.com>
120417         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
120418         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
120419         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
120420         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
120421         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
120422         whenever the right hand side need not be expanded by the shell.
120424 2001-09-16  Paul Eggert  <eggert@twinsun.com>
120426         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
120427         library.  It's not correct, as some older glibcs are buggy.
120428         fnmatch wasn't fixed until glibc 2.2.
120430         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
120431         special shell magic here.
120433 2001-09-16  Jim Meyering  <meyering@lucent.com>
120435         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
120436         * m4/jm-macros.m4: Require it.
120438 2001-09-16  Jim Meyering  <meyering@lucent.com>
120440         * lib/mkdir.c: New file.
120442 2001-09-15  Jim Meyering  <meyering@lucent.com>
120444         * m4/jm-macros.m4: Check for help2man.
120446 2001-09-11  Jim Meyering  <meyering@lucent.com>
120448         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
120449         The body, by Paul Eggert, was moved here from configure.in.
120450         * m4/jm-macros.m4: Require UTILS_HOST_OS.
120452 2001-09-04  Paul Eggert  <eggert@twinsun.com>
120454         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
120455         (jm_PREREQ): Use it.
120457 2001-09-04  Paul Eggert  <eggert@twinsun.com>
120459         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
120460         Use ssize_t, not int, to store result of readlink.
120461         Check for ssize_t overflow as well as size_t overflow,
120462         as POSIX says the result of readlink is implementation-defined
120463         when ssize_t overflows.
120464         Remove unnecessary cast to char*.
120465         Use free+malloc instead of realloc, as the storage doesn't need
120466         to be preserved and it's clearer and can be more efficient that way.
120467         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
120468         * lib/xreadlink.h (xreadlink): Update prototype.
120470 2001-09-04  Paul Eggert  <eggert@twinsun.com>
120472         * lib/xgetcwd.c: Revert some of the previous change; intead,
120473         fix the HAVE_GETCWD_NULL code to behave more like the
120474         !HAVE_GETCWD_NULL code used to.
120476         Include "xalloc.h".
120477         (xgetcwd): Do not return NULL when memory is exhausted; instead,
120478         invoke xalloc_die.
120480 2001-09-03  Paul Eggert  <eggert@twinsun.com>
120482         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
120483         sys/param.h, as pathmax.h includes them.
120485 2001-09-03  Paul Eggert  <eggert@twinsun.com>
120487         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
120488         (jm_PREREQ_XGETCWD): New macro.
120490         * m4/getcwd.m4: New file.
120492 2001-09-03  Paul Eggert  <eggert@twinsun.com>
120494         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
120495         like the HAVE_GETCWD_NULL code.
120496         Include pathmax.h if not HAVE_GETCWD.
120497         Do not include xalloc.h.
120498         (INITIAL_BUFFER_SIZE): New symbol.
120499         Do not use xmalloc / xrealloc, since the caller is responsible for
120500         handling errors.  Preserve errno around `free' during failure.
120501         Do not overrun buffer when using getwd.
120503 2001-09-03  Paul Eggert  <eggert@twinsun.com>
120505         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
120506         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
120507         getcwd (NULL, 0).
120509 2001-09-03  Paul Eggert  <eggert@twinsun.com>
120511         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
120512         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
120513         spotted by Jim Meyering.
120515 2001-09-03  Jim Meyering  <meyering@lucent.com>
120517         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
120518         failure.
120520 2001-09-02  Jim Meyering  <meyering@lucent.com>
120522         * lib/error.c: Update from GNU libc.
120524 2001-09-01  Jim Meyering  <meyering@lucent.com>
120526         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
120527         Used by df.
120529 2001-09-01  Jim Meyering  <meyering@lucent.com>
120531         * lib/xreadlink.c: New file.
120532         * lib/xreadlink.h: New file.
120533         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
120534         xreadlink.h.
120536         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
120537         doesn't conflict with sparc Solaris 7's definition in
120538         /usr/include/sys/int_types.h.
120540         * lib/exclude.c: Use `""', not `<>' to #include non-system header
120541         files.
120542         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
120543         and strncasecmp as r-values.  Unixware didn't have declarations.
120545 2001-08-31  Paul Eggert  <eggert@twinsun.com>
120547         * lib/xstrtol.h: Add copyright notice.
120548         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
120549         LONGINT_INVALID_SUFFIX_CHAR.
120551 2001-08-31  Paul Eggert  <eggert@twinsun.com>
120553         * lib/xstrtol.c (strtoimax): New decl.
120555 2001-08-31  Paul Eggert  <eggert@twinsun.com>
120557         * lib/xgetcwd.c: Don't include pathmax.h.
120558         Include stdlib.h and unistd.h if available.
120559         Include xalloc.h.
120560         (xmalloc, xstrdup, free): Remove decls.
120561         (xgetcwd): Don't assume sizes fit in unsigned.
120562         Check for overflow when computing sizes.
120563         Simplify reallocation code.
120565 2001-08-31  Paul Eggert  <eggert@twinsun.com>
120567         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
120568         a directory's st_size can have an arbitrary value, so the old
120569         usage could waste an arbitrary amount of memory.  All uses
120570         changed.
120571         * lib/savedir.h: Update prototype.
120573 2001-08-31  Paul Eggert  <eggert@twinsun.com>
120575         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
120577         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
120578         old strtoimax.c.
120580         Also, make the following further changes to make this file's
120581         configuration more similar to that of strtol.c:
120582         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
120583         (strtoumax, uintmax_t, strtoull, strtol): Remove.
120584         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
120585         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
120586         changed to signed values.
120588         And make the following changes as well:
120589         Fix copyright notice, as 1999 was missing.
120590         (verify): New macro.
120591         (strtoimax): Check sizes at compile-time, not run-time.
120592         Prefer strtol to strtoll if both work.
120593         (main): Remove; it was not that useful and was a pain to maintain.
120595         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
120597 2001-08-31  Jim Meyering  <meyering@lucent.com>
120599         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
120600         Use an initial, malloc'd, buffer of length 128 rather than
120601         a statically allocated one of length 1024.
120603 2001-08-30  Paul Eggert  <eggert@twinsun.com>
120605         Simplify code, partly by assuming autoconf 2.52 semantics.
120607         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
120609         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
120610         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
120611         All uses removed.
120612         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
120613         Move AC_REQUIRE to next-to-top level, to avoid confusion.
120614         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
120615         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
120616         jm_AC_HEADER_INTTYPES_H.
120617         * m4/jm-macros.m4 (jm_MACROS): Likewise.
120619         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
120621         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
120622         Quote first arg of AC_DEFUN.
120623         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
120624         since they are needed to parse the include file even if we need
120625         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
120626         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
120627         but with opposite signedness.
120629 2001-08-30  Paul Eggert  <eggert@twinsun.com>
120631         Merge 'exclude' changes from tar 1.13.22.
120632         This fixes one or two unlikely storage allocation overflow bugs,
120633         but doesn't change user-visible behavior otherwise.
120635 2001-08-30  Paul Eggert  <eggert@twinsun.com>
120637         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
120638         (jm_PREREQ_EXCLUDE): New macro.
120640 2001-08-30  Paul Eggert  <eggert@twinsun.com>
120642         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
120643         tm to be declared.
120645 2001-08-30  Paul Eggert  <eggert@twinsun.com>
120647         * lib/hash.c: Remove '2001' from copyright notice.
120649 2001-08-30  Paul Eggert  <eggert@twinsun.com>
120651         * lib/full-write.h: New file.
120652         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
120653         * lib/full-write.c: Correct credits, as cccp.c no longer
120654         exists and anyway it was so heavily changed from the old cccp
120655         code as to be unrecognizable.  Include full-write.h.
120656         (full_write): Return size_t, with short writes meaning failure.
120657         All callers changed.  This fixes a bug with large buffers
120658         on 64-bit hosts.
120659         * lib/utime.c: Include full-write.h.
120661 2001-08-30  Paul Eggert  <eggert@twinsun.com>
120663         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
120664         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
120665         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
120666         Include if available.
120667         (<xalloc.h>): Include
120668         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
120669         (verify): New macro.  Use it to verify that EXCLUDE macros do not
120670         collide with FNM macros.
120671         (struct patopts): New struct.
120672         (struct exclude): Use it, as exclude patterns now come with options.
120673         (new_exclude): Support above changes.
120674         (new_exclude, add_exclude_file):
120675         Initial size must now be a power of two to simplify overflow checking.
120676         (free_exclude, fnmatch_no_wildcards): New function.
120677         (excluded_filename): No longer requires options arg, as the options
120678         are determined by add_exclude.  Now returns bool, not int.
120679         (excluded_filename, add_exclude):
120680         Add support for the fancy new exclusion options.
120681         (add_exclude, add_exclude_file): Now takes int options arg.
120682         Check for arithmetic overflow when computing sizes.
120683         (add_exclude_file): xrealloc might modify errno, so don't
120684         realloc until after errno might be used.
120686         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
120687         New macros.
120688         (free_exclude): New decl.
120689         (add_exclude, add_exclude_file): Now takes int options arg.
120690         (excluded_filename): No longer requires options arg, as the options
120691         are determined by add_exclude.  Now returns bool, not int.
120693 2001-08-30  Paul Eggert  <eggert@twinsun.com>
120695         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
120697 2001-08-27  Jim Meyering  <meyering@lucent.com>
120699         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
120701         * lib/version-etc.c (N_): Remove definition.
120702         Revert most of last change.
120703         Instead, simply don't mark the `Copyright...' string for translation.
120704         Based on advice from Paul Eggert.
120706         * lib/strtoxmax.c: Tweak comment.
120708 2001-08-26  Jim Meyering  <meyering@lucent.com>
120710         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
120712         * m4/xstrtoimax.m4: New file.
120713         * m4/xstrtoumax.m4: Add comments explaining why we
120714         AC_REPLACE_FUNCS(strtol).
120716 2001-08-26  Jim Meyering  <meyering@lucent.com>
120718         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
120719         of copyright with `%s' so translators don't get an untranslated
120720         message in 2002.
120721         (COPYRIGHT_YEAR): Define.
120722         (version_etc): Use fprintf rather than fputs.
120723         Suggestion from Ulrich Drepper.
120725         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
120727         * lib/strtoll.c: New file, from GNU libc.
120728         * lib/xstrtoimax.c: New file.
120730         * lib/xstrtol.h: Add xstrtoimax.
120731         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
120732         * lib/strtoimax.c: New file.  Likewise, but first define
120733         STRTOUXMAX_SIGNED.
120735         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
120736         ...
120737         * lib/strtoxmax.c: ... then renamed to this.
120739 2001-08-18  Paul Eggert  <eggert@twinsun.com>
120741         * m4/inttypes.m4: Add AC_PREREQ(2.13).
120742         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
120743         (jm_AC_TYPE_INTMAX_T): New macro.
120744         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
120746         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
120748         * m4/longlong.m4: Renamed from ulonglong.m4.
120749         * m4/inttypes.m4: Renamed from inttypes_h.m4.
120750         * m4/uintmax_t.m4: Removed.
120752 2001-08-13  Paul Eggert  <eggert@twinsun.com>
120754         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
120755         Port to Solaris 8, where 'sed' requires a space after the 'r'
120756         command, and where sh dislikes "$/".  Clean up the spacing a bit.
120757         Redirect output to $tmp just once.
120759 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
120761         * lib/addext.c (<errno.h>): Include.
120762         (errno): Declare if not defined.
120763         (addext): Work correctly when pathconf returns -1 and leaves
120764         errno alone because there is no limit.  Also, work even if
120765         pathconf returns a value greater than SIZE_MAX.
120767 2001-08-12  Jim Meyering  <meyering@lucent.com>
120769         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
120770         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
120771         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
120772         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
120773         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
120774         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
120775         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
120776         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
120777         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
120778         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
120779         utime.m4, utimes.m4, xstrtoumax.m4:
120780         Quote the first argument in each use of AC_DEFUN.
120782 2001-08-12  Jim Meyering  <meyering@lucent.com>
120784         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
120785         Simply `return getcwd (NULL, 0);'.
120786         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
120787         Use 1300 as initial value for length, not PATH_MAX.
120789         * lib/pathmax.h: Clean up cpp syntax.
120791 2001-08-12  Jim Meyering  <meyering@lucent.com>
120793         * lib/gettimeofday.c: New file.
120794         * lib/gtod.h: New file.
120795         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
120797 2001-08-05  Jim Meyering  <meyering@lucent.com>
120799         * m4/jm-macros.m4: Require autoconf-2.52.
120801 2001-08-04  Jim Meyering  <meyering@lucent.com>
120803         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
120804         stmt, to get in sync with glibc.
120806 2001-08-03  Paul Eggert  <eggert@twinsun.com>
120808         The following changes are from gettext 0.10.39 as maintained by
120809         Bruno Haible.
120811         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
120812         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
120813         with inverted sense.  All uses changed.
120815         * lib/mbswidth.c: Don't include <limits.h>.
120816         Include <stdlib.h> and <string.h> unconditionally.
120817         (iswcntrl, mbsinit, ISCNTRL): New macros.
120818         (mbsnwidth): Use K&R style function declarations.
120819         Don't bother checking for MB_LEN_MAX == 1, since the compiler
120820         can optimize it when MB_CUR_MAX == 1.
120821         The width of control characters is zero, not 1.
120823 2001-08-03  Paul Eggert  <eggert@twinsun.com>
120825         The following changes are from gettext 0.10.39 as maintained by
120826         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
120828         * m4/codeset.m4: Upgrade to serial AM1.
120829         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
120830         all uses changed.  Quote first arg of AC_DEFUN.
120831         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
120833         * m4/iconv.m4: Upgrade to serial AM2.
120834         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
120835         Add --with-libconv-prefix.
120836         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
120837         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
120838         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
120839         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
120840         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
120842         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
120843         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
120844         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
120845         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
120846         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
120847         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
120848         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
120849         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
120850         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
120852         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
120853         string.h any more.
120855         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
120856         not the default value.
120858         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
120859         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
120860         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
120861         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
120862         Also check for iswcntrl, used for wcwidth fallback.
120863         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
120864         to Autoconf 2.13.
120866 2001-08-03  Jim Meyering  <meyering@lucent.com>
120868         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
120869         as it was in the original.  Reported by Paul Eggert.
120871 2001-07-16  Jim Meyering  <meyering@lucent.com>
120873         * m4/gettimeofday.m4: New file.
120874         Prompted by a report from Bernhard Baehr.
120876 2001-07-15  Jim Meyering  <meyering@lucent.com>
120878         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
120879         stuff. Now it's in ../Makefile.cfg.
120881 2001-07-15  Jim Meyering  <meyering@lucent.com>
120883         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
120884         (BUILT_SOURCES): Add unlocked-io.h.
120885         (io_functions): Define.
120886         (unlocked-io.h): New rule.
120887         (DISTCLEANFILES): Add unlocked-io.h.
120888         (all-local): Depend on unlocked-io.h, to ensure it is created.
120890         * lib/unlocked-io.hin: New file
120892         * lib/regex.c: Update from glibc.
120894 2001-07-05  Jim Meyering  <meyering@lucent.com>
120896         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
120897         recommendation.
120898         (libfetish_a_SOURCES): Put all .h files here instead.
120899         Remove a thus-exposed (better checks in automake) duplicate and
120900         two unnecessary .h files.
120902 2001-07-04  Jim Meyering  <meyering@lucent.com>
120904         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
120905         that generates jm-glibc-io.m4 so that it doesn't trigger any make
120906         distcheck failure.
120908 2001-07-02  Jim Meyering  <meyering@lucent.com>
120910         The following changes were prompted by suggestions from Bruno Haible.
120912         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
120913         is now generated.
120914         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
120915         definition of EXTRA_DIST.
120916         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
120917         ensure that the generated file is created/updated whenever the list
120918         of $(unlocked_functions) is changed.
120919         (jm-glibc-io.m4): New rule.
120920         (unlocked-io.h): New rule -- currently unused.
120922 2001-06-24  Jim Meyering  <meyering@lucent.com>
120924         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
120925         unmatched right bracket, rather than kludging it with an extra,
120926         falsely-matching quote in a comment.  Patch by Akim Demaille.
120928 2001-06-11  Jim Meyering  <meyering@lucent.com>
120930         * lib/regex.c: Update from GNU libc.
120932 2001-05-27  Jim Meyering  <meyering@lucent.com>
120934         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
120935         Check for ut_type in struct utmp.
120937 2001-05-27  Jim Meyering  <meyering@lucent.com>
120939         * lib/readutmp.h (UT_TYPE): Define.
120941 2001-05-24  Jim Meyering  <meyering@lucent.com>
120943         * lib/argmatch.c: Include "quote.h".
120944         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
120945         quote function.  Reported by Göran Uddeborg.
120947 2001-05-22  Jim Meyering  <meyering@lucent.com>
120949         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
120950         now that we use the package-supplied version unconditionally.
120951         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
120953 2001-05-21  Jim Meyering  <meyering@lucent.com>
120955         * m4/regex.m4: Change a couple backticks to single quotes to avoid
120956         shell syntax errors.
120958 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
120960         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
120962 2001-05-20  Paul Eggert  <eggert@twinsun.com>
120964         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
120965         Don't bother to check library strftime, since
120966         we'll be using our own my_strftime function anyway.
120967         Define my_strftime instead of strftime.
120969 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
120971         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
120972         which is not yet declared.
120974 2001-05-15  Jim Meyering  <meyering@lucent.com>
120976         * m4/regex.m4: Use proper quoting so brackets appear in the test
120977         program.
120978         Reported by, and with help from, Bruno Haible.
120980 2001-05-13  Jim Meyering  <meyering@lucent.com>
120982         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
120983         undefined.
120985 2001-05-11  Paul Eggert  <eggert@twinsun.com>
120987         dirname code cleanup.  base_name now behaves more compatibly
120988         with POSIX basename when given file names that have trailing
120989         slashes, and similarly for dir_name.  Add new primitives
120990         base_len and dir_len.  Put the directory-name-related decls
120991         into dirname.h.
120993         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
120994         * lib/backupfile.c (base_name): Likewise.
120995         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
120996         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
120997         * lib/makepath.c (strip_trailing_slashes): Likewise.
120998         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
120999         ISSLASH): Likewise.
121000         * lib/rename.c (strip_trailing_slashes): Likewise.
121001         * lib/same.c (base_name): Likewise.
121002         * lib/stripslash.c (ISSLASH): Likewise.
121004         * lib/addext.c: Include <dirname.h> after size_t is defined.
121005         * lib/backupfile.c: Likewise.
121007         * lib/addext.c (addext): Use base_len to trim redundant
121008         trailing slashes instead of doing it ourselves.
121009         But do not trim the last slash if it is not redundant.
121011         * lib/backupfile.c (find_backup_file_name,
121012         max_backup_version): Use base_len instead of rolling it ourselves.
121013         Handle the case of "" and (on DOS) "C:" correctly.
121015         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
121016         needed. Include <string.h>, <dirname.h>.
121017         (base_name): Allow file names ending in slashes, other than names
121018         that are all slashes.  In this case, return the basename followed
121019         by the slashes.  This is more general, and can be used in places
121020         where the original base_name purposely had an assertion failure.
121021         (base_len): New function.
121023         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
121024         Do not include <assert.h>; no longer needed.
121025         Include xalloc.h.
121026         (memrchr): Remove decl.
121027         (dir_name_r): Remove.
121028         (dir_len): Renamed from dirlen.  All callers changed.
121029         Rewrite in terms of base_name, for simplicity and consistency.
121030         (dir_name): Never return NULL.  All callers changed.
121031         Do not include <stdlib.h> in test program; no longer needed.
121032         return 0; is fine for test program.
121034         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
121035         New macros.
121036         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
121038         * lib/path-concat.c (path_concat): Use base_len to compute
121039         base length, not strlen; this means we cannot rely on memcpy
121040         to null-terminate.
121042         * lib/same.c (STREQ): Remove.
121043         (same_name): Handle the case where the basename ends in trailing '/'.
121045         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
121046         a slash was stripped.  Do not strip the last slash after a
121047         file system prefix.
121049 2001-05-11  Paul Eggert  <eggert@twinsun.com>
121051         * lib/Makefile.am (libfetish_a_SOURCES):
121052         Add strftime.c, since we now compile it on all hosts.
121054         * lib/strftime.c (my_strftime):
121055         Define to nstrftime if emacs, but only if my_strftime is not defined.
121056         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
121057         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
121058         Add one more extra argument: a nanoseconds value.
121059         All uses changed.
121060         (ns): New macro.
121061         (my_strftime function): Add %N format.
121062         (emacs_strftimeu): Renamed from emacs_strftime,
121063         with extra ut argument.
121065 2001-05-09  Paul Eggert  <eggert@twinsun.com>
121067         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
121069 2001-04-21  Jim Meyering  <meyering@lucent.com>
121071         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
121072         doesn't interfere.
121074 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
121076         * m4/ftruncate.m4: Check for chsize.
121077         Link with ftruncate.o unconditionally if ftruncate is missing.
121078         This was required when cross-compiling to i586-mingw32msvc.
121080 2001-04-08  Jim Meyering  <meyering@lucent.com>
121082         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
121083         recomputed; that's necessary when the offset spans a DST transition.
121084         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
121086 2001-04-02  Jim Meyering  <meyering@lucent.com>
121088         * lib/regex.h, regex.c: Update from GNU libc.
121090 2001-03-24  Jim Meyering  <meyering@lucent.com>
121092         * m4/jm-macros.m4: Require autoconf-2.49d.
121094 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
121096         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
121098 2001-03-19  Paul Eggert  <eggert@twinsun.com>
121100         * lib/version-etc.c (version_etc_copyright): Update to 2001.
121102 2001-03-17  Jim Meyering  <meyering@lucent.com>
121104         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
121105         now that the version in autoconf is equivalent.
121106         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
121108         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
121109         Suggestion from Akim Demaille.
121111         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
121112         (jm_PREREQ_TEMPNAME): New function.
121114 2001-03-16  Paul Eggert  <eggert@twinsun.com>
121116         * lib/tempname.c (uint64_t): Define to uintmax_t if
121117         not defined, and if UINT64_MAX is not defined.
121118         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
121119         Reported by John David Anglin.
121121 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
121123         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
121124         resolve alias if codeset is empty.
121125         * lib/config.charset (BeOS): Use wildcard syntax.
121127 2001-03-13  Jim Meyering  <meyering@lucent.com>
121129         * lib/path-concat.c (path_concat)
121130         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
121131         concatenating e.g., `C:' and `foo'.
121132         From Bruno Haible.
121134 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
121136         * lib/localcharset.c (locale_charset): Don't use
121137         setlocale(LC_CTYPE,NULL). Don't return NULL.
121138         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
121140 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
121142         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
121143         support for DOS/DJGPP.
121145 2001-03-01  Paul Eggert  <eggert@twinsun.com>
121147         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
121148         lacks mkstemp.  Compile our own tempname.c if we compile our own
121149         mkstemp.c, as mkstemp relies on tempname.
121151 2001-03-01  Jim Meyering  <meyering@lucent.com>
121153         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
121154         AH_VERBATIM really does output its argument verbatim.
121156 2001-02-28  Paul Eggert  <eggert@twinsun.com>
121158         * lib/Makefile.am (libfetish_a_SOURCES):
121159         Add dup-safer.c, fopen-safer.c.
121160         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
121162         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
121163         * lib/unistd-safer.h: New files.
121165 2001-02-25  Paul Eggert  <eggert@twinsun.com>
121167         The mkstemp replacement is taken from glibc 2.2.2, with some
121168         portability fixes for use outside glibc, as follows:
121170         * lib/tempname.c (struct_stat64): New macro.
121171         (direxists, __gen_tempname): Use it.
121172         This avoids a portability problem with Solaris 8.
121174         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
121175         (<stddef.h>, <stdint.h>, <string.h>):
121176         Include only if STDC_HEADERS || _LIBC.
121177         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
121178         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
121179         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
121180         (__set_errno): Define this macro if <errno.h> doesn't.
121181         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
121182         Define these macros if <stdio.h> doesn't.
121183         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
121184         Define these macros if <sys/stat.h>
121185         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
121186         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
121187         __xstat64): Define if not _LIBC.
121188         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
121189         (__gen_tempname): Invoke gettimeofday only if
121190         HAVE_GETTIMEOFDAY || _LIBC;
121191         otherwise, fall back on plain "time".
121192         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
121194         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
121196         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
121198 2001-02-18  Paul Eggert  <eggert@twinsun.com>
121200         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
121202 2001-02-17  Paul Eggert  <eggert@twinsun.com>
121204         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
121205         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
121206         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
121207         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
121209 2001-02-17  Paul Eggert  <eggert@twinsun.com>
121211         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
121212         Remove workaround macros for hosts that have mbrtowc but not
121213         mbstate_t, as we now insist on proper declarations for both
121214         before using mbrtowc.
121216 2001-02-17  Jim Meyering  <meyering@lucent.com>
121218         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
121219         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
121220         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
121221         UnixWare 7.1.1.
121223         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
121224         rather than AC_CACHE_VAL.
121226 2001-02-17  Jim Meyering  <meyering@lucent.com>
121228         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
121229         around included file name.
121231         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
121233         * lib/strftime.c: Update from GNU libc (the only changes were to
121234         comments).
121236 2001-02-17  Jim Meyering  <meyering@lucent.com>
121238         * lib/regex.c: Update from libc.
121240 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
121242         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
121243         clash.
121245 2001-02-16  Paul Eggert  <eggert@twinsun.com>
121247         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
121248         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
121249         Reported by Mark Hounschell via Paul Eggert.
121251 2001-02-07  Jim Meyering  <meyering@lucent.com>
121253         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
121255 2001-02-05  Jim Meyering  <meyering@lucent.com>
121257         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
121258         it includes the patch required for `large file' support with at least
121259         HP-UX's 10.20 /bin/cc.
121261 2001-02-03  Jim Meyering  <meyering@lucent.com>
121263         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
121264         AS_IF, now that it works once again (mysteriously).
121265         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
121267 2001-01-30  Jim Meyering  <meyering@lucent.com>
121269         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
121270         * m4/chown.m4: Rename conftestchown to conftest.chown.
121271         * m4/rename.m4: s/conftestdir/conftest.d1/ and
121272         s/conftestdir2/conftest.d2/.
121273         * m4/utimes.m4: s/conftestdata/conftest.data/
121274         Inspired by Pavel Roskin's change in autoconf.
121276 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
121278         * lib/config.charset: Update for FreeBSD 4.2.
121280 2001-01-27  Jim Meyering  <meyering@lucent.com>
121282         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
121283         a use of AS_IF.
121284         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
121286 2001-01-26  Jim Meyering  <meyering@lucent.com>
121288         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
121289         quotearg.c includes it.
121291 2001-01-26  Jim Meyering  <meyering@lucent.com>
121293         * lib/quotearg.c: Include stddef.h.
121294         * lib/quote.c: Include stddef.h.
121295         Reported by Axel Kittenberger.
121297         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
121298         line in double quotes so that it evokes a better diagnostic.
121299         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
121300         Reported by Axel Kittenberger.
121302 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
121304         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
121305         as if it was a `charset'.
121307 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
121309         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
121310         has const.
121312 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
121314         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
121315         to avoid a warning.  Add back 'const' to inptr.
121317 2001-01-20  Jim Meyering  <meyering@lucent.com>
121319         Be sure that headers are checked before used in code compiled
121320         for the type checks.
121321         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
121322         In place of that, invoke jm_CHECK_ALL_TYPES.
121323         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
121324         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
121325         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
121326         The check for ssize_t was mistakenly run before the test for unistd.h.
121328         The configure-time check for stdbool.h was missing.
121329         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
121330         (jm_PREREQ_HASH): New function.
121332 2001-01-17  Jim Meyering  <meyering@lucent.com>
121334         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
121335         for autoconf-2.49c.
121336         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
121338 2001-01-16  Jim Meyering  <meyering@lucent.com>
121340         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
121341         From Bruno Haible.
121343 2001-01-14  Jim Meyering  <meyering@lucent.com>
121345         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
121346         foo and bar.  Create conftestdir/ in the script, not in the C code.
121347         Remove directories in the script, not in the C code.
121348         Remove conftestdir{,2} before trying to create the directory.
121349         Make the entire configure script fail if the mkdir fails.
121351 2001-01-14  Jim Meyering  <meyering@lucent.com>
121353         * lib/rename.c: New file.  From Volker Borchert.
121354         Include stdlib.h, string.h or strings.h, and xalloc.h.
121355         Use strip_trailing_slashes rather than open-coding it.
121357 2001-01-03  Paul Eggert  <eggert@twinsun.com>
121359         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
121361 2001-01-03  Jim Meyering  <meyering@lucent.com>
121363         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
121364         of local `inptr' to avoid warning with some system declarations of
121365         iconv.
121367 2001-01-02  Volker Borchert  <bt@teknon.de>
121369         * m4/rename.m4: New file.
121370         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
121372 2001-01-01  Jim Meyering  <meyering@lucent.com>
121374         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
121375         even on systems with utmpx.h.  It's necessary for the declaration of
121376         utmp's ut_user member.  Reported by Andreas Jaeger.
121378         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
121379         available. They are required for the declarations of getgrgid and
121380         getpwuid resp.
121381         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
121382         Reported by Andreas Jaeger.
121384 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
121386         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
121387         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
121388         so `make install' also works in VPATH builds.
121390 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
121392         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
121393         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
121394         can be used in subdirectories.
121396 2000-12-29  Paul Eggert  <eggert@twinsun.com>
121398         * lib/modechange.c: Do not assume that mode_t uses the
121399         traditional octal encoding.  E.g. "chmod 1 FOO" should set
121400         the other-execute bit of FOO even if S_IXOTH != 1.
121402         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
121403         WOTH, XOTH, ALLM): New macros.
121404         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
121405          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
121406         Use them.
121407         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
121408         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
121409         (mode_compile):
121410         No need to use uintmax_t; unsigned long is long enough.
121411         Don't bother to get suffix since we don't use it.
121413 2000-12-26  Jim Meyering  <meyering@lucent.com>
121415         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
121416         better with autoheader.
121418 2000-12-24  Jim Meyering  <meyering@lucent.com>
121420         * lib/hash.c (is_prime): Return explicit boolean values.
121421         (hash_get_first): Return NULL to appease Irix5.6's 89.
121422         Reported by Nelson Beebe.
121424 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
121426         * lib/localcharset.c (locale_charset): Add support for Win32.
121428 2000-12-18  Paul Eggert  <eggert@twinsun.com>
121430         * lib/physmem.h, lib/physmem.c: New files.
121432         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
121433         (noinst_HEADERS): Add physmem.h.
121435         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
121436         't' for compatibility with Solaris 8 sort.
121438 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
121440         * lib/config.charset: Add support for BeOS.
121442 2000-12-17  Jim Meyering  <meyering@lucent.com>
121444         * m4/dos.m4 (jm_AC_DOS): New file and macro.
121445         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
121447 2000-12-16  Jim Meyering  <meyering@lucent.com>
121449         This bug had a serious impact on chown: `chown N:M FILE' (for integer
121450         N and M) would have treated it like `chown N:N FILE'.
121452         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
121454 2000-12-16  Jim Meyering  <meyering@lucent.com>
121456         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
121457         SHELLS_FILE to a file name that's useful on djgpp systems.
121458         Include stdlib.h.
121459         (ADDITIONAL_DEFAULT_SHELLS): Define.
121460         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
121461         Based mostly on a patch from Prashant TR.
121463 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
121465         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
121466         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
121467         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
121469 2000-12-08  Andreas Schwab  <schwab@suse.de>
121471         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
121472         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
121474 2000-12-07  Jim Meyering  <meyering@lucent.com>
121476         * lib/stripslash.c (ISSLASH): Define.
121477         (strip_trailing_slashes): Use ISSLASH rather than comparing against
121478         `/'.
121479         From Prashant TR.
121481         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
121482         (dir_name_r): Declare this function as static.
121483         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
121484         manifest itself on a name containing a mix of slashes and
121485         backslashes.
121486         Make this function work with names starting with a DOS-style
121487         drive letter and colon prefix.
121488         (dir_name): Append `.' if necessary.
121489         Based mostly on patches from Prashant TR and Eli Zaretskii.
121491         * lib/dirname.h (dir_name_r): Remove prototype.
121493 2000-12-06  Paul Eggert  <eggert@twinsun.com>
121495         * m4/off_t-format.m4: Remove this file.
121496         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
121498 2000-12-06  Jim Meyering  <meyering@lucent.com>
121500         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
121501         replacement strtoull, we may well need the replacement strtoul, too.
121502         Check for declarations of strtoul and strtoull.
121503         Check for strtol.  Mainly as a cue to cause automake to include
121504         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
121505         Check for limits.h -- strtol.c needs it.
121507 2000-12-05  Jim Meyering  <meyering@lucent.com>
121509         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
121511 2000-12-04  Jim Meyering  <meyering@lucent.com>
121513         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
121514         Also include memory.h, stdlib.h, unistd.h if appropriate.
121515         Reported by Andreas Jaeger (conflicting declaration of malloc).
121517 2000-12-02  Jim Meyering  <meyering@lucent.com>
121519         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
121520         * m4/jm-macros.m4 (jm_MACROS): require it.
121522 2000-12-02  Jim Meyering  <meyering@lucent.com>
121524         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
121526 2000-12-01  Paul Eggert  <eggert@twinsun.com>
121528         * lib/memrchr.c: Include <config.h> before any system include file.
121530 2000-11-30  Jim Meyering  <meyering@lucent.com>
121532         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
121534 2000-11-30  Jim Meyering  <meyering@lucent.com>
121536         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
121538 2000-11-29  Paul Eggert  <eggert@twinsun.com>
121540         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
121542 2000-11-26  Jim Meyering  <meyering@lucent.com>
121544         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
121546 2000-11-22  Paul Eggert  <eggert@twinsun.com>
121548         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
121549         size of (size_t) -1; it's not portable.
121551 2000-11-17  Jim Meyering  <meyering@lucent.com>
121553         * lib/strstr.c: Update from GNU libc.
121555 2000-11-17  Akim Demaille  <akim@epita.fr>
121557         * lib/obstack.h: Formatting changes.
121558         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
121559         prevent type checking.
121560         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
121561         cast the value to (void *): assigning a `foo *' to a `void *'
121562         variable is valid.
121563         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
121565 2000-11-16  Jim Meyering  <meyering@lucent.com>
121567         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
121569 2000-11-11  Jim Meyering  <meyering@lucent.com>
121571         * lib/error.c: Add a couple #includes, merging from GNU libc version.
121573 2000-11-10  Jim Meyering  <meyering@lucent.com>
121575         * lib/obstack.h: Update from GNU libc.
121576         * lib/obstack.c: Likewise.
121578 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
121580         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
121582 2000-11-06  Paul Eggert  <eggert@twinsun.com>
121584         * lib/getusershell.c (setusershell): Use rewind rather than
121585         fseek/fseeko, to avoid configuration hassles with fseeko.
121586         Don't bother opening SHELLS_FILE if shellstream is NULL;
121587         it's not necessary.
121589 2000-11-05  Jim Meyering  <meyering@lucent.com>
121591         * lib/makepath.h (make_dir): Declare.
121592         * lib/makepath.c (make_dir): Remove `static' attribute.
121593         Tweak a comment.
121595 2000-11-04  Jim Meyering  <meyering@lucent.com>
121597         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
121599 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
121601         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
121602         last one in a bucket, advance to the next bucket.
121604 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
121606         * lib/fnmatch.c: Do not comment out all the code if we are using
121607         the GNU C library, because in some cases we are replacing buggy
121608         code in the GNU C library itself.
121610 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
121612         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
121613         (regex_compile): Catch bogus \(\1\).
121615 2000-10-30  Paul Eggert  <eggert@twinsun.com>
121617         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
121618         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
121619         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
121621 2000-10-30  Paul Eggert  <eggert@twinsun.com>
121623         * lib/error.h, getline.h, modechange.h:
121624         Remove "2000" from Copyright line, as the file hasn't been
121625         changed this year other than in the copyright notice.
121627         * lib/xalloc.h: Add "2000" to Copyright line, as this file
121628         was changed this year.
121630 2000-10-29  Jim Meyering  <meyering@lucent.com>
121632         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
121633         renaming.
121634         * m4/ls-mntd-fs.m4: Likewise
121636 2000-10-29  Jim Meyering  <meyering@lucent.com>
121638         * lib/xstat.in: Fix grammar in comment.
121640 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
121642         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
121643         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
121644         doesn't define __restrict_arr.
121646 2000-10-28  Jim Meyering  <meyering@lucent.com>
121648         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
121649         (jm_PREREQ_MEMCHR): New function.
121651 2000-10-28  Jim Meyering  <meyering@lucent.com>
121653         * lib/memchr.c: Update from libc.
121654         Adjust for portability:
121655         [HAVE_STDLIB_H]: Include stdlib.h.
121656         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
121657         Undef __memchr, too.
121658         [!weak_alias]: Define __memchr to memchr.
121660         * lib/regex.c: Update from libc.
121661         * lib/regex.h: Likewise.
121662         * lib/getopt1.c: Likewise.
121663         * lib/memcmp.c: Likewise.
121665         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
121666         Avoid using fseek, when possible -- it's broken by design.
121667         Patch by Ulrich Drepper.
121669 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
121671         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
121672         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
121673         Giving in to popular pressure to shut up the compiler with casts.
121675 2000-10-26  Jim Meyering  <meyering@lucent.com>
121677         * lib/strftime.c: Update from libc.
121679 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
121681         * regex.c: More `unsigned char' -> `re_char' changes.
121682         Also change several `int' into `re_wchar_t'.
121683         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
121684         (PUSH_FAILURE_POINTER): Don't cast any more.
121685         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
121686         We want GCC to complain, since this piece of code makes
121687         re_match non-reentrant, which *should* be fixed.
121688         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
121689         (EXTEND_BUFFER): Use RETALLOC.
121690         (SET_LIST_BIT): Don't cast.
121691         (re_wchar_t): New type.
121692         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
121693         that those two functions will always properly return.
121694         (IMMEDIATE_QUIT_CHECK): Cast to void.
121695         (analyse_first): Use recursion rather than an explicit stack.
121696         (re_compile_fastmap): Can't fail anymore.
121697         (re_search_2): Don't check re_compile_fastmap for failure.
121698         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
121699         Now also sets the new value (passed in a new argument).
121700         (re_match_2_internal): Use it.
121701         Also, use a new var `reg' of type size_t when looping through regs
121702         rather than reuse the inappropriate `mcnt'.
121704 2000-10-25  Jim Meyering  <meyering@lucent.com>
121706         * lib/obstack.c: Update from libc.
121708 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
121710         * regex.c (regex_compile): Change the way of handling a range from
121711         a char less than 256 to a char not less than 256.
121713 2000-10-24  Andrew Innes  <andrewi@gnu.org>
121715         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
121716         NT-Emacs only.
121717         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
121718         so that re_search functions only quit when callers expect them to.
121720 2000-10-23  Jim Meyering  <meyering@lucent.com>
121722         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
121723         wrong.  That set_locale call must not have any side effects.
121724         From Paul Eggert.
121726 2000-10-22  Jim Meyering  <meyering@lucent.com>
121728         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
121729         [CYCLIC]: Remove now-unused definition.
121731         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
121732         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
121733         Suggestion from Ulrich Drepper.
121735 2000-10-21  Jim Meyering  <meyering@lucent.com>
121737         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
121738         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
121739         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
121741 2000-10-21  Jim Meyering  <meyering@lucent.com>
121743         * lib/dirname.c (memrchr): Declare if necessary.
121744         (dir_name): Remove the restriction that there be no
121745         trailing slashes.  Now, this code skips past them, effectively
121746         ignoring them.
121747         [TEST_DIRNAME] (main): New unit tests.
121749         * lib/memrchr.c: New file from GNU libc.
121750         Undef __memrchr, too.
121751         [!weak_alias]: Define __memrchr to memrchr.
121752         Guard weak_alias use with `#ifdef weak_alias'.
121754 2000-10-21  Jim Meyering  <meyering@lucent.com>
121756         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
121757         (dir_name): Use dir_name_r.
121758         * lib/dirname.h (dir_name_r): Declare it.
121760 2000-10-17  Jim Meyering  <meyering@lucent.com>
121762         * lib/quote.h (PARAMS): Define and use.
121763         Reported by Akim Demaille.
121765         * lib/getopt.c: Update from libc.
121767 2000-10-16  Jim Meyering  <meyering@lucent.com>
121769         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
121770         setlocale.
121771         From Jan Fedak.
121773 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
121775         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
121777 2000-09-25  Jim Meyering  <meyering@lucent.com>
121779         * lib/md5.h (rol): Define (from GnuPG).
121781         * lib/sha.c: Give credit (GnuPG) where due.
121782         (M): Use rol rather than open-coding it.
121783         Add a FIXME comment.
121785 2000-09-21  Jim Meyering  <meyering@lucent.com>
121787         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
121788         Reported by Michael Stone.
121790 2000-09-20  Jim Meyering  <meyering@lucent.com>
121792         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
121793         (noinst_HEADERS): Add sha.h.
121794         Based on code from Scott G. Miller and from GnuPG.
121796 2000-09-18  Jim Meyering  <meyering@lucent.com>
121798         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
121799         LIBS. Otherwise, everyone ends up linking with -lelf for some
121800         configurations.
121801         Reported by Mike Stone.
121803 2000-09-15  Jim Meyering  <meyering@lucent.com>
121805         * lib/regex.c: Update from libc.
121807 2000-09-10  Jim Meyering  <meyering@lucent.com>
121809         * lib/getopt.c (_getopt_internal): Update from glibc.
121811 2000-09-09  Jim Meyering  <meyering@lucent.com>
121813         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
121814         think it should be used as a general replacement for isascii.
121815         * lib/fnmatch.c: Likewise.
121816         * lib/mbswidth.c: Likewise
121817         * lib/regex.c: Likewise.
121819         Don't use atoi.
121820         * lib/userspec.c: Include sys/param.h and limits.h.
121821         Include xstrtol.h.
121822         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
121823         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
121824         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
121825         UID, GID.  Check range.
121827 2000-09-06  Jim Meyering  <meyering@lucent.com>
121829         * lib/getopt.c (_getopt_internal): Update from glibc.
121831 2000-08-30  Jim Meyering  <meyering@lucent.com>
121833         * lib/strftime.c: Merge in changes from GNU libc.
121835 2000-08-26  Jim Meyering  <meyering@lucent.com>
121837         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
121838         * m4/fpending.m4: New file.
121840 2000-08-26  Jim Meyering  <meyering@lucent.com>
121842         * lib/closeout.c: Include "__fpending.h".
121843         (close_stdout_status): Return right away if there's nothing to flush.
121845         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
121846         * lib/__fpending.c: New file.
121847         * lib/__fpending.h: New file.
121849 2000-08-20  Jim Meyering  <meyering@lucent.com>
121851         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
121852         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
121853         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
121855 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
121857         Improve fileutils installation on systems where running
121858         programs (like install) can't be unlinked.
121859         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
121860         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
121862 2000-08-07  Paul Eggert  <eggert@twinsun.com>
121864         Standardize on "memory exhausted" instead of "Memory exhausted"
121865         or "virtual memory exhausted".
121866         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
121867         "virtual memory exhausted".
121868         * lib/same.c (same_name): Invoke xalloc_die instead of printing
121869         our own message.
121870         * lib/userspec.c (parse_user_spec): Likewise.
121871         * lib/bumpalloc.h: comment fix
121872         * lib/same.c, userspec.c: Include xalloc.h.
121874         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
121875         not char *const and pointing to a constant array.
121876         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
121877         (xrealloc): Comment fix.
121879         * lib/userspec.c (parse_user_spec):
121880         Don't translate a message until just before returning,
121881         to avoid unnecessary translation.
121883 2000-08-07  Jim Meyering  <meyering@lucent.com>
121885         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
121886         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
121887         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
121888         getgroups.c, gethostname.c, getopt.h, group-member.c,
121889         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
121890         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
121891         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
121892         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
121893         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
121894         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
121895         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
121896         yesno.c: Back out Copyright date changes for each file with no change
121897         this year.  This eases coordination with other programs using the same
121898         source code modules.  From Paul Eggert.
121900 2000-08-06  Paul Eggert  <eggert@twinsun.com>
121902         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
121903         not char, for compatibility with glibc 2.1.3 strftime.c.
121905 2000-08-03  Greg McGary  <greg@mcgary.org>
121907         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
121908         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
121909         (EXTEND_BUFFER): Use them.
121911 2000-08-01  Jim Meyering  <meyering@lucent.com>
121913         * lib/dirname.c (ISSLASH): Define.
121914         (BACKSLASH_IS_PATH_SEPARATOR): Define.
121915         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
121916         both `\' and `/' may be use as path separators.
121917         Based on a patch from Prashant TR.
121919 2000-07-31  Paul Eggert  <eggert@twinsun.com>
121921         * lib/quotearg.c (quotearg_n_options): Don't make the initial
121922         slot vector a constant, since it might get modified.
121924 2000-07-31  Jim Meyering  <meyering@lucent.com>
121926         * lib/xmalloc.c: Use `virtual memory exhausted', not
121927         `Memory exhausted'.
121928         * lib/obstack.c (print_and_abort): Likewise.
121930 2000-07-30  Paul Eggert  <eggert@twinsun.com>
121932         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
121933         buffer, so that the caller can always quote one small
121934         component of a "memory exhausted" message in slot 0.
121935         From a suggestion by Jim Meyering.
121937 2000-07-30  Jim Meyering  <meyering@lucent.com>
121939         * lib/makepath.c (make_path): Quote the other instance, too.
121941         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
121942         (STATIC_BUF_SIZE): Define.
121943         (quotearg_n_options): Use only statically allocated storage when
121944         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
121945         than STATIC_BUF_SIZE.
121947 2000-07-29  Jim Meyering  <meyering@lucent.com>
121949         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
121950         * lib/dirname.c (dir_name): Likewise.
121952         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
121953         `/'.
121955         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
121956         (dir_name): Assert that there are no trailing slashes.
121958 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
121960         * lib/mbswidth.h (mbswidth): Add a flags argument.
121961         (mbswidth): New declaration.
121962         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
121963         * lib/mbswidth.c (mbswidth): Add a flags argument.
121964         (mbsnwidth): New function.
121966 2000-07-24  Jim Meyering  <meyering@lucent.com>
121968         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
121970 2000-07-23  Paul Eggert  <eggert@twinsun.com>
121972         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
121974 2000-07-23  Paul Eggert  <eggert@twinsun.com>
121976         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
121977         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
121978         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
121979         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
121980         invoke multibyte primitives.
121982 2000-07-23  Paul Eggert  <eggert@twinsun.com>
121984         * lib/quotearg.c:
121985         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
121986         so that mbstate_t is always defined.
121988         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
121989         be 1 in at least one GCC installation, and this configuration
121990         error is likely to be common.  Ignoring MB_LEN_MAX hurts
121991         performance on hosts that have mbrtowc but have only unibyte
121992         locales, but I assume these hosts are rare.
121994 2000-07-23  Paul Eggert  <eggert@twinsun.com>
121996         * lib/mbswidth.c (_XOPEN_SOURCE):
121997         Don't define; this causes problems on Solaris 7.
121998         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
122000 2000-07-23  Jim Meyering  <meyering@lucent.com>
122002         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
122003         too: getgrgid, getpwuid, getuid.
122005 2000-07-23  Jim Meyering  <meyering@lucent.com>
122007         * lib/basename.c (base_name): Add an assertion.
122009 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
122011         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
122012         shadow its mbsinit function.
122014 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
122016         * lib/mbswidth.h: New file.
122017         * lib/mbswidth.c: New file.
122018         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
122019         (noinst_HEADERS): Add mbswidth.h.
122021 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
122023         * lib/config.charset: Add support for FreeBSD. Improve support for
122024         HP-UX and IRIX 6.
122026 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
122028         * m4/mbswidth.m4: New file.
122029         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
122031 2000-07-15  Jim Meyering  <meyering@lucent.com>
122033         * lib/makepath.c: Include quote.h.
122034         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
122035         corresponding argument in a `quote (...)' call.
122036         Give better diagnostics.
122038         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
122039         (noinst_HEADERS): Add quote.h.
122041         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
122042         from tar's src/misc.c.
122043         * lib/quote.h: New file.  Prototypes for same.
122045 2000-07-14  Paul Eggert  <eggert@twinsun.com>
122047         From a suggestion by Bruno Haible.
122048         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
122049         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
122050         to decide whether to define the BeOS workaround macro;
122051         this adjusts to the change to AC_MBSTATE_T.
122053 2000-07-14  Jim Meyering  <meyering@lucent.com>
122055         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
122056         jm_AC_TYPE_UINTMAX_T.
122058 2000-07-13  Paul Eggert  <eggert@twinsun.com>
122060         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
122062         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
122063         quotearg_buffer_restyled): Add support for
122064         clocale_quoting_style.  Undo previous change to
122065         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
122066         and "{RIGHT QUOTATION MARK}" msgids.
122068 2000-07-10  Paul Eggert  <eggert@twinsun.com>
122070         From a suggestion by Bruno Haible.
122071         * m4/mbstate_t.m4 (AC_MBSTATE_T):
122072         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
122073         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
122074         and mbstate_t, to a single-part test that simply defines mbstate_t.
122075         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
122076         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
122078 2000-07-10  Jim Meyering  <meyering@lucent.com>
122080         * m4/strerror_r.m4: Mirror the correction made in autoconf.
122082         * m4/gnu-source.m4: Output to confdefs.h directly.
122083         Suggestion from Akim Demaille.
122085 2000-07-09  Paul Eggert  <eggert@twinsun.com>
122087         The old behavior of quoting `like this' doesn't look good with
122088         newer, ISO-style fonts.  See:
122089         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
122091         Instead, quote "like this" by default.  Let the translator
122092         tailor the locale-specific quoting behavior by providing
122093         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
122095         * lib/quotearg.c (N_): New macro.
122096         (gettext_default): New function.
122097         (quotearg_buffer_restyled): Use
122098         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
122099         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
122101 2000-07-09  Jim Meyering  <meyering@lucent.com>
122103         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
122104         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
122106         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
122107         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
122109 2000-07-09  Jim Meyering  <meyering@lucent.com>
122111         * lib/Most files: Update copyright dates to include 2000.
122113 2000-07-08  Jim Meyering  <meyering@lucent.com>
122115         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
122116         if not defined.
122117         (xgethostname): Remove now-unnecessary #ifdef.
122118         Move declaration of `err' into loop where it's used.
122120 2000-07-05  Paul Eggert  <eggert@twinsun.com>
122121         and Bruno Haible  <haible@clisp.cons.org>
122123         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
122124         only if the test for an object-type mbstate_t fails.  This
122125         prevents us from mistakenly reporting that mbstate_t is a
122126         system object type after we "#define mbstate_t int" to work
122127         around its lack.
122129 2000-07-05  Paul Eggert  <eggert@twinsun.com>
122130         and Bruno Haible  <haible@clisp.cons.org>
122132         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
122134 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
122136         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
122137         to strerror_r.
122138         Include <ctype.h> for use of isalpha.
122140 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
122142         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
122143         by allocating a larger buffer. Test the gethostname return value for
122144         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
122145         returns an error and ENAMETOOLONG isn't defined.
122147 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
122149         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
122150         dimension.
122152 2000-07-04  Jim Meyering  <meyering@lucent.com>
122154         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
122155         of the deprecated AC_CHECKING.
122157 2000-07-04  Jim Meyering  <meyering@lucent.com>
122159         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
122160         Reported by Bruno Haible.
122162 2000-07-04  Jim Meyering  <meyering@lucent.com>
122164         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
122165         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
122166         lacks mbrtowc.
122168 2000-07-03  Paul Eggert  <eggert@twinsun.com>
122170         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
122171         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
122173 2000-07-03  Paul Eggert  <eggert@twinsun.com>
122174         and Bruno Haible  <haible@clisp.cons.org>
122176         * lib/quotearg.c (mbrtowc):
122177         Assign to *pwc, and return 1 only if result is nonzero.
122178         (iswprint): Use ISPRINT when substituting our own mbrtowc.
122180 2000-07-03  Jim Meyering  <meyering@lucent.com>
122182         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
122184 2000-07-03  Jim Meyering  <meyering@lucent.com>
122186         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
122187         This is necessary to get a definition of e.g., UTMP_FILE on
122188         HP-UX 10.20.
122189         From Bob Proulx.
122191 2000-07-02  Jim Meyering  <meyering@lucent.com>
122193         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
122195         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
122196         AC_LIBOBJ(function_name).
122197         * m4/chown.m4: Likewise.
122198         * m4/fnmatch.m4: Likewise.
122199         * m4/ftruncate.m4: Likewise.
122200         * m4/getgroups.m4: Likewise.
122201         * m4/getline.m4: Likewise.
122202         * m4/group-member.m4: Likewise.
122203         * m4/jm-macros.m4: Likewise.
122204         * m4/lstat.m4: Likewise.
122205         * m4/malloc.m4: Likewise.
122206         * m4/memcmp.m4: Likewise.
122207         * m4/nanosleep.m4: Likewise.
122208         * m4/putenv.m4: Likewise.
122209         * m4/realloc.m4: Likewise.
122210         * m4/regex.m4: Likewise.
122211         * m4/stat.m4: Likewise.
122212         * m4/strftime.m4: Likewise.
122214 2000-07-02  Jim Meyering  <meyering@lucent.com>
122216         * lib/quotearg.c (mbstate_t): Don't define here.
122218 2000-07-02  Jim Meyering  <meyering@lucent.com>
122220         * lib/nanosleep.c (SIGCONT): Define if not already defined.
122222 2000-07-01  Jim Meyering  <meyering@lucent.com>
122224         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
122226 2000-07-01  Jim Meyering  <meyering@lucent.com>
122228         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
122229         problem.
122231 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
122233         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
122234         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
122236 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
122238         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
122239         per change in ../m4/ls-mntd-fs.m4.
122240         (read_filesystem_list): Ignore symbolic links.
122242 2000-06-29  Jim Meyering  <meyering@lucent.com>
122244         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
122245         for declaration of strcmp.
122247         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
122249         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
122250         Avoid warning by casting result to `char *' to remove `const'.
122252 2000-06-28  Jim Meyering  <meyering@lucent.com>
122254         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
122255         included by quotearg.c, for which we perform this test.  From
122256         Bruno Haible.
122258 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
122260         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
122261         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
122262         <utmpx.h> exists, put readutmp.o into LIBOBJS.
122264 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
122266         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
122268 2000-06-26  Paul Eggert  <eggert@twinsun.com>
122270         savedir now sets errno on failure and invokes xmalloc to get memory.
122271         Fix a couple of other minor bugs while we're at it.
122273         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
122274         (NAMLEN): Remove macro.
122275         (malloc, realloc): Remove decls.
122276         (stpcpy): Likewise.
122277         ("xalloc.h"): Include.
122278         (NAME_SIZE_DEFAULT): New macro.
122279         (savedir): Use xmalloc / xrealloc to allocate memory.
122280         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
122281         Skip "" directory entries.
122282         Use strlen to calculate directory entry length, since the old method
122283         is rarely used these days and isn't worth supporting.
122284         Don't use a pointer after freeing it.
122285         Check for integer overflow when calculating allocation size.
122286         Use memcpy to copy entries, instead of stpcpy.
122287         Set errno properly when returning NULL.
122288         Check for readdir error.
122290 2000-06-26  Jim Meyering  <meyering@lucent.com>
122292         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
122294 2000-06-25  Jim Meyering  <meyering@lucent.com>
122296         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
122297         Linux header bug when _XOPEN_SOURCE is defined to 500.
122299 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
122301         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
122302         deficiency.
122304 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
122306         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
122307         Include xalloc.h.
122308         Don't include <stdlib.h>.  Don't declare malloc, realloc.
122310 2000-06-24  Jim Meyering  <meyering@lucent.com>
122312         * m4/strerror_r.m4: Revive this file -- to try out an experimental
122313         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
122314         for which strerror does return char*, but which lacks a conveniently
122315         accessible declaration of the function.  If the compile-test says
122316         strerror_r doesn't work, then resort to a `run'-test that works on
122317         BeOS and segfaults on DEC Unix.
122319 2000-06-24  Jim Meyering  <meyering@lucent.com>
122321         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
122323 2000-06-23  Paul Eggert  <eggert@twinsun.com>
122325         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
122326         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
122328 2000-06-23  Paul Eggert  <eggert@twinsun.com>
122330         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
122331         (mbrtowc, mbstate_t): Define substitutes if
122332         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
122333         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
122334         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
122336 2000-06-23  Jim Meyering  <meyering@lucent.com>
122338         * m4/afs.m4: Add missing AC_MSG_RESULT.
122339         Reported by Bruno Haible.
122341         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
122342         Suggestion from Bruno Haible.
122344 2000-06-23  Jim Meyering  <meyering@lucent.com>
122346         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
122348 2000-06-21  Jim Meyering  <meyering@lucent.com>
122350         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
122352 2000-06-21  Jim Meyering  <meyering@lucent.com>
122354         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
122355         (noinst_HEADERS): Add getstr.h.
122357         * lib/getline.c (getstr): Move into a separate file.
122358         * lib/getstr.c (getstr): New file, extracted from getline.c, with
122359         the following changes: new parameter, delim2; both delim[12]
122360         parameters have type `int', not `char'.  The latter would lose
122361         with 8-bit delimiters.
122362         * lib/getstr.h: New file.
122364 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
122366         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
122367         than 1024, return a memory chunk of least possible size, instead
122368         of size PATH_MAX + 2. In the loop, increment the size proportionally.
122369         Use free/xmalloc instead of xrealloc to avoid copying for very long
122370         paths.
122372 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
122374         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
122375         the empty string.
122377 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
122379         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
122380         address, not strdup.  Include <stdlib.h> and don't declare free().
122382 2000-06-19  Jim Meyering  <meyering@lucent.com>
122384         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
122386 2000-06-18  Jim Meyering  <meyering@lucent.com>
122388         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
122390         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
122391         `checking whether...' message to be consistent with that of the
122392         lstat test.
122394 2000-06-18  Jim Meyering  <meyering@lucent.com>
122396         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
122397         Besides, these days every porting target provides a mkdir function.
122399         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
122400         needed. (this snippet comes from src/system.h).
122402 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
122404         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
122406 2000-06-15  Paul Eggert  <eggert@twinsun.com>
122408         * lib/human.c (adjust_value): New function.
122409         (human_readable_inexact): Apply rounding style even when
122410         printing approximate values.
122412 2000-06-14  Paul Eggert  <eggert@twinsun.com>
122414         * lib/human.c (human_readable_inexact): Allow an input block
122415         size that is not a multiple of the output block size, and vice versa.
122416         Reported by Piergiorgio Sartor.
122418 2000-06-14  Paul Eggert  <eggert@twinsun.com>
122420         * lib/getdate.y (get_date): Apply relative times after time
122421         zone indicator, not before.  Reported by Todd A. Jacobs.
122423 2000-06-13  Jim Meyering  <meyering@lucent.com>
122425         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
122427         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
122429 2000-06-12  Paul Eggert  <eggert@twinsun.com>
122431         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
122433 2000-06-12  Jim Meyering  <meyering@lucent.com>
122435         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
122436         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
122437         optional argument.
122438         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
122439         the optional argument, `lib'.
122441 2000-06-08  Jim Meyering  <meyering@lucent.com>
122443         * m4/largefile.m4: Remove file (now that it's part of autoconf).
122445 2000-06-04  Paul Eggert  <eggert@twinsun.com>
122447         Rewrite largefile configuration so that we don't need to run
122448         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
122449         AC_CANONICAL_HOST in configure.in -- jmm]
122451         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
122452         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
122453         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
122454         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
122455         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
122456         All uses changed.
122457         Instead of inspecting the output of getconf, try to compile the
122458         test program without and with the macro definition.
122459         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
122460         for getconf.  Instead, check for the needed flags by compiling
122461         test programs.
122463 2000-06-04  Paul Eggert  <eggert@twinsun.com>
122465         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
122467 2000-06-04  Jim Meyering  <meyering@lucent.com>
122469         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
122470         SunOS 4.1.4 for which gid_t is an unsigned type.
122472 2000-06-03  Jim Meyering  <meyering@lucent.com>
122474         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
122475         now that autoconf requires that.
122477         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
122478         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
122479         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
122481 2000-06-03  Jim Meyering  <meyering@lucent.com>
122483         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
122485 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
122487         * m4/glibc21.m4: New file.
122488         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
122490 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
122492         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
122493         newer, don't install charset.alias.
122494         * lib/config.charset: Change the Linux/glibc rules so they become empty
122495         on glibc-2.1 or newer.
122497 2000-06-02  Jim Meyering  <meyering@lucent.com>
122499         * lib/mountlist.c: Back out last change.  Instead, do this...
122500         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
122501         me_dummy member using the same `ignore'-testing code.
122502         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
122503         fs_type strings.
122504         From Mark D. Roth.
122506 2000-05-29  Jim Meyering  <meyering@lucent.com>
122508         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
122509         mounts with the `ignore' attribute.  Based on a patch from
122510         Mark D. Roth.
122512 2000-05-28  Jim Meyering  <meyering@lucent.com>
122514         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
122515         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
122516         * m4/stat.m4: Likewise.
122517         * m4/lstat.m4: Likewise.
122518         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
122520         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
122521         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
122523 2000-05-26  Jim Meyering  <meyering@lucent.com>
122525         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
122527 2000-05-24  Jim Meyering  <meyering@lucent.com>
122529         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
122530         autoconf requires that.
122531         * m4/lib-check.m4: Likewise.
122532         * m4/jm-macros.m4: Likewise.
122533         * m4/strftime.m4: Likewise.
122535         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
122536         AC_CHECK_DECLS, now that autoconf requires that.
122538 2000-05-22  Jim Meyering  <meyering@lucent.com>
122540         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
122541         * m4/lstat.m4: Likewise.
122543 2000-05-22  Jim Meyering  <meyering@lucent.com>
122545         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
122547 2000-05-20  Jim Meyering  <meyering@lucent.com>
122549         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
122550         (jm_PREREQ): Use it.
122552 2000-05-18  Jim Meyering  <meyering@lucent.com>
122554         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
122555         back, too, since it may have been modified by allocate_entry.
122556         (hash_delete): Rewrite to use neither the assignment operator
122557         nor the comma operator in an if-expression.
122559 2000-05-15  Paul Eggert  <eggert@twinsun.com>
122561         * lib/closeout.c:
122562         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
122563         Remove; no longer needed.
122564         "quotearg.h": Add include.
122565         (file_name): Do not bother to explicitly initialize to NULL; it's less
122566         efficient on some hosts.
122567         (close_stdout_status): Remove test as to whether stdout was already
122568         closed; it breaks for the case "echo x | sort >&-".
122569         Quote file name colons.
122570         Do not assume that _("write error") lacks format strings.
122572 2000-05-15  Jim Meyering  <meyering@lucent.com>
122574         * lib/version-etc.c (version_etc_copyright): Update the copyright
122575         string used in all --version output.
122577 2000-05-14  Jim Meyering  <meyering@lucent.com>
122579         * lib/closeout.c (close_stdout_set_file_name): New function.
122580         (close_stdout_status): Use new file-scoped global.
122581         Return right away if fstat says the stdout file descriptor is invalid.
122582         * lib/closeout.h (close_stdout_set_file_name): Declare.
122584 2000-05-10  Jim Meyering  <meyering@lucent.com>
122586         * lib/closeout.c [default_exit_status]: New file-scoped variable.
122587         (close_stdout_set_status): New function.
122588         * lib/closeout.h (close_stdout_set_status): Declare.
122590 2000-05-09  Jim Meyering  <meyering@lucent.com>
122592         * m4/gettext.m4: Rename this...
122593         * m4/libintl.m4: ...to this.
122595 2000-05-08  Jim Meyering  <meyering@lucent.com>
122597         * lib/long-options.c: Don't include closeout.h.
122598         (parse_long_options): Don't call close_stdout for --version.
122600 2000-05-06  Paul Eggert  <eggert@twinsun.com>
122602         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
122603         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
122604         2.1.3 bug.  This avoids a clash when files like regex.c define
122605         _GNU_SOURCE.
122607 2000-05-06  Jim Meyering  <meyering@lucent.com>
122609         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
122610         (AC_REPLACE_FUNCS): Add strnlen.
122612         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
122613         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
122615         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
122616         AC_SEARCH_LIBS call for nanosleep.
122617         (LIB_NANOSLEEP): Set and AC_SUBST.
122619 2000-05-06  Jim Meyering  <meyering@lucent.com>
122621         * lib/strnlen.c: Undefine __strnlen and strnlen.
122622         [!weak_alias]: Define __strnlen to strnlen.
122624         * lib/atexit.c: New file, from libiberty.
122626 2000-05-06  Jim Meyering  <meyering@lucent.com>
122628         * lib/closeout.c (close_stdout_status): Also check for errors on the
122629         stderr stream.
122631 2000-05-05  Jim Meyering  <meyering@lucent.com>
122633         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
122634         AC_SEARCH_LIBS call for clock_gettime.
122635         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
122637         * m4/search-libs.m4: Update from autoconf.
122639         su doesn't work on Solaris 2.6.
122640         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
122641         <shadow.h>.  Reported by Dragos Harabor.
122643 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
122645         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
122646         memcpy instead of xmalloc, xrealloc, path_concat.
122647         (locale_charset): Treat empty environment variables as absent.
122648         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
122650 2000-05-04  Jim Meyering  <meyering@lucent.com>
122652         * lib/getopt.c: Update from glibc.
122653         * lib/obstack.c: Likewise.
122654         * lib/obstack.h: Likewise.
122655         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
122656         file
122658         * lib/regex.h: Likewise.
122659         * lib/strndup.c: Likewise.
122660         * lib/strnlen.c: New file, from glibc.
122662 2000-05-03  Jim Meyering  <meyering@lucent.com>
122664         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
122666 2000-05-02  Paul Eggert  <eggert@twinsun.com>
122668         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
122669         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
122670         compile-time test, rather than inspecting host and OS, to
122671         decide whether to define _LARGEFILE_SOURCE.
122673 2000-05-01  Jim Meyering  <meyering@lucent.com>
122675         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
122677         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
122678         Based on a patch from Bruno Haible.
122680 2000-05-01  Jim Meyering  <meyering@lucent.com>
122682         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
122684 2000-04-29  Jim Meyering  <meyering@lucent.com>
122686         * lib/path-concat.c: Declare strdup only if it's not defined.
122687         * lib/canon-host.c: Likewise.
122689 2000-04-28  Jim Meyering  <meyering@lucent.com>
122691         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
122692         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
122693         is included first, then limits.h is included by locale.h by libintl.h.
122694         From John David Anglin.
122696 2000-04-25  Jim Meyering  <meyering@lucent.com>
122698         * lib/makepath.c (S_IRWXUGO): Define.
122699         (make_path): Always perform explicit chmod if MODE specifies any
122700         of the `special' permission bits.  Prompted by a bug report against
122701         install from Mate Wierdl and Joost van Baal.
122703 2000-04-18  Jim Meyering  <meyering@lucent.com>
122705         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
122706         (jm_PREREQ): Use it.
122708 2000-04-18  Jim Meyering  <meyering@lucent.com>
122710         * lib/README: New file.
122712         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
122713         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
122715 2000-04-17  Jim Meyering  <meyering@lucent.com>
122717         Get it right :-)
122718         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
122719         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
122720         Suggestion from Akim Demaille.
122722 2000-04-17  Jim Meyering  <meyering@lucent.com>
122724         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
122725         the definition of it to rpl_strftime also defined-away the system's
122726         declaration.
122728 2000-04-15  Jim Meyering  <meyering@lucent.com>
122730         Use `C' to denote so-called `contiguous' files, the same way
122731         that tar does.
122732         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
122733         (ftypelet): Use S_ISCTG.
122734         From Michael Deutschmann.
122736 2000-04-14  Jim Meyering  <meyering@lucent.com>
122738         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
122739         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
122740         clobbered.
122742 2000-04-14  Jim Meyering  <meyering@lucent.com>
122744         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
122746 2000-04-13  Jim Meyering  <meyering@lucent.com>
122748         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
122749         AH_VERBATIM to insert required #ifndef into config.h.in.
122750         Suggestion from Akim Demaille.
122752 2000-04-12  Jim Meyering  <meyering@lucent.com>
122754         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
122755         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
122756         Christian Krackowizer.
122758         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
122759         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
122760         (AC_SYS_LARGEFILE): Require.
122761         (AM_C_PROTOTYPES): Require.
122763 2000-04-08  Jim Meyering  <meyering@lucent.com>
122765         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
122766         names don't conflict.  Reported by Eli Zaretskii.
122768 2000-04-07  Jim Meyering  <meyering@lucent.com>
122770         * lib/putenv.c: Move inclusion of errno.h so it follows that of
122771         sys/types.h, to work around system header problems on AIX 3.2.5.
122772         From Bruno Haible.
122774 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
122776         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
122777         bug.  Deal with the different error behavior of Irix iconv.
122779 2000-04-05  Paul Eggert  <eggert@twinsun.com>
122781         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
122782         IRIX if the installer said otherwise.
122784 2000-04-05  Jim Meyering  <meyering@lucent.com>
122786         Portability tweaks required for ultrix4.3.
122787         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
122788         (jm_CHECK_DECLS): Add getutent to the list of functions.
122789         (_jm_DECL_HEADERS): Add utmpx.h.
122790         From John David Anglin.
122792         * m4/strftime.m4: Back out the 2000-04-02 change.
122793         Instead of that change, simply undefine putenv in the test program.
122795 2000-04-05  Jim Meyering  <meyering@lucent.com>
122797         Portability tweaks required for ultrix4.3.
122798         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
122799         getutent.
122800         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
122801         * lib/canon-host.c: Declare strdup.
122802         * lib/path-concat.c: Likewise.
122803         From John David Anglin.
122805 2000-04-04  Jim Meyering  <meyering@lucent.com>
122807         Be more DOS 8.3-friendly.
122808         * lib/ref-add.sin: Renamed from ref-add.sed.in.
122809         * lib/ref-del.sin: Renamed from ref-del.sed.in.
122810         * lib/Makefile.am: Reflect renaming.
122811         Reported by Eli Zaretskii.
122813         Use a temporary file name that won't clash with `charset.alias'
122814         in the DOS 8.3 name space.
122815         * lib/Makefile.am (charset_tmp): Define.
122816         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
122817         (uninstall-local): Likewise.
122818         Reported by Eli Zaretskii.
122820 2000-04-03  Jim Meyering  <meyering@lucent.com>
122822         * m4/gettext.m4: Fix typo in comment.
122824         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
122825         textutils/configure.in).  Suggestion from Paul Eggert.
122826         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
122828 2000-04-02  Paul Eggert  <eggert@twinsun.com>
122830         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
122831         variable in the shell rather than using putenv, which isn't
122832         portable.  This avoids the configure-time inter-test dependency
122833         on the potentially-renamed putenv function.
122835 2000-03-30  Paul Eggert  <eggert@twinsun.com>
122837         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
122838         before checking struct stat.st_blksize, so that
122839         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
122841 2000-03-29  Paul Eggert  <eggert@twinsun.com>
122843         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
122844         since strftime.c uses HAVE_STRFTIME to decide whether to use
122845         the underlying strftime.
122847 2000-03-29  Paul Eggert  <eggert@twinsun.com>
122849         * lib/time/strftime.c (my_strftime): Make sure we call the system
122850         strftime, not ourselves, when invoking the underlying strftime.
122852 2000-03-24  Jim Meyering  <meyering@lucent.com>
122854         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
122855         (charset_alias): Define.
122856         (install-exec-local): Factor out common code.
122857         (uninstall-local): Split lines longer than 80.
122858         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
122859         (SUFFIXES): Define.
122860         (.sed.in.sed): New rule.  Don't redirect directly to $@.
122861         (CLEANFILES): Add ref-add.sed and ref-del.sed.
122863 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
122865         * lib/config.charset: Output a line containing "Packages using this
122866         file".
122867         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
122868         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
122869         ref-del.sed): New rules.
122871 2000-03-17  Jim Meyering  <meyering@lucent.com>
122873         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
122874         Otherwise, include <strings.h>
122876 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
122878         * lib/unicodeio.c (utf8_wctomb): New function.
122879         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
122880         format instead of in UCS-4 with platform dependent endianness.
122882 2000-03-10  Jim Meyering  <meyering@lucent.com>
122884         * m4/lib-check.m4: Look for getspnam in -lgen, too.
122885         From Marco Franzen.
122887 2000-03-07  Paul Eggert  <eggert@twinsun.com>
122889         * lib/savedir.c (savedir): Work even if directory size is
122890         negative; this can happen with some screwy NFS configurations.
122892 2000-03-06  Jim Meyering  <meyering@lucent.com>
122894         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
122895         if it's NULL (because we ran out of memory).  From Bruno Haible.
122897 2000-03-05  Jim Meyering  <meyering@lucent.com>
122899         * lib/localcharset.c ("path-concat.h"): Include.
122900         (get_charset_aliases): Use path_concat instead of ANSI string
122901         concatenation.
122903         * lib/unicodeio.h (PARAMS): Define.
122904         Use it to guard prototype.
122906 2000-03-04  Jim Meyering  <meyering@lucent.com>
122908         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
122909         for lib/localcharset.c.
122911 2000-03-04  Jim Meyering  <meyering@lucent.com>
122913         * lib/Makefile.am (install-exec-local): Create $(libdir) before
122914         installing into it.
122915         (uninstall-local): Uncomment this rule so `make distcheck' works
122916         once again.
122918         * lib/unicodeio.c (<errno.h>): Include it.
122919         (errno): Declare if not defined.
122921         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
122923         * lib/config.charset: New version, incorporating remarks from a linux
122924         i18n mailing list.  From Bruno Haible.
122926 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
122928         * m4/codeset.m4: New file.
122929         * m4/iconv.m4: New file.
122930         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
122932 2000-03-03  Jim Meyering  <meyering@lucent.com>
122934         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
122936 2000-03-02  Jim Meyering  <meyering@lucent.com>
122938         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
122939         the messages come out on separate lines.
122941         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
122942         rather than jm_CHECK_DECLARATIONS.
122943         * m4/decl.m4: Remove now-unused file.
122945         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
122946         geteuid.
122948 2000-03-02  Jim Meyering  <meyering@lucent.com>
122950         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
122952 2000-03-01  Jim Meyering  <meyering@lucent.com>
122954         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
122955         * lib/unicodeio.c: Likewise.
122957 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
122959         * lib/config.charset: New file.
122960         * lib/localcharset.c: New file.
122961         * lib/unicodeio.h, lib/unicodeio.c: New files.
122962         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
122963         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
122964         (noinst_HEADERS): Add unicodeio.h.
122965         (all-local, install-exec-local, charset.alias): New targets.
122967 2000-02-28  Paul Eggert  <eggert@twinsun.com>
122969         * lib/quotearg.c (ALERT_CHAR): New macro.
122970         (quotearg_buffer_restyled): Use it.
122972 2000-02-27  Jim Meyering  <meyering@lucent.com>
122974         * m4/check-decl.m4: Add getenv to the list.
122976 2000-02-27  Jim Meyering  <meyering@lucent.com>
122978         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
122979         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
122981         * lib/backupfile.c: Guard inclusion of stdlib.h with
122982         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
122983         Declare malloc if needed.
122985         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
122986         `#ifndef HAVE_DECL..'
122987         now that autoconf always defines the HAVE_DECL_ symbols.
122988         * lib/human.c: Likewise.
122989         * lib/same.c: Likewise.
122990         * lib/strtoumax.c: Likewise.
122992         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
122993         declaration check was not run.
122994         * lib/hash.c: Likewise.
122995         * lib/human.c: Likewise.
122996         * lib/same.c: Likewise.
122997         * lib/strtoumax.c: Likewise.
122999         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
123000         `.', then first look up the entire `.'-containing string as a login
123001         name.
123003 2000-02-23  Jim Meyering  <meyering@lucent.com>
123005         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
123006         in place of my hack.
123008 2000-02-18  Paul Eggert  <eggert@twinsun.com>
123010         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
123011         (textint): New typedef.
123012         (parser_control): Member year changed from int to textint.
123013         All uses changed.
123014         (YYSTYPE): Removed; replaced by %union with int and textint members.
123015         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
123016         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
123017         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
123018         (tSNUMBER, tUNUMBER): Now of type <textintval>.
123019         (date, number, to_year): Use width of number in digits, not its value,
123020         to determine whether it's a 2-digit year, or a 2-digit time.
123021         (yylex): Store number of digits of numeric tokens.
123022         Reported by John Kendall.
123024         (parser_control): Changed from struct parser_control to typedef (for
123025         consistency).  All uses changed.
123027         (tID): Removed; not used.
123028         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
123030 2000-02-14  Paul Eggert  <eggert@twinsun.com>
123032         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
123033         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
123035 2000-02-12  Jim Meyering  <meyering@lucent.com>
123037         * lib/userspec.c (ISDIGIT): Define it.
123038         (isdigit): Remove definition.
123039         (is_number): Use ISDIGIT, not isdigit.
123040         <libintl.h>: Include.
123041         (_ and N_): Define.
123042         (parse_user_spec): Mark translatable strings.
123044 2000-02-10  Jim Meyering  <meyering@lucent.com>
123046         With these changes, nanosleep.[ch] are finally enough like the other
123047         lib/* replacement files to compile on a few more losing systems.
123049         * lib/nanosleep.h: Don't include config.h.
123050         Remove prototype from declaration of nanosleep.
123051         (PARAMS): Remove now-unneeded definition.
123052         * lib/nanosleep.c: #undef nanosleep.
123053         (rpl_nanosleep): Rename from nanosleep.
123055 2000-02-10  Jim Meyering  <meyering@lucent.com>
123057         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
123058         gnu_nanosleep to rpl_nanosleep.
123060 2000-02-09  Jim Meyering  <meyering@lucent.com>
123062         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
123063         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
123065 2000-02-08  Akim Demaille  <akim@epita.fr>
123067         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
123068         `[' and `]' and remove uses of `changequote'.
123069         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
123070         (AC_SYS_LARGEFILE): Likewise.
123071         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
123072         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
123073         of changequote.
123074         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
123075         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
123076         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
123077         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
123079 2000-02-05  Jim Meyering  <meyering@lucent.com>
123081         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
123082         Remove explicit use of AC_HEADER_TIME.  It is required by
123083         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
123084         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
123085         in autoconf whereby the expansion of the latter ended up preceding
123086         the expansion of its prerequisite, AC_HEADER_TIME.
123087         Reported by Volker Borchert.
123089 2000-02-03  Jim Meyering  <meyering@lucent.com>
123091         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
123093 2000-02-03  Jim Meyering  <meyering@lucent.com>
123095         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
123096         rather than with `#if HAVE_UTMPNAME'.
123098 2000-02-02  Jim Meyering  <meyering@lucent.com>
123100         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
123101         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
123102         Reported by Eli Zaretskii.
123104 2000-02-01  Jim Meyering  <meyering@lucent.com>
123106         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
123108 2000-01-31  Jim Meyering  <meyering@lucent.com>
123110         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
123111         functions.  Add the time.h and sys/time.h headers along with the
123112         AC_REQUIRE'ment of AC_HEADER_TIME.
123114 2000-01-31  Jim Meyering  <meyering@lucent.com>
123116         * lib/nanosleep.h (nanosleep): Guard declaration with
123117         `#if ! HAVE_DECL_NANOSLEEP'.
123118         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
123119         the declaration in that vendor's sys/timers.h.
123120         Reported by Christian Krackowizer.
123122         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
123123         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
123124         (ISPRINT): Likewise.
123125         Reported by Tom Tromey.
123127 2000-01-30  Jim Meyering  <meyering@lucent.com>
123129         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
123131         * m4/prereq.m4 (utmp_includes): Define.
123132         Check for ut_user and ut_name members in both struct utmpx
123133         and struct utmp.
123135 2000-01-30  Jim Meyering  <meyering@lucent.com>
123137         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
123138         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
123139         header files where only utmpx.ut_user is declared.
123141         * lib/readutmp.h (UT_USER): Define.
123143 2000-01-29  Jim Meyering  <meyering@lucent.com>
123145         * m4/lib-check.m4: New file containing library-related checks from
123146         fileutils and sh-utils (textutils had none).
123148 2000-01-28  Jim Meyering  <meyering@lucent.com>
123150         * m4/perl.m4: Change format of warning message to look more like that
123151         from the missing script.  Suggestion from François Pinard.
123153 2000-01-25  Jim Meyering  <meyering@lucent.com>
123155         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
123156         well as time.h in the compile check.
123157         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
123158         Fix typo in cross-compiling case: s/yes/no/.
123160 2000-01-23  Jim Meyering  <meyering@lucent.com>
123162         * m4/jm-macros.m4: Move df-related tests here from
123163         fileutils/configure.in
123165         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
123166         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
123168         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
123169         s/space/ac_fsusage_space/.
123170         (jm_FILE_SYSTEM_USAGE): Take two parameters.
123172         * m4/ftruncate.m4: New file (derived from part of
123173         fileutils/configure.in).
123174         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
123175         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
123177         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
123178         AC_SUBST these here, rather than just in sh-util/configure.in, so
123179         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
123180         all the same.
123181         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
123182         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
123183         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
123184         (AC_SUBST(POW_LIBM)): Likewise.
123185         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
123187 2000-01-23  Jim Meyering  <meyering@lucent.com>
123189         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
123190         obstack.c.
123192 2000-01-22  Jim Meyering  <meyering@lucent.com>
123194         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
123196         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
123198         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
123199         configure.in
123200         (AC_CHECK_HEADERS): Likewise for sh-utils.
123201         (AC_CHECK_HEADERS): Likewise for textutils.
123202         Merge the three lists of headers.
123204         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
123205         from fileutils' configure.in.
123207         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
123208         code. Moved tests into their own function (_jm_DECL_HEADERS) in
123209         check-decl.m4.
123211         * m4/check-decl.m4: Use #if rather than #ifdef.
123212         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
123213         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
123214         (_jm_DECL_HEADERS): Define new function.
123215         (jm_CHECK_DECLARATIONS): Require it.
123217 2000-01-22  Jim Meyering  <meyering@lucent.com>
123219         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
123220         [! HAVE_DECL_STRTOULL]: Declare strtoull.
123221         Required for some AIX systems.  Reported by Christian Krackowizer.
123222         [TESTING] (main): New function.
123224         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
123225         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
123226         letters.
123228         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
123229         iswprint.
123231         * lib/strverscmp.c (ISDIGIT): Define.
123232         (strverscmp): Use ISDIGIT, not isdigit.
123234 2000-01-19  Jim Meyering  <meyering@lucent.com>
123236         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
123237         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
123238         defines `struct timespec' in <sys/time.h>
123240         * m4/c-bs-a.m4: Remove uses of changequote altogether.
123241         Thanks to Akim for explaining.
123243 2000-01-17  Paul Eggert  <eggert@twinsun.com>
123245         * lib/nanosleep.c (nanosleep):
123246         Don't use SA_INTERRUPT to decide whether to call sigaction, as
123247         POSIX.1 doesn't require SA_INTERRUPT and some systems
123248         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
123249         it's been part of POSIX.1 since day 1 (in 1988).
123251 2000-01-17  Jim Meyering  <meyering@lucent.com>
123253         * lib/interlock: Remove unused file.  Reported by François Pinard.
123255 2000-01-16  Paul Eggert  <eggert@twinsun.com>
123257         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
123258         alert, backslash, formfeed, and vertical tab unnecessarily in
123259         shell quoting style.
123261 2000-01-16  Jim Meyering  <meyering@lucent.com>
123263         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
123264         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
123265         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
123266         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
123268 2000-01-16  Jim Meyering  <meyering@lucent.com>
123270         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
123271         because the latter didn't work.
123273 2000-01-15  Jim Meyering  <meyering@lucent.com>
123275         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
123276         (AC_REPLACE_FUNCS): Add memcpy and memset.
123277         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
123278         Add strpbrk.
123279         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
123281 2000-01-12  Jim Meyering  <meyering@lucent.com>
123283         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
123284         (jm_PREREQ): Use it.
123285         (jm_PREREQ_READUTMP): New macro.
123286         (jm_PREREQ): Use it.
123288 2000-01-11  Paul Eggert  <eggert@twinsun.com>
123290         Quote multibyte characters correctly.
123291         * m4/c-bs-a.m4: New file.
123292         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
123293         (jm_PREREQ): Use it.
123295 2000-01-11  Paul Eggert  <eggert@twinsun.com>
123297         * m4/uintmax_t.m4: Port to autoconf 2.13.
123299 2000-01-08  Jim Meyering  <meyering@ascend.com>
123301         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
123302         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
123304 2000-01-04  Jim Meyering  <meyering@ascend.com>
123306         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
123307         jm_STRUCT_DIRENT_D_TYPE.
123308         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
123309         jm_STRUCT_DIRENT_D_INO.
123310         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
123311         jm_STRUCT_UTIMBUF.
123312         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
123313         renamings.
123314         * m4/utime.m4: Likewise.
123316         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
123317         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
123319 2000-01-03  Paul Eggert  <eggert@twinsun.com>
123321         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
123322         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
123324 2000-01-02  Jim Meyering  <meyering@ascend.com>
123326         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
123327         remember if this is necessary.
123329 1999-12-26  Jim Meyering  <meyering@ascend.com>
123331         * m4/jm-macros.m4: Use it here.
123332         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
123334 1999-12-23  Jim Meyering  <meyering@ascend.com>
123336         * m4/jm-macros.m4: Check for clock_gettime (moved from
123337         fileutils/configure.in)
123338         Check for gettimeofday.
123340 1999-12-20  Jim Meyering  <meyering@ascend.com>
123342         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
123343         autoconf-2.14a-1999-12-20.
123345 1999-12-19  Jim Meyering  <meyering@ascend.com>
123347         * m4/lstat-slash.m4: New file.
123348         * m4/jm-macros.m4: Use the new macro:
123349         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
123351 1999-12-07  Jim Meyering  <meyering@ascend.com>
123353         * m4/perl.m4: Require that File::Compare be available, too.
123354         Too many systems seem to lack it.
123356         * m4/strftime.m4: Add checks for most of the cpp macros tested in
123357         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
123359 1999-11-18  Paul Eggert  <eggert@twinsun.com>
123361         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
123362         problem with the QNX 4.25 shell, which doesn't propagate exit
123363         status of failed commands inside shell assignments.
123365 1999-11-17  Jim Meyering  <meyering@ascend.com>
123367         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
123369 1999-11-07  Jim Meyering  <meyering@ascend.com>
123371         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
123373 1999-11-06  Jim Meyering  <meyering@ascend.com>
123375         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
123376         * m4/jm-macros.m4 (jm_MACROS): Use it here.
123378 1999-11-05  Jim Meyering  <meyering@ascend.com>
123380         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
123381         configure.in of textutils, fileutils, and sh-utils into this one
123382         (shared between those packages) file.
123383         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
123384         AC_STRUCT_ST_BLKSIZE.
123386 1999-11-03  Jim Meyering  <meyering@ascend.com>
123388         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
123389         of AC_CHECK_TYPE checks includes unistd.h.
123390         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
123391         Suggestion from Akim Demaille.
123393 1999-10-30  Jim Meyering  <meyering@ascend.com>
123395         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
123396         m4-quoted string.
123397         * m4/ls-mntd-fs.m4: Likewise.
123398         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
123399         * m4/jm-winsz1.m4: Likewise.
123401         * m4/const.m4: Remove file, since the fix made it into the experimental
123402         version of autoconf.
123403         * m4/mktime.m4: Likewise.
123405         * m4/check-type.m4: Remove file, now that the latest version of
123406         AC_CHECK_TYPE takes a third arg to specify additional #includes.
123408         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
123409         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
123410         AC_CHECK_TYPE.
123412 1999-10-04  Jim Meyering  <meyering@ascend.com>
123414         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
123416 1999-09-22  Paul Eggert  <eggert@twinsun.com>
123418         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
123419         2.95.1 bug with HP-UX 10.20.
123421 1999-09-17  Jim Meyering  <meyering@ascend.com>
123423         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
123424         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
123425         due to missing strdup (against sh-utils-2.0).
123427 1999-08-29  Jim Meyering  <meyering@ascend.com>
123429         * m4/jm-macros.m4: Require jm_BISON.
123430         * m4/bison.m4: New file.
123432 1999-08-17  Paul Eggert  <eggert@twinsun.com>
123434         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
123435         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
123437 1999-08-05  Jim Meyering  <meyering@ascend.com>
123439         * m4/getline.m4: Rename test file from conftestdata to conftest.data
123440         to avoid conflicts with `conftest' on 8+3 filesystems.
123441         Suggestion from Eli Zaretskii.
123443 1999-08-04  Jim Meyering  <meyering@ascend.com>
123445         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
123446         fileutils and sh-utils (textutils's getline test was inadequate).
123447         (AM_FUNC_GETLINE): Run this test.
123448         (AC_CHECK_FUNCS): Check for getdelim.
123449         Reported by Bob Proulx.
123451 1999-08-02  Jim Meyering  <meyering@ascend.com>
123453         * m4/jm-macros.m4: Add a comment.
123455 1999-08-01  Paul Eggert  <eggert@twinsun.com>
123457         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
123458         <inttypes.h> defines strtoumax as a macro (and not as a
123459         function).
123461 1999-08-01  Paul Eggert  <eggert@twinsun.com>
123463         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
123464         that we can shift, multiply and divide unsigned long long
123465         values; Ultrix cc can't do it.
123467 1999-08-01  Paul Eggert  <eggert@twinsun.com>
123469         * m4/mktime.m4: New file, which is a preview of what should appear
123470         in the next public autoconf release.
123472 1999-08-01  Paul Eggert  <eggert@twinsun.com>
123474         * m4/lfs.m4: Remove this file.
123475         * m4/largefile.m4: New file.  It contains the old contents of
123476         lfs.m4, except that all names with prefix AC_LFS have been
123477         changed to use the prefix AC_SYS_LARGEFILE instead, to be
123478         compatible with future autoconf versions.  Also, some minor m4
123479         quoting problems have been fixed.
123481 1999-08-01  Paul Eggert  <eggert@twinsun.com>
123483         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
123484         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
123485         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
123486         and simplify the shell code.
123488 1999-08-01  Jim Meyering  <meyering@ascend.com>
123490         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
123491         m4.
123493 1999-07-20  Jim Meyering  <meyering@ascend.com>
123495         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
123497 1999-07-15  Jim Meyering  <meyering@ascend.com>
123499         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
123501 1999-05-22  Jim Meyering  <meyering@ascend.com>
123503         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
123505 1999-05-20  Jim Meyering  <meyering@ascend.com>
123507         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
123508         Add a colon after each `then' in case $4 is empty.
123510 1999-05-16  Jim Meyering  <meyering@ascend.com>
123512         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
123514 1999-05-10  Jim Meyering  <meyering@ascend.com>
123516         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
123518         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
123519         AC_FUNC_MKTIME.
123521 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
123523         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
123525 1999-05-04  Paul Eggert  <eggert@twinsun.com>
123527         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
123528         not CPPFLAGS, so that linking works correctly in IRIX.
123530 1999-04-30  Paul Eggert  <eggert@twinsun.com>
123532         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
123534 1999-04-20  Paul Eggert  <eggert@twinsun.com>
123536         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
123537         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
123538         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
123539         jm_AC_TYPE_UNSIGNED_LONG_LONG.
123540         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
123542         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
123544 1999-04-20  Jim Meyering  <meyering@ascend.com>
123546         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
123547         AC_REPLACE xstroull if necessary.  From Paul Eggert.
123548         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
123550 1999-04-18  Jim Meyering  <meyering@ascend.com>
123552         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
123553         * m4/jm-macros.m4: Use it.
123555 1999-04-06  Jim Meyering  <meyering@ascend.com>
123557         * m4/strftime.m4: Remove test for %f.
123559 1999-03-29  Jim Meyering  <meyering@ascend.com>
123561         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
123562         superset of the AC_TYPE_* checks in the textutils, fileutils,
123563         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
123564         AC_TYPE_PID_T.
123566 1999-03-28  Jim Meyering  <meyering@ascend.com>
123568         * m4/jm-macros.m4: Define GNU_PACKAGE here.
123569         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
123570         replaced e.g., in the *.sh files of the sh-utils.
123572 1999-03-20  Jim Meyering  <meyering@ascend.com>
123574         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
123575         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
123576         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
123578 1999-03-19  Jim Meyering  <meyering@ascend.com>
123580         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
123582 1999-03-12  Jim Meyering  <meyering@ascend.com>
123584         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
123586 1999-03-07  Jim Meyering  <meyering@ascend.com>
123588         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
123589         declared.
123591 1999-02-17  Jim Meyering  <meyering@ascend.com>
123593         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
123594         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
123596 1999-02-07  Jim Meyering  <meyering@ascend.com>
123598         * m4/group-member.m4: New file -- extracted from sh-utils'
123599         configure.in.
123601         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
123602         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
123604 1999-02-06  Jim Meyering  <meyering@ascend.com>
123606         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
123607         * m4/fnmatch.m4: Likewise.
123608         * m4/getgroups.m4: Likewise.
123609         * m4/lstat.m4: Likewise.
123610         * m4/malloc.m4: Likewise.
123611         * m4/putenv.m4: Likewise.
123612         * m4/realloc.m4: Likewise.
123613         * m4/regex.m4: Likewise.
123614         * m4/stat.m4: Likewise.
123615         * m4/strftime.m4: Likewise.
123616         Suggestion from Alain Magloire.
123618         * m4/chown.m4: Use `.$ac_objext', not `.o'.
123619         * m4/fnmatch.m4: Likewise.
123620         * m4/getgroups.m4: Likewise.
123621         * m4/getline.m4: Likewise.
123622         * m4/lstat.m4: Likewise.
123623         * m4/malloc.m4: Likewise.
123624         * m4/memcmp.m4: Likewise.
123625         * m4/putenv.m4: Likewise.
123626         * m4/realloc.m4: Likewise.
123627         * m4/regex.m4: Likewise.
123628         * m4/stat.m4: Likewise.
123629         * m4/strftime.m4: Likewise.
123630         Suggestion from Alain Magloire.
123632         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
123633         an argument.
123635         * m4/regex.m4: Add a run-time Test for proper operation of
123636         re_compile_pattern.
123638 1999-01-31  Jim Meyering  <meyering@ascend.com>
123640         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
123642 1999-01-30  Jim Meyering  <meyering@ascend.com>
123644         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
123646         * m4/jm-mktime.m4: Make this a wrapper around the official
123647         AM_FUNC_MKTIME rather than my private copy, now that the official one
123648         is up to date.
123649         * m4/mktime.m4: Remove file.
123651         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
123652         * m4/uptime.m4: Likewise.
123653         * m4/uintmax_t.m4: Likewise.
123655 1999-01-28  Jim Meyering  <meyering@ascend.com>
123657         * m4/jm-macros.m4: Use jm_AFS.
123658         * m4/afs.m4: New file (from fileutils' configure.in).
123660         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
123661         * m4/chown.m4: Likewise.
123662         * m4/d-ino.m4: Likewise.
123663         * m4/d-type.m4: Likewise.
123664         * m4/fnmatch.m4: Likewise.
123665         * m4/getgroups.m4: Likewise.
123666         * m4/gettext.m4: Likewise.
123667         * m4/jm-mktime.m4: Likewise.
123668         * m4/jm-winsz2.m4: Likewise.
123669         * m4/lcmessage.m4: Likewise.
123670         * m4/ls-mntd-fs.m4: Likewise.
123671         * m4/malloc.m4: Likewise.
123672         * m4/memcmp.m4: Likewise.
123673         * m4/putenv.m4: Likewise.
123674         * m4/realloc.m4: Likewise.
123675         * m4/st_mtim.m4: Likewise.
123676         * m4/strftime.m4: Likewise.
123678 1999-01-16  Jim Meyering  <meyering@ascend.com>
123680         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
123681         (ARGMATCH_DIE_DECL): Define.
123683 1999-01-12  Jim Meyering  <meyering@ascend.com>
123685         * m4/Makefile.am.in: Rewrite to avoid using fmt.
123686         Reported by Lars Hecking.
123688 1999-01-10  Jim Meyering  <meyering@ascend.com>
123690         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
123691         gross kludge.
123692         * m4/inttypes_h.m4: Likewise.
123693         * m4/lstat.m4: Likewise.
123694         * m4/malloc.m4: Likewise.
123695         * m4/readdir.m4: Likewise.
123696         * m4/realloc.m4: Likewise.
123697         * m4/st_dm_mode.m4: Likewise.
123698         * m4/stat.m4: Likewise.
123699         * m4/utimbuf.m4: Likewise.
123700         * m4/utimes.m4: Likewise.
123702         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
123703         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
123704         comments in config.h.in are meaningful.
123706         * m4/jm-macros.m4: Require autoconf-2.13 here.
123708         * m4/regex.m4: By default, don't use the included regex.c on systems
123709         with glibc 2.  Suggestion from Uli Drepper.
123711 1999-01-02  Jim Meyering  <meyering@ascend.com>
123713         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
123715 1998-12-18  Jim Meyering  <meyering@ascend.com>
123717         * m4/Makefile.am.in (Makefile.am): Simplify rule.
123718         Based on a suggestion from Lars Hecking.
123720 1998-11-16  Paul Eggert  <eggert@twinsun.com>
123722         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
123724 1998-11-16  Jim Meyering  <meyering@ascend.com>
123726         * m4/lfs.m4: Double-quote the `uname...` expression.
123728 1998-11-14  Jim Meyering  <meyering@ascend.com>
123730         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
123731         * m4/stat.m4: Likewise.
123733 1998-11-03  Jim Meyering  <meyering@ascend.com>
123735         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
123736         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
123738 1998-10-18  Jim Meyering  <meyering@ascend.com>
123740         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
123742 1998-10-17  Jim Meyering  <meyering@ascend.com>
123744         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
123745         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
123746         calls for those previously hard-coded headers.  Instead, take a new
123747         parameter.
123748         (jm_CHECK_DECLARATIONS): Reflect interface change.
123749         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
123750         (jm_CHECK_DECL_LOCALTIME_R): New macro.
123752         * m4/mktime.m4: Test for spring-forward gap before long-running test.
123754 1998-10-14  Jim Meyering  <meyering@ascend.com>
123756         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
123757         instead of "TZ=America/Vancouver".  From Paul Eggert.
123759 1998-10-11  Jim Meyering  <meyering@ascend.com>
123761         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
123762         This adds a test for a recently added compatibility fix for mktime.c.
123763         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
123765 1998-09-27  Jim Meyering  <meyering@ascend.com>
123767         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
123769         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
123770         ../configure.in, including a change from Gordon Matzigkeit to allow
123771         cross-compiling for the Hurd.
123773         * m4/glibc.m4: New file/macro to test for the GNU C Library
123774         versions 1 and 2.  From Gordon Matzigkeit.
123775         Indent.
123777 1998-09-21  Jim Meyering  <meyering@ascend.com>
123779         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
123781 1998-08-18  Paul Eggert  <eggert@twinsun.com>
123783         Port nanosecond-resolution times to UnixWare 2.1.2 and
123784         pedantic Solaris 2.6.
123786         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
123787         AC_STRUCT_ST_MTIM.
123788         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
123789         Generate name of ns member, instead of just 1 or undef.
123790         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
123792 1998-08-15  Jim Meyering  <meyering@ascend.com>
123794         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
123795         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
123796         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
123797         instead of jm_TYPE_SSIZE_T.
123799 1998-08-12  Jim Meyering  <meyering@ascend.com>
123801         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
123803 1998-08-02  Jim Meyering  <meyering@ascend.com>
123805         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
123806         in acconfig.h manually.
123808 1998-07-31  Paul Eggert  <eggert@twinsun.com>
123810         * m4/st_mtim.m4: New file.
123812 1998-07-28  Jim Meyering  <meyering@ascend.com>
123814         * m4/utimes.m4: Undef stat.
123816 1998-07-25  Jim Meyering  <meyering@ascend.com>
123818         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
123819         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
123821 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
123823         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
123824         uid and gid actually remain unchanged.
123826 1998-07-07  Jim Meyering  <meyering@ascend.com>
123828         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
123830 1998-07-04  Jim Meyering  <meyering@ascend.com>
123832         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
123833         to prove that this macro can be used in packages without regex.c.
123835 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
123837         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
123838         is to be used.
123840 1998-07-03  Jim Meyering  <meyering@ascend.com>
123842         * m4/gettext.m4: Add -lintl if it's found to be necessary.
123844         * m4/gettext.m4: New file -- from gettext-0.10.35.
123845         * m4/lcmessage.m4: Likewise.
123846         * m4/progtest.m4: Likewise.
123848         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
123849         * m4/jm-macros.m4: Require the new macro.
123851 1998-06-29  Jim Meyering  <meyering@ascend.com>
123853         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
123854         for the definition of NGROUPS (used in a system header included
123855         by sys/mount.h).
123857 1998-06-28  Jim Meyering  <meyering@ascend.com>
123859         * m4/ls-mntd-fs.m4: New file.
123860         * m4/fstypename.m4: New file.
123862         * m4/jm-macros.m4: Require the new macro.
123863         * m4/jm-glibc-io.m4: New file.
123865 1998-05-19  Jim Meyering  <meyering@ascend.com>
123867         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
123868         * m4/lchown.m4: New file.
123870         * m4/Makefile.am.in: New file.
123871         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
123873 1998-05-14  Jim Meyering  <meyering@ascend.com>
123875         * m4/Makefile.am (EXTRA_DIST): Add them.
123876         * m4/jm-macros.m4: New file.
123877         * m4/utimbuf.m4: New file.
123879 1998-05-12  Jim Meyering  <meyering@ascend.com>
123881         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
123883 1998-05-11  Jim Meyering  <meyering@ascend.com>
123885         * m4/isc-posix.m4: New file.
123887 1998-05-10  Jim Meyering  <meyering@ascend.com>
123889         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
123891 1998-05-09  Jim Meyering  <meyering@ascend.com>
123893         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
123894         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
123895         with automake.
123897         * m4/ssize_t.m4: New file.
123898         * m4/mktime.m4: Remove file -- the new automake has this now.
123900 1998-04-26  Jim Meyering  <meyering@ascend.com>
123902         * m4/assert.m4: New file.
123903         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
123905 1998-04-05  Jim Meyering  <meyering@ascend.com>
123907         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
123908         (jm_PREREQ): Use it here.
123910 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
123912         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
123913         in acconfig.h.
123915 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
123917         * m4/prereq.m4: New file.
123918         * m4/error.m4: New file.
123919         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
123921 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
123923         * m4/getline.m4: Don't set am_cv_func_working_getline before the
123924         cache-check for the same variable -- that defeated the purpose of
123925         the test; the test program was never run.  This was a problem only
123926         on systems with losing getline functions -- HP-UX 10.20 is one.
123927         Reported by Bjorn Helgaas.
123929 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
123931         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
123933 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
123935         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
123937         * m4/const.m4: New file.  Use an initializer in this declaration
123938         typedef int charset[2]; const charset x;
123939         Reported by Bob Glickstein.
123941 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
123943         * m4/chown.m4: Fix reversed types on -1 args to chown.
123944         From Kaveh Ghazi.
123946 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
123948         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
123949         Add lseek and memchr.
123951         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
123952         T.E.Dickey <dickey@clark.net> said that some older preprocessors
123953         have a 20-character limit on names.
123955 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
123957         * m4/inttypes_h.m4: New file.
123958         * m4/uintmax_t.m4: New file.
123959         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
123962         -----
123964         Local Variables:
123965         coding: utf-8
123966         End:
123968         Copyright (C) 1997-2019 Free Software Foundation, Inc.
123970         Copying and distribution of this file, with or without
123971         modification, are permitted provided the copyright notice
123972         and this notice are preserved.